Objective
Turn external bytes into bounded, unambiguous typed values before they influence authority or execution. Extend existing #621/#622 codecs/importers, #648 interfaces, #624 conformance and #639 receipt tests. This owns a cross-boundary adversarial campaign, not a second parser framework.
Acceptance
- Inventory actual active .om ingress paths: source/imports, manifests, receipts, RPC/tool arguments, model/artifact metadata, trace bundles and device command descriptions. Map each path to one implementation owner and maximum resource profile.
- Freeze supported versions, lengths, nesting depth, integer ranges, encodings, unknown-field handling, duplicate-field handling and complete-input consumption. Unsupported inputs refuse explicitly.
- Ensure authentication and interpretation bind the same bytes or the same rigorously specified canonical form. Reject ambiguous encodings, duplicate authority fields, trailing payloads and parser differentials.
- Resolve imported files/objects under the intended authority; reject traversal and stale-object substitutions through actual platform APIs, not only lexical string filters.
- Run bounded grammar-aware and mutation fuzzing through actual compiled consumers. Test truncation at each boundary, oversized counts, arithmetic overflow, pathological nesting, malformed text, corrupted signatures and resource exhaustion.
- Measure parser/compiler wall time and peak resources on adversarial families; enforce budgets outside potentially compromised workloads. No universal complexity guarantee inferred from a finite corpus.
- Differential oracles are independent of the implementation under test. Preserve a minimized regression for each actual failure.
- Meaningful acceptance-bypass, canonicalization, length and budget mutants fail named checks. Missing binaries/build failures/timeouts are INVALID unless timeout is the explicitly expected budget-enforcement outcome.
- Feed coverage and raw results into #624; evidence uses synthetic data, never secrets, private traces or sealed evaluation tasks.
Historical rationale: economical mechanisms and complete mediation (Saltzer/Schroeder); input-language design research at https://langsec.org/ .
Delivery and qualification
Authorized security follow-up, 2026-10-23. Reconcile current source, branches, issue comments, AGENTS.md, plan authority and worktree ownership before edits. One writer per shared compiler/runtime file; preserve existing Renda/desk review and release ownership. All new first-party implementation, runners and tests use seeded .om. Missing facilities go to the existing compiler owner; no second compiler, runtime, authority or store. Qualify replacements and consumers before removing superseded active first-party code/dependencies; preserve Git history and immutable evidence. Record exact source/seed/compiler/binary/config/fixture identities, raw commands and exits, independent review and explicit PASS/FAIL/INVALID/NOT_RUN. Emulation is not hardware qualification. A hash/signature authenticates identity, not correctness. No automatic deployment, live GPU interruption, driver changes, private-data upload or issue closure from a source-only PR.
Quantity, aggregate budget and observation consumers
Consume #756 for parser lengths/counts/serialized quantities and #757 for pre-authentication parser/handshake/queue reservations. Existing local buffer limits do not establish a global client/storage bound. Integrate the real omnet#3 consumer without forking codecs.
Extend current source/execprog/renames/path/argread evidence with overflow-before-bounds, multiply/narrowing, exact/trailing input, aggregate queued bytes and cancellation/short-I/O cases. Keep authentication bound to exactly the interpreted canonical bytes. Secret-consuming paths additionally obey #758/#759 error/admission/reclamation disclosure rules; public-input parsers need no blanket constant-time claim. Separate valid denial from service-wide crash or unbounded cleanup.