Protocol 2.2 parser/schema reject declared diagnostic and source IDs #666

Open
opened 2026-10-27 01:46:16 +01:00 by erikinkinen · 0 comments
Owner

Problem

The accepted protocol 2.2 common envelope has incomplete enum inventories in
both the native parser and JSON Schema. It rejects the declared diagnostic
V5d (section 9.5), admits undeclared V2c, and rejects all five source IDs
added by section 4.5: native_repr, application_conformance, app_sharing,
app_jobs, and app_plugins.

This blocks faithful serialization of the frozen diagnostic family and later
source populations. The envelope accepts phases 2–6; phase ownership and
scientific qualification remain separate stage gates.

Reproduction and authority

The unmodified baseline document parses successfully. On accepted main
8ed9e598d030c8cc9b8d871e7d425e9628d70965, the native parser and JSON Schema
both reject each of the six declared-ID cases and accept undeclared V2c.
The native probe was built from 13e970e271747e881dda2d463e043b8d3957b3fc;
its parser and schema source bytes are identical to this accepted main.
Exact inputs, outputs, source/binary hashes and independent schema outcomes
are preserved locally for the validation archive.

Governing source: frozen docs/research/protocol-2.2.txt, sections 4.5,
6.3, 7.3, 8.3, 9.5, 10.5 and 11. The exact diagnostic inventory is
V2a/V2b, V3a/V3b/V3c, V4a/V4b/V4c, V5a/V5b/V5c/V5d, V6a/V6b/V6c.
There are fifteen diagnostics and twelve source IDs.

Fix

Use closed exact inventories in the native parser and JSON Schema. Document
all declared IDs and add independent fixture coverage for every declared
member, invalid near-neighbors, and full inventory round trips. Preserve all
other validation, stage registration, phase ownership and scientific gates.
This corrects implementation to the frozen protocol; it changes no endpoint,
margin, population, matrix or scientific protocol version.

Steps

  • Preserve baseline native/schema reproductions and their immutable identities.
  • Align both exact inventories and document the frozen IDs.
  • Validate all declared IDs and rejection controls, affected parser/planner consumers, all eight hooks, frozen scope and all ten own final CI contexts before merging.

Definition of done

One signed branch and PR for this bug, queued after the current validated
run-manifest stack so existing pending heads keep their accepted source bytes.
Require the selected predecessor accepted, native prerequisite #107 closed,
and all ten own exact-head contexts before the single checklist update and
guarded signed fast-forward merge. Store source/integration evidence and
explicitly retain the original failing cases. Parser acceptance does not
certify a campaign or its scientific locks.

<!-- aes-bug-key: protocol-2.2-closed-enums --> ## Problem The accepted protocol 2.2 common envelope has incomplete enum inventories in both the native parser and JSON Schema. It rejects the declared diagnostic `V5d` (section 9.5), admits undeclared `V2c`, and rejects all five source IDs added by section 4.5: `native_repr`, `application_conformance`, `app_sharing`, `app_jobs`, and `app_plugins`. This blocks faithful serialization of the frozen diagnostic family and later source populations. The envelope accepts phases 2–6; phase ownership and scientific qualification remain separate stage gates. ## Reproduction and authority The unmodified baseline document parses successfully. On accepted main `8ed9e598d030c8cc9b8d871e7d425e9628d70965`, the native parser and JSON Schema both reject each of the six declared-ID cases and accept undeclared `V2c`. The native probe was built from `13e970e271747e881dda2d463e043b8d3957b3fc`; its parser and schema source bytes are identical to this accepted main. Exact inputs, outputs, source/binary hashes and independent schema outcomes are preserved locally for the validation archive. Governing source: frozen `docs/research/protocol-2.2.txt`, sections 4.5, 6.3, 7.3, 8.3, 9.5, 10.5 and 11. The exact diagnostic inventory is V2a/V2b, V3a/V3b/V3c, V4a/V4b/V4c, V5a/V5b/V5c/V5d, V6a/V6b/V6c. There are fifteen diagnostics and twelve source IDs. ## Fix Use closed exact inventories in the native parser and JSON Schema. Document all declared IDs and add independent fixture coverage for every declared member, invalid near-neighbors, and full inventory round trips. Preserve all other validation, stage registration, phase ownership and scientific gates. This corrects implementation to the frozen protocol; it changes no endpoint, margin, population, matrix or scientific protocol version. ## Steps - [ ] Preserve baseline native/schema reproductions and their immutable identities. - [ ] Align both exact inventories and document the frozen IDs. - [ ] Validate all declared IDs and rejection controls, affected parser/planner consumers, all eight hooks, frozen scope and all ten own final CI contexts before merging. ## Definition of done One signed branch and PR for this bug, queued after the current validated run-manifest stack so existing pending heads keep their accepted source bytes. Require the selected predecessor accepted, native prerequisite #107 closed, and all ten own exact-head contexts before the single checklist update and guarded signed fast-forward merge. Store source/integration evidence and explicitly retain the original failing cases. Parser acceptance does not certify a campaign or its scientific locks.
erikinkinen added this to the Phase 2 milestone 2026-10-27 01:46:16 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
erikinkinen/AES#666
No description provided.