Skip to content

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

Merged
brettheap merged 5 commits into
mainfrom
change/realize-retire-hermes-flat-keys-and-openworkflow-tokens
Sep 1, 2026

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

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 (squash 59eb913e), ratified 2026-09-01 by Brett Heap in session, record at
openspec/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 (the contract-v3.0 cut), § 5 (post-cut verification) and § 7 (the archive gate) are untouched and remain OPEN. No tag, no contracts/manifest.yaml bump, no contracts/releases/contract-v3.0.digests.yaml, and no contract-v3.0 CHANGELOG 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 hermes flat-key fallback read, REPLACED and not deleted. LEGACY_HERMES_KEYS is gone and the else arm of resolve_layers now holds one explicit error naming the missing or non-list hermes.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: the hermes.layers missing required role errors sit INSIDE the layers-declared branch, so a bare deletion 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. Measured on the same probe, both validators side by side:

probe origin/main this branch
layers-less stack, six flat keys WARN: … hermes uses legacy flat keys … → 0 error(s), 5 warning(s) -> PASS ERROR: … hermes.layers is missing or is not a list … → 1 error(s), 4 warning(s) -> FAIL

PASS became FAIL, not silence.

2.2 / 2.3 — the openworkflow branch, and BOTH directions it moves. The three-line branch and the docstring line are gone; the general elif becomes the only arm. The branch was an if PRECEDING the general rule, so it shadowed it, and removing it moves two cases in opposite directions. Both measured, not assumed:

probe origin/main this branch
owner_layer: OpenWorkflow Domain Hermes, matching a DECLARED layer WARN: … uses deprecated openWorkflow naming → PASS (no line) → PASS — the WIDENING
owner_layer: openworkflowx, resolving to nothing WARN: … uses deprecated openWorkflow naming → PASS ERROR: … does not resolve to a declared layer → FAIL — the narrowing

Note the second row's token: the code matched openworkflow with no trailing underscore while the policy entry and the docstring both declared openworkflow_. 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.yaml template. omnigent.domain_overlay is 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_KEYS appeared 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 1 clones — codexFactory 8152686, MedxFactory fcafcc0, AdxFactory 79f85b7, LedgerxFactory 38743cf, OpsxFactory ef60375. 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 in tasks.md: under the default hash seed OpsxFactory's output differs in the ORDER of two identifier near-miss warnings. That is pre-existing set-iteration nondeterminism in check_cross_ids — the unmodified validator produces both orders across four runs, and with PYTHONHASHSEED=0 before and after are byte-identical for all five.

§ 3 — the policy rows (docs/contract-versioning-policy.md)

  • 3.1 / 3.2 — two contract-v3.0 rows 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".
  • 3.3 — the In Force flat-key entry REWRITTEN: a twelve-row table by PATH, with a second column recording which five of the twelve the old entry named; omnigent.domain_overlay named as EXCLUDED with the reason; the measured reason it stays; the deprecating minor it owes, stated as a checkable property; and the tail Warned since contract-v1.1; removal target RESTATED to contract-v4.0 — …, which keeps a target parseable and makes the restatement visible.
  • 3.4 — the openworkflow_ bullet leaves In Force in the same commit that adds its Executed row. No entry sits in both.
  • 3.5 — the two stale :250-254 / :253-254 citations repaired to § Change Classes, *Breaking (major)*, in the openxWallet Executed row and in contracts/CHANGELOG.md § contract-v2.0.

§ 6.1 — the ride-along

Filed as #561: the Owner layer constraint canon/code severity divergence — promoted canon says WARNING, the shipped validator has ERRORED since 493fb33d (2026-07-03), six days before the requirement was promoted at a1a2802b. 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

  1. The generator named the flat keys in THREE places, not one. § 2.4 scopes to the stack.yaml template at :241-250. The same generator also writes schemas/stack.schema.yaml with six of the keys under required_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 generated stack.yaml no longer carries — self-contradicting on day one. Both moved with the template, and a test walks every required_paths entry of the generated schema against the generated stack.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.
  2. One docstring line the packet did not name. Check 3 read "Legacy flat keys are accepted with deprecation warnings." — falsified by 2.1. Replaced, not deleted.
  3. A THIRD :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.md calls the function check_hermes; in the tree it is resolve_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 the contract-v3.0 tag, the declared bundle is contract-v2.5 while these rows name contract-v3.0 as the version the shapes were REMOVED at. That is the same forward declaration add-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.
  • Local full 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 review requests 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

… 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]>
Copilot AI lite review requested due to automatic review settings September 1, 2026 12:36

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 hermes legacy flat-key fallback read by replacing it with an explicit hermes.layers missing/non-list error; remove LEGACY_HERMES_KEYS.
  • Remove the openworkflow-prefixed owner_layer compatibility 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.

Comment on lines +353 to +360
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]>
Copilot AI review requested due to automatic review settings September 1, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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. If hermes.layers is 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 raise TypeError, 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"),

@brettheap

Copy link
Copy Markdown
Contributor Author

Local gate results, and the one failure attributed rather than waved past

Run from an independent --depth 1-free clone with both submodules initialized (the first pass without them produced 94 tests/trust-anchor/ failures that were entirely the uninitialized openXwallet/ gitlink — recorded here so the number is not mistaken for a finding).

python3 -m pytest tests/ -q -m "not postgres" --tb=no -rf
1 failed, 8369 passed, 35 skipped, 338 deselected, 46 subtests passed in 1706.01s

The one failure is tests/ideation-dashboard/test_snapshot.py::test_find_validator_locates_pinned_checkout, it is NOT mine, and that is proven rather than asserted. The same test fails identically at origin/main 5af63d91 in the same environment — measured in a detached worktree of this clone, one command, same assertion:

tests/ideation-dashboard/test_snapshot.py:73: AssertionError
assert None is not None
  where None = find_validator(PosixPath('…/scratchpad/oxf'))

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 openxFactory. This clone is named oxf and sits in a scratchpad with no workspace above it, which is exactly the environment dependence pytest-suite.yml documents for itself ("a fresh clone into a directory named openxFactory"). It passes on the runner.

The inherited pytest-suite red the ratification record disclosed is GONE, and this run is how I know. tests/doc-health/test_modified_block_currency_self_gate.py::test_every_carriage_ledger_finding_over_the_real_tree_is_named — PR #510's carriage-ledger subject, red on main at both 1a69b7cb and 1c1dcbbe when #551 was ratified — passes here and appears nowhere in the failure list. It was fixed on main by #557 (The ledger names its eighth subject, merged 2026-09-01T06:59Z), which is after the ratification record was written. So there is no inherited red left to attribute on this branch, and main's last completed pytest-suite run (29f70fe8) is green.

Also green:

  • OPENSPEC_TELEMETRY=0 openspec validate retire-hermes-flat-keys-and-openworkflow-tokens --strict
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — 82 passed, 0 failed, re-run after the ticked boxes and the .openspec.yaml realization note landed, because a tick that breaks validation is a tick that has to come back out
  • tests/hermes_runtime_contracts alone — 616 passed
  • tests/credential_contracts alone — 175 passed (the other suite that runs the real domain starter)

Review state on this pull request

reviewer outcome
Codex THREE PROVIDER USAGE-LIMIT REFUSALS, ZERO VERDICTS — 12:36:39, 12:36:46, 12:39:54 UTC, each "You have reached your Codex usage limits for code reviews." With #551's four, that is seven refusals and not one Codex review naming any head of either branch. The pass stays OWED and unblocked; tasks.md § 1.6 stays OPEN and now records all seven.
Copilot One round, two findings, both TAKEN at f259ca03.
Sourcery Access-tier upsell, not a review — same as on #551.

Copilot's two, and why each was right:

  1. The domain-starter subprocess ran with no deterministic environment and no timeout. Correct, and inconsistent with its own package — tests/hermes_runtime_contracts/support.py exists to pin PYTHONHASHSEED, LANG, TZ and the git identity for exactly this. It now runs under deterministic_environment() with an explicit timeout. This one has teeth here specifically: § 2.6's evidence turns on PYTHONHASHSEED=0, so a starter probe running under the ambient seed was the one place in this change where env-dependence was least excusable.
  2. assert list(hermes) == ["layers"] is order-dependent and stricter than the stated intent. Correct — it would red the day the starter grew a new, non-deprecated hermes key, which is not a regression of this retirement. It now asserts "layers" in hermes plus every deprecated key absent, which is what § 2.4 is actually about, with the reason written beside it.

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]>
Copilot AI review requested due to automatic review settings September 1, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment on lines 2918 to 2922
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]>
Copilot AI review requested due to automatic review settings September 1, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@brettheap

Copy link
Copy Markdown
Contributor Author

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 contract-v3.0 is cut and land realization plus cut together, (c) merge now with the owed Codex pass disclosed head-by-head. He chose (b).

Recorded here rather than in tasks.md, which belongs to this PR's own lane.

What that means for this PR

It 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 contract-v3.0 cut and the retirement land in one act.

The forward-declaration window is what the ruling avoids. The PR states it honestly: merging §§ 2/3 alone puts two "Deprecations Executed at contract-v3.0" rows into the policy while the declared bundle is still contract-v2.5. The argument that this matches add-binding-consumer-identity's existing In Force shape is a reasonable one — the ruling simply declines to open the window at all when the two halves can land together.

There is precedent for the shape now: add-release-tag-publication-check was ratified as a proposal-only packet and then re-sequenced on evidence to land its realization with its delta, because family-enumeration's self-gate asserts the corpus reads zero on both halves and a delta that outruns its code reds a green gate. Different mechanism, same conclusion — canon and the thing canon describes should not disagree across a merge boundary.

What is NOT ruled here

  • The cut itself is untouched by this ruling. contract-v3.0 is the first MAJOR bundle; its number, its timing and its performance are this lane's and Brett's, not this comment's.
  • The owed Codex pass still stands. Ratify retire-hermes-flat-keys-and-openworkflow-tokens: entries 1 and 2 of #522, at contract-v3.0 (ratified 2026-09-01; proposal only, no realization) #551 took four @codex review requests and returned four provider usage-limit refusals; three more today on this head returned the same. That debt does not clear by waiting for the cut, and PROVIDER-REFUSED is not silence — under the estate's own procedure it is a refusal to be disclosed, not a pass to be inferred.
  • Nothing in the realization is disputed. openspec validate --all --strict 82 passed, before/after probes in both directions for every retirement, 20 new tests, five supported consumers re-run against fresh clones with no line moved, and three places the packet's text did not survive contact with the tree reported rather than absorbed.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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]>
Copilot AI review requested due to automatic review settings September 1, 2026 13:52
@brettheap

Copy link
Copy Markdown
Contributor Author

CI GREEN, and the review arc converged

All four required checks passed on 5b026e4c — the head that carries every finding:

check result
pytest-suite pass, 20m53s — selected=8508 passed=8487 skipped=21 failures=0 errors=0, floors cleared with margin 1418/1417 and the exact skipped==21 pin met
merge-master-approval pass
wallet-validation pass
signed-execution-chain-gate pass

8277fb3c on top is tasks.md prose only and reruns the same set.

There is no inherited red to attribute. The ratification record's § 4 disclosed a standing main pytest-suite red — #510's carriage-ledger subject — and it is fixed on main by #557, merged 2026-09-01T06:59Z, after that record was written. failures=0 errors=0 here, and the full local suite passes that same test by name. So the honest answer to "is the one failure yours?" is that there is no failure. § 4 of the record should be read as the state at ratification, not as current; tasks.md § 1.6 now says so.

The review arc, exactly

Copilot: FOUR rounds, THREE findings, THREE TAKEN, none refuted, converged.

round head outcome
1 8731fea6 2 findings
2 f259ca03 no new comments
3 22866c03 1 finding — the best of the arc
4 5b026e4c no new comments

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 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 now refuses. That is precisely the silent widening § 2.1 spends four paragraphs forbidding, one file over, in a file § 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 through both validators and asserts each refuses — so the generated one can never again pass what the canonical one fails. The test module is now 24 tests.

The lesson is worth carrying: the packet's replacement-not-deletion rule is not about one else arm. It is about every place a removal leaves an iteration or a lookup that can be empty, and it caught me once in a file the packet's line ranges never mention.

Codex: NINE PROVIDER USAGE-LIMIT REFUSALS ACROSS #551 AND #562, ZERO VERDICTS. Five of them here:

time (UTC), 2026-09-01 head response
12:36:39 8731fea6 "You have reached your Codex usage limits for code reviews."
12:36:46 8731fea6 same
12:39:54 8731fea6 same
13:49:59 5b026e4c "You have reached your Codex usage limits."
13:51:15 5b026e4c "…usage limits for code reviews."

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. tasks.md § 1.6 stays OPEN and the pass stays OWED, blocked by nothing here — whatever it eventually returns routes to the amendment lane. Sourcery returned an access-tier upsell, not a review, exactly as on #551.

What this pull request is NOT, restated for whoever merges it

It realizes tasks.md §§ 2, 3 and 6.1 and stops. § 4 (the contract-v3.0 cut), § 5 (post-cut verification) and § 7 (the archive gate) are untouched and OPEN. No tag, no contract_bundle_version, no digest inventory, no contract-v3.0 CHANGELOG row, no archive. The change stays ACTIVE. The cut allocates its number late, at the cut, and OQ-1 — whether it carries this packet, the doxBench sibling, or both — is the cutting session's call and not answered here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.layers entries (non-mapping items or mappings missing overlay) due to the if 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 require overlay to be present, emitting an explicit error when it is not.
            *[layer.get("overlay") for layer in hermes_layers if isinstance(layer, dict)],

@brettheap

Copy link
Copy Markdown
Contributor Author

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.

@brettheap
brettheap merged commit a951be7 into main Sep 1, 2026
5 checks passed
brettheap added a commit that referenced this pull request Sep 2, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 2, 2026
… 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]>
@brettheap
brettheap deleted the change/realize-retire-hermes-flat-keys-and-openworkflow-tokens branch September 2, 2026 18:56
brettheap added a commit that referenced this pull request Sep 6, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants