Repository navigation
Realize retire-hermes-flat-keys-and-openworkflow-tokens (§§ 2, 3, 6): the fallback read is REPLACED, the openworkflow branch is gone, and the keys stay In Force with the reason recorded — DO NOT MERGE, and NOT the cut - #562
brettheap merged 5 commits into
Conversation
… read is REPLACED, the openworkflow branch is gone, and the keys stay In Force with the reason recorded Realization of the RATIFIED packet (#551, squash 59eb913; ratified 2026-09-01 by Brett Heap, record at review/ratification-2026-09-01.md), carrying entries 1 and 2 of openxFactory issue #522. tasks.md §§ 2, 3 and 6 only. § 4 (the contract-v3.0 cut), § 5 and § 7 are untouched and remain open: no tag, no manifest bump, no digest inventory, and no contract-v3.0 CHANGELOG entry. THE FALLBACK RETIREMENT IS A REPLACEMENT AND NOT A DELETION. The `hermes.layers missing required role` errors sit INSIDE the layers-declared branch, so deleting the else arm alone would let a layers-less stack fall through to an empty layer map and produce no finding at all -- a silent widening at a major. In its place, one explicit error naming the missing or non-list hermes.layers. Measured on the same probe against both validators: PASS with a warning became FAIL with an error, not silence. THE openworkflow REMOVAL MOVES TWO CASES IN OPPOSITE DIRECTIONS, and both were measured rather than assumed. The branch was an `if` preceding the general rule and shadowed it: a resolvable prefixed token was warned and now validates silently (the widening), while an unresolvable one was warned and is now an error (the narrowing). The Executed row carries both. The declared shape is corrected to the prefix the code matched -- `openworkflow`, one character short of the `openworkflow_` the entry and the docstring wrote. The generator stops emitting the deprecated keys. It named them in THREE places, not the one the task's line range covers: the stack.yaml template, the generated schemas/stack.schema.yaml required_paths, and the generated local validator's overlay reads. Moving only the template would have shipped a generated repository that requires paths its own stack.yaml no longer carries. omnigent.domain_overlay is untouched throughout -- same key name, different block, not deprecated, and read by the validator. The KEYS are not refused. All five supported consumers carry them alongside hermes.layers, and that co-resident shape has never produced a warning against any of them, so refusing it would be an unphased narrowing. The In Force entry is rewritten from the refusal list -- twelve keys BY PATH, five of which it previously named -- with the measurement, the deprecating minor it owes, and the target RESTATED to contract-v4.0. Verified: the validator run against all five supported consumers moves no line (codexFactory 8152686, MedxFactory fcafcc0, AdxFactory 79f85b7, LedgerxFactory 38743cf, OpsxFactory ef60375), and not one of them emitted a legacy-flat-key warning on either side. New coverage where there was none: 20 tests in tests/hermes_runtime_contracts/test_domain_factory_deprecation_retirements.py. The D4 canon/code severity divergence is filed as issue #561 (§ 6.1). Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR realizes the ratified OpenSpec packet retire-hermes-flat-keys-and-openworkflow-tokens (tasks.md §§ 2, 3, 6) by updating the canonical domain-factory validator and domain-starter generator to retire two deprecated compatibility surfaces at the upcoming contract-v3.0 major, and by recording the corresponding policy “Executed” / “In Force” rows with the measured rationale. It also adds subprocess-based regression coverage to lock in both “narrowing” and “widening” behavior changes.
Changes:
- Retire the
hermeslegacy flat-key fallback read by replacing it with an explicithermes.layersmissing/non-list error; removeLEGACY_HERMES_KEYS. - Remove the
openworkflow-prefixedowner_layercompatibility warning branch so tokens fall through to the general resolution rule. - Update the domain starter’s generated artifacts (template + schema + generated validator) to stop emitting/requiring deprecated flat keys; add dedicated tests and update versioning policy documentation accordingly.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/hermes_runtime_contracts/test_domain_factory_deprecation_retirements.py | Adds subprocess-driven contract tests covering both retirements and starter outputs. |
| scripts/validate-domain-factory.py | Removes legacy flat-key fallback path and the openworkflow compatibility branch; updates docstring to reflect new contract-v3.0 behavior. |
| scripts/apply-domain-starter.py | Stops emitting deprecated hermes flat keys and updates generated required-path/schema/validator checks to align with hermes.layers. |
| openspec/changes/retire-hermes-flat-keys-and-openworkflow-tokens/tasks.md | Marks §§ 2/3/6 as completed with recorded evidence and preserves separation from the contract cut. |
| openspec/changes/retire-hermes-flat-keys-and-openworkflow-tokens/.openspec.yaml | Adds a scoped realization note clarifying what was performed vs. the ratifying act. |
| docs/contract-versioning-policy.md | Records executed deprecations (including widening/narrowing notes) and rewrites the in-force flat-key entry with refusal-list-by-path and measured rationale. |
| contracts/CHANGELOG.md | Replaces stale line-range citation with a stable section reference for the breaking-change rule. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| import subprocess | ||
|
|
||
| target = tmp_path_factory.mktemp("retirement-scaffold") / "probex" | ||
| result = subprocess.run( | ||
| [sys.executable, str(ROOT / "scripts/apply-domain-starter.py"), | ||
| str(target), "--domain-id", "probex", "--product-name", "ProbexFactory"], | ||
| capture_output=True, text=True, check=False) | ||
| assert result.returncode == 0, result.stdout + result.stderr |
| text = (scaffolded_stack / "stack.yaml").read_text(encoding="utf-8") | ||
| hermes = yaml.safe_load(text)["hermes"] | ||
|
|
||
| assert list(hermes) == ["layers"] |
…verdicts Round one on the realization pull request #562 returned two findings from Copilot and both are taken. 1. The domain-starter subprocess ran with no deterministic environment and no timeout, inheriting the ambient one while the rest of this package uses `deterministic_environment()`. It now uses it, with an explicit timeout. 2. `assert list(hermes) == ["layers"]` was order-dependent and stricter than the box it serves: it would fail the day the starter grew a new, NON-deprecated hermes key, which is not a retirement regression. It now asserts what the box is about -- `layers` present, every deprecated key absent -- and the reason is written beside it. Codex refused again, three more times: the automatic request on open plus two explicit `@codex review` comments, each returning "You have reached your Codex usage limits for code reviews" and no review. That is SEVEN refusals across #551 and #562 and still ZERO verdicts. The refusal is the provider's ceiling, not a finding and not a silence basis, so tasks.md 1.6 stays OPEN with the three new timestamps recorded beside the four from ratification. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/apply-domain-starter.py:2922
- The post-scaffold path existence check assumes
stack['hermes']['layers']is iterable. Ifhermes.layersis present but not a list (e.g., an int/string due to a manual edit or bad merge),(… or [])will still be truthy and the list comprehension will raiseTypeError, aborting the starter with a traceback instead of reporting a structured error.
Guard the iteration by normalizing hermes_layers to an empty list unless it’s actually a list.
stack = load_yaml("stack.yaml")
for rel in [
*[layer.get("overlay") for layer in (stack.get("hermes", {}).get("layers") or [])
if isinstance(layer, dict)],
stack.get("omnigent", {}).get("domain_overlay"),
Local gate results, and the one failure attributed rather than waved pastRun from an independent The one failure is Its own comment says "From the repo root the sibling openxFactory checkout is reachable" — it needs an aggregation-workspace layout with a sibling directory named The inherited Also green:
Review state on this pull request
Copilot's two, and why each was right:
No finding was refuted, and nothing was deferred. |
…s gone Copilot's second round, against the fixed head f259ca0, generated no new comments -- converged on the same shape #551's sixth round ended in. Recorded against tasks.md 1.6 beside the two findings it took and the seven Codex refusals it did not get a verdict from. Also recorded there: the inherited `main` pytest red that the ratification record's section 4 discloses -- PR #510's carriage-ledger subject -- is FIXED on main by #557, merged 2026-09-01T06:59Z, which is after that record was written. The full local suite on this branch passes that test and does not list it, so this realization inherits no red and attributes none. Without the note, section 4 of the record reads as a current state rather than as the state at ratification. Co-Authored-By: Claude Fable 5 <[email protected]>
| stack = load_yaml("stack.yaml") | ||
| for rel in [ | ||
| stack.get("hermes", {}).get("domain_overlay"), | ||
| stack.get("hermes", {}).get("domain_agent_mixes"), | ||
| stack.get("hermes", {}).get("client_overlay"), | ||
| stack.get("hermes", {}).get("client_agent_mixes_template"), | ||
| stack.get("hermes", {}).get("customer_overlay"), | ||
| stack.get("hermes", {}).get("customer_agent_mixes_template"), | ||
| *[layer.get("overlay") for layer in (stack.get("hermes", {}).get("layers") or []) | ||
| if isinstance(layer, dict)], | ||
| stack.get("omnigent", {}).get("domain_overlay"), |
…e file over
The generated validator resolved overlay directories from
`stack.get("hermes", {}).get("layers") or []`. Correct for a list, and SILENT
for a non-list: `{}`, a string or an int iterates nothing, skips every
overlay-path check, and reports OK on a scaffold the CANONICAL validator
refuses. That is exactly the silent widening this packet's section 2.1 spends
four paragraphs forbidding, reproduced by the fix for it, in a file section
2.1 does not name.
The generated validator now ERRORS on the type before iterating, and
`test_the_generated_validator_REFUSES_a_non_list_hermes_layers` drives all
four non-list shapes -- absent, `{}`, a string, an int -- through BOTH
validators and asserts each refuses, so the generated one can never again
pass what the canonical one fails.
Copilot on PR #562, round 3 of 3. Three rounds, three findings, three taken,
none refuted. Codex still owes a pass and has now returned seven usage-limit
refusals across #551 and #562 with zero verdicts.
Co-Authored-By: Claude Fable 5 <[email protected]>
|
RULED BY BRETT HEAP, 2026-09-01: HOLD UNTIL THE CUT, AND LAND THEM TOGETHER. Put to him as three options — (a) merge §§ 2/3/6 now and accept the forward-declaration window with the cut as its own act, (b) hold until Recorded here rather than in What that means for this PRIt stays open and is not merged. The DO-NOT-MERGE in its title stands, and is now a ruling rather than an author's caution. §§ 4, 5 and 7 come to this branch — or to a branch that includes it — so that the The forward-declaration window is what the ruling avoids. The PR states it honestly: merging §§ 2/3 alone puts two "Deprecations Executed at There is precedent for the shape now: What is NOT ruled here
|
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Correcting an understatement in this packet's own review record, which is the last place an understatement belongs. Codex refused TWICE MORE after the previous note was written -- 13:49:59 and 13:51:15 UTC, on head 5b026e4 -- so #562 has FIVE refusals and the arc has NINE across #551 and #562, still with zero verdicts and no Codex review naming any head of either branch. tasks.md 1.6 now tables all five of #562's with the head each was requested against. Copilot's fourth round, against 5b026e4, generated no new comments. Four rounds, three findings, three taken, none refuted, converged. Co-Authored-By: Claude Fable 5 <[email protected]>
CI GREEN, and the review arc convergedAll four required checks passed on
There is no inherited red to attribute. The ratification record's § 4 disclosed a standing The review arc, exactlyCopilot: FOUR rounds, THREE findings, THREE TAKEN, none refuted, converged.
Round 3 deserves naming, because it caught this packet's own § 2.1 hazard reproduced by the realization that fixed it. My generated-validator repair resolved overlay dirs from The lesson is worth carrying: the packet's replacement-not-deletion rule is not about one Codex: NINE PROVIDER USAGE-LIMIT REFUSALS ACROSS #551 AND #562, ZERO VERDICTS. Five of them here:
Not one Codex review names any head of either branch. The refusal is the provider's ceiling: it is not a finding, not a silence basis, and not evidence about this change. What this pull request is NOT, restated for whoever merges itIt realizes |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/apply-domain-starter.py:2929
- The generated validator’s overlay-path loop silently ignores invalid
hermes.layersentries (non-mapping items or mappings missingoverlay) due to theif isinstance(layer, dict)filter and unconditional.get("overlay"). That can allow the starter’s local validator to pass a stack that the canonical validator would reject (under-validating the generated repo). Validate each list element and requireoverlayto be present, emitting an explicit error when it is not.
*[layer.get("overlay") for layer in hermes_layers if isinstance(layer, dict)],
|
Merging on Brett Heap's explicit word, 2026-09-01 in-session ("merge #562 and #564"), admin squash per the provenance pattern. All four required checks GREEN at head 8277fb3 (pytest 8487 passed — main's #510 red was fixed by #557, so the green is this branch's own). The disclosed sequencing property merges as stated: between this merge and the contract-v3.0 cut, the versioning policy names v3.0 as the removal version while the declared bundle remains contract-v2.5 — the same forward declaration add-binding-consumer-identity already carries. Codex: nine provider usage-limit refusals across #551/#562, zero verdicts — the pass remains owed at §1.6, blocked by nothing. Copilot: five rounds, three findings, all taken, last two rounds clean. |
…cuted, chain-attestation carried, contract-v2.6 superseded unpublished (#573) * Cut contract-v3.0: three retirements executed, chain-attestation carried, contract-v2.6 superseded unpublished The first MAJOR since contract-v2.0, and it is a major because the tree already is one: a951be7 (#562) and 6856f50 (#564) merged in the same minute on 2026-09-01T19:43Z and between them removed three shapes contract-v2.5 accepted. From that point no minor number can honestly be declared on this tree. WHAT LANDS AT THIS MAJOR, and the changelog entry names every one: 1. the hermes flat-key FALLBACK READ leaves the domain-factory validator, with LEGACY_HERMES_KEYS and the starter's emission of the keys (#562); 2. the openworkflow-prefixed owner_layer branch leaves the same validator, one character wider than the entry declared (#562); 3. the doxBench chat-turn v1 envelope family leaves the schema, with its deprecated_envelopes block, the dispatch, twelve fixtures and the byte-identity baseline (#564); 4. add-chain-attestation tranche two, carried forward unchanged from the never-published contract-v2.6 (#556, 518c670); 5. the deprecation-section moves: the chat-turn Executed row here, the other two plus the flat KEYS' restatement in #562; 6. xfactory-workbench-chat-turn.schema.yaml's own contract_schema_version 1 -> 2, the ONE integer this major moves (OQ-2, answered by measurement); 7. doxbench_contracts.CONTRACT_TAG off its knowingly stale contract-v2.2; 8. contract-v2.6 recorded as spent, never verifiable, never published. AND ONE ACT THAT NAMED THIS MAJOR AND DID NOT LAND: add-binding-consumer- identity's eight consumer:-block constraining acts. None was authored -- validate-credential-contracts.py still emits all eight codes as warnings, measured -- so the entry is RESTATED to contract-v4.0 with the reason, under contract-deprecation-execution's ratified "execute at the major it targets, or restate with the reason", whose scenario makes leaving a spent target a defect of the cut. Two more spent targets found in the tree and restated the same way, both raised in the pull request: the context-packet-blank warning that was to become an ERROR at contract-v2.0, and nothing else. WHY contract-v2.6 IS SUPERSEDED RATHER THAN REPAIRED. Its cut branch forked at 518c670 and was never rebased over #562/#564, so verify-commit at bbbbeda returns five HGR-RELEASE-DIGEST-MISMATCH findings (three of them on a normative schema, the versioning policy and a validator) and no tag was ever created. A digest rebuild would fix that and not the second defect: contract-v2.6 declares change class ADDITIVE (minor) on a tree that refuses three shapes contract-v2.5 accepted, which no completion commit can cure. Brett Heap ruled 2026-09-02, in session: "Supersede: v3.0 is the completion." The number is spent and never reused; the v2.6 entry and its inventory are left exactly as written, as the record of what was declared. THE ADDITIVE CLAIM IS RE-MEASURED AND SPLIT IN TWO, attributed. Chain- attestation's content narrows nothing, and that survives the re-measurement because its surface and the retirements' are disjoint; the narrowing at this bundle is the three retirements' and theirs alone. Folding them into one verdict would have made the major's own reason invisible. THE TAG IS NOT PART OF THIS COMMIT. Bundle Realization Order step 4 -- every gate and verify-commit rerun on the PROMOTED commit -- is the step whose omission killed contract-v2.6, and it runs before any tag is published. Realizes the cut half of retire-hermes-flat-keys-and-openworkflow-tokens § 4, retire-doxbench-chat-turn-v1 § 6 and add-chain-attestation § 5.9 (re-targeted from contract-v2.6 with the reason stated rather than edited in). Issue #522. Co-Authored-By: Claude Fable 5 <[email protected]> * Fix round: OQ-2 answered NO on the realization's own evidence, three bot findings, and the release-tag-publication collision declared FOUR THINGS, and the first is a correction of this cut's own judgment. 1. OQ-2 REVERSED, AND THE REVERSAL IS THE FINDING. The cut bumped xfactory-workbench-chat-turn.schema.yaml's contract_schema_version 1 -> 2 on a measurement that "nothing in the repository reads it as a refusal input". Two tests read it -- test_doxbench_contracts.py's test_the_widened_family_is_the_only_one_the_file_declares and test_doxchat_model_intake.py -- and the first carries the realization's REASONING beside the assertion: the envelopes this file no longer defines cannot be validated against it at all, so there is no shape left for a bumped integer to describe. The answer was already in the tree, in executable form, before the packet's box asked the cut for it. NO contract_schema_version moves at this major -- not the set's, not any manifest row's, not the file's -- and the chat-turn digest reverts byte-for-byte to the realization's 350bfedc. Recorded in the CHANGELOG and both packets rather than quietly reverted, because a cut that overturns a ratified realization's reasoned decision on a bad measurement should say so. 2. THREE COPILOT FINDINGS, all taken. "contract-v3.0 shipped" -> "was CUT", this section's own declared/published distinction. And the inherited claim that the `unpublished:` sentinel is "a value no stack.yaml can declare" overclaims -- a repository can write the string; what stops it is validate-domain-openxfactory-pins.py requiring a 40-hex SHA for contract_ref_type: commit. Corrected in three places and named as an overclaim rather than silently reworded; the historical comments that made it are left standing as records. 3. THE release-tag-publication FAMILY READS contract-v2.6 AND HAS NO VOCABULARY FOR IT, declared rather than left to be hit. It reports the bundle at WARNING today -- and its test is ALREADY RED ON main, independently of this cut, which reads origin/main -- and will report it at ERROR without grading once the manifest moves, permanently, because the tag it prescribes is unperformable. The finding is TRUE and the family is not wrong; it has no third state between published and owes-a-tag. The cut does NOT weaken it: Brett ruled that v3.0 supersedes v2.6, not that a checker should stop objecting to abandoned bundles. Filed as openxFactory issue #575 with the five things a disposition owes, and declared in the CHANGELOG. 4. The inventory rebuilt over all of it. 283 entries in, 283 out. Co-Authored-By: Claude Fable 5 <[email protected]> * Fix round 2: two Copilot findings — the stale bump sentence, and the sweep sentence this cut makes false 1. contracts/CHANGELOG.md said the cut "moves that digest once more, for the contract_schema_version bump above". It does not: fix round 1 answered OQ-2 NO and reverted the bump, so SCHEMA_DIGESTS keeps the realization's 350bfedc and what this cut changes is the LABEL beside it -- which is the whole of the repair, the label having been the incoherent half. Caught by Copilot against the fix round that created it, which is the round working. 2. doxbench_contracts.py's sweep note -- "NO `unpublished:` VALUE IS ASSIGNED ANYWHERE in the repository" -- is FALSE from this cut, which assigns `unpublished:contract-v3.0`. The fix block below it already said so; Copilot read the sentence and not the block three paragraphs later, which is exactly how a reader meets it. The pointer is now AT the sentence. The sentence itself is annotated rather than rewritten, on its own closing rule: it is the record of what was true at the commit it describes, and editing it to match today would destroy the evidence that the sweep happened. It becomes true again when the tag is published and the ref resolved -- the post-merge step the v1.45 residue is the argument for not deferring. Inventory rebuilt: 283 entries in, 283 out. Co-Authored-By: Claude Fable 5 <[email protected]> * Fix round 3: the declared/published distinction, in the two places that still blurred it Copilot's round-3 finding, and it is the same class as round 1's: this repository distinguishes a bundle that is DECLARED from one that is PUBLISHED (a bundle is not published until its tag exists), and two sentences written by this cut used the publication word for the declaration. contracts/manifest.yaml:1731 -- "contract-v3.0 ships here" is now "contract-v3.0 is DECLARED here (declared, not published -- a bundle is not published until its tag exists, and this row is written at the cut)". The sentence sits inside the context-packet-blank restatement, where the whole point is that contract-v2.0 SHIPPED without taking a narrowing it announced, so blurring the two words there is worse than elsewhere. docs/contract-versioning-policy.md:406 -- "until that major shipped without any of the eight acts" is now "was CUT". Same correction, same reason: the consumer-block entry's restatement turns on the target ARRIVING, which it does at the declaration. Swept for the rest: no other sentence in this cut says a contract-v3.0 that has no tag has shipped. Inventory rebuilt: 283 entries in, 283 out. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
… so where a consumer reads (#577) THE CHANGELOG ALREADY CARRIES THE DISPOSITION. The contract-v3.0 cut (#573, ff9ed81) wrote it in full — declared at bbbbeda, never verifiable, never published, superseded on Brett Heap's ruling of 2026-09-02, "Supersede: v3.0 is the completion" — and this commit does NOT duplicate it. Two records of one measurement is how they drift apart, so this one cites it. WHAT WAS MISSING IS THE PLACE A CONSUMER ACTUALLY READS. docs/contract-versioning- policy.md is the pinned document, and until this commit it contained ZERO mentions of contract-v2.6 while asserting, in § Untagged Bundles After Enforcement Began, that "every bundle from contract-v1.7 ... is now tagged." That sentence is false and, for the first time in this section's history, stays false. A consumer reading the two discharge tables and stopping would conclude every allocated number is either tagged or awaiting one. One is neither. FOUR EDITS, all inside that section: 1. The header and its count: FIVE instances in two discharges becomes SIX, of which five were discharged and THE SIXTH CANNOT BE. No third date is added, because a date would promise a closure this section will never record. The check #528 asked for has since landed (#563), which is why instance six was met by a machine rather than by a human counting. 2. The "TRUE AGAIN" annotation gains its third transition. The sentence is left standing rather than rewritten, on this document's own rule that a record is annotated and never edited to match today; the present-tense claim a reader should carry forward is stated beside it instead. 3. The new subsection, in the 2026-08-25 discharge table's shape — bundle, declaring commit, disposition, authority — with the two defects spelled out: no first-parent commit satisfies the targeting rule (the cut branch was never rebased, § Bundle Realization Order step 1), and a rebuilt inventory would not cure the second defect anyway, an ADDITIVE (minor) class declared on a tree that refuses three shapes contract-v2.5 accepted. It is named a SUPERSESSION rather than a retro-publication, because RETRO-PUBLISHED, NOT RE-DATED describes an act that is simply unavailable here. 4. The closing clause binds all six, the never-dischargeable sixth most of all: a bundle that can never be tagged is not thereby released, it is permanently unreleased. THE PERMANENT ERROR IS DECLARED, NOT QUIETED. release-tag-publication reports contract-v2.6 at ERROR and the finding WILL NOT CLEAR — measured on this branch and on main alike, and publishing contract-v3.0's tag neither cleared it nor could, since the family inspects every bundle carrying a release inventory. The family is not weakened to fit the ruling: Brett superseded a bundle, he did not license a checker to stop objecting to abandoned ones. The missing vocabulary is issue #575's design work. Nothing is deleted to match the absence. NOT TOUCHED, DELIBERATELY: contracts/releases/contract-v2.6.digests.yaml and the contract-v2.6 changelog entry (the record of what was declared) and contract_bundle_version (advanced by a cut, never adjusted). KNOWN AND ACCEPTED COST: this policy is a non-editorial member of the contract-v3.0 inventory, so verify-commit at HEAD now reports one HGR-RELEASE-DIGEST-MISMATCH on this path until the next cut re-baselines. That is the ordinary between-cuts state every normative edit creates — #570 and #562 both created it and #573 cured it — and the remedy is a release cut, never a hand-edit. The contract-v3.0 TAG is untouched and still verifies at ff9ed81 exactly. Refs #574, #575, #565, #573. Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2 Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
…aration to its ratifying bytes (#711) Lane: openxfactory-1 (openXfactory-1) Origin block restored byte-for-byte to the ratifying commit 59eb913; post-ratification text (a951be7 (PR #562 realization note)) preserved in the packet's tasks/design realization note. Explicit disposition: Brett Heap's word 'restore all four, land them when green' (2026-09-05). Gate: ORIGIN RETAINED. Refs #709. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Realization of the RATIFIED packet
retire-hermes-flat-keys-and-openworkflow-tokens—tasks.md§§ 2, 3 and 6, and nothing else. The proposal landed at #551 (squash59eb913e), ratified 2026-09-01 by Brett Heap in session, record atopenspec/changes/retire-hermes-flat-keys-and-openworkflow-tokens/review/ratification-2026-09-01.md. Origin: openxFactory issue #522, entries 1 and 2, on Brett's 2026-09-01 ruling comment there.DO NOT MERGE without a decision — and in particular, this is NOT the cut
tasks.md§ 4 (thecontract-v3.0cut), § 5 (post-cut verification) and § 7 (the archive gate) are untouched and remain OPEN. No tag, nocontracts/manifest.yamlbump, nocontracts/releases/contract-v3.0.digests.yaml, and nocontract-v3.0CHANGELOG entry — that row is § 4.1's, because it is a claim about a released bundle. The cut is its own act under § Bundle Realization Order and allocates its number late; this pull request neither performs it nor claims a place in its ordering.What is here
§ 2 — the validator retirements (
scripts/validate-domain-factory.py,scripts/apply-domain-starter.py)2.1 — the
hermesflat-key fallback read, REPLACED and not deleted.LEGACY_HERMES_KEYSis gone and theelsearm ofresolve_layersnow holds one explicit error naming the missing or non-listhermes.layers, with the reason written as a comment above it. This is the packet's single largest realization hazard and it is why the box says DO NOT SIMPLY DELETE THE ARM: thehermes.layers missing required roleerrors sit INSIDE thelayers-declared branch, so a bare deletion would let alayers-less stack fall through to an empty layer map and produce no finding at all — a silent widening at a major. Measured on the same probe, both validators side by side:origin/mainlayers-less stack, six flat keysWARN: … hermes uses legacy flat keys …→0 error(s), 5 warning(s) -> PASSERROR: … hermes.layers is missing or is not a list …→1 error(s), 4 warning(s) -> FAILPASS became FAIL, not silence.
2.2 / 2.3 — the
openworkflowbranch, and BOTH directions it moves. The three-line branch and the docstring line are gone; the generalelifbecomes the only arm. The branch was anifPRECEDING the general rule, so it shadowed it, and removing it moves two cases in opposite directions. Both measured, not assumed:origin/mainowner_layer: OpenWorkflow Domain Hermes, matching a DECLARED layerWARN: … uses deprecated openWorkflow naming→PASSPASS— the WIDENINGowner_layer: openworkflowx, resolving to nothingWARN: … uses deprecated openWorkflow naming→PASSERROR: … does not resolve to a declared layer→FAIL— the narrowingNote the second row's token: the code matched
openworkflowwith no trailing underscore while the policy entry and the docstring both declaredopenworkflow_. The Executed row is corrected to the prefix the code matched.2.4 — the starter stops emitting. The nine flat keys and the spent-target comment leave the
stack.yamltemplate.omnigent.domain_overlayis untouched: same key name, different block, not deprecated, and read by the validator.2.5 — coverage, in both directions, where there was none. New module
tests/hermes_runtime_contracts/test_domain_factory_deprecation_retirements.py, 20 tests, each running the real validator or the real generator as a subprocess.LEGACY_HERMES_KEYSappeared nowhere outside the validator before this, which is part of why the warning's deadness went unnoticed for forty-plus minors.2.6 — the five supported consumers: NO LINE MOVED. Run before and after against fresh
--depth 1clones — codexFactory8152686, MedxFactoryfcafcc0, AdxFactory79f85b7, LedgerxFactory38743cf, OpsxFactoryef60375. Identical verdicts on both sides, and not one of the five emitted a legacy-flat-key warning on either side — the measurement the record-why half rests on, reproduced independently rather than carried from the memo. One honest qualification, also intasks.md: under the default hash seed OpsxFactory's output differs in the ORDER of twoidentifier near-misswarnings. That is pre-existing set-iteration nondeterminism incheck_cross_ids— the unmodified validator produces both orders across four runs, and withPYTHONHASHSEED=0before and after are byte-identical for all five.§ 3 — the policy rows (
docs/contract-versioning-policy.md)contract-v3.0rows in § Deprecations Executed, each carrying all six elements the one exemplar row establishes. The token row carries the widening as well as the narrowing; the flat-key row is scoped in its own title to "the READ, and not the keys".omnigent.domain_overlaynamed as EXCLUDED with the reason; the measured reason it stays; the deprecating minor it owes, stated as a checkable property; and the tailWarned since contract-v1.1; removal target RESTATED to contract-v4.0 — …, which keeps a target parseable and makes the restatement visible.openworkflow_bullet leaves In Force in the same commit that adds its Executed row. No entry sits in both.:250-254/:253-254citations repaired to§ Change Classes, *Breaking (major)*, in the openxWallet Executed row and incontracts/CHANGELOG.md§contract-v2.0.§ 6.1 — the ride-along
Filed as #561: the
Owner layer constraintcanon/code severity divergence — promoted canon says WARNING, the shipped validator has ERRORED since493fb33d(2026-07-03), six days before the requirement was promoted ata1a2802b. D4 keeps it out of this packet; the issue keeps it from being lost.Three places the packet's text did not survive contact with the tree, reported rather than absorbed
stack.yamltemplate at:241-250. The same generator also writesschemas/stack.schema.yamlwith six of the keys underrequired_paths, and a local validator that resolved overlay dirs through six flat-key reads. Moving only the template would have shipped a generated repository that requires paths its own generatedstack.yamlno longer carries — self-contradicting on day one. Both moved with the template, and a test walks everyrequired_pathsentry of the generated schema against the generatedstack.yaml. This is the packet's own replacement-not-deletion principle applied one file over, and it is the only place this realization went beyond a named line range.:250-254, deliberately NOT touched.add-binding-consumer-identity's In Force entry carries one, inside a QUOTED sentence of that change's own ratified prose. § 3.5 names two sites; silently rewriting a third change's quotation is worse than leaving a stale citation. Amendment-lane material for whoever next touches that entry.Also for the record:
proposal.mdcalls the functioncheck_hermes; in the tree it isresolve_layers. The line ranges and the described behaviour are exact, so the target was never ambiguous.The forward-declaration this sequencing creates, stated
§ 7.1 is written as "§§ 2 and 3 merged on
main" and § 7.2 as the tag, in that order — so the policy rows belong to the realization. Between this merge and thecontract-v3.0tag, the declared bundle iscontract-v2.5while these rows namecontract-v3.0as the version the shapes were REMOVED at. That is the same forward declarationadd-binding-consumer-identity's In Force entry already carries ("DECLARED at contract-v2.4 and CONSTRAINED at contract-v3.0"), and it is precisely why the CHANGELOG row is left to the cut.Gates
OPENSPEC_TELEMETRY=0 openspec validate retire-hermes-flat-keys-and-openworkflow-tokens --strict— green.OPENSPEC_TELEMETRY=0 openspec validate --all --strict— 82 passed, 0 failed.pytest tests/ -q -m "not postgres"— reported in the thread.Review
A Codex pass is OWED from ratification and is requested on this head. #551 took four
@codex reviewrequests and returned four provider usage-limit refusals and zero verdicts; the ratification record discloses that and Brett ratified against it. Whatever the pass returns routes to the amendment lane.🤖 Generated with Claude Code