Skip to content

Wire the pinned openDox/openXdox tools into a consumer gate of their own (task 5.3, RULING R-4) - #1059

Merged
brettheap merged 23 commits into
mainfrom
chore/openxdox-consumer-gate
Sep 16, 2026
Merged

brettheap merged 23 commits into
mainfrom
chore/openxdox-consumer-gate

Conversation

@brettheap

@brettheap brettheap commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

split-opendox-two-layer-product task 5.3 — the consumer gate over the pinned openDox/openXdox tools. Authored under RULING R-4 (Brett Heap, #656 comment 5690428146, 2026-09-16, by interactive multi-choice): "the box means a NEW openxdox-consumer-gate.yml in openxFactory on the openxwallet-consumer-gate shape; 'retaining the job id' is discharged by leaving pytest-suite untouched (no dashboard-named workflow ever existed here)." CLAIM 5690508527. .github/workflows/pytest-suite.yml is not touched by this pull request, and openspec/changes/.../tasks.md is not touched either — amendment #4 (CLAIM 5690461589) owns the tick.

§ 5.3's box does not tick here — actors never touch tasks.md, and the gate is ADVISORY until an operator marks it required (see the last section). What this pull request carries is the file, its companion suites, and the green report on its own head that is the precondition for that operator act.

The hole this fills was named in the tree, by the tree, in three places

  1. .github/workflows/pytest-suite.yml, above its own scoped init: "THIS IS NOT THE TASK 5.3 CONSUMER GATE. Materializing a submodule so the test suite can read it is a different act from wiring scripts/verify-openxdox-pin.py or scripts/verify-opendox-pin.py as its own required check; that gate is Phase 5's, is unwritten, and stays named as owed."
  2. contracts/openxdox-pin.yaml's verify_pin: comment: "Not yet wired into any required check: a consumer gate that runs it is task 5.3, Phase 5."
  3. contracts/opendox-pin.yaml's: "Not yet wired into any required check — wiring a consumer gate is Phase 5's task 5.3."

Measured at cb2d3a2c, before this branch existed: grep -rn 'verify-opendox-pin\|verify-openxdox-pin' .github/ returned exactly one line — pytest-suite's own comment naming the gap. Neither verifier was invoked by any workflow in this repository.

Both of § 5.3's verbs are discharged, and neither is a conversion

The box reads "Convert the dashboard workflows to CONSUMER GATES over the pinned tools, on the openxwallet-consumer-gate shape, retaining the job id so a ruleset-pinned token survives a file rename." There is no dashboard-named workflow here to convert: before this branch .github/workflows/ held thirteen files and not one is named for the dashboard — the dashboard WORKERS live in the opensoft/xFactory aggregation. So "convert" is a new file, and "retaining the job id" protects nothing here and is discharged the only way it can be: pytest-suite.yml is byte-untouched. test_the_required_pytest_suite_token_is_untouched_by_this_gate and test_no_dashboard_named_workflow_was_converted assert both halves rather than leaving them in prose.

What the gate runs, and why each is in it

step why
python3 scripts/verify-openxdox-pin.py the elder pin (RULING F — openxFactory pins the openXdox assembly root), offline, five named refusals
python3 scripts/verify-opendox-pin.py the second direct upstream (RULED Q7); its check 5 — its last, and the one check with no analogue in the elder verifier — reads openXdox's OWN derived contracts/opendox-pin.yaml as a git BLOB out of the openXdox object store at the gitlinked commit, refusing opendox-pin-lockstep-mismatch when the two direct pins of one product disagree
pytest tests/opendox_pin tests/openxdox_pin what makes each shipped sorted-ls-tree-r-v1 digest a measured fact rather than a self-consistent one: each recomputes it over the real submodule with a second implementation living in the test file, and each replays the lockstep read independently of the code it checks
pytest tests/ideation-dashboard the surface the § 5.2 shed left reaching INTO both pinned legs — measured here: 42 files in this repository reach a carved module through scripts/carved_reach.py, at 207 helper sites (the shed's own accounting, counted its way over carved MODULE names, is 38 files / 39 modules / 125 import sites; both are in the header, each attributed to its method). A pin whose bytes verify while the code that consumes them cannot import is a green check that proved half its claim, and that half is the one the two verifiers cannot make

The verifiers run FIRST, before anything pinned is trusted, and in the direction the lockstep runs. The gate fails closed: if either gitlink cannot be read the init errors, the verifiers never run, and nothing degrades to a fallback.

Two departures from the wallet shape — forced, stated, and neither weakens anything

(a) The init is --recursive. openxwallet-consumer-gate.yml rejects --recursive because nothing in it reads a nested gitlink. This gate's consumer suite does: carved_reach.install() needs openDox/code/src AND openXdox/code/src on disk and REFUSES rather than degrading ("a single-leg install would appear to work and then fail on the seventeenth import"). Same reason pytest-suite.yml moved to --init --recursive openXdox openDox. The scoping the wallet gate is actually asserting is kept exactly: two gitlinks initialized, openXwallet and installs/omnigent-install left alone, and no submodules: true on the checkout.

(b) The checkout lands at openxFactory/, not the workspace root — and this one separates a gate from a green bar. The locator that decides it is the CROSS-REFERENCE one: human_seen.find_cross_reference_validator walks up for the first ancestor carrying openxFactory/scripts/validate-ideation-cross-reference.py. Without such an ancestor it answers None and thirteen assertions across four modules turn into skips.

It is that locator and not both (Copilot round 3, suppressed; corrected in f4981f8f). tests/ideation-dashboard/conftest.py's find_openxfactory_validator also ends in an openxFactory/-shaped parent walk, but only as its THIRD rung: since the § 5.2 shed its second rung COMPOSES the dashboard validator out of the pinned leg (_shed_validator() joins the moved script to this repository's own contracts/schemas/), so it resolves under either layout once the legs are on disk. Measured in the two runs the pins came from: twelve of the thirteen skips are gated VALIDATOR is None or XREF_VALIDATOR is None, the thirteenth (test_human_seen::test_submission_validates_clean_on_the_pinned_cross_reference_schema) on XREF_VALIDATOR is None alone, and test_lens::test_manifest_with_new_candidates_validates_clean — gated on VALIDATOR is None ALONE — passes in the root-shaped run. Saying both locators fail would send a later edit at the wrong dependency, which is why the correction is in the header and in the companion docstring rather than only here.

MEASURED BOTH WAYS AT cb2d3a2c, AND THE NUMBER THAT MOVES IS NOT THE ONE A READER EXPECTS. skipif marks a collected test — it does not uncollect it — so selection is 1137 either way:

root-shaped tree          tests=1137 skipped=13 failures=0 errors=0   (1124 passed)
aggregation-shaped tree   tests=1137 skipped=0  failures=0 errors=0   (1137 passed)

A floor on selected cannot see this at all. That is why every suite here is pinned with an EXACT skipped count and not only a floor, and pytest-suite.yml already checks out to path: openxFactory for the same reason — mirrored here rather than re-discovered.

The credential posture: nothing minted, nothing persisted

All three gitlinks are PUBLIC (openXwallet flipped 2026-09-07; openXdox and openDox re-measured visibility: public on 2026-09-11), so this gate mints no App token and consumes no secret — test_the_gate_mints_no_credential_for_public_gitlinks asserts both at the parsed level and in the raw text, because a secret can arrive by a route a step-shaped probe would miss.

The insteadOf rewrite is still required and still runs BEFORE the checkout: .gitmodules spells every gitlink [email protected]: deliberately (so a human clone uses the operator's key instead of prompting), a runner has no such key, and insteadOf applied after checkout is applied too late for the nested clone the init performs.

The rewrite is anonymous HTTPS and the checkout does not persist credentials (Copilot round 1, 0007d81e). The earlier form wrote https://x-access-token:${github.token}@github.com/ into the runner's GLOBAL git config and then ran two pytest suites over pull-request-controlled code, which could read $HOME/.gitconfig; contents: read limits what that bearer can do but does not make exposing it safe. Since the reads are public, the rewrite needs no bearer at all, and persist-credentials: false keeps the checkout from leaving one in the repository config either. Both are pinned by the companion suite (the rewrite's exact text, the absence of an env: on that step, and persist-credentials: false on the checkout), and both are proved by this gate's own run: the recursive init materialized openDox, openDox/code, openDox/spec, openXdox, openXdox/code and openXdox/spec with no credential in front of it.

And the guard reads the EXPRESSION, not a list of spellings (rounds 7, 9, 11, 13 and 14, in that order — five rounds on one guard, which is why it ended as a rule rather than a list). This gate SHIPPED the hole it guards: a secrets.-only assertion stayed green through the very first push, which wrote https://x-access-token:${{ github.token }}@github.com/ into the runner's global git config. What ships now reads a workflow document twice. The LITERAL forms — GITHUB_TOKEN, x-access-token, ACTIONS_RUNTIME_TOKEN — are matched anywhere, because they need no expression to reach a runner. The CONTEXT rules are matched inside ${{ … }} and inside any if: value, which Actions evaluates as an expression with or without the braces: the secrets context in any case or syntax (this gate needs no secret at all), the github context used as a VALUE rather than dereferenced — the shape of toJSON(github) and format('{0}', github), which serialize the token without naming it — github.token however spelled or spaced, and ANY index on the github context, literal or computed. Both readings run over the raw job body (so the header's prose about tokens stays readable) and over every key and scalar of the parsed document (so a workflow-level env: above jobs: is covered). Sixteen cases pin the refusals, seven pin the acceptances — ${{ github.ref }} and its non-secret neighbours must stay clean or the next editor routes around the guard. Each refusal case asserts first what the earlier reading saw: the literal-substring reading missed eleven of the sixteen. The checkout is also pinned to declare no token: input and to set persist-credentials: false; actions/checkout defaults token to ${{ github.token }}, so what that pins is the absence of any OTHER credential and the default's exclusion from the tree these suites read — the anonymous token: '' form is registered below.

And nothing here may continue-on-error (Copilot round 7 again), on the job or on any step — the flag marks a non-zero exit SUCCESSFUL, which would swallow a pin verifier's named refusal or the entire anti-vacuity layer while the check still reported green. Asserted over EVERY step rather than a list of the critical ones, because the list is what goes stale when a step is added. Proved by adding the flag to Verify the openXdox pin.

And the install refuses sdists. pip install --require-hashes --only-binary :all: — former-id-arrival-gate.yml's rule for a hashed-lockfile install in this repository, taken for its reason rather than copied: "the hashes already bind WHICH artifact may be installed; this binds WHAT KIND, which is the half a hash cannot express." A gate that judges other people's landings should not execute a stranger's setup.py while installing itself. Measured against this same lock on python 3.12 before it was written: 17 packages, 17 wheels, zero sdists, exit 0 — so what is installed does not move, only what may execute. (pytest-suite.yml and review-lane-repin.yml still carry the older form; a divergence in a FLAG is not a divergence in the dependency SET.)

Why the counts are pinned, and what they are

Every step in this gate can go green having adjudicated nothing: a locator that answers None turns assertions into skips, an absent node turns the fourteen JS-probe cases of test_lens.py into skips, and a directory that stopped being collected reports nothing whatever. pytest exiting non-zero catches a FAILING test and none of those. So each suite is followed by its own positive assertion over its own JUnit report.

suite MIN_SELECTED MIN_PASSED EXPECT_SKIPPED
tests/opendox_pin + tests/openxdox_pin 105 (floor) 105 (floor) 0, exact
tests/ideation-dashboard 1137 (floor) 1137 (floor) 0, exact

Zero skips in the pin suites is what those suites are BUILT to guarantee, in their own words — "Every case is hermetic: no network, no ambient git" and "a conditionally-skipped test here would red the required check on every tree that skipped it" — so a skip appearing there is a finding about hermeticity, not a fact about the runner. Selected/passed are FLOORS that may only rise: the collection loss they exist to catch is a directory, which is hundreds, never one or two. Neither suite has any subtest jitter (no subTest in any of the three directories), so the floors sit ON the measurement rather than below it the way pytest-suite.yml's must.

FIVE NAMED VERDICTS, because a count is a sum and a sum cannot tell a case that stopped running from one that started — pytest-suite.yml's own Codex P2 lesson. Four watch the cases that cannot pass unless the two pinned trees are really on disk (each product's digest re-derivation by a second implementation, plus each lockstep replay). The fifth is one consumer case, and it is that one because it proves three facts at once: test_recipe_request_carries_recipe_and_reasoned_overrides runs through _run_request_node, which skips outright without node, copies helpers.js from the openDox-code mount and gate-lens.js from the openXdox-code mount — the two files that stopped sharing a mount at § 3.4 slice S5. One passed verdict is the conjunction: node installed, both legs materialized recursively, and carved_reach resolving each file at the mount its own manifest row names.

The adjudicator is EXECUTED by the required suite, not merely read

The first push proved the assertion body by hand, in a throwaway script. Copilot's third round said the obvious thing about that (suppressed, twice): a symmetric edit to both copies — an aggregate summed over the wrong nodes, a verdict() that stops rejecting absent, a floor compared the wrong way — would leave every shape assertion green and be found only when the gate next ran, which on the day this lands is a gate no ruleset pins. So the proof moved into the tree.

tests/openxdox_consumer_gate/test_openxdox_gate_adjudicator.py extracts the shipped assertion body out of the workflow at test time — never a copy, and BOTH copies must be found byte for byte (re-indented by the ten spaces the block scalar strips), so a divergence cannot hide behind whichever the extraction reached first — and runs it over JUnit reports synthesized in tmp_path. Hermetic: no network, no submodule, no node; 26 cases in under two seconds, collected by the REQUIRED pytest-suite job.

the report it is given what the shipped body must do
at the pins, for BOTH shipped env: blocks accept, and print each watched verdict passed
a suite that GREW past the floor accept (a floor is a floor)
watched case absent / skipped / failing, aggregates still perfect refuse — the sum cannot see one case, which is why names are watched
watched case passing once and skipped once refuse ("any non-passing occurrence wins")
only the first three of the four watched names present refuse, naming the fourth
skipped=13, selection intact (the ROOT-SHAPED reading) refuse — skipped 13, pinned exactly 0
one fewer test collected refuse — is BELOW the floor … do not lower the floor
one failure; one error refuse each, with the count
a <testsuites> root with TWO suites; a bare <testsuite> root sum both, read either
unparseable report; missing report fail the step (never a silent green)
a report rooted at <unexpected> holding a perfect <testsuite> refuse — "everything that is not <testsuite> is a container" would have summed its children and found its cases (Copilot round 7)
<properties> beside a <testsuite> inside <testsuites> sum only the <testsuite>, so the fix above cannot become a new floor failure
a watched case BESIDE the counted suite, or inside it under a container refuse — the floors are met from the real suite and the verdict is absent, because the walk is suite.findall("testcase") over the counted suites and not the whole document
the runner's credential planted in the ambient environment and HOME the executed body sees token=unset, an EMPTY global git config, and none of the planted string — then adjudicates a report at the pins to exit 0
a step env: declaring HOME or GIT_CONFIG_GLOBAL beside the five pins refuse — the harness carries an allowlist, so the text being isolated cannot override the isolation

Proved both ways, against doctored copies of the body itself, because a test that has never failed has never been tested:

the defect introduced into the shipped body what went red
verdict() returns "passed" for an absent case the absent-watch case and the fourth-name case
suites = … list(root)[:1] (read only the first suite) the multi-suite case (selected=52, half the report)
if skipped < expect_skipped instead of != the root-shaped-13 case
the root-shape hardening reverted to [root] if … else list(root) the unexpected-root case (it exits 0 — the hole as described)
continue-on-error: true on Verify the openXdox pin test_nothing_here_continues_on_error, naming the step
the original x-access-token:${{ github.token }} rewrite restored test_the_gate_mints_no_credential_for_public_gitlinks, naming github.token
floors lowered to 1, consumer EXPECT_SKIPPED moved to 13 test_every_assertion_pins_floors_an_exact_skip_and_named_verdicts
verdict() walking root.iter("testcase") again (the pre-08f438b7 body) both verdict-scope cases — each exited 0 under it with 105/105/0 and four verdicts passed
step_env back to {**os.environ, **env} test_the_executed_body_cannot_read_the_runner_credential, at the first assertion
ref: main added to the checkout the path guard, naming the input
if: false on Verify the openXdox pin test_nothing_here_may_be_skipped_by_a_condition, naming the step
the dependency install moved below the verifiers test_the_equipment_is_installed_before_the_work_that_needs_it, naming the verifier
a real ideation-dashboard.yaml dropped into .github/workflows/ test_no_dashboard_named_workflow_was_converted (the single-suffix reading returned [])
a watched test renamed with its old name left in the docstring test_every_watched_name_resolves_to_a_test_that_exists (the substring reading passed)

That last row is Copilot's fourth suppressed comment, and it was right: the old guard asked int(MIN_SELECTED) > 0, which stays green through exactly that weakening — the gate would then go green on the root-shaped layout departure (b) exists to refuse, with its only REQUIRED guard still passing. MEASURED_PINS now records 105/105/0 and 1137/1137/0 as literals, taken from this pull request's own CI run. Floors may still only RISE; moving one is now a two-file diff a reviewer sees.

And the module reads the workflow LAZILY, never at import — a defect of my own, caught by re-reading the file, and worth recording because it was the same class this directory documents. A module-level read that raised (one adjudicator step instead of two, a renamed jobs: key, unparseable YAML) would be a COLLECTION error, and a collection error is not one failing file: it is Interrupted: 1 error during collection, with nothing reported about the other seven thousand tests. Proved both ways — with the second adjudicator step truncated out of the workflow, pytest tests/ --collect-only reported 7464/7802 tests collected (338 deselected) and NO collection error while this suite failed 20 and errors 4, each naming "the gate must carry one positive assertion per suite; found 1"; and a probe module that raises at import gives Interrupted: 1 error during collection, 2 skipped, 338 deselected, 1 error. The parametrization is over the two REPORT NAMES as literals for the same reason: parametrizing over the extracted env: blocks would put the read back into collection.

The gate is ADVISORY on the day it lands, and the file says so

openxwallet-consumer-gate.yml inherited a REQUIRED token (org ruleset 21538893 pins the check wallet-validation). Nothing pins this one. A check is not selectable in a ruleset until a workflow has reported under it once, so this gate must run green on a pull request BEFORE an operator can make it required — and making it required is a human act on a human-only surface that no pull request can perform. It is owed, and it is named in the header rather than discovered later. Until it is taken the gate refuses on its own and blocks nothing, which is still strictly more than the zero checks that read either pin before it.

The job carries no display name for that reason: the job id is the token an operator will select, and the wallet gate learned against a live ruleset that "a distinct job display name silently de-advises the gate." Applying the lesson before the pin exists costs nothing; applying it after costs a red required check on a human-only surface.

The companion suite, and why the duplication is a checked invariant

tests/openxdox_consumer_gate/ carries two modules, 74 tests, all passing: test_openxdox_gate_invocation.py (48) pins the gate's SHAPE, test_openxdox_gate_adjudicator.py (26) runs its adjudicator. Both are collected by the REQUIRED pytest-suite job, on the wallet suite's own reasoning — "a comment in the workflow protects nothing." That reason is stronger here, not weaker: until an operator marks this gate required, those two suites are the only required thing standing between it and a quiet weakening.

It also asserts the two assertion bodies byte-identical. GitHub Actions supports no YAML anchor and no include, so the RULE is written once and the PINS twice; identity under test is what stops the two adjudicators drifting until the weaker half is the one that decides. And test_every_watched_name_resolves_to_a_test_that_exists makes the workflow's own instruction ("move NAMED_VERDICTS with it in the same diff") enforceable on a developer machine instead of discovered on a runner.

The required suite refused the first push, and the fix is the rule rather than the file

557cae4c named that suite test_gate_invocation.py — the wallet suite's BASENAME, copied along with its shape. Neither consumer-gate directory carries an __init__.py, so pytest's prepend import mode named both modules test_gate_invocation, and the second one collected raised import file mismatch. That is a COLLECTION error: pytest-suite stopped at 2 skipped, 338 deselected, 1 error and reported nothing about the other 260 modules. A basename collision does not fail one file; it blinds the gate.

e4602a4c renames it to test_openxdox_gate_invocation.py — the convention tests/opendox_pin/test_opendox_pin_verifier.py and tests/openxdox_pin/test_openxdox_pin_verifier.py already follow — and touches no foreign directory (adding __init__.py to the wallet gate's directory would also have worked, and is an edit to somebody else's suite). It also pins the class: test_no_two_test_modules_resolve_to_the_same_import_name derives every test module's real import name the way pytest does and refuses any collision across every test module under tests/. It is deliberately NOT a ban on repeated basenames — six repeat lawfully today, each pair distinguished because at least one side sits in a package directory. Proved both ways before it was trusted: restoring the colliding file fails it with both paths named; removing it passes.

And it scanned half of what pytest collects (Copilot round 2, the second unresolved thread; fixed in f4981f8f). python_files defaults to test_*.py AND *_test.py, and pytest.ini overrides neither, so a file named …_test.py could collide exactly the same way while the invariant stayed green. The scan now asks pytest — pytestconfig.getini("python_files") — and globs every configured pattern, which also keeps it honest if the patterns are ever narrowed or widened. Proved with a real pair: collision_probe_test.py dropped into tests/opendox_pin/ and tests/openxdox_consumer_gate/ is invisible to the old scan (collisions = {}), caught by the new one, and pytest itself reports Interrupted: 1 error during collection on those two files — the same class that interrupted the required run at 2 collected on the first push. pytest tests/ --collect-only -m "not postgres" now reports 7497/7835 tests collected (338 deselected) with no error.

And the guard now says what it cannot do (Copilot round 4). It cannot pre-empt the interruption in its own session: collection precedes every test, so a live collision aborts before the assertion executes. Measured with that same pair — pytest tests/ reports Interrupted: 1 error during collection and 2 skipped, 338 deselected, 1 error, and the guard does not run. The useful half follows from the same measurement: the required suite never goes green on a collision — it goes red naming the offending file, which is how this one was caught. The guard is for the run where collection SUCCEEDS, the scoped pytest tests/openxdox_consumer_gate of the authoring loop, where it fails with the rule, both colliding paths and the two remedies instead of an import file mismatch to decode.

The gate is green on this pull request's own head

That report is the whole of the operator precondition, so it is quoted rather than summarized. Run 35118678267, job openxdox-consumer-gate, head 49b79d01:

OK openxdox-pin verified: openXdox@a6500141… (47a420da…)
OK opendox-pin verified: openDox@3819625e… (40c6216c…), lockstep with openXdox confirmed
pin-suites-report.xml: selected=105 passed=105 skipped=0 failures=0 errors=0
  named verdict … test_the_shipped_digest_is_recomputed_by_an_independent_implementation: passed   (x2)
  named verdict … test_the_real_pin_is_in_lockstep_with_openxdox_own_derived_reading: passed
  named verdict … test_ruling_q7_two_direct_upstreams_in_lockstep: passed
consumer-suite-report.xml: selected=1137 passed=1137 skipped=0 failures=0 errors=0
  named verdict tests.ideation-dashboard.test_lens::test_recipe_request_carries_recipe_and_reasoned_overrides: passed

CI's numbers equal the locally measured aggregation-shaped ones exactly (105/105/0 and 1137/1137/0), which is the pin's own standard — the counts are taken from CI's own run and never from a developer machine. pytest-suite is green at the same head (35118678219, completed), which is what carries the two companion modules.

Base freshness, settled in CI rather than argued. main moved four times while this was in review — c7daca4f (#1064, an OpenSpec archive), a499061e (#1031, this lane's own pre-existing-rows annotation, which edits docs/opendox-carve-manifest.yaml — a file scripts/carved_reach.py reads, and the consumer suite therefore reads too), b1df95ee (#1044) and d5dd1ca5 (#1032, this lane's retired: row form, which edits scripts/carved_reach.py itself). CI does not test the branch tip against a stale base: every run here checks out refs/pull/1059/merge, and the run quoted above reports HEAD is now at 1f89b245 Merge 49b79d01 into d5dd1ca5, the tip of main at the time it started — a FOURTH distinct base (cb2d3a2c, a499061e, b1df95ee, d5dd1ca5) across which the pinned counts came back unchanged. Measured over the whole window rather than argued per landing: git diff --name-status --diff-filter=ARD cb2d3a2c origin/main -- tests/ is EMPTY — not one test file added, renamed or deleted — and the three directories this gate runs (tests/ideation-dashboard, tests/opendox_pin, tests/openxdox_pin) are byte-identical across all four landings. And the probe was re-run at the LANDING HEAD — 658f30e1 merged locally with main d5dd1ca5, over all three of the gate's directories — for 1242 passed, 0 skipped — tests/ideation-dashboard 1137, tests/opendox_pin 59, tests/openxdox_pin 46, which is the 105 and the 1137 the gate pins — with the whole tree collecting cleanly and this directory's 74 passing.

The review rounds, and what each one moved

round finding disposition
1 (557cae4c) the bearer written into the runner's global git config before pull-request-controlled tests run fixed at 0007d81e: anonymous HTTPS rewrite + persist-credentials: false, both pinned by tests
2 (e4602a4c) tests/ideation-dashboard is not a zero-skip suite — released_root / released_only will skip on a normal runner and red EXPECT_SKIPPED: "0" answered with the mechanism and the measurement: is_publisher_checkout(REPO_ROOT) is true here — contracts/manifest.yaml and contracts/schemas/ are tracked, and the third marker, openXdox/code/scripts/validate-ideation-dashboard-contracts.py, is supplied by this gate's own recursive init — so the fixture takes its "the hosting repository when it IS a release" rung and nothing skips. Measured skipped=0 over 1137 in the gate's own runs. The finding did name something real, and it is now written where the pin is: those 40 test functions (28 + 12) are exactly what a NON-recursive init would silently turn into skips, which is what the exact zero catches
2 (e4602a4c) the import-name collision invariant scans only test_*.py fixed at f4981f8f — reads python_files, proved with a real *_test.py pair
3 (0007d81e, 5 suppressed) the adjudicator is checked as YAML text, never executed (x2); the floors are pinned as shapes, not values; the 13 skips are misattributed to both locators (x2) all fixed at f4981f8f — the executed-adjudicator module, MEASURED_PINS as literals, and the cross-reference correction in the header and both docstrings
4 (f4981f8f, 1 generated + 4 suppressed) the lockstep read is verify-opendox-pin.py's check 5, not a sixth check (x2); the header named test_gate_invocation.py, renamed away at e4602a4c; the collision guard cannot pre-empt its own session's collection error; and one docstring opened ``, so its rendered text began with a stray quote all fixed — the numbering and the path at 76f31ab4, the guard's limit MEASURED and written into its docstring there too (see below), and the docstring at 5e1ff4c2 (both modules swept for the same defect)
5 (76f31ab4) nothing enumerated — "the workflow and anti-vacuity checks require final human validation", 0 comments, no suppressed list recorded: a round that names nothing leaves nothing to fix, and the ask it does make (human validation) is the operator act this gate's header already declares owed
6 (446e437c) the adjudicator module reads the workflow at IMPORT, so an unparseable gate raises during collection and interrupts the whole required run already fixed in the very commit the review is attributed to — the finding describes 5e1ff4c2, and 446e437c is where _assertion_steps() became the lazy _extracted(). Independent confirmation of a defect I had reached by re-reading my own file, one commit earlier
7 (b1b6262f, 1 generated + 2 suppressed) the adjudicator treats EVERY non-testsuite root as a container, so <unexpected><testsuite tests="105" …/></unexpected> satisfies every floor and verdict; continue-on-error: true is unrefused and would mark a non-zero exit successful; the credential guard rejects only secrets. and the App-token action, so ${{ github.token }} could come back; and the body cited a pytest-suite run that GitHub reports as cancelled all four fixed at 446e437c — the root shape adjudicated (<testsuite>, <testsuites> summed over its <testsuite> children, anything else refused by name), continue-on-error refused on the job and on every step, the guard reading the job body for secrets./github.token/GITHUB_TOKEN/x-access-token/ACTIONS_RUNTIME_TOKEN plus no token: on the checkout — each proved by introducing the defect it describes. The run-id catch was fair and is the reason the evidence below names a COMPLETED run at the head it belongs to
self-review (b8ab4ac6) the header and the companion suite both claimed "41 test files gate their DOM and JS probes on shutil.which('node')" — an inherited figure that is true of NEITHER side of the pin fixed and measured three ways: grep finds ONE such file in openxFactory's tests/ (tests/ideation-dashboard/test_lens.py), an ast walk finds FOURTEEN test functions routing through its two skip-without-node helpers, and running the consumer suite with node off PATH reports tests=1137 skipped=14 failures=0 errors=0, every skip in that module. The 50 node-gated files of the pinned LEGS (28 + 22) are suites this gate does not run. A COUNT is the wrong thing to pin, since that is how this one rotted, so test_the_watched_consumer_case_really_depends_on_node pins the load-bearing half instead
self-review (446e437c) the same audit, applied to the other two inherited numbers the carve reach is now measured here (42 files, 207 helper sites) with the shed's accounting cited as the shed's; and "reports nothing about the other 260 modules" — true of a tree that has since gained two — is now stated as ANY other module, with the reason no number is quoted. Audited and left alone because they check out: the thirteen workflow files this repository held before this one, and the six basenames that repeat lawfully under tests/
8 (446e437c, 3 suppressed) root.iter("testcase") finds a watched case OUTSIDE the direct <testsuite> children that supplied the counts, so a report takes its floors from a real suite and its verdicts from cases that suite never ran; the raw credential scan starts at jobs: and so omits a workflow-level env:, which Actions hands to every step of every job; and the body cited 35103077090, which GitHub reports cancelled all three taken at 08f438b7. Both adjudicator bodies now walk suite.findall("testcase") over the counted suites — the previous body, MEASURED on the two documents now pinned, exited 0 with 105/105/0 and all four verdicts passed, having adjudicated nothing; and nothing real is refused with it, since pytest writes every case as a direct child of the one <testsuite> it declares (1137 direct = 1137 whole-tree here, 105 likewise) and the scoped body accepts both REAL CI reports at exit 0. bearer_sites() now reads the document twice — the raw job body, and every key and scalar of the PARSED document — proved both ways on a doctored copy: the raw window is clean of a bearer written above jobs: (sites=[] under the old reading) and the parsed reading names <workflow>.env.GITHUB_TOKEN anyway. The run-id catch is taken the same way as round 7's: this evidence names completed runs at the head they belong to
self-review (08f438b7) both new docstrings quoted \njobs: — the string the CODE searches for — inside a plain """…""", where \n is a NEWLINE and the rendered line therefore broke mid-token fixed at 16389874: the prose names the jobs: key, the code still searches for the escape. Swept both modules with ast.get_docstring over every module, class and function — no other escape survives into rendered text. Same class as the """" fixed at 5e1ff4c2
9 (08f438b7, 1 generated + 3 suppressed) the bearer guard matches SUBSTRINGS, so the indexed and spaced expression forms — ${{ github['token'] }}, ${{ secrets['X'] }}, ${{ github . token }} — pass it; the watch-presence guard greps def <name>(, which a docstring or a nested helper satisfies while pytest collects nothing; the dashboard-premise guard globs *.yml and Actions also loads .yaml; and the pytest-suite guard documents byte-untouchedness while checking only the job id all four taken at 1d4af5a7. BEARER_FORMS carries a labelled PATTERN per form, matched in both readings, with four parametrized cases that each assert the previous reading's blindness in their own body (measured: the literal reading finds NOTHING in any of the four documents); the watch is parsed and must be a top-level FunctionDef/AsyncFunctionDef (proved on a real module: "def NAME(" in source True, parsed False, shipped guard red); both workflow suffixes are globbed (proved by dropping a real ideation-dashboard.yaml in: single-suffix [], two-suffix names it); and the pytest-suite guard now says it pins the TOKEN and not the file, because a digest of somebody else's required workflow would red on every lawful edit to it — the byte-untouchedness of THIS act is a property of its diff
10 (16389874, 3 suppressed) two already fixed at 1d4af5a7 and invisible to a round reviewing the previous head (the *.yml-only glob, repeated as "previously missed", and the indexed expression forms); and one new: next(...) takes the FIRST actions/checkout, so a second one — without a path:, at the workspace root — leaves every "the checkout" guard in the file green while later steps run against the root-shaped tree taken at 6857c17e: the path guard asserts there is EXACTLY ONE checkout before reading its path, and says why that count is what makes the file's other "the checkout" readings true. Proved by adding exactly that second step to a copy of the workflow: the first-checkout reading answers path == "openxFactory" (green), the shipped guard fails naming the count
11 (1d4af5a7, 2 generated) the secrets patterns were case-sensitive while the comment beside them claimed otherwise, so ${{ SECRETS.KEY }} walks through; and nothing matched WHOLE-CONTEXT SERIALIZATION — ${{ toJSON(github) }} hands the entire context, token included, to whatever reads the value while spelling neither token nor secrets both taken at edb224e0, by replacing the enumeration with a structural reading: inside ${{ … }}, the secrets context in any case or syntax, the github context used as a VALUE rather than dereferenced (the shape of toJSON(github) and format('{0}', github)), and github.token however spelled. Measured over eleven forms: the substring reading of 08f438b7 missed seven, the pattern reading of 1d4af5a7 still missed five, the structural reading names all eleven — and refuses nothing legitimate, ${{ github.ref }} and its non-secret neighbours pinned clean
12 (6857c17e, 1 generated) this suite EXECUTES pull-request-controlled text: adjudicate() hands the branch's own workflow body to bash -c inside the required pytest-suite job, which at pytest-suite.yml:355-360 has already written https://x-access-token:${{ github.token }}@github.com/ into the runner's GLOBAL git config — and step_env() passed {**os.environ, **env} taken at 7b167fc7 after verifying those lines in the tree: the child now gets PATH, an isolated HOME, GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM at os.devnull, a locale and the step's five pins — nothing else. A case plants the runner's exact shape (that insteadOf rewrite with a PLANTED-BEARER, both token variables) and asks the child for it: token=unset, empty global config, the planted string nowhere, and the real body still adjudicates to exit 0; proved the other way by restoring the ambient env. It does NOT claim the required job is safe from a hostile pull request — pytest-suite collects every module in tests/ and a module is Python — it stops THIS module from being the shovel
13 (edb224e0, 2 suppressed) two bypasses of the structural reading itself: a COMPUTED index — ${{ github[format('{0}', 'token')] }}, ${{ github[env.PROPERTY] }} — slips between a whole-context rule that excludes [ and an indexed rule that required the literal 'token'; and if: is an expression WITHOUT braces, so if: github.token != '' was invisible to a braces-only reading both taken at 658f30e1, each measured as invisible to the edb224e0 rules first: ANY index on the github context is refused, literal or computed (${{ github['ref'] }} included — write github.ref, pinned clean), and bearer_forms_found takes an unwrapped flag the walk sets for the if key, the only key Actions evaluates that way. Five new rows, and a clean side that now covers if: github.event_name == 'pull_request', if: github.ref == 'refs/heads/main' and if: success()
14 (7b167fc7, 3 suppressed) one already fixed at 658f30e1 (the computed github[...] index, repeated as "previously missed" because the round reviewed the head before the fix); step_env merged the step's env: AFTER the isolation, so an assertion step declaring HOME or GIT_CONFIG_GLOBAL would override it; and the checkout assertion claimed tokenlessness when actions/checkout DEFAULTS token to ${{ github.token }} both live ones taken at abbd70eb. The harness carries an ALLOWLIST — the five pins the assertion reads — and refuses anything else by name (measured on the old merge order: the child's HOME came back /hostile); and the checkout message now says what it pins — no OTHER credential, with persist-credentials: false keeping the default out of the tree the suites read — with the anonymous token: '' option measured (all three repositories public) and registered rather than taken at the landing
15 (658f30e1, 2 generated + 1 suppressed) the checkout's PATH is pinned but not WHICH TREE: ref: main, ref: <head sha> or repository: would leave every assertion here green while the gate judged the base, the unmerged head or somebody else's tree; if: false on a verifier, an assertion step or the job SKIPS it, and a skipped step reports SUCCESS — vacuity by a road no floor, exact skip or named verdict can see, since a step that did not run writes nothing to read; and the install's SHAPE is checked but not its ORDER all three taken at 04780ec0, each proved by introducing the defect: the checkout must declare neither ref: nor repository: (ref: main reds the guard by name); no step and not the job may carry if: at all — the stricter rule, because this gate has no conditional work and "only harmless conditions" would need a reader to adjudicate harmlessness on each edit (if: false on the openXdox verifier reds it, naming the step); and the install must follow setup-python and precede both verifiers and both suites, with setup-node before the consumer suite (moving the install below the verifiers reds it)
self-review (04780ec0) pycodestyle findings in the new modules, measured against the sibling this suite was shaped from fixed at 72bdac7f: exactly two E302s, both from the last two insertions, where tests/openxwallet_consumer_gate/ carries ZERO. The gate's numbers do not depend on a blank line, but a file that fails a check its own model passes is a defect in the small
16 (04780ec0/72bdac7f, 2 generated) the swallow guard read four command CONSTANTS, so an or-true (|| true) appended to either JUnit assertion heredoc would exit 0 on a refusal while continue-on-error stayed absent — the gate green having adjudicated the report and thrown the verdict away; and "pip install" in run is satisfied by run: echo 'pip install …', which installs nothing, with the ordering guard inheriting the same matcher both taken at d6bbde35: every parsed run: in the job is read for the or-true form, ; true and set +e (parsed, because the workflow's one lawful or-true is in a comment saying it is deliberately absent), and the install is matched as a WHOLE normalized command — normalized_run() folding the shell line-continuation — with both verifiers and both suites matched the same way in the ordering guard. Proved by appending an or-true to the pin-suites assertion, and by replacing the install with an echo of itself
16 (72bdac7f, 5 suppressed) the verifier and suite invocations were matched by SUBSTRING, so python3 scripts/verify-openxdox-pin.py; echo ok — or a pytest line with a trailing action that writes a JUnit report of its own — would satisfy them; the workflow's permissions: block was read by nothing, so contents: write could arrive silently; verdict()'s third outcome (<error/>) had only the AGGREGATE test; and the three LITERAL bearer forms were listed but never exercised, so weakening one left the suite green all five taken at 49b79d01, each proved by introducing the defect: every critical invocation must now be EXACTLY one normalized step, counted once (; echo ok reds it); permissions: is asserted EQUAL to {contents: read} (contents: write reds it); a watched <error/> case with the aggregate at zero is pinned; and each literal form is injected as an env: value or into the git config line whose bearer shape this gate once shipped (removing the GITHUB_TOKEN pattern makes the doctored document report NOTHING)
SonarCloud githubactions:S8541 — no --only-binary :all: on the hashed install (the C security rating on new code) fixed at 76f31ab4, with the measurement: 17 packages, 17 wheels, zero sdists, exit 0; the quality gate is green at 446e437c

Registered rather than taken here

  • An anonymous token: '' checkout is available and is registered, not taken. actions/checkout defaults token to ${{ github.token }}, so this gate's own fetch of the pull-request merge ref is authenticated even though it declares no token and persists none. All three repositories are public — opensoft/openxFactory, opensoft/openDox, opensoft/openXdox, measured 2026-09-16 — so token: '' would make the checkout as credential-free as the submodule transport already is. It changes the transport this gate has proved on thirteen consecutive runs, so it belongs to a following act with its own green report, not to the landing.
  • A cap on the review rounds, stated rather than left to drift. Nineteen reviews have been taken here — one per head Copilot saw, 557cae4c through 72bdac7f, measured from the reviews API with pagination (the unpaginated call under-reports at seventeen, which is how this figure was wrong for twenty minutes), the numbered rounds in the table above being the finding-bearing ones — and every finding fixed or answered with a measurement. The GATE itself — .github/workflows/openxdox-consumer-gate.yml — has not changed since 08f438b7; rounds 9 through 15 are all depth in the companion suite that guards it, and each round reviews the head BEFORE the fix it prompted (round 14 repeated round 13's finding for exactly that reason), so the sequence has no natural end. From here: a round that names a hole in the gate, or one that would let the gate pass having adjudicated nothing, is still a fix; anything narrower is registered here and filed rather than held against the landing — the estate's two-round-cap practice, applied late rather than not at all. The cap is now hard: each push is reviewed at the head BEFORE it, so a finding-for-fix-for-finding sequence has no fixed point. This landing takes its last round here; anything a later review raises is filed as an issue against the landed gate, with the same measurement discipline, rather than held against the landing.
  • Making the check REQUIRED is an operator act and is owed. It cannot be done from a pull request, and this gate reporting green on this pull request is its precondition.
  • The two suites this gate runs also run in pytest-suite. That is deliberate and not waste: this gate is what survives a change to the required suite's scope, and it is the only place either verifier SCRIPT is executed at all.
  • A pre-collection import-name scan for the whole tree is registered, not taken. Copilot's remediation for the collision guard is a repository-wide hook in a shared conftest.py, which every suite in this repository would then run; that is a different act from wiring a consumer gate, and it is left declared rather than smuggled in under § 5.3.
  • Three comments in the tree go stale the moment this lands, and retiring them is not this act. pytest-suite.yml's "that gate is Phase 5's, is unwritten, and stays named as owed" stops being true once this file exists — but RULING R-4 discharges § 5.3's job-id clause precisely BY leaving pytest-suite.yml untouched, so the edit cannot ride here. (What the test pins is the TOKEN — still declared there, not declared here; the byte-untouchedness is a property of this pull request's diff, three files and none of them that one. Round 9 is why that distinction is now written down rather than implied.) The two verify_pin: comments in contracts/opendox-pin.yaml and contracts/openxdox-pin.yaml stay LITERALLY true — "not yet wired into any REQUIRED check" — until an operator pins the token, which is the act that should retire all three together.
  • A bearer arriving as a STEP OUTPUT is held by the mint probe, not by the expression rules, and widening it is registered rather than taken. bearer_sites reads CONTEXTS — secrets, github, and the three literal environment/URL forms. A token minted by some future action and consumed as ${{ steps.<id>.outputs.token }} is refused today by test_the_gate_mints_no_credential_for_public_gitlinks's mint probe, which fails on any step whose uses names create-github-app-token — the only minting action this estate uses, and the one pytest-suite.yml itself uses. An action minting under a different name, consumed through a step output, would pass both readings. Refusing every .outputs.*token* in an expression is a two-line widening and a deliberate one: it belongs with the act that first needs a mint here (none does — all three gitlinks are public), and it is written down so that act starts from this line rather than rediscovering it.
  • The carve-reach figure in the header was measured before #1032 landed, and is left as measured. "42 files … at 207 helper sites" was measured on this branch's tree with its method stated (files calling the helper, beside the § 5.2 shed's differently-counted 38/39/125). #1032 merged into main at ~14:2xZ — this lane's own retired: row form — and it edits scripts/carved_reach.py and its callers: git grep -o 'carved_reach\.[a-z_]*(' moves 31 → 50 across that landing, so the site count has drifted. Nothing asserts the figure, the gate's behaviour does not depend on it, and the gate's own run on the merge with #1032 reports the pinned counts unchanged. Re-measuring it belongs to whoever next edits that header; a guessed correction would be worse than a stated measurement.
  • The bearer in pytest-suite.yml's global git config is named here and not touched. Round 12 surfaced it: lines 355-360 of that workflow write https://x-access-token:${{ github.token }}@github.com/ into the runner's GLOBAL git config, and the required suite then collects every module under tests/ — Python, all of it, from the branch under review. This pull request removes its OWN module from that reach (the extracted body now runs with a minimal environment and an isolated HOME), and it cannot do more: RULING R-4 discharges § 5.3's job-id clause precisely BY leaving pytest-suite.yml untouched. Retiring the CREDENTIAL in that rewrite is that workflow's own act, and its own comment says why the rewrite itself is kept: .gitmodules spells every gitlink [email protected]: so a human clone uses the operator's key, a runner has no such key, and the insteadOf is what makes those URLs fetchable over HTTPS at all. That half is not about privacy — all three gitlinks went public by 2026-09-11 and the App mint above it was retired for exactly that reason; the x-access-token:${{ github.token }} in the rewritten URL is what the retired mint's || fallback already resolved to. This gate is the worked example of the next step: it rewrites to plain https://github.com/ with no credential at all, and its runs materialize all six submodule paths — openDox, openDox/code, openDox/spec, openXdox, openXdox/code, openXdox/spec — under persist-credentials: false. Two of the three gitlinks pytest-suite fetches are the two this gate fetches.
  • § 5.3's box does not tick here. Actors never touch tasks.md; the tick rides amendment Record Hermes install scope evidence #4.

Refs #656 (stays OPEN).

🤖 Generated with Claude Code

Summary by Sourcery

(Sourcery's own words, kept as generated. One phrase in it is looser than the tree: actions/checkout DEFAULTS token to ${{ github.token }}, so the checkout is not tokenless — what is anonymous is the submodule transport, and persist-credentials: false is what keeps the default out of the tree these suites read. The credential section above states it exactly; round 14 is where that got corrected.)

Add a dedicated openDox/openXdox consumer gate that verifies pinned tools and proves their consumer test suites execute completely and securely.

New Features:

  • Add an advisory openDox/openXdox consumer-gate workflow that initializes the pinned tools and verifies both upstream pins before testing consumers.

Bug Fixes:

  • Prevent green checks caused by skipped, missing, malformed, or partially collected test results through exact suite counts and named verdict validation.
  • Prevent credential leakage by using anonymous public checkouts, disabling checkout credential persistence, and rejecting bearer-token references.
  • Prevent test-collection blind spots from duplicate pytest import names across configured test-file patterns.

Enhancements:

  • Run independent pin-verification suites and the ideation-dashboard consumer suite with recursive submodule initialization, Node support, and fail-closed JUnit adjudication.

Build:

  • Install the locked Python dependencies using hash verification and wheel-only packages.

CI:

  • Add companion tests that validate the consumer-gate workflow shape, security posture, measured anti-vacuity pins, and execute both shipped JUnit adjudicators.

Tests:

  • Add comprehensive hermetic tests for JUnit report aggregation, named test verdicts, exact skip counts, collection floors, malformed reports, and workflow weakening scenarios.

split-opendox-two-layer-product task 5.3, under RULING R-4 (Brett Heap,
#656 comment 5690428146, 2026-09-16, by interactive
multi-choice): "the box means a NEW `openxdox-consumer-gate.yml` in
openxFactory on the `openxwallet-consumer-gate` shape; 'retaining the job
id' is discharged by leaving `pytest-suite` untouched (no dashboard-named
workflow ever existed here)." `pytest-suite.yml` is not touched here.

NEITHER VERIFIER WAS INVOKED BY ANY WORKFLOW, AND THE TREE SAID SO IN THREE
PLACES BEFORE THIS COMMIT. `pytest-suite.yml`'s own comment: "THIS IS NOT
THE TASK 5.3 CONSUMER GATE … that gate is Phase 5's, is unwritten, and
stays named as owed." Both pin files' `verify_pin:` comments say the same.
Measured at cb2d3a2: `grep -rn 'verify-opendox-pin\|verify-openxdox-pin'
.github/` returned exactly one line — that comment.

THE GATE RUNS THREE THINGS AND ASSERTS THAT EACH ACTUALLY RAN. The two
offline pin verifiers first, in the direction the lockstep runs (openXdox,
then openDox, whose sixth check reads openXdox's own derived pin as a git
blob at the gitlinked commit); then the two verifier suites, which recompute
each shipped sorted-ls-tree-r-v1 digest with a second implementation; then
`tests/ideation-dashboard`, the surface the § 5.2 shed left reaching into
both pinned legs through `scripts/carved_reach.py`. A pin whose bytes verify
while the code that consumes them cannot import is a green check that proved
half its claim.

TWO FORCED DEPARTURES FROM THE WALLET SHAPE, BOTH STATED IN THE FILE.
(a) The init is `--recursive openDox openXdox`, because `carved_reach`
needs both `code` legs on disk and REFUSES rather than degrading; the
scoping the wallet gate actually asserts is kept — `openXwallet` and
`installs/omnigent-install` stay out. (b) The checkout lands at
`openxFactory/`, not the workspace root, and this one separates a gate from
a green bar: the consumer suite's two validator locators walk UP for an
`openxFactory/`-shaped ancestor, and without one they answer None and
thirteen assertions across four modules become skips. MEASURED BOTH WAYS AT
cb2d3a2, and the number that moves is not the one a reader expects —
selection is 1137 EITHER WAY, because `skipif` marks a collected test
rather than uncollecting it; what changes is 13 passes turning into skips.
A floor on selected cannot see that, which is why each suite is pinned with
an EXACT skipped count as well.

EVERY PIN IS MEASURED AND EVERY REFUSAL IS PROVED AGAINST THE DEFECT IT
REFUSES. Pin suites: 105 selected / 105 passed / 0 skipped, zero being what
both suites are built to guarantee ("Every case is hermetic: no network, no
ambient git"). Consumer suite: 1137 / 1137 / 0. Five named verdicts watch
the cases that cannot pass unless the pinned trees are really on disk — the
two digest re-derivations, the two lockstep replays, and one consumer case
that copies `helpers.js` from the openDox-code mount AND `gate-lens.js` from
the openXdox-code mount after skipping outright without node, so a single
`passed` proves node, both legs, and `carved_reach`'s per-row mount lookup
at once. The assertion body was extracted from this workflow and run against
real reports: green on both true reports, RED on the root-shaped report (13
skips), RED on a report with a watched case deleted, and RED on a report
with a watched case skipped WITHOUT the aggregate count moving — the last
being the Codex P2 shape `pytest-suite.yml` records, caught here by the
named verdict when the sum could not see it.

THE GATE IS ADVISORY ON THE DAY IT LANDS AND THE FILE SAYS SO. No ruleset
pins its token; a check is not selectable until a workflow has reported
under it once, so it must run green on a pull request before an operator
can require it. The job carries no display name for that reason — the job
id is the token an operator will select.

tests/openxdox_consumer_gate/test_gate_invocation.py pins the invocation in
the REQUIRED suite, on the wallet suite's own reasoning ("a comment in the
workflow protects nothing"), and holds the two assertion bodies BYTE-
IDENTICAL: GitHub Actions supports no YAML anchor and no include, so the
rule is written once and the pins twice, and identity under test is what
stops the weaker half becoming the one that decides.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 16, 2026 01:24
@sourcery-ai

sourcery-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Reviewer's Guide

Introduces a new pull-request consumer gate that verifies both pinned upstream tool trees before testing them, exercises their verifier and dashboard-consumer suites from an aggregation-shaped checkout, and uses locked coverage assertions plus a companion pytest contract suite to prevent silent skips, scope drift, or weakening while the check remains advisory.

Sequence diagram for the openDox/openXdox consumer gate

sequenceDiagram
    participant PR as PullRequest
    participant Gate as openxdox-consumer-gate
    participant Checkout as openxFactoryCheckout
    participant Pins as PinVerifiers
    participant PinTests as PinSuites
    participant Consumer as DashboardConsumerSuite
    participant Reports as JUnitAssertions

    PR->>Gate: Trigger pull_request on main
    Gate->>Checkout: checkout(path=openxFactory, fetch-depth=0)
    Gate->>Checkout: git submodule update --init --recursive openDox openXdox
    Gate->>Pins: verify-openxdox-pin.py
    Pins-->>Gate: Pin result
    Gate->>Pins: verify-opendox-pin.py
    Pins-->>Gate: Pin and lockstep result
    Gate->>PinTests: pytest tests/opendox_pin tests/openxdox_pin
    PinTests-->>Reports: pin-suites-report.xml
    Reports-->>Gate: Require floors, zero skips, named verdicts
    Gate->>Consumer: pytest tests/ideation-dashboard
    Consumer-->>Reports: consumer-suite-report.xml
    Reports-->>Gate: Require floors, zero skips, named verdict
    Gate-->>PR: Advisory check result
Loading

Flow diagram for fail-closed gate adjudication

flowchart TD
    Start["Pull request gate starts"] --> Checkout["Checkout at openxFactory/"]
    Checkout --> Init["Recursively initialize openDox and openXdox"]
    Init --> InitOK{"Both gitlinks readable?"}
    InitOK -->|No| FailInit["Fail closed"]
    InitOK -->|Yes| VerifyXdox["Run verify-openxdox-pin.py"]
    VerifyXdox --> VerifyDox["Run verify-opendox-pin.py"]
    VerifyDox --> PinSuite["Run pin suites"]
    PinSuite --> PinAssert["Assert floors, zero skips, named verdicts"]
    PinAssert --> PinOK{"Pin assertions pass?"}
    PinOK -->|No| FailPins["Reject gate"]
    PinOK -->|Yes| ConsumerSuite["Run ideation-dashboard suite"]
    ConsumerSuite --> ConsumerAssert["Assert 1137+ selected and passed, zero skips, named verdict"]
    ConsumerAssert --> ConsumerOK{"Consumer assertions pass?"}
    ConsumerOK -->|No| FailConsumer["Reject gate"]
    ConsumerOK -->|Yes| Advisory["Report advisory success"]
Loading

File-Level Changes

Change Details Files
Add a dedicated advisory GitHub Actions consumer gate for the pinned openDox/openXdox tools.
  • Create a pull-request workflow with the openxdox-consumer-gate job id and no display name.
  • Rewrite SSH submodule URLs before checkout, then check out under openxFactory/ and recursively initialize only openDox and openXdox.
  • Install pinned Python and Node runtimes and the locked dependencies.
  • Run the openXdox verifier before the openDox verifier, before either pin or consumer test suite.
  • Keep the existing pytest-suite workflow and job token untouched.
.github/workflows/openxdox-consumer-gate.yml
Make the gate fail closed when suites silently skip or lose coverage.
  • Run the pin-verifier suites and ideation-dashboard consumer suite separately with independent JUnit reports.
  • Add per-suite selected and passed floors, exact zero-skip requirements, failure/error checks, and named-test verdicts.
  • Watch independent digest/lockstep tests plus a consumer test covering Node and both pinned mounts.
  • Duplicate the assertion implementation for each report and enforce byte identity between the copies.
.github/workflows/openxdox-consumer-gate.yml
Add required-suite coverage that locks the workflow contract and its safety invariants.
  • Parse the workflow and verify its trigger, sole job id, checkout layout, scoped recursive init, runtime setup, invocation order, and unswallowed exit codes.
  • Verify both suites have adjacent positive assertions with the expected thresholds, reports, and watched tests.
  • Ensure watched test names resolve to existing test definitions and that the assertion bodies remain identical.
  • Assert no dashboard workflow was converted, the existing pytest-suite token remains intact, and no unnecessary App credential or secret is used.
tests/openxdox_consumer_gate/test_gate_invocation.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

`pytest-suite` refused the first push of this branch, and the refusal is
worth more than the fix: `tests/openxdox_consumer_gate/
test_gate_invocation.py` copied `tests/openxwallet_consumer_gate/`'s
BASENAME along with its shape, neither directory carries an `__init__.py`,
and pytest's prepend import mode therefore named both modules
`test_gate_invocation`. The second one collected raised `import file
mismatch` — a COLLECTION error, which INTERRUPTS the whole required run at
"2 skipped, 338 deselected, 1 error" and reports nothing about the other
260 modules. A basename collision does not fail one file; it blinds the
gate.

THE FILE IS RENAMED to `test_openxdox_gate_invocation.py`, which is the
convention `tests/opendox_pin/test_opendox_pin_verifier.py` and
`tests/openxdox_pin/test_openxdox_pin_verifier.py` already follow, and no
foreign directory is touched — adding `__init__.py` to the wallet gate's
directory would have worked and is an edit to somebody else's suite.

AND THE CLASS IS PINNED, not just the instance.
`test_no_two_test_modules_resolve_to_the_same_import_name` derives every
test module's real IMPORT NAME the way pytest does — the bare basename,
dotted only while `__init__.py` walks up — and refuses any collision across
the 261 modules under `tests/`. It is deliberately NOT a ban on repeated
basenames: SIX repeat lawfully today (`test_gate_wiring`, `test_integrity`,
`test_release_inventory`, `test_schema`, `test_topology_lifecycle`,
`test_validate`), each pair distinguished because at least one side sits in
a package directory. Proved both ways before it was trusted: restoring the
colliding file fails it with both paths named, removing it passes.

`python3 -m pytest tests/ -q -m "not postgres" --collect-only` now reports
`7444/7782 tests collected (338 deselected)` with no error, which is the
check that would have caught this in seconds before the first push.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

@copilot review

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.

🔵 Needs a closer look

Unresolved critical credential exposure and validation gaps require changes and human review.

Pull request overview

Adds an advisory consumer gate for pinned openDox/openXdox tools, including recursive submodule setup, pin verification, consumer tests, and anti-vacuity checks.

Changes:

  • Adds the openxdox-consumer-gate workflow.
  • Runs pin and dashboard suites with JUnit safeguards.
  • Adds workflow contract tests.
File summaries
File Summary Findings
.github/workflows/openxdox-consumer-gate.yml Defines the consumer gate and validation steps. Critical (1 vote): bearer token exposure; moderate (1 vote): adjudicator logic lacks fixture-based testing; nit (1 vote): checkout-layout rationale does not match locator behavior.
tests/openxdox_consumer_gate/test_gate_invocation.py Validates workflow wiring and safeguards. Moderate (1 vote): measured threshold tuples are not pinned exactly.
Review details

Suppressed comments (2)

.github/workflows/openxdox-consumer-gate.yml:304

  • The gate's actual anti-vacuity behavior is implemented in these embedded XML adjudicators, but the companion test only compares the two source strings and checks that environment keys exist; it never executes the logic against a report. A regression in aggregate parsing or named-test matching could therefore ship while the required companion suite remains green. Extract the checker into a tested helper, or add fixture-driven tests covering passed, skipped, absent, and aggregate-count cases, then invoke that helper from both steps.
        run: |
          set -euo pipefail
          python3 - <<'PY'
          import os
          import sys

.github/workflows/openxdox-consumer-gate.yml:102

  • This rationale does not match the current locator implementation: find_openxfactory_validator() first composes the moved validator when base == REPO_ROOT, so a recursive root checkout can still return a validator without an aggregation-shaped parent. find_cross_reference_validator() can also resolve the repository's own openxFactory/scripts/... path under the standard Actions workspace layout. The openxFactory/ checkout may still be a required contract, but the claimed “both None / 13 skips” measurement is not a reliable proof of it; update the evidence or add a layout-specific locator test.
#   (b) THE CHECKOUT LANDS AT `openxFactory/`, NOT AT THE WORKSPACE ROOT, and
#       this one is the difference between a gate and a green bar. The consumer
#       suite's validator locators walk UP from the repository root looking for
#       an AGGREGATION-SHAPED parent: `human_seen.find_cross_reference_
#       validator` searches each ancestor for `openxFactory/scripts/validate-
#       ideation-cross-reference.py`, and `tests/ideation-dashboard/conftest.py`'s
#       `find_openxfactory_validator` does the same for the dashboard
#       validator. A checkout at the workspace root has no such ancestor, both
#       locators answer `None`, and THIRTEEN assertions across four modules
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI commented Sep 16, 2026

Copy link
Copy Markdown

@copilot review

Addressed in 0007d81: the gate now rewrites public submodule URLs to anonymous HTTPS, sets persist-credentials: false on checkout, and the invocation test pins that hardened shape.

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.

🟡 Changes recommended

The dashboard gate fails under normal checkout conditions, and several workflow-integrity safeguards are incomplete.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

.github/workflows/openxdox-consumer-gate.yml:141

  • This explanatory path is stale: the pinned suite added here is test_openxdox_gate_invocation.py, not test_gate_invocation.py. Following the comment would lead maintainers to a file that does not exist; update the basename to match the renamed module.
# test_gate_invocation.py` asserts the two `run:` strings equal, so an edit to

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:199

  • This guard only inspects *.yml, but GitHub Actions also accepts .yaml. A future dashboard-named .yaml workflow would evade the R-4 premise while this test still passes; scan both workflow extensions (or all regular files).
    dashboard_named = sorted(
        p.name for p in WORKFLOWS.glob("*.yml")
        if "dashboard" in p.name or "ideation" in p.name)

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:416

  • This companion test only checks that the numeric pins are positive/nonnegative; it does not preserve the measured values that make the gate meaningful. A workflow edit could lower both floors to 1 and change EXPECT_SKIPPED to 13, allowing the root-shaped checkout's skipped consumer cases to pass while this required invocation test remains green. Pin the expected tuple per report (105/105/0 for pin-suites-report.xml and 1137/1137/0 for consumer-suite-report.xml) rather than merely checking its shape.
        assertion_steps: list[dict]) -> None:
    for step in assertion_steps:
        env = step["env"]
        for key in ("REPORT", "MIN_SELECTED", "MIN_PASSED", "EXPECT_SKIPPED",
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 16, 2026 01:38

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.

🔵 Needs a closer look

Moderate findings remain around untested JUnit adjudication and unpinned anti-vacuity thresholds.

Review details

Suppressed comments (5)

.github/workflows/openxdox-consumer-gate.yml:304

  • The new JUnit adjudicator is only checked as YAML text by test_openxdox_gate_invocation.py; no test executes either copy against a report. A regression in the aggregate arithmetic or named-verdict traversal would therefore leave the companion suite green and be found only when this workflow runs. Please extract the evaluator into a tested helper or add fixture-driven cases for passed, skipped, absent, and failure reports, while keeping the two workflow bodies identical.
          python3 - <<'PY'
          import os
          import sys
          import xml.etree.ElementTree as ET

.github/workflows/openxdox-consumer-gate.yml:100

  • This rationale says both validator locators return None for a root-shaped checkout, but tests/ideation-dashboard/conftest.py:90-117 composes the dashboard validator from the pinned legs even when the current checkout is the root. The root layout makes human_seen.find_cross_reference_validator() return None; the 13 skips are specifically the cross-reference-gated cases. Please correct the explanation so the load-bearing aggregation requirement is attributed to the cross-reference locator.
#       suite's validator locators walk UP from the repository root looking for
#       an AGGREGATION-SHAPED parent: `human_seen.find_cross_reference_
#       validator` searches each ancestor for `openxFactory/scripts/validate-
#       ideation-cross-reference.py`, and `tests/ideation-dashboard/conftest.py`'s
#       `find_openxfactory_validator` does the same for the dashboard

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:409

  • These tests only compare the two embedded assertion strings; they never execute either checker. A future symmetric edit could make both copies ignore an absent/skipped named testcase or misread the JUnit aggregates while all invocation tests remain green, defeating the anti-vacuity contract this PR adds. Add fixture-based tests for passing, absent, skipped, failed, and floor/skip-count cases, ideally by extracting the checker into a directly tested helper.
def test_the_two_assertion_bodies_are_byte_identical(
        assertion_steps: list[dict]) -> None:
    """The rule is written once; the PINS are written twice.

    GitHub Actions supports no YAML anchor and no include, so identity under
    test is the mechanism available. Without this, two adjudicators can drift —
    one gaining a check the other never gets — and the gate's weaker half
    becomes the one that decides.
    """
    first, second = (s["run"] for s in assertion_steps)
    assert first == second, (
        "the two assertion bodies must be byte-identical; they differ only in "
        "their `env:` pins. Diff them and make the edit in both")

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:427

  • This guard only checks > 0/>= 0, so it remains green if either anti-vacuity floor is weakened from the measured 105/105 or 1137/1137 to 1, or if the consumer suite's EXPECT_SKIPPED is changed from 0 to 13. The gate could then become vacuous while its only required invocation guard still passes. Pin the literal per-report tuples (pin-suites-report.xml → 105/105/0; consumer-suite-report.xml → 1137/1137/0) and update them only with an intentional measurement change.
        assert int(env["MIN_SELECTED"]) > 0
        assert int(env["MIN_PASSED"]) > 0
        assert int(env["EXPECT_SKIPPED"]) >= 0
        assert env["NAMED_VERDICTS"].split(), "NAMED_VERDICTS may not be empty"

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:238

  • The same explanation is repeated here, but find_openxfactory_validator() composes the dashboard validator from the pinned legs in a root-shaped checkout; only the cross-reference locator becomes unavailable there. Saying both locators return None misstates what the 13-skip measurement proves and can send future edits toward the wrong dependency.
    `human_seen.find_cross_reference_validator` walks each ancestor looking for
    `openxFactory/scripts/validate-ideation-cross-reference.py`, and
    `tests/ideation-dashboard/conftest.py`'s `find_openxfactory_validator` does
    the same for the dashboard validator. A workspace-root checkout has no such
    ancestor; both answer `None`; thirteen assertions turn into skips.
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

brettheap added a commit that referenced this pull request Sep 16, 2026
…easured, and the three § 8 evidence lines ticked

Verifies the WIP commit a9529e6 the orchestrator pushed for the actor that
died mid-round-1, and finishes the amendment.

The WIP's two Copilot repairs were right in substance and wrong in three
counts, each of which is corrected against a named tree rather than patched:

- § 7.1's content census now names its case-folding and gives BOTH
  distributions. `openxdox` is in 32 tracked files and `opendox` in 28, but 17
  files carry both, so the union is 43 — not the 60 the erratum reported by
  adding two columns. The `domain-profiles` hits are four lines across three
  files, not three. `openxfactory_floor.py` carries seven dox lines of which
  :290-291 are the gitlink names. `kind: codex_tenant` is three declarations,
  two of them descriptors. The conclusion is untouched: ZERO files declare
  `kind: domain-profile`, no `kind:` in the tree names dox, so NONE YET.

- § 8.9's severity count could not be made to reproduce, because the prose
  doing the counting kept using the word: "ten in six files" read thirteen the
  moment it landed. The measurement is now taken OUTSIDE the box — seven
  occurrences in five files, none of them in tasks.md — where editing this box
  cannot move it. Both wrong rounds are recorded.

Then the three acts the rulings owed:

- § 5.3 names R-4's discharging act, openxFactory #1059, and says the box
  ticks on that merge rather than on this one.
- § 8.7 records that R-5's act LANDED — xFactory #453 -> 514605fb, 12:46Z —
  and that the both-gitlink equality was KEPT through the sync, not restored
  by it: measured at 784a7c6e/75484b67 before and 514605fb/cb2d3a2c after,
  three readings agreeing on each side. The register clause holds because both
  assembly roots' project.yaml is byte-identical at the old and new pointers.
  The box is left unticked: R-5 ruled the wording, not the verdict.
- § 8.1, § 8.6 and § 8.8 TICK on evidence comment 5690559647, each with the
  measurement quoted: six repositories public/Apache-2.0 with six ACTIVE
  rulesets and 265 validate runs; ideation-intent-plane in canon with seven
  requirements and no active change; and 416 repositories enumerated across
  four estate orgs proving the sixteen registered names have no repository.

Box count 44/27 -> 47/24.

Refs #656 (stays OPEN).

Lane: openxfactory-4

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ocator moves

Copilot's third round on #1059 left two unresolved threads and five suppressed
comments. Four of them are real and are fixed here; the fifth is answered on
the thread with this gate's own measured run rather than with a change.

THE ADJUDICATOR IS NOW EXECUTED, NOT ONLY READ (suppressed comments on
`openxdox-consumer-gate.yml:304` and `test_openxdox_gate_invocation.py:409`).
`test_openxdox_gate_adjudicator.py` extracts the shipped assertion body out of
the workflow at test time — never a copy, and both copies must be found byte
for byte, re-indented by the ten spaces the block scalar strips — and runs it
over synthesized JUnit reports in `tmp_path`. Hermetic: no network, no
submodule, 19 cases in about a second, collected by the REQUIRED `pytest-suite`
job. The cases are the anti-vacuity contract itself: a report at the pins
passes for BOTH shipped `env:` blocks; a watched case that went ABSENT,
SKIPPED or FAILING is refused even when the aggregates still read perfect; one
passing occurrence does not excuse a skipped one; the fourth watched name is
reached, not just the first; the root-shaped `skipped=13` is refused; a
collection loss below the floor, a failure and an error are refused; a
multi-`testsuite` report is SUMMED rather than sampled, and a bare
`<testsuite>` root is read; an unparseable or missing report fails the step.
PROVED BOTH WAYS against doctored copies of the body: `verdict()` returning
"passed" for `absent` reds two cases; `list(root)[:1]` reds the multi-suite
case; `skipped < expect_skipped` reds the exact-skip case.

THE MEASURED PINS ARE LITERALS NOW (`test_openxdox_gate_invocation.py:427`).
`MIN_SELECTED > 0` stayed green while both floors were lowered to 1 and the
consumer `EXPECT_SKIPPED` moved from 0 to 13 — the root-shaped reading
departure (b) exists to refuse, with the gate's only REQUIRED guard still
passing. `MEASURED_PINS` records `105/105/0` and `1137/1137/0` from this pull
request's own CI run 35044247836 at `e4602a4c`; floors may still only RISE,
but moving one is now a two-file diff. Proved: lowering the workflow's floors
to 1 and its skip pin to 13 reds the guard.

THE COLLISION SCAN READS `python_files` (unresolved thread,
`test_openxdox_gate_invocation.py:528`). pytest's defaults are `test_*.py` AND
`*_test.py`, and `pytest.ini` overrides neither, so the scan asked about half
of what is collected. Proved with a real pair: `collision_probe_test.py` in
two plain directories is invisible to the old scan, caught by the new one, and
pytest itself reports `Interrupted: 1 error during collection` on it — the
same class that interrupted the required run at 2 collected on the first push.

AND IT IS THE CROSS-REFERENCE LOCATOR THAT MOVES, NOT BOTH (suppressed
comments on `openxdox-consumer-gate.yml:100` and
`test_openxdox_gate_invocation.py:238`). The header and the companion
docstrings said a root-shaped checkout makes both validator locators answer
`None`. It does not, and the correction matters because a future edit aimed at
the dashboard locator would be aimed at nothing: since the § 5.2 shed,
`conftest.find_openxfactory_validator`'s SECOND rung composes that validator
out of the pinned leg (`_shed_validator()`), so it resolves under either
layout once the legs are on disk. Only
`human_seen.find_cross_reference_validator` walks for an `openxFactory/`-shaped
ancestor and answers `None` at the workspace root. MEASURED in the two runs
the pins came from: twelve of the thirteen skips are gated `VALIDATOR is None
or XREF_VALIDATOR is None`, the thirteenth on `XREF_VALIDATOR is None` alone,
and `test_lens::test_manifest_with_new_candidates_validates_clean` — gated on
`VALIDATOR is None` ALONE — PASSES in the root-shaped run.

THE RELEASED-CONTRACT RUNG IS WRITTEN DOWN WHERE THE ZERO IS PINNED, because
it is the reading a reviewer is most likely to get backwards (it is the
remaining thread). 28 test functions in `test_doxbench_contracts.py` behind
the `released_root` fixture and 12 in `test_doxbench_routes.py` behind
`@released_only` gate on `is_publisher_checkout(REPO_ROOT)`, which requires
all three `PUBLISHER_MARKERS` — and the third is
`openXdox/code/scripts/validate-ideation-dashboard-contracts.py`, INSIDE the
openXdox leg the § 5.2 shed put it in. So those 40 skip on a checkout whose
gitlinks were not initialized recursively, and they did not skip in this
gate's own run: `skipped=0` over 1137. No `OPENXFACTORY_ROOT` is set and none
is wanted — the fixture's other rung is the hosting repository when it IS a
release, and this repository is the publisher.

Local: `tests/openxdox_consumer_gate` 40 passed; full-tree `--collect-only`
7463/7801 collected (338 deselected), no collection error.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 16, 2026 12:59

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.

🔵 Needs a closer look

The import-collision guard cannot prevent pytest collection-time failures and requires remediation.

Review details

Suppressed comments (4)

.github/workflows/openxdox-consumer-gate.yml:239

  • This says the lockstep is the verifier's sixth check, but verify-opendox-pin.py numbers it as check 5 (verify-opendox-pin.py:543-549); the sixth item is a refusal code raised while parsing the pin, not a sixth check. Please correct the workflow explanation so future maintainers do not look for a nonexistent check.
      # (RULED Q7) and its sixth check reads openXdox's OWN derived

.github/workflows/openxdox-consumer-gate.yml:158

  • This reference names test_gate_invocation.py, but that file does not exist in this suite; the invocation test is test_openxdox_gate_invocation.py. Please correct the path so maintainers can locate the guard.
# test_gate_invocation.py` asserts the two `run:` strings equal, so an edit to

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:547

  • This guard cannot run before the collision it is meant to detect: pytest completes collection before executing any test, and a duplicate import name raises import file mismatch during collection. Therefore a future basename collision will still abort the required run before this assertion executes; move the scan into a pre-collection hook or a standalone preflight invoked before pytest collection.
def test_no_two_test_modules_resolve_to_the_same_import_name(
        pytestconfig: pytest.Config) -> None:

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:354

  • The same count is off here: verify-opendox-pin.py has five numbered checks, with lockstep explicitly labeled check 5 (verify-opendox-pin.py:543-549), not a sixth. Please keep this test's rationale aligned with the verifier's actual contract.
    `verify-opendox-pin.py`'s sixth check reads openXdox's own DERIVED
    `contracts/opendox-pin.yaml` as a git blob at the gitlinked commit. Both
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

…ollision guard cannot do

Copilot round 4 at `f4981f8f` (review `5223040681`) generated one comment and
suppressed four. All four are right; SonarCloud's one security finding on new
code is fixed in the same pass.

`--only-binary :all:` BESIDE THE HASHES (SonarCloud `githubactions:S8541`,
"Omitting --only-binary :all: can lead to the execution of setup scripts", the
`C` security rating on new code). A gate that judges other people's landings
should not execute a stranger's `setup.py` while installing itself, and a hash
cannot express that: it binds the sdist's bytes and the build then runs them.
`former-id-arrival-gate.yml` already made this the rule for a hashed-lockfile
install in this repository, and its reasoning is taken rather than its text —
"the hashes already bind WHICH artifact may be installed; this binds WHAT
KIND". MEASURED against this same lock on python 3.12 before it was written:
`pip install --require-hashes --only-binary :all: --dry-run -r
requirements/hermes-runtime-contracts.lock` resolves 17 packages, 17 wheels,
ZERO sdists, exit 0 — so WHAT is installed does not move.
`test_the_dependency_install_is_hash_pinned_and_refuses_sdists` pins both
flags and the lock path; proved by dropping the flag, which reds it.

CHECK 5 IS CALLED CHECK 5. The workflow header and the companion docstring
both said `verify-opendox-pin.py`'s lockstep read was its "sixth check". The
verifier numbers its checks in its own source and labels this one "check 5:
LOCKSTEP with openXdox's own derived reading" — its fifth and last, and the
one check with no analogue in the elder verifier. A reader sent looking for a
sixth check finds a refusal code instead.

THE HEADER NAMED A FILE THAT NO LONGER EXISTS: `test_gate_invocation.py`,
which `e4602a4c` renamed out of this suite precisely because that basename
collided. It now names both companion modules and what each of them does.

AND THE COLLISION GUARD SAYS WHAT IT CANNOT DO. Copilot is right that it
cannot pre-empt the interruption in its own session: collection precedes every
test, so a live collision aborts the run before the assertion executes.
MEASURED by restoring a colliding pair — `pytest tests/` reports `Interrupted:
1 error during collection` and `2 skipped, 338 deselected, 1 error`, and the
guard does not run. The useful half follows from the same measurement: the
REQUIRED suite never goes green on a collision, it goes red naming the
offending file, which is how this one was caught. The guard is for the run
where collection SUCCEEDS — the scoped `pytest tests/openxdox_consumer_gate`
of the authoring loop, where it fails with the rule, both colliding paths and
the two remedies rather than an `import file mismatch` to decode. A scan
running before collection for the whole tree would be a repository-wide hook
in a shared `conftest.py`; that is a different act than this gate, and it is
registered rather than smuggled in here.

The adjudicator suite also merges the ambient environment under the step's
`env:` now, which is what Actions does: passing the five pins alone strips
`PATH`, leaving the body's `python3` to whatever `bash` falls back to — a
difference between this suite and the runner with nothing to do with what is
under test.

Local: `tests/openxdox_consumer_gate` 41 passed.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 16, 2026 13:09
brettheap added a commit that referenced this pull request Sep 16, 2026
… all four suppressed findings

Four findings, every one of them right, every one answered with a measurement
rather than a concession.

§ 7.1 — the census no longer rests on one `kind:` string. The promoted
requirement keys on an artifact KIND and this packet's own
`domain-mapping-declaration` (spec.md:31-42) defines that kind STRUCTURALLY, as
a declaration covering exactly five axes, so a file could carry the structure
under any `kind:` word. The census is now taken a third way, over the axes
themselves, with the top-level keys the one real instance spells them with:
across codexFactory's 1,995 tracked files `artifact_kinds:` 0, `lifecycle:` 0,
`acts:` 0, `evidence_classes:` 0, `authorities:` 0, `gates:` 2 — no file reaches
two of the five, and the two that reach one are an autonomous-merge
operator-attestation template and its own fixture. Broadened to hyphenated
spellings and any indentation, and to the declaration's identity fields
`mapping_id` / `domain_label`, every one returns zero files. NONE YET now holds
by the literal, by the ten kinds actually declared, and by structure.

§ 5.2 — the five-vs-six divergence is RECONCILED rather than left standing.
`contracts/manifest.yaml` registers RELEASE CONTRACTS and says of itself "this
file's five `relocating.at:` values" (:1778); `ideation-workbench` was never in
it (`grep -c` 0, CHANGELOG 0, `git log -S` no commit), so it was never
registered and no sixth `relocating:` marker was ever owed. FIVE counts the
release contracts inside the deprecation window; SIX counts the carve-manifest
rows. Both are right about different populations.

§ 5.3 — R-4's discharge is of the OLD clause ("so a ruleset-pinned token
survives a file rename"), not of the new file's own obligation. #1059 carries
its own token: job id `openxdox-consumer-gate`, no display name, advisory until
an operator pins it, with the required-check wiring named as owed there.

§ 8.9 — "records and explains" is given a falsifiable FORM so R-6's relocation
cannot become a licence to choose an amount after seeing the run: the archive PR
records the baseline tree and invocation, the per-severity before/after vectors
across every family, and a named reason for every finding that entered or left,
diffed rather than netted. The house already does this where it works
(archive/2026-08-25-add-projection-title-uniqueness tasks.md:315-328).

`openspec validate split-opendox-two-layer-product --strict` valid.
Boxes unchanged at 47 [x] / 23 [ ] / 1 [~].

Refs #656 (stays OPEN).

Lane: openxfactory-4

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot round 4's one generated comment: `test_one_passing_occurrence_does_
not_excuse_a_skipped_one` opened with `""""Any non-passing occurrence wins"`,
so its rendered text began with a stray `"`. Rewritten as a sentence with the
quoted rule inside it, which also gives the case's second fact — a rerun
launders nothing, because a case that passed once and skipped once adjudicated
nothing that run — somewhere to live.

Swept the two modules for the same defect: no other docstring opens or closes
on a quote.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

🔵 Needs a closer look

The workflow and anti-vacuity checks require final human validation.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 16, 2026 13:14
`pycodestyle` MEASURED, not assumed: `tests/openxdox_consumer_gate/` carried
exactly two findings, both E302 from the last two insertions, while
`tests/openxwallet_consumer_gate/` — the sibling this suite was shaped from —
carries ZERO. The gate's numbers do not depend on a blank line, but shipping a
file that fails a check its own model passes is a defect in the small, and the
small is where this suite spends its authority.

Local: 69 passed, `pycodestyle --max-line-length=100` clean on both modules.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

🟡 Changes recommended

A critical unresolved finding shows the regression guard does not cover JUnit assertion run blocks, allowing failures to be masked.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 16, 2026 15:30

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.

🟡 Changes recommended

Four unresolved findings remain, including one critical workflow-install guard issue.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (5)

.github/workflows/openxdox-consumer-gate.yml:192

  • The workflow correctly restricts GITHUB_TOKEN to contents: read, but the companion suite never pins this permission. A later edit to contents: write would leave the required pytest-suite green while widening the token available to this pull-request-controlled job. Add an assertion that the workflow permissions remain exactly {"contents": "read"} (as tests/clearing/test_clearing_gate_wiring.py does).
permissions:
  contents: read

tests/openxdox_consumer_gate/test_openxdox_gate_adjudicator.py:399

  • The named-verdict coverage exercises skipped and failure children with the aggregate counters left at zero, but it never exercises an <error> child. If the shipped verdict() loses "error" from its outcome check, the existing aggregate-error test still fails only when errors=1; a report that under-reports that aggregate could then pass with a watched error case. Add the analogous regression case with a watched testcase containing <error/> while the aggregate error count remains zero.
def test_a_failing_watched_case_is_refused(tmp_path: Path) -> None:
    env = env_for(CONSUMER_REPORT)
    xml = report_xml(tests=int(env["MIN_SELECTED"]),
                     cases=[(c, n, "failure") for c, n in watched(env)])
    done = adjudicate(tmp_path, env, xml)

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:505

  • The suite checks have the same substring weakness: a run: value containing the expected pytest command plus a trailing shell action can pass in runs, while that trailing action can write a fabricated JUnit report for the next assertion to accept. Require each expected pytest command to equal one complete step (and occur once), rather than merely appearing in it.
    assert PIN_SUITES_RUN in runs, (
        f"the pin verifiers' own suites must be run exactly as "
        f"{PIN_SUITES_RUN!r}; they are what make each shipped digest a "
        f"MEASURED fact rather than a self-consistent one")
    assert CONSUMER_SUITE_RUN in runs, (

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:471

  • These checks use substring membership, so they do not pin the complete run: value. A future step such as python3 scripts/verify-openxdox-pin.py; ... (or an echo containing that text) would satisfy this assertion even though the verifier step was changed; extra shell commands could then swallow or replace the gate's evidence. Compare the full run string and require exactly one match for each critical invocation.
        assert invocation in runs, (

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:821

  • LITERAL_FORMS is the only regression-protected path for bare GITHUB_TOKEN, x-access-token, and ACTIONS_RUNTIME_TOKEN, but none of those literal forms is exercised by a doctored workflow. The expression cases below cover ${{ ... }} contexts, while the current workflow is clean, so removing or weakening these regexes would leave the companion suite green. Add cases that inject each literal into a job/workflow value and assert that bearer_sites() reports it.
LITERAL_FORMS: tuple[tuple[str, re.Pattern[str]], ...] = (
    ("`GITHUB_TOKEN`", re.compile(r"GITHUB_TOKEN")),
    ("`x-access-token`", re.compile(r"x-access-token", re.IGNORECASE)),
    ("`ACTIONS_RUNTIME_TOKEN`",
     re.compile(r"ACTIONS_RUNTIME_TOKEN", re.IGNORECASE)),
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

…mand

Copilot round 16, two generated, both bypasses of the vacuity guards
themselves — the one class this landing's own cap keeps open. Both taken, each
proved by introducing the defect.

THE SWALLOW GUARD READ FOUR COMMAND CONSTANTS, AND THE HOLE IS NOT IN THEM. The
two JUnit assertion steps are heredocs ending in `sys.exit(rc)`; `|| true`
appended to `python3 - <<'PY' … PY` exits 0 on a refusal while
`continue-on-error` stays absent and every floor, exact skip and named verdict
stays in the file — the gate green having adjudicated the report and thrown the
verdict away. Every `run:` in the job is now read (also for `; true` and
`set +e`), and the finding names the step. The workflow's one legitimate `||`
lives in a COMMENT, which is why this reads the PARSED `run:` values and not
the file's text. PROVED: `PY || true` on the pin-suites assertion reds the
guard, naming that step.

AND `"pip install" in run` IS NOT AN INSTALL. `run: echo 'pip install
--require-hashes …'` satisfies a substring test and installs nothing, leaving
the gate to adjudicate with whatever the runner image carried while this suite
reported the lock installed — and the ordering guard added one commit ago
matched the same way, so it would have agreed. The install is now matched as a
WHOLE normalized command against `INSTALL_RUN`, and the same normalization
(which folds the shell line-continuation the workflow writes) matches both
verifiers and both suites in the ordering guard. PROVED: replacing the install
with an echo of itself reds both the shape guard and the ordering guard.

Local: `tests/openxdox_consumer_gate` 69 passed; full-tree `--collect-only`
7492/7830 (338 deselected), no error; `pycodestyle --max-line-length=100` clean
on both modules. The workflow is untouched by this commit.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 16, 2026 15:51
Caught by running the checker rather than by eye, one commit too late — the
same measurement that found the two E302s. Both modules are clean again.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ee forms

The five SUPPRESSED findings of Copilot's review at `72bdac7f` — read from the
body rather than from the thread it generated, because a suppressed list is
where this review has put its best findings four times now. All five are real
and all five are taken here, each proved by introducing the defect.

WHOLE COMMANDS, NOT SUBSTRINGS, for the verifiers and the suites too. The
install learned this one commit ago; the same weakness sat in
`test_both_pins_are_verified_before_anything_pinned_is_trusted` and
`test_the_two_suites_are_invoked_exactly_and_separately`, where `invocation in
runs` is satisfied by `python3 scripts/verify-openxdox-pin.py; echo ok` — and,
worse, by a pytest line with a trailing shell action that writes a JUnit report
of its own for the next assertion to adjudicate. Each critical invocation must
now be EXACTLY one normalized step, counted once. PROVED: `; echo ok` on the
openXdox verifier reds the guard by name.

THE TOKEN'S SCOPE IS NOW PINNED. `permissions: {contents: read}` is what the
automatic token carries into a job that runs two pytest suites over
pull-request-controlled code, and nothing here read that block: a later
`contents: write`, or an added `packages:`/`id-token:`, would have widened it
with `pytest-suite` still green. Asserted as EQUALITY, the way
`tests/clearing/test_clearing_gate_wiring.py` pins its own gate's. PROVED:
`contents: write` reds it.

THE THIRD OUTCOME IS EXERCISED. `verdict()` reads `skipped`, `failure` and
`error`; the first two had cases and `error` had only the AGGREGATE test, which
fires on `errors="1"`. A report under-reporting that attribute while a watched
case carried `<error/>` would have been accepted if `"error"` were ever dropped
from the outcome tuple — and a collection error inside a watched module is
exactly how an uninitialized leg reports, which makes it the outcome least safe
to leave untested.

AND THE THREE LITERAL BEARER FORMS ARE EXERCISED, not merely listed.
`GITHUB_TOKEN`, `x-access-token` and `ACTIONS_RUNTIME_TOKEN` are the spellings
that need no `${{ }}` to reach a runner, and every existing case went through
the EXPRESSION rules, so weakening one of the three patterns left the suite
green. Each is now injected the way it would really arrive — as an `env:`
value, or inside the `git config` line whose bearer form this gate actually
shipped once. PROVED: with the `GITHUB_TOKEN` pattern removed, the doctored
document reports NOTHING.

Local: `tests/openxdox_consumer_gate` 74 passed; full-tree `--collect-only`
7497/7835 (338 deselected), no error; `pycodestyle --max-line-length=100` clean
on both modules. The workflow is untouched by this commit.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

🔵 Needs a closer look

The workflow and anti-vacuity logic are complex, and the validation-count discrepancy still warrants human review.

Review details

Suppressed comments (1)

tests/openxdox_consumer_gate/test_openxdox_gate_invocation.py:1

  • The PR description says this companion suite has 45 tests (24 in the invocation module and 21 in the adjudicator), but this head defines 30 test_ functions in this module alone and 21 in the sibling, with parametrization expanding the collected-case count further. Please update the validation inventory/counts to match the code at this head; the current figures make the reported proof coverage inaccurate.
"""The openDox/openXdox consumer gate's invocation, pinned as a test.
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 16, 2026 16:00
@sonarqubecloud

Copy link
Copy Markdown

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.

🟡 Changes recommended

The adjudicator accepts negative counters and the harness does not constrain report paths.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

.github/workflows/openxdox-consumer-gate.yml:573

  • This duplicated adjudicator has the same negative-counter bypass as the first copy: a negative failures or errors value is falsy and inflates the derived passed count, allowing a malformed report to exit successfully. Apply the same non-negative counter validation here as in the first body, and cover it with a regression test; otherwise the two byte-identical copies will remain fail-open for this report shape.
          selected = sum(int(s.get("tests", 0)) for s in suites)
          skipped = sum(int(s.get("skipped", 0)) for s in suites)
          failures = sum(int(s.get("failures", 0)) for s in suites)
          errors = sum(int(s.get("errors", 0)) for s in suites)
          passed = selected - skipped - failures - errors

tests/openxdox_consumer_gate/test_openxdox_gate_adjudicator.py:228

  • The PR description says these companion modules contain 45 tests (24 invocation + 21 adjudicator), but this head defines 32 test_ functions in the invocation module and 23 in the adjudicator module (with additional parametrized cases). Please update the validation/evidence count so it describes the submitted tree accurately.
def test_the_body_under_test_is_extracted_from_the_workflow() -> None:

tests/openxdox_consumer_gate/test_openxdox_gate_adjudicator.py:205

  • REPORT is extracted from the pull-request-controlled workflow, but joining an absolute or ..-containing value to tmp_path escapes the temporary fixture directory. That violates this module's hermeticity claim and lets a changed workflow make the harness overwrite an arbitrary reachable path before executing the body; validate that the report is a single relative filename (or enforce resolved-path containment) before writing it.
    (tmp_path / env["REPORT"]).write_text(xml, encoding="utf-8")
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Copilot round 8 at 446e437c generated 0 new comments and carried THREE SUPPRESSED ones in its review body (review 5223691176, 13:59:18Z — posted after the head was otherwise settled and every check green). Zero unresolved threads is not evidence a head was reviewed clean, so they are answered here. Two of the three are code and are FIXED in 08f438b7; the third is evidence and the body now carries it.

(1) — "root.iter("testcase") can find a watched testcase outside the direct <testsuite> children that supplied the aggregate counts." Correct, and it is the root hole of round 7 in a second shape. 446e437c scoped the SUMS to the direct <testsuite> children of <testsuites> and left the VERDICTS walking the whole document, so a report could take its floors from a real suite and its named verdicts from cases that suite never ran:

<testsuites>
  <testsuite name="pytest" tests="105" skipped="0" failures="0" errors="0"/>
  <elsewhere><testcase classname="tests.opendox_pin…" name="test_…"/>…</elsewhere>
</testsuites>

MEASURED against the previous body rather than argued: exit 0, selected=105 passed=105 skipped=0 failures=0 errors=0, and all four named verdicts passed — a green step that adjudicated nothing. Both bodies now walk suite.findall("testcase") over the counted suites only, and they are still byte-identical (the adjudicator module refuses to run if they ever diverge). test_a_watched_case_outside_the_counted_suites_is_not_a_verdict pins both placements — the watched cases beside the counted suite, and inside it under a container — and asserts the FLOORS are still met on those documents, so the case proves the verdict scope and not the sums.

Nothing a real run produces is refused with it, which is the half worth measuring before narrowing a walk: pytest writes every case as a direct child of the single <testsuite> it declares — 1137 direct = 1137 in the whole tree in this gate's own consumer report, 105 likewise in its pin report — and the shipped body, scoped, accepts both of those REAL CI reports at exit 0 with the same numbers and no ::error.

(2) — "the raw credential scan starts at jobs:, so it omits workflow-level env:." Also correct, and it is a hole in the guard this gate wrote to close its own hole. Actions hands a workflow-level env: block to every step of every job; a later edit could put GITHUB_TOKEN: ${{ github.token }} four lines ABOVE jobs: and every step of this gate would run holding a bearer over pull-request-controlled code while the guard stayed green.

bearer_sites() now reads the document twice, because each reading is blind where the other sees. The RAW pass still scans from \njobs: down — that catches a spelling arriving by a route no schema names (a shell interpolation in a run: body, a line of git config, a comment that is really a re-enabling instruction) and it starts there on purpose, so the header prose above may go on quoting the hole this gate shipped without failing the guard that closed it. The PARSED pass walks every key and every scalar of the whole document — on:, permissions:, concurrency:, a workflow-level env:, each job's env:, each step's with: and run: — where comments do not exist and position hides nothing. A failure now names WHERE, not only THAT.

PROVED BOTH WAYS on a doctored copy: with the bearer inserted above jobs:, the raw window is clean of every spelling (so the old reading passed that document — sites=[], measured by cutting the parsed half back out) and the parsed reading names <workflow>.env.GITHUB_TOKEN anyway. test_the_credential_guard_sees_a_bearer_written_above_the_jobs_key asserts both halves, so the proof is in the suite and not only in this comment.

(3) — "the CI evidence in the PR description is stale: run 35103077090 is reported as cancelled, and pytest-suite at the current head was still in progress." Fair, and the same catch round 7 made. 35103077090 was cancelled by the push that produced 446e437c (that workflow sets cancel-in-progress), and the id had been written into the body before it completed. It is gone from the body: the evidence names completed runs at the head they belong to, and nothing else.

Also corrected while in the file, from re-reading rather than from review: the credential test's docstring still carried the wallet suite's inherited sentence "${{ secrets. }} is the only spelling asserted absent", which stopped being true at round 7 when this guard began refusing five spellings.


Copilot round 9 at 08f438b7 generated ONE comment and carried THREE more SUPPRESSED (review 5224067810). All four are guards that could stay green over exactly the thing they claim to refuse, and all four are taken in 1d4af5a7. The generated one — the indexed expression forms — is answered in its own thread with the measurement table.

(4) — "this guard does not enforce the byte-untouched part it documents; it only checks that jobs still contains pytest-suite." Right about the mismatch, and the remedy is the second one offered: say what is pinned, do not pin more. The TOKEN is the invariant R-4 discharges — the job id a ruleset selects, still declared in pytest-suite.yml and deliberately not declared here, so two workflows never report one token. A digest of that file here would red on every lawful later edit to somebody else's required workflow and make this suite the reason that edit could not land, which is a worse gate than no gate. The byte-untouchedness claimed for THIS act is a property of its DIFF — three files, none of them pytest-suite.yml — which a reader verifies in the diff, not in a test. Now said in the docstring instead of implied by the test's name.

(5) — "this premise guard only scans WORKFLOWS.glob("*.yml"); Actions also loads .yaml." Correct, and the consequence is the sharp one: the test asserts R-4's PREMISE — that no dashboard-named workflow exists here — so a real ideation-dashboard.yaml would leave it reporting that none does, over a repository where § 5.3's original "convert" verb had just become live again. It reads both suffixes now. MEASURED by dropping exactly that file in: the single-suffix reading returns [], the two-suffix reading names ideation-dashboard.yaml, and the shipped test reds.

(6) — "the watch-presence check uses a raw "def name(" substring, so a renamed test can leave that text in a comment/docstring and keep this guard green." Correct, and this guard exists precisely to pre-empt the runner-side "absent" verdict, so a reading pytest does not share is the wrong reading. It now parses the module and requires a top-level FunctionDef/AsyncFunctionDef. PROVED on a real module rather than a synthetic one: with test_ruling_q7_two_direct_upstreams_in_lockstep renamed and its old spelling left inside the docstring above it, "def NAME(" in source is True while the parsed reading is False — and the shipped guard fails, naming the module and the rule. The module was restored; tests/openxdox_pin is green (98 passed with this directory).

And between the two rounds, one found by re-reading my own commit rather than by review (16389874): both new docstrings quoted the string the code searches for, escape and all — inside a plain """…""" the \n is a NEWLINE, not two characters of prose, so the rendered text broke mid-token. The prose now names the jobs: key; the code still searches for the escape, which is correct and unchanged. Swept both modules with ast.get_docstring over every module, class and function: no other escape survives into rendered text. Same class as the """" fixed at 5e1ff4c2.


Copilot round 10 at 16389874 (review 5224170195): 0 generated, 3 suppressed, and the round is a useful check on the two before it — two of its three had ALREADY been fixed at 1d4af5a7, which the round could not see because it reviewed the previous head: the *.yml-only glob (its own round-9 finding, repeated as "previously missed") and the indexed expression forms. The third is new, and right.

(7) — "this assertion selects only the first checkout step; adding a second actions/checkout would leave this check green while changing which tree later commands operate on." Correct, and it lands exactly on departure (b). next(...) is the FIRST of however many checkouts there are, and every guard in that file which says "the checkout" reads the first — so a job that checks out twice, the second without a path: and therefore at the workspace root, could arrive with all of them green while a later working-directory, a submodule init or a bare pytest ran against the root-shaped tree. A root-shaped tree is what turns thirteen cross-reference-gated assertions into skips; the gate's exact EXPECT_SKIPPED: "0" would catch it on the runner, but only after this required suite had said the invocation was sound.

Fixed in 6857c17e: test_the_checkout_lands_at_the_aggregation_shaped_path asserts there is EXACTLY ONE checkout before it reads that checkout's path, and says in its docstring why the count is the assertion that makes the file's other "the checkout" readings true. PROVED by adding exactly that second step to a copy of the workflow: the first-checkout reading answers path == "openxFactory" — green — while the shipped guard fails naming the count and the remedy.


Rounds 11 and 12 generated THREADS rather than suppressed lists, and both are answered there in full — three findings, all correct, all taken:

  • round 11 (1d4af5a7, 2 generated) — the secrets patterns were case-sensitive while the comment beside them claimed otherwise, so ${{ SECRETS.KEY }} and ${{ Secrets['KEY'] }} walked through; and nothing matched WHOLE-CONTEXT SERIALIZATION — ${{ toJSON(github) }} hands the entire context, token included, to whatever reads the value while spelling neither token nor secrets. Fixed in edb224e0 by replacing the enumeration with a structural reading: inside ${{ … }}, the secrets context in any case or syntax, the github context used as a VALUE rather than dereferenced (the shape of toJSON(github) and format('{0}', github)), and github.token however spelled. Measured over eleven forms — the substring reading of 08f438b7 missed seven, the pattern reading of 1d4af5a7 still missed five, the structural reading names all eleven — and proved in the other direction too, ${{ github.ref }} and its non-secret neighbours refused by nothing.

  • round 12 (6857c17e, 1 generated) — the sharpest of the twelve: this suite EXECUTES pull-request-controlled text. adjudicate() takes the assertion body out of the branch's own workflow file and hands it to bash -c inside the REQUIRED pytest-suite job, which at pytest-suite.yml:355-360 has already written https://x-access-token:${{ github.token }}@github.com/ into the runner's GLOBAL git config — and step_env() passed {**os.environ, **env}, so that child inherited the HOME, the config and every ambient variable while the file called itself hermetic. Verified in the tree, not taken on the reviewer's word. Fixed in 7b167fc7: a minimal environment (PATH, an isolated HOME, GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM at os.devnull, a locale, the step's five pins), with a case that plants the runner's exact shape and asks the child for it — token=unset, empty global config, the planted string nowhere — then runs the real body under that environment and still adjudicates to exit 0. It does NOT claim the required job is safe from a hostile pull request: pytest-suite collects every module in tests/ and a module is Python. It stops this module from being the shovel; retiring the rewrite is pytest-suite.yml's own act, which R-4 keeps out of this one.

  • round 13 (edb224e0, 2 suppressed) — two bypasses of the structural reading itself, both real, both fixed at 658f30e1. A COMPUTED index is still an index: the whole-context rule excludes [ and the indexed rule required the literal 'token', so ${{ github[format('{0}', 'token')] }} and ${{ github[env.PROPERTY] }} read the bearer through a guard that found NOTHING (measured under the edb224e0 rules). Any index on the github context is now refused, literal or computed — ${{ github['ref'] }} too, and the remedy is to write github.ref, which the clean side pins as accepted. And if: is an expression WITHOUT the braces: Actions evaluates if: github.token != '' exactly as the braced form, so a braces-only guard called it clean; bearer_forms_found now takes an unwrapped flag that the parsed walk sets for the if key, and the finding names the step. Five new regression rows, and the clean side gains if: github.event_name == 'pull_request', if: github.ref == 'refs/heads/main' and if: success().

  • round 14 (7b167fc7, 3 suppressed) — one already fixed at 658f30e1 (the computed index, which the round could not see: it reviewed the head before the fix) and two live, both taken at abbd70eb. step_env merged the step's env: AFTER the isolation, so an assertion step declaring HOME or GIT_CONFIG_GLOBAL would have overridden it — the same pull-request-controlled text reaching the credential by a shorter road than rewriting the body; MEASURED on that merge order, the child's HOME came back /hostile. The harness now carries an allowlist of the five pins and refuses anything else by name. And the checkout assertion claimed more than it pinned: actions/checkout DEFAULTS token to ${{ github.token }}, so the action's own fetch is authenticated whether or not the key appears — the message now says that what is pinned is the absence of any OTHER credential, with persist-credentials: false keeping the default out of the tree these suites then read, which is the property that matters when the exposure is test code reading a bearer off the disk. The anonymous token: '' form is measured as available (all three repositories public) and registered in the body as the next act's, since it changes a transport proved on thirteen runs.

  • round 15 (658f30e1, 2 generated + 1 suppressed) — the two generated ones are the class this suite exists for, and both are taken at 04780ec0. The checkout's PATH was pinned but not WHICH TREE: actions/checkout defaults to this repository at the pull request's MERGE ref, and ref: main, ref: ${{ github.event.pull_request.head.sha }} or repository: would have left every assertion here green while the gate judged the base, the unmerged head, or somebody else's tree — it may now declare neither input (proved with ref: main: the guard reds naming it). And conditional execution was unrefused: if: false on a verifier means no pin was checked, on a JUnit assertion means no report was adjudicated, on the job means nothing ran — and a skipped step reports SUCCESS, which no floor, exact skip count or named verdict can see, because a step that did not run writes nothing for them to read. No step and not the job may carry if: at all; the stricter rule is the honest one, since this gate has no conditional work and "only harmless conditions" would need a reader to adjudicate harmlessness on every edit (proved on the openXdox verifier). The suppressed one — the install's SHAPE checked but not its ORDER — is taken in the same commit: the install must follow setup-python and precede both verifiers and both suites, and setup-node must precede the consumer suite, whose fourteen JS-probe cases would otherwise skip into the refusal of EXPECT_SKIPPED: 0 one CI cycle later than here (proved by moving the install below the verifiers).

  • round 16's two generated (abbd70eb, 72bdac7f) — both vacuity by a shell road, both answered in their threads and fixed at d6bbde35. The swallow guard read four command CONSTANTS, so || true appended to either JUnit assertion heredoc would exit 0 on a refusal with continue-on-error still absent — the gate green having adjudicated the report and thrown the verdict away; every parsed run: in the job is now read for ||, ; true, || true and set +e, parsed because the workflow's one lawful || is in a comment saying it is deliberately absent. And "pip install" in run is satisfied by run: echo 'pip install …', which installs nothing: the install is now matched as a WHOLE normalized command, with the same normalization applied to both verifiers and both suites in the ordering guard.

  • round 16's suppressed five (72bdac7f) — read from the review BODY, which is where this reviewer has put its best findings four times now, and all five taken at 49b79d01, each proved by introducing the defect. The verifier and suite invocations were matched by SUBSTRING, so python3 scripts/verify-openxdox-pin.py; echo ok satisfied them — and worse, a pytest line with a trailing shell action could write a JUnit report of its own for the next assertion to adjudicate; each critical invocation must now be EXACTLY one normalized step, counted once. The workflow's permissions: block was read by nothing, so a later contents: write would have widened the token handed to a job that runs pull-request-controlled test code; it is now asserted EQUAL to {contents: read}. verdict()'s third outcome had only the aggregate test, so a watched <error/> case with errors="0" is now pinned — a collection error inside a watched module is exactly how an uninitialized leg reports. And the three LITERAL bearer forms — the spellings that need no ${{ }} to reach a runner — were listed but never exercised; each is now injected as an env: value or into the git config line whose bearer shape this gate once shipped, and removing the GITHUB_TOKEN pattern makes the doctored document report NOTHING.

A CAP, stated rather than left to drift. Nineteen reviews have been taken — one per head Copilot saw, 557cae4c through 72bdac7f, measured from the reviews API with pagination, the numbered rounds being the finding-bearing ones — and every finding fixed or answered with a measurement. The GATE itself — .github/workflows/openxdox-consumer-gate.yml — has not changed since 08f438b7; rounds 9 through 15 have all been depth in the companion suite that guards it, and each round reviews the head BEFORE the fix it prompted — round 14 repeated round 13's finding for exactly that reason. From here, a further round that names a hole in the gate, or one that would let the gate pass having adjudicated nothing, is still a fix; anything narrower is registered in the body and filed rather than held against the landing, which is already the estate's two-round-cap practice. The cap is now hard: each push is reviewed at the head BEFORE it, so a finding-for-fix-for-finding sequence has no fixed point. This landing takes its last round here; anything a later review raises is filed as an issue against the landed gate, with the same measurement discipline, rather than held against the landing.

WHERE THE CREDENTIAL GUARD ENDS UP, since five rounds moved it and a reader should not have to reconstruct it from the chronology. At the landing head bearer_sites reads a workflow document twice. The LITERAL forms — GITHUB_TOKEN, x-access-token, ACTIONS_RUNTIME_TOKEN — are matched anywhere, because they need no expression to reach a runner. The CONTEXT rules are matched inside ${{ … }}, and inside any if: value (which Actions evaluates as an expression with or without the braces): the secrets context in any case or syntax, since this gate reads three PUBLIC gitlinks and needs no secret at all; the github context used as a VALUE rather than dereferenced, which is the shape of toJSON(github) and format('{0}', github); github.token however spelled or spaced; and ANY index on the github context, literal or computed. Both readings run over the raw job body and over every key and scalar of the parsed document, so a workflow-level env: above jobs: is covered. Counted rather than estimated: sixteen cases pin the refusals — thirteen expression rows, each asserting first what the literal-substring reading of 08f438b7 saw (eleven of the thirteen it missed), plus three unwrapped if: conditions — and seven pin the acceptances: four braced dereferences (${{ github.ref }}, ${{ github.event_name }}, ${{ github.event.pull_request.head.sha }}, ${{ hashFiles(…) }}) and three conditions (if: github.event_name == 'pull_request', if: github.ref == 'refs/heads/main', if: success()).

Local at the landing head 49b79d01: tests/openxdox_consumer_gate 74 passed (48 invocation + 26 adjudicator), with every doctored copy restored, the tree clean and pycodestyle clean on both modules (measured: the two E302s the last insertions left are gone, and the sibling tests/openxwallet_consumer_gate/ is the zero this was measured against); full-tree --collect-only 7497/7835 (338 deselected), no error. CI at that head: openxdox-consumer-gate run 35118678267, pytest-suite run 35118678219. Threads 16/16 resolved, and rounds 8, 9, 10, 13, 14, 15 and 16's suppressed lists answered here.

Refs #656 (stays OPEN).

@brettheap
brettheap merged commit 7ab3dd8 into main Sep 16, 2026
16 checks passed
brettheap added a commit that referenced this pull request Sep 16, 2026
…nd it merged two hours before this commit — the status records the merge, the box does NOT tick

Copilot round 19 at `d1314f4d`, one fact finding and one already-registered
reading. The fact: § 5.3's status described its own discharging act as open.

Measured — #1059 MERGED as `7ab3dd80` at 2026-09-16T16:27:36Z, its merge commit
is on `main`, `.github/workflows/openxdox-consumer-gate.yml` stands there with
`name:` and job id both the single token `openxdox-consumer-gate`, and the gate
has REPORTED: it is a required check on this very pull request and went SUCCESS
at `d1314f4d` (run 35134189330). Both halves of the box's own tick condition are
therefore met.

The tick is NOT taken here, and the ledger does not move. The box says in its own
words that it ticks on that pull request and "not on this one"; this amendment's
CLAIM 5690461589 and RULED R-4 reach the PREMISE only; and 47 [x] / 23 [ ] /
1 [~] is what the claim, the description and the squash body all declare. The
tick belongs to the act that records #1059's discharge, together with the
required-check wiring that box still owes.

Round 19's other finding — § 4.1's "green in EVERY destination" read as a
measured result rather than as § 3.7's criterion — is the one answered by
measurement and registered for amendment #5 in comment 5702227094, and it stays
registered.

Ledger unchanged at 47 [x] / 23 [ ] / 1 [~]; `openspec validate --strict` valid;
`proposal-support verify` ok.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…a39141)

RULED 2026-09-16 by Brett Heap, in session (multichoice round), on the
governance note that put the register's 7→8 growth to him (PR #1029
issuecomment-5662333218): verbatim **"Keep the eighth entry"** — recorded at
issuecomment-5702650701. The growth is D3's disposition applied at the landing
head and not a count D3's ruling fixed; the baseline is the entries the
register holds WHEN the gate lands. The eighth entry
(`encode-wallet-authority-rulings-r6-r12`, class list-runs-into-prose) STANDS,
and the register lands at EIGHT on Brett Heap's word rather than on this lane's
reading alone. NOTHING THE RULING KEEPS IS EDITED: not `CLOSED_REGISTER`, not
the entry's declaration text, not its sha256 — a byte moved there would move
the digest, which is the one thing the closure pins.

Recorded in the three records the packet keeps this in, in the same words:
the entry's own `why:` in `scripts/code-surface-register.yaml`,
`CLOSED_REGISTER`'s provenance comment in `scripts/code_surface.py`, and
`tasks.md` § 3.4's eighth-carrier paragraph.

TENTH RE-MEASUREMENT, taken WITH the merge of `origin/main` `fa39141c`
(merged at `49007dc4`) rather than left for a later round:

  $ python3 scripts/validate-code-surface.py .     # exit 0
  code_surface: 47 active proposals, 47 declaring — 5 `none`, 34 a repository
  list, 8 named by the register, 0 outside the grammar.
    archive (read, never judged): 169 proposals, 123 declaring, 3 of them
    outside the grammar.
  $ python3 scripts/validate-scope-globs.py .      # exit 0

THE FIRST RE-MEASUREMENT SINCE THE SECOND AT WHICH THE ACTIVE CORPUS GREW, and
a measurement rather than an inference: `git diff --name-status
b1df95e..fa39141 -- 'openspec/changes/*/proposal.md'` is exactly two `A`
lines and nothing else — no `M`, no `D`, no `R`. `adopt-entry-grain-dispositions-form`
(#1050) declares a repository list (33 → 34) and `scope-pinned-arm-root-naming`
(#1052) declares `none` (4 → 5), the archive is UNMOVED at 169/123/3, BOTH
CONFORM and NEITHER is one of the eight — so no carrier arrived, NO ENTRY WENT
STALE (`scan().stale` is `()`) and the register stands at EIGHT untouched
(8 entries, `CLOSED_REGISTER` length 8, equal). Of the 6 commits `main` gained,
not one touches `gate-code-surface-declarations/`, `code_surface.py` or
`code-surface-register.yaml` — the two filings above, an openDox walked-root
admission (#1067), another packet's tasks § 3.4 amendment (#1035), the
openDox/openXdox consumer gate (#1059) and the `retired:` row-form carve
(#1032) — and the merge resolved ZERO conflicts. THE SCENARIO FIRED A NINTH
TIME AND AGAIN COST NOTHING; the ninth's "as this transcript/file stands" is
demoted to "at that re-measurement" in the same edit, since a clause that means
"latest" has to move every time the latest does.

tests/code_surface 153, tests/scope_globs 99, tests/target_release 96, 348 for
the three suites, all unchanged by the merge and by this edit. `OPENSPEC_TELEMETRY=0
openspec validate gate-code-surface-declarations --strict` — valid.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…it was RUN, and § 5.3's "nothing is left owed" narrowed to what was measured

Copilot round 1 on #1078 (review 5228750887, 21:54:12Z): 2 suppressed comments,
0 threads, both real, both about this amendment's own new text.

1 · THE REPLACEMENT PROOF WAS NOT REPRODUCIBLE AS QUOTED. `git log … --name-only`
prints one line per matching COMMIT, not one per path, so the quoted command
returns 177 path lines and not the sixteen the box claims — the `sort -u` it was
actually run with had been left out of the quotation. Fixed, and the whole
instrument re-measured on the finding's other two points: `--full-history` added
and it changes nothing (16 with, 16 without — simplification drops only commits
whose change did not survive a merge, and every add here did); `--all` named as
DELIBERATE, with the base-scoped variant quoted beside it (15 paths, the one that
drops being proof-1-6a-codexfactory-app-install.yml, already named as gone).
`dashboard|ideation` matches 0 under every variant; --diff-filter=R with
--full-history still returns nothing at all. The conclusion is unmoved; the
quotation was wrong and is now the command as run.

2 · "NOTHING IN THIS BOX IS LEFT OWED TO A LATER ACT" OVER-REACHED. The tick
stands — the box's condition is about the ruleset and ruleset 23554310 is live —
but #1059's shipped files still describe the gate as it stood six minutes before
that ruleset existed. Measured and named: openxdox-consumer-gate.yml:48-56,
test_openxdox_gate_invocation.py:8-11, test_openxdox_gate_adjudicator.py:10,
openxdox-pin.yaml:119-120 and opendox-pin.yaml:156-158. All five were true at
authoring and are stale from 2026-09-16T16:33:22Z. Their repair belongs to an act
that CLAIMS those files, on this repository's own precedent for the identical
class: split-openxwallet-repo corrected README's "advisory until an operator
marks it required" in place, with its history stated, from the act that owned the
surface.

Ledger unchanged at 48/22/1. openspec validate --strict valid; proposal-support
verify ok.

Refs #656 (stays OPEN). CLAIM 5704937336.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
… wiring sentence in § 5.3, closing the class rather than the instance

Copilot round 3 on #1078 (review 5228812594 @dde9dfa2, 22:01:48Z): 1 thread,
naming lines 2110 and 2127. Half of it was already fixed at d727332 (:2110,
"which is still owed") and half was not, which is the half that matters: :2127's
"It is ADVISORY on the day it lands ... so the required-check WIRING is named as
owed there rather than claimed here" sits inside amendment #4's R-4 parenthetical
and read as current state.

Put in the past tense and marked as amendment #4's snapshot of 2026-09-16 before
16:33:22Z, superseded by the record immediately below it. The RULE the clause
states -- a check must report before it can be pinned, and pinning is a human act
on a human-only surface -- is unchanged and still true; what changed is that this
gate has now been through it.

Sweep re-run over the whole § 5.3 box for the class: the only remaining
present-tense "owes" is "The NEW gate still owes a stable token of its own, and
#1059 carries it", which resolves itself in its own sentence and is about the
TOKEN, not the ruleset.

Also de-duplicated the ruling id in § 7.4's header, which named 5704187317 twice
in one sentence.

Ledger unchanged at 48/22/1. openspec validate --strict valid.

Refs #656 (stays OPEN). CLAIM 5704937336.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…coded, four ticks by ruling and three on evidence (#1058)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN). Encodes RULINGS R-1..R-6 (#656 comment 5690428146, Brett Heap, 2026-09-16, by interactive multi-choice) into `split-opendox-two-layer-product/tasks.md`, and discharges three § 8 archive-gate lines on the evidence comment 5690559647.

FOUR ticks by ruling — § 4.1 (R-1, the residue accounting re-derived at today's heads), § 5.2 (R-2, re-scoped to DQ-1's kept set and ticked on #940 → cc4ae9d), § 7.1 and § 7.2 (R-3, "ruled: not yet", on the § 7.2 empty-boundary REPORT 5690553188 posted before the boxes moved).

THREE ticks on evidence 5690559647 — § 8.1 (six repositories, six ACTIVE rulesets, 265 validate runs), § 8.6 (ideation-intent-plane in canon, seven requirements, change archived), § 8.8 (417 repositories enumerated across four estate orgs, six dox-named, all six the product's own).

ONE marker change — § 7.3 → `[~]`, the house's reserved DEFERRED form, because `scripts/proposal-support.py`:4609-4610 refuses an archive whose tasks.md still matches `^- \[ \]`.

TEXTUAL amendments without ticks — § 5.1 and § 8.7 (R-5, BOTH gitlinks; the aggregation re-point xFactory #453 → 514605fb landed 2026-09-16T12:46Z and the equality was KEPT through it, not restored), § 5.3 (R-4, a NEW openxdox-consumer-gate.yml; the act is #1059), § 8.9 (R-6, "records and explains", given a falsifiable BASE→HEAD form).

Ledger 40/31/0 → 47 [x] / 23 [ ] / 1 [~]. 23 Copilot reviews were submitted on this pull request and nineteen were taken as numbered rounds. Rounds 14-17 were answered together at landing in comment 5702227094 — eighteen suppressed comments, ten distinct findings, four fixed because they falsify a landed fact and six answered by measurement and registered for tasks.md amendment #5 — and rounds 18 and 19 in comments 5702473458 and 5702674145, four more fixed and two more registered. Not one round opened a thread; threads stand at 14 total, 0 unresolved, which is why every round was read as a BODY. Every finding measured rather than conceded, including several counts of this amendment's own that did not reproduce. What the later rounds added: § 7.1's census is now FOUR axes over all five registered domain trees — the `kind:` literal, the ten literals actually declared, the five-axis STRUCTURE, and the MODIFIED delta's own COMMITTED TENANT INSTALL (290 tenant/client/install records across the five, zero declaring a descendant instance); § 5.2's kept set reconciles row by row (107 of the 117 inside the old deletion list's nine surfaces, ten outside, with the units named); § 7.2's empty-boundary report is backed by a four-org live enumeration (417 repositories, six dox-named, all six the product's own). ONE question is REGISTERED rather than resolved: scenario 4 of the MODIFIED `domain-descendant-boundary` delta, read alone, would make OpsxFactory's committed openDox plane for the estate's own tenant a profile artifact, while the requirement's own body, scenario 2, `design.md`:741-743 and `proposal.md`:297-300 all read it as an install OF A DESCENDANT. Both readings are written into § 7.1, the tension is named as a defect in this packet's own delta text, and the live reading is filed at § 7.4. §§ 7.1/7.2 tick on RULED R-3. It was RULED while this amendment was open — #656 comment 5700622683, 2026-09-16T16:06:59Z, Brett Heap by interactive multi-choice — as a delta-text defect whose repair is owed from a later SPEC-DELTA amendment, which is the disposition the box had already taken and now cites.

AT LANDING. #1035 (amendment #3) merged as c5f6845, this pull request was retargeted from its branch to main, and main was merged in at f7a1572 — never rebased — resolving eight conflicts in tasks.md: six took main (amendment #3's own final text) and two took this branch (§ 4.1's "5 routed to openDox", never "lawfully", because R-1 ruled the accounting, and § 4.1's R-1 STATUS block, which main does not carry). The ledger was then re-derived against the landed file: main carries 40 [x] / 31 [ ] / 0 [~], this branch adds exactly amendment #4's seven ticks and moves § 7.3 to [~]. Seven fixes in the last four rounds answer findings that falsify landed facts rather than prose, and nothing else was edited: § 8.6's tick, which claims an archive gate is still true of main today, re-read at c5f6845 — the main this branch merged, a commit in this pull request's own history, so the claim cannot go stale before the merge — with the same 7,606 bytes and seven requirement headings (feb34a4); § 5.2's "deletes 117 rows DQ-1 keeps" corrected to the 107 its own reconciliation measures, 94 in the five surfaces the old list names by directory and 13 in the four it names by file, with the other ten outside its reach (feb34a4); and § 7.1's census command, which the box promises is pasteable, rewritten in POSIX classes with both halves of its union quoted, because on the macOS grep this packet names twice the GNU \s is a literal s and the kind: half silently returns zero — the POSIX form returns the byte-identical file list, so the 290-record census is unmoved (27a4f6e). Then round 18: § 4.1's self-reference named tasks.md:1164-1176 for "§ 3.7's own evidence" when that range is § 3.7's box header — the measurement is at :1194-1205 and the quoted closing sentence is line :1206 — and the last two GNU-only escapes left the packet's quoted commands, so that no command in it carries a non-POSIX escape (d1314f4). And round 19: § 5.3 described its own discharging act as open when #1059 had merged as 7ab3dd8 at 16:27:36Z, with the workflow on main under the single token openxdox-consumer-gate and the gate reporting SUCCESS on this very pull request; the status records the merge and both halves of the box's tick condition, and the box still does NOT tick, because it says in its own words that it ticks on that pull request and not on this one (cbc3a2c). Four findings are registered rather than fixed for exactly one reason — they are not this amendment's text, and git diff against main proves it: § 7.3's "When the ruling lands", the § 1 census's tasks.md:347 and design.md:868 cites (measured: :595 and :981), § 1.8's README position "at this amendment's own head" (measured: :1708, not :1813), and § 4.1's "green in EVERY destination" criterion clause. Every replacement value is measured and written down so amendment #5 re-derives nothing.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…RULED 5704187317 on § 7.4, three status records, and the eight residues registered on #1058 (#1078)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: [`5704937336`](#656 (comment))

**`split-opendox-two-layer-product` `tasks.md` AMENDMENT #5 — one tick the packet already owed, one ruling, FOUR status records, and the eight prose residues amendment #4 registered rather than swept.**

**Rule 6** — this touches `openspec/changes/`. **Base is now `main`**: #1058 LANDED 2026-09-17T13:16:04Z as **`ec5069bc`** (a SQUASH), and this pull request was retargeted and merged forward the same hour.

### The merge forward, and why taking this branch's `tasks.md` drops nothing

#1058 merged as a **squash**, so `cbc3a2c6` is not an ancestor of `main` and `tasks.md` conflicts by construction — both sides changed it since the merge-base `c5f68457`. **Resolved to this branch, and that is provable rather than a preference:** measured before the merge, `origin/main:tasks.md`, `cbc3a2c6:tasks.md` and `5b84cce8:tasks.md` are **byte-identical**, sha256 `b9e878608a757c3ea79b14efd6826c14e1ab7260ae4a0d114e30a5a03032af84`. The squash carried this branch's base byte for byte, and the `gh pr update-branch` merge that produced `5b84cce8` changed **27 other files and not this one**. So `main` contributes nothing to `tasks.md` that this branch does not already carry. The resolved file is byte-identical to `e907bb93`'s (sha256 `aff35df14ef3ea870b5d729d0e4899bb71ad8557156c36261dfbc803afa6ea6e`); everything else `main` brings in is taken as `main` states it, including both submodule gitlinks (`openDox` → `c4c5014d`, `openXdox` → `88a1047e`), which were materialized with `git submodule update` and never `git add`ed. Merged, never rebased, with the lane trailers on the merge commit.

**Ledger 47 `[x]` / 23 `[ ]` / 1 `[~]` → 49 `[x]` / 22 `[ ]` / 1 `[~]` (71 → 72).** Three marker changes and one new box: **§ 5.3 ticks**, **§ 8.7 ticks**, and **§ 4.5a enters as a new OPEN box**.

### The three additions of 2026-09-17, all ruled or landed the same day

* **NEW BOX § 4.5a `[oXd]` — RULED Q-X1 (a)** ([`5715212264`](#656 (comment))). *BUILD the corpus-adapter IMPLEMENTATION* — `design.md` § D4 machinery **(1)**, the one of the seven § 4.5 did not name — parameterized by the § 4.4 domain profile and proved on § 3.7's neutral corpus; exit evidence `--destination openxdox_code` → **`OK — 17 of 17`**. A NEW box on this packet's own `Na` precedent (§ 2.2a, § 5.2a, § 5.6a), and it states **why § 4.5 did not already cover it**: § 4.5 named three of § D4's seven machineries and ticked on all three landing, and the reader § 3.7 asks openXdox for is the one none of them named. § 4.1 stays a carve box. **Q-X2 (a)** rides in the same box: openXdox's reader is the neutral, profile-parameterized reader, and **RULING Q4's clause *"over openxFactory's corpus and check families"* (`5542823211`) is recorded SUPERSEDED by C2 (`5544370242`) + DQ-1** — struck from force, not from the record, in this packet's no-deletion style; Q4's standing clause is untouched and is exactly what the box performs. **Q-X3 (a)**: `CorpusShape` carries `kind_field` and `required_fields_by_kind` as construction data, no spec or schema change. **STATUS**: CLAIM `5715212503`, building now off `openXdox-code` `589adee7`, where `--destination openxdox_code` still refuses `conformance-adapter-undeclared`.
* **§ 3.7's STATUS — RULED Q-F1/Q-F2/Q-F3** ([`5714365086`](#656 (comment))). **The verdict does not move and the box does not tick**; what changes is that both missing readers now have rulings and pull requests. Q-F1 (a): the DESTINATION transposes the corpus and says so, `openxFactory` shipping ONE neutral corpus — with both the privileged route and the delete-*"EVERY"* route DECLINED, the second being precisely the shape this box's own status already calls *"FLOOR PART 3 deleted to tick FLOOR PART 3"* (act: oxF **#1086**, draft). Q-F2/Q-F3 (a) land in **openDox-code #26**. Measured today: **openDox 11 of 17, openXdox no reader at all** (its build is § 4.5a), control `openxFactory` **17 of 17**.
* **§ 8.7 TICKS on pin lockstep #3** — the act its own STATUS said would carry it, since R-5 ruled the wording and left the verdict to the claiming act. Chain: openDox **#9 → `c4c5014d`** · openXdox-code **#21 → `2529c10a`** · openXdox **#11 → `88a1047e`** · openxFactory **#1084 → `dc015d7a`** · xFactory **#458 → `b660266686025b7e38863d6186ccab5139d96ba7`** (13:33:10Z, on Brett Heap's word, R-5). **The equality is re-derived here from the trees rather than transcribed from the act that made it**, which is the point of a check that only ever runs after a re-point:

| read | `openDox` | `openXdox` |
|---|---|---|
| aggregation gitlink at `b6602666` | `c4c5014d` | `88a1047e` |
| `openxFactory`'s own nested gitlink at `dc015d7a` | `c4c5014d` | `88a1047e` |
| `openxFactory`'s pin file `commit:` at `dc015d7a` | `c4c5014d` | `88a1047e` |

and the aggregation's own `openxFactory` gitlink at `b6602666` is **`dc015d7a`**, the very commit those pin files belong to. **The invariant was KEPT across the lockstep, not repaired by it** — the third such passage this box records, and it says which of the two it saw.

---

## 1 · The tick, and why amendment #4 was right not to take it

§ 5.3 is the `openxdox-consumer-gate` box. Amendment #4 recorded both halves of its tick condition as met and **declined the tick**, because the box says in its own words that it ticks on #1059 *"and not on this one"*, and #4's claim and RULED R-4 reach the PREMISE only. This is the act that records #1059's discharge, which is what the box names as the tick's owner.

Re-measured here rather than carried forward:

| what the box requires | measured |
|---|---|
| #1059 merged | **`7ab3dd80`**, 2026-09-16T16:27:36Z, merge commit on `main` |
| the new gate exists with a stable token | `.github/workflows/openxdox-consumer-gate.yml` at `main`, `name:` and job id both the single token `openxdox-consumer-gate`, **no job display name** |
| the gate has REPORTED | required check on #1058, SUCCESS at `d1314f4d` (run `35134189330`) and at `cbc3a2c6` |

**And the obligation the box named as still open is closed too.** Its own closing line says the required-check WIRING *"is named as owed there rather than claimed here"*, because making a check required is *"a human act on a human-only surface"*. That act happened **six minutes after the merge**: ruleset **`23554310`**, *"openxFactory consumer-gate (require openxdox-consumer-gate)"*, `target: branch`, `enforcement: active`, `conditions.ref_name.include: ["~DEFAULT_BRANCH"]`, a single `required_status_checks` rule whose sole context is `openxdox-consumer-gate`, `created_at` **2026-09-16T16:33:22Z**. Recorded with the ruleset's identifiers rather than as "the wiring landed", because a ruleset is the one class of evidence in this packet that lives outside git and can be re-queried from nowhere else.

**Three of amendment #4's self-references are re-spelled** — *"this amendment"*, *"not on this one"*, *"NOT TAKEN HERE"* → *amendment #4*. They were unambiguous while #4 was the only amendment in the box; with a second one below them a reader meets a `[x]` box that says three times it does not tick. Disambiguating a pronoun is a currency fix, not a re-wording of what ratification was over — the same line § 1's stale coordinates are repaired on and § 7.3's ratified sentence is left alone on.

## 2 · § 7.4 — RULED `5704187317`, SPLIT AND NARROW

Brett Heap, 2026-09-16T20:40:06Z, by interactive multi-choice, on one question from this lane's § 7.4 actor; measurement banked at `brett-wip` `fb3e0821`. **The box does not tick.** Four dispositions, all four written into it:

* **(A) A SECOND § 7.4 DELTA-TEXT DEFECT, RECORDED IN THE CLASS OF RULED `5700622683`.** This packet's `design.md` lists under **## Non-goals**, verbatim at `:133-134`, *"Resolving codexFactory's false `stack.yaml` digest declaration, or the `openxdox` DNS record's ungoverned status, **beyond naming them**"* — while the closing sentence of § 7.4 says that record *"is governed here"*. Two pieces of ratified text in ONE packet that cannot both be executed. `design.md`:101-103 supplies the measured state they disagree about, in the same sentence that carries the workload coordinate. Recorded for repair by an act that CLAIMS the delta; not silently corrected.
* **(B)** the DNS sentence is **discharged by NAMING**, per the packet's own Non-goal; the reach widening is lane `opsXfactory-4`'s `add-governed-dns-administration` under OQ-E word `5649809425`.
* **(D)** the `dox` workload set's per-tenant declaration is **left for the § 3.5 realization**; its requirement sits under lane `opsXfactory-3`'s claim `5638511222`. *(The coordinate the box quotes has moved — the workload set is at `workflows/aks-administration.yaml`:733-753 at OpsxFactory `7e15da58`, not `:412-431`. Recorded, NOT re-pointed: ratified text, and a quotation is bound to the tree it was written against.)*
* **(E)** this lane authors **only** a `credential-contracts` MODIFIED delta in `openxFactory` carrying the per-tenant App-Manifest PROVISIONING shape. Options (2) and (3) were declined.

The box now states its own tick condition so a later reader does not re-derive it: **(i)** this ruling, **(ii)** the landed delta of (E), **(iii)** § 3.5's per-tenant evidence. Only (i) is in hand. It stays `[ ]` and not `[~]` — the deferred form § 7.3 wears is for an act with no subject to perform on, and this one has a subject and an authored next step.

## 3 · Two more status records that do NOT tick

**§ 6.4 — the destination half has landed.** `opensoft/openDox-spec` **#12 MERGED → `edeed08c`**, 2026-09-16T17:37:41Z. **Byte-identity re-verified here at both ends rather than quoted from #12's body**: the delta reads **3,557 bytes**, digest **`1754e5d3f9803ea80b4e8a177fda8359a96d6c4b1024fce69893ee3cb3d716e1`**, identical at openxFactory `cb2d3a2c` and at openDox-spec `main`. A § 6 disposition is TWO acts and it is the CLOSURE that discharges the box, so § 6.4 ticks on **#1056** — open, Rule-6 sequenced — and not on its receiving half. The same ordering discipline § 5.3 applies to #1059.

**§ 5.2a — the id this task owes is authored.** **`openxfactory-engineering-adapter`**, in `repromote-engineering-vocabulary`, **#1071** (opened 2026-09-16T19:22:04Z, CLAIM `5703096449`). It is a FILING ONLY — `Status: draft` on all three lifecycle documents — so the box ticks on its landing, not on its opening. Recorded because three live acts were blocked on the id's absence: § 5.6's de-floor, § 8.4's both-directions accounting, and the two open § 6 closures #1060 and #1065.

## 4 · The eight residues — six repaired, two recorded

Registered under decision (b) on #1058 at comments **`5702227094`** (six, from Copilot rounds 14-17), **`5702495415`** and **`5702674145`** (two more, found by this lane's own sweeps rather than by a review). Every replacement value was measured when it was registered; each was **re-measured here** before it was written.

| # | where | disposition |
|---|---|---|
| 5 | § 5.2's column heading | **repaired** — the unit is files PRESENT, not files kept |
| 6 | § 5.2's disposition vector | **repaired** — recorded invariant at three trees |
| 7 | § 7.3's *"When the ruling lands"* | **recorded, not repaired** — ratified text |
| 8 | § 5.3's `--diff-filter=A` query | **repaired** — replaced by the rename-proof query |
| 9 | § 4.1's *"green in EVERY destination"* | **repaired** — criterion split from result |
| 10 | § 7.1's *"LIVE"* | **repaired** — withdrawn against the naming record |
| sweep | § 1's `tasks.md`:347 / `design.md`:868 | **repaired** — `:595` / `:981` |
| sweep | § 1.8's README position claim | **repaired as to its coordinates** |

**The measurements, since this packet's rule is that a body is measured and not transcribed:**

* **§ 5.2's heading.** The column's unit is FILES PRESENT after the carve. Measured cell by cell at `b075fd91` → `cc4ae9d3` across the five surfaces named by DIRECTORY — the only ones where "kept ROWS" is the same population as "files": `scripts/ideation_dashboard/` 63 → 9 present = 9 kept rows, `web/` 43 → 1 = 1, `tests/ideation_dashboard/` 4 → 0 = 0, `examples/ideation-dashboard/` 140 → 44 = 44, and **`tests/ideation-dashboard/` 157 → 42 present against 40 kept rows** — the two being `conftest.py` and `staging_shapes.py`, both `not_moved / replicated_at_destination`, which the box already discloses three lines above the table. The four cells named by FILE are counted on the old deletion list's own populations, which amendment #4 reconciled as subsets by design, so "kept rows" was never their unit either. **One heading was wrong and no number was.**
* **§ 5.2's vector.** `docs/opendox-carve-manifest.yaml`: **456 rows, 143 / 175 / 138, 117 kept** (103 adapter + 14 governance) at `main` `cb2d3a2c`, at `main` `c5f68457`, and at this amendment's base `cbc3a2c6` — identical at all three. The row's own label *"`main` `cb2d3a2c`, and this branch"* had never been verified across the two base merges that happened under it.
* **§ 5.3's instrument.** `--diff-filter=A` cannot carry *"never carried a dashboard-named workflow"*, because a rename reports as `R`. `git log --all --no-renames --pretty=format: --name-only -- .github/workflows/` decomposes every rename into a delete plus an add and returns **16 distinct paths ever**, **none matching `dashboard|ideation`**; `git log --all --diff-filter=R -- .github/workflows/` returns **nothing at all** — no rename has ever touched that directory, which is why the weaker query happened to be complete. The sixteen exceed the thirteen counted at `cb2d3a2c` because that count is files PRESENT at one tree and this one is paths EVER across all refs.
* **§ 4.1's grammar.** The criterion clause and the result clause were joined by a pair of dashes, so the first read alone as a measured PASS — the opposite of what the next clause records. Now separated into what § 3.7 ASKS and what it ANSWERS. No figure moves and no gate loosens; the result is still one pass (`openxfactory` OK — 17 of 17) and four `conformance-adapter-undeclared`.
* **§ 7.1's *"LIVE"*.** The QUOTATION is verbatim-accurate at OpsxFactory `6aa1512c`; what is not accurate is this packet's own word. `docs/openxdox-naming.md` **Amendment 1 (2026-08-14)**, `:84-89`: *"`openxdox.opensoft.dev` replaces `dox-opensoft-qa.xforge.us` … the legacy names are cut dead at switchover — no dual-host period and no redirect"*. **The RECORD is active and the HOST is retired.** The census verdict is invariant either way — § 7.1 turns on a `<Domainx>Dox` DESCENDANT instance and never on liveness — which is why this is a wording repair and not a re-measurement. That OpsxFactory's record is stale against the naming amendment is a finding about OpsxFactory's tree, raised there.
* **§ 1's two coordinates.** They read `tasks.md`:347 and `design.md`:868. Measured: `:347` of this file is a `gh api` tree read of the openDox root; the casefold discussion is at **`:595`** here and **`:981`** in `design.md`. Neither number was right at any tree checked. Now cited with the tree they were read at, because the quotation is the durable half of such a citation.
* **§ 1.8's README positions.** The box's whole thesis is that this block's line numbers move under every archival act — and the sentence asserting it had, within three commits, cited one that moved. Measured at six trees: `README.md`:**1775** (`8944758c`), :**1875** (`0a835098`), :**1813** (`cb2d3a2c`), :**1708** (`c5f68457` and `cbc3a2c6`), :**1836** (`main` `4cef77af`) — **five positions across six trees**. The `30,410` citations beside it are **exact at all six** (`design.md` 2, `proposal.md` 2, the RECORD 1), re-measured here.
* **§ 7.3, recorded and NOT repaired.** *"When the ruling lands"* is the packet's OWN RATIFIED TEXT: it enters at `ceb6dc9e`, the commit that ratified this packet (#666), stands identically at `main`, and amendment #4 only MOVED it out of the box header into the body while re-marking the box `[~]`. Re-wording ratified specification text is a spec-delta-class act — exactly the disposition RULED `5700622683` gave § 7.1's scenario-4 delta defect. A bookkeeping amendment fixes stale COORDINATES and does not re-word what ratification was over. The correct trigger is quoted beside the record so the repairing act re-derives nothing.

---

## Review rounds

**Copilot round 1** (`1788f7f2`, review `5228750887`, 21:54:12Z): **2 suppressed comments, 0 threads, both real, both FIXED at `dde9dfa2`** — answer comment [`5705165398`](#1078 (comment)).

1. **The rename-proof query was not reproducible as quoted.** `git log … --name-only` prints one line per matching COMMIT, not one per path: as first quoted it returns **177** path lines, not sixteen — the `sort -u` it was run with had been left out of the quotation. The command in the box is now the command as run, and the instrument was re-measured on the finding's other two points: **`--full-history` added and it changes nothing** (16 with, 16 without); **`--all` is deliberate** and makes the claim stronger than the box needs, with the base-scoped variant quoted beside it (**15**, the one path dropping being `proof-1-6a-codexfactory-app-install.yml`, already named as gone). `dashboard|ideation` matches **0** under every variant; `--diff-filter=R --full-history` still returns **nothing at all**. The conclusion is unmoved.
2. **§ 5.3's *"nothing is left owed to a later act"* over-reached.** The tick stands — the box's condition is about the ruleset and `23554310` is live — but #1059's shipped files still describe the gate as it stood six minutes before that ruleset existed: `openxdox-consumer-gate.yml`:48-56, `test_openxdox_gate_invocation.py`:8-11, `test_openxdox_gate_adjudicator.py`:10, `openxdox-pin.yaml`:119-120, `opendox-pin.yaml`:156-158. **All five true at authoring, stale from 2026-09-16T16:33:22Z.** Registered rather than repaired here, on this repository's own precedent for the identical class: `split-openxwallet-repo` corrected README's *"advisory until an operator marks it required"* **in place, from the act that owned the surface**, with its history stated (archive `tasks.md`:972-974; the corrected text at `README.md`:3026-3029).

**Copilot round 2** (`15388e8b`, review `5228778196`, 21:58:02Z): **2 suppressed comments, 0 threads, both real, both FIXED at `d727332e`** — answer comment [`5705203361`](#1078 (comment)).

1. **Two present-tense answers to one question.** Amendment #4's record still read *"which is still owed and still a human act on a human-only surface"* twenty lines above amendment #5's record closing exactly that obligation. Scoped to its own moment (2026-09-16, before 16:33:22Z). This was the **fourth** of #4's self-references this amendment re-spells and the only one that was a STATUS rather than a pronoun.
2. **(A), (B), (D), (E) with no (C).** They are the **ruling's own** labels over the **five** measured reads the § 7.4 actor put to it. **Read (C) was the DNS widening's MECHANICS** — a five-place lockstep whose first place sits in `opensoft/Opensoft-Tenant`, a repository this lane holds no clone of and no claim in — and the ruling **folds it into (B)** rather than disposing of it separately, which is why (B)'s sentence names the lockstep and that repository. Said in the box, so the gap reads as the ruling's shape. The finding's second half is taken too: the options are a **second** enumeration and all three are now named, with **(1) SPLIT AND NARROW** marked as the one taken.

**Copilot round 3** (`dde9dfa2`, review `5228812594`, 22:01:48Z): **1 thread, answered and RESOLVED, fixed at `c5ecbbc9`** — answer comment [`5705231687`](#1078 (comment)). It named `:2110` (already fixed at `d727332e`, which the review predates) and `:2127` (not yet, and the one that mattered): *"It is ADVISORY on the day it lands … so the required-check WIRING is named as owed there rather than claimed here"*, inside amendment #4's R-4 parenthetical, reading as current state. Now past tense and marked as #4's snapshot, superseded by the record below it. **The class was then re-swept over the whole box**: the only remaining present-tense "owes" resolves itself in its own sentence and is about the TOKEN, not the wiring.

**Copilot round 4** (`c5ecbbc9`, review `5228829531`, 22:03:43Z): **empty body, 0 comments, 0 threads** — a round that enumerates nothing.

**Copilot round 5** (`d727332e`, review `5228847347`, 22:06:14Z): **4 suppressed comments, 0 threads, all four real, all four FIXED at `1b1a22d0`** — answer comment [`5705281122`](#1078 (comment)).

1. **`--diff-filter=R` does not enable rename detection**, so an empty `R` set from a plain `git log` proves nothing. `--find-renames` added, and re-measured three ways — `--find-renames`, `-M`, `-M50%` — each returning **nothing at all** over `.github/workflows/`, and the same query over all of `.github/` finding no rename either. Conclusion unmoved.
2. **Three positional self-references**, and the third is the best finding on this pull request: `tasks.md`:595 is the wrong coordinate **in the tree being reviewed** (it is `:609` there). **Both numbers are right** — `:595` is where the casefold paragraph sits at the base `cbc3a2c6`, and this amendment's own insertions moved it fourteen lines, **inside one pull request, in the very paragraph repairing two stale coordinates**. § 1.8's thesis demonstrated a third time. The in-file half of the citation is now a **sentence**; `design.md`:981 keeps its number because this branch does not touch that file. The other two (*"four lines up"*, *"one line below this note"*) are anchored to the sentences they mean, and the class was swept beyond the three flagged.

**Copilot round 6** (`c5ecbbc9`, review `5228879214`, 22:10:33Z): **3 suppressed comments — one already fixed at `1b1a22d0`, two real and FIXED at `9cb2d23b`** — answer comment [`5705328045`](#1078 (comment)).

1. ***"it is a required check on this very pull request"*** is amendment #4's sentence, written when #1058 was the only pull request carrying the box; copied forward it names **#1078** and attributes to it a run that happened on **#1058**. Bound by number. **This is the seventh of amendment #4's sentences this amendment binds to amendment #4** — three pronouns, two statuses, one pull-request reference, one position — and the count, which had itself gone stale three times inside this pull request, is now stated by class in the box with that history (`e907bb93`).
2. **§ 5.2a said *"three live acts"* over a list of four.** #1071's own body counts three, treating the pair of § 6 closures as one class. Both counts are now said, enumeration unchanged: **three classes, four open acts**.

**Tally across six rounds: twelve findings, eleven distinct, all real, all fixed; one thread opened and resolved; ten of the twelve sat in the SUPPRESSED block.** Every one was about this amendment's own new text — the class decision (b) sends to a fix. **Under decision (b) the amendment now HOLDS at this head**: further rounds would re-read settled text, and this is a DRAFT stacked on #1058 with no landing pending.

**Copilot round 7** (`1b1a22d0`, review `5228902838`, 22:13:44Z): **🟢 Approval recommended** — its one finding (§ 5.2a's count) had been fixed at `9cb2d23b` three minutes earlier. No edit owed, none made. Note [`5705336646`](#1078 (comment)).

**And one finding carried over from #1058 after that pull request merged** (`ddb68b51`). Review `5226920310` on #1058 (`cbc3a2c6`, 2026-09-16T18:45:17Z) arrived after that head was frozen and carried a second suppressed finding nothing had answered: `Finding.match_key()`'s docstring says identity is *"family + path"* while the method returns `(family, repo, path)`. Measured — **the packet's quotation is verbatim and it already stated the true tuple first**, so nothing in it was inaccurate; but the two were set side by side as though they agreed, and the docstring's omission of `repo` could be read as the packet's claim. § 8.9 now says the docstring **understates its own key**, that **the RETURN governs** because it is what every caller compares, and that findings from different repositories therefore do not collide. The imprecision is `doc_health`'s own and is raised there. Answered on #1058 at [`5715028704`](#1058 (comment)), repaired here.

Plus one **self-verification** commit before any review (`15388e8b`): `design.md`'s cite in § 7.4's new STATUS bound to the sentence it names (`:101-103`, quoted whole) rather than to the paragraph, and `credential-contracts` cited by its requirement TITLE with the line beside it.

---

## Gates at `ddb68b51`

* `OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict` → **valid**
* `python3 scripts/proposal-support.py . verify split-opendox-two-layer-product` → **ok**
* `python3 scripts/validate-sequenced-after.py . --ledger-diff` → **clean** (214 rows)
* Ledger read from the file: **48 `[x]` / 22 `[ ]` / 1 `[~]`** = 71, unchanged in total
* One file changes: `openspec/changes/split-opendox-two-layer-product/tasks.md`. No submodule gitlink moves.

## What this does NOT do

* **It does not merge.** Rule 6; the lane orchestrator opens the window.
* **It does not repair a spec delta.** § 7.1's scenario-4 defect and § 7.4's Non-goals contradiction are both RECORDED, on the disposition `5700622683` gave the first of them.
* **It does not touch OpsxFactory, Omnigent-Install, openDox or openXdox.** § 7.4's (B), (D) and (E) each name their owner and stop.
* **It does not tick § 7.4, § 6.4 or § 5.2a.** Each carries its status and the condition it still waits on.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…endox § 6.1, RULING Q6) (#1060)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**`split-opendox-two-layer-product` § 6.1 — `add-nightly-dashboard-refresh` is CLOSED AS RE-HOMED to `opensoft/openXdox`.** The THIRD of the five frozen changes RULING Q6 disposes of, **the only one whose destination is openXdox**, and the one § 6.1 itself calls *"the one genuine conflict RULING Q6 names"*. Receiving half: **[openXdox-spec #15](opensoft/openXdox-spec#15 — **the first change RE-HOMED INTO openXdox** (not that repository's first OpenSpec change: it already carries the archived `2026-09-11-add-openxdox-projection-surfaces` and the promoted `openspec/specs/openxdox-projection-surfaces/`, measured 2026-09-18).

**Rule 6** — this PR touches `openspec/changes/`. Brought to READY, **NOT landed**; the lane orchestrator sequences the window.

> **LANDING ORDER, SETTLED.** This PR was stacked on [#1057](#1057) (§ 6.3) and, through it, on [#1056](#1056) (§ 6.4), because all three edit the README "OpenSpec Records" block at the same anchor and each re-seeds the sweep ledger. **Both have LANDED** — #1056 at `3e32d987` (squash) and #1057 at `4ccab7b9` (merge commit) — and this PR's base **is already `main`**; the re-point is done, not owed. It needs no squashed-base recipe: #1057's merge-commit form left the chain's ancestry intact, so `git merge origin/main` was clean. **Land by `--merge`**: a squash would re-date this packet's archive directory and red `main`, which is exactly what #1106/#1109 had to repair after #1056's squash.

## Two capability deltas, disposed on different terms — that IS § 6.1

| delta | disposition | how it travelled |
| --- | --- | --- |
| `ideation-dashboard`<br>1 ADDED + 1 MODIFIED | re-homes whole to openXdox. The MODIFIED, *Runtime snapshot fetch with baked fallback and displayed freshness*, is one of the FOUR promoted titles the split packet's § THE SIBLING COLLISION table (a) names | **BYTE-IDENTICAL** — 6,663 B, `sha256 50fd14ba376b9c718b28d219ccdc402593ee93e65be619a950d8eed5923b56e6`, `diff`-verified against #15. `grep -c openxFactory` over it → **0**, so no subject edit was owed and none was made |
| `doc-health`<br>7 ADDED | § 6.1: *"they do NOT travel and are NOT added to `openxFactory`"* | **Satisfied absolutely**: this closure promotes NO delta at all, and at the destination they land on openXdox's own `openxdox-refresh-lane` — never on a `doc-health` capability. Carried with **exactly one line changed**, the delta file's capability heading |

`design.md` § D9 reads the refresh lane as **projection-mechanism work**, which is why this one goes to openXdox while the other four go to openDox.

## THE ONE SUBSTANTIVE JUDGEMENT IN THIS ARC, DECLARED RATHER THAN BURIED

§ D9 asks that the seven be *"re-authored against the adapter IN openXdox"*. **That re-authoring is NAMED at the destination, not performed.**

§ 6.4's and § 6.3's deltas contained the string `openxFactory` **zero** times and travelled untouched. These seven are openxFactory-nightly-specific in their **ANTECEDENTS**, not in a subject noun — *"The nightly doc-health run SHALL include an ideation-dashboard IMAGE REFRESH lane"*, *"the aggregation's `openxFactory` submodule pin"*, the Omnigent artifact worker, a named registry. Re-pointing that is not the carve seam's declared subject edit (*"the subject `openxFactory SHALL` becomes the receiving repository's"*); it is a rewrite of what each obligation is ABOUT.

**And the adapter does not exist in any corpus today.** `corpus-adapter-seam` is an unpromoted delta of this same packet; the successor capability id is its § 5.2a, unbuilt. Seven requirements authored against an undeclared seam would have to be authored again the moment the seam is declared.

So openXdox-spec #15 carries the re-authoring as a blocked open box (`tasks.md` § 2.1) and **bars ratifying the seven** until it lands (§ 2.2) — openXdox would otherwise be ratifying obligations about another repository's nightly run. **If Brett rules it should be performed now rather than named, this lane will take that ruling and re-do the receiving change under it.**

## THE LOCKSTEP PAIR THIS ARCHIVE RETIRES

`scripts/target-release-register.yaml` carried an `implementation_pending` entry for this change. Its own `retires_when:` read:

> the declaration is corrected to the target it realizes on, **or the packet archives**.

It archived — by the **second limb**, and by a route its author did not have in view: closed as re-homed rather than realized. The register effect is exactly the one the text named: the declaration leaves the ACTIVE corpus the register scans, and **`Report.stale` REFUSES until the entry is deleted**, so the entry MUST go.

**THE PAIR IS A DIFFERENT OBLIGATION, AND THIS BODY SAID OTHERWISE.** An earlier draft — and the record, the register comment and the test comment with it — attributed the `CLOSED_REGISTER` deletion to a rule in `scripts/target_release.py`. The module says the opposite in its own words:

> **A BASELINE MAY BE A STRICT SUPERSET, AND USUALLY WILL BE**: removal is lawful (a corrected declaration or an archived packet retires its entry, and `Report.stale` REFUSES until the entry is deleted), so a pair stays here after its entry goes. **This is a ceiling, never a floor.**

Its *"in the same pull request, where the diff shows the act for what it is"* sentence governs **ADDING** a pair the baseline does not carry — the addable direction the register refuses — not removing one. Copilot read that correctly, and all four places are corrected at `e24a63fc`.

So the pair moves as a **DELIBERATE BASELINE SHRINK**: lawful, in the same diff as the entry because that is where the movement is legible, and taken at all because a ceiling left standing over a retired entry is a line nothing reconciles again. The baseline falls from **21 pairs to 20**, `tests/target_release/test_target_release_gate.py`'s size literal follows it, and each carries the reason beside it rather than being renumbered. `pytest -q tests/target_release` → **96 passed**.

This is the same class of coupling § 6.4 found at `contracts/openspec-cli-pin.yaml`, and it was found the same way: **by grep before the move**, not by a red gate after it.

## The other twelve grep hits are citations BY IDENTITY, and none is edited

`scripts/dashboard-refresh-nightly.py`, `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `.github/workflows/doc-health-reusable.yml`, two `tests/ideation-dashboard/` suites, `tests/sequenced_after/test_sweep.py`'s MOVEMENT LOG narrative, this repository's own `modified-block-currency` note, and two archived `.openspec.yaml` files. Every one stays true unedited under `release-realization`'s *A packet reference resolves by identity, not by path* (landed 2026-09-15): the archive relocation moves the path and keeps the identity. **No archived byte is touched.** `contracts/openspec-cli-pin.yaml` carries no disposition for this change — checked, not assumed.

## What stays

- **The aggregation-side artifact-only worker** (`tasks.md` § 6.1). No workflow moves, here or at the destination.
- **`doc-health` itself**, unchanged in both directions: nothing added to it, nothing taken from it.

## Evidence — first taken at `e24a63fc`, RE-MEASURED since

`e24a63fc` is HISTORICAL: it was this branch's tip when the figures below were first taken. The promotion-fidelity figure was **re-measured at `36ff06a9`** (the merge of `main` after § 6.3 landed) and reads the same — `0 critical, 15 error, 0 warning, 0 info`, nine of the fifteen this packet's. The current head is **`a677fa7b`**, where the plain `validate-sequenced-after.py .` is exit 0 and **402 passed** across the doc-health self-gate, `tests/sequenced_after` and `tests/target_release`.

| check | clean `main` `cb2d3a2c` | at this head |
| --- | --- | --- |
| `validate-openspec-cli-pin.py --all` (`openspec validate --all --strict` through the pin) | exit 0, `106 passed, 2 failed (108 items)`, 2 accepted exceptions | **exit 0**, `104 passed, 1 failed (105 items)`, 1 accepted exception — three fewer items (the three closed packets), survivor still `add-chain-attestation` |
| `pytest -q tests/openspec_cli_pin tests/doc-health tests/sequenced_after tests/pin_registrations tests/target_release` | — | **2431 passed**, 0 failed (452 s) |
| `pytest -q tests/target_release` | — | **96 passed** |
| sweep ledger `--ledger-diff` | consistent, 214 rows | **consistent, 214 rows**; this row re-seeded `{state: archived, … moved_by: "#1060", moved_on: "2026-09-16"}` |
| doc-health `--single-repo --family promotion-fidelity` | `0 critical, 0 error, 0 warning, 0 info` | **`0 critical, 15 error, 0 warning, 0 info`** — 1 from § 6.4, 5 from § 6.3, **9 from this closure**, every one named below |

**The nine, measured and named** (they are the two deltas read requirement by requirement):

- `specs/doc-health/spec.md` — **seven**, one per ADDED title absent from `openspec/specs/doc-health/spec.md`. **These are the § 6.1 conflict seen from the checker's side**: the box says they are NOT added to `openxFactory`, the checker says the ratified delta did not reach canon, and both are true of this tree. The disposition records which one is the instruction.
- `specs/ideation-dashboard/spec.md` — **two**: the ADDED *The served plane's baked artifacts are rebaked on a schedule at one revision*, absent from canon; and the MODIFIED *Runtime snapshot fetch with baked fallback and displayed freshness*, which reached canon without 2 of its 6 ratified scenarios.

## Copilot's readings, taken at `e24a63fc` (historical head; later rounds at `36ff06a9`, `b126e7b3` and `a677fa7b` are in the thread and the commits)

- **The lockstep claim** — corrected in all four places it was made (above). The 21 → 20 assertion is unchanged and still sound; only the explanation beside it moves.
- **The three `#1058` provenance references** — a pre-written PR number (#1058 and #1059 went to other lanes) — were corrected at `9dbb0599`, which also seeded the sweep-ledger row this review found stale. All four sites name **#1060**.
- **The archive-route rationale** — "both always promote" is false of the pinned CLI (`--skip-specs` measured at `1.12.0`); narrowed to the true and stronger reason: the governed wrapper refuses this packet outright on its **thirteen** open tasks.
- **`tasks.md` § 6.6 is not the disposition gate** — § 8.5 and § 8.9 are.

## The one cost, stated up front

Same as §§ 6.4 and 6.3: `document-lifecycle`'s *Ratified spec deltas reach the promoted specification* attaches the promotion obligation to the ARCHIVE ACT; this packet declares `Status: ratified`, unedited; `promotion_fidelity.py` carries it at `_LAUNCH_SEVERITY = ERROR`. The discharge is the second one the checker's own action text names — *"or record the non-promotion as deliberate"* — through `health/dispositions.yaml` at the **xFactory aggregation root**, filed once for the five closures rather than five times — not `tasks.md` § 6.6, which is the separate rule that no new dashboard change opens here; the gate is § 8.5 and the severity reading is § 8.9's. **This packet needs TWO entries**, one per delta file. The second is worth reading twice: it disposes findings against a `doc-health` delta that RULING Q6 says must never reach `doc-health` — the disposition and the ruling agreeing, not a suppression. A `--single-repo` self-gate run applies no disposition (the loader's own docstring says so), so both numbers are reported.

## Sibling search 2026-09-16T01:4xZ

Open PRs in all four repositories: openxFactory #1057 #1056 (this lane's), #1052 #1051 #1050 #1044 #1043 #1035 #1032 #1031 #1029 #594 #518; openDox-spec #13 #12 (this lane's), #11; openXdox-spec #15 (this lane's), #3 (`ideation/` documents only). **NOT ONE touches `openspec/changes/add-nightly-dashboard-refresh/`, `scripts/target-release-register.yaml` or `scripts/target_release.py`.**

**Disclosed rather than skipped:** the SHARED checkout `/workspace/projects/xFactory/openxFactory` (detached at `6612d323`, no branch) carries **stale uncommitted edits to exactly this packet** — `design.md`, `proposal.md`, `tasks.md` and `specs/doc-health/spec.md`, +150/−38, file mtimes **2026-09-01**. Two weeks old and abandoned; not a lane's live work. This closure is authored from a clean clone of `main`. Named so that if anyone does claim them, the collision is already on the record.

Refs #656 (stays OPEN). CLAIM [`5690599915`](#656 (comment)).

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…ord the batch-3 landing word at sections 3.5 and 3.6 without ticking them

Section 6.5 TICKS on #1065 -> 8190328, merged 2026-09-18T17:54:08Z, "Close
add-lens-document-selection as re-homed to openDox, with the intra-requirement
split named", RULINGS Q6 + DQ-1. The landing rule held on both clauses again:
two parents, the 2026-09-16- directory keeps a 2026-09-16T13:29:40Z adding
commit (49ec794), and the archive-date arm re-run on origin/main merged with
the candidate exits 0.

The SPLIT is what makes this box the awkward one and the closure names it rather
than eliding it: the set-builder half re-homes while the doc_health.staging_seed
drafter and route stay in openxFactory's own adapter, so the requirement is
divided within itself. A re-home that moved the whole requirement would have
been the easier record and the false one.

Sections 3.5 and 3.6 take a STATUS and deliberately do NOT tick (RULED
2026-09-18 17:55Z, #656 comment 5734029578): openDox-code #25 and #26 take a
third mini-batch for three security items and then land on that word. The word
authorizes the LANDING and the box ticks on the landing -- the same two-act
ordering section 6 uses for a disposition and section 5.3 used for #1059.

Item (4), the OPENDOX_SERVED_DATABASE declaration, is a follow-up act under the
same claim and is deliberately NOT in batch 3. That is written into both STATUS
sentences so a reader meeting #25's or #26's landing does not expect the
declaration in it, nor read its absence as an omission.

#1065 also comes out of the "remaining section 6 closures" list, the fourth
repair of that forward reference in this amendment; #1066 and #1103 remain.

origin/main merged in at 8190328. Ledger 55 -> 56 [x] / 15 [ ] / 1 [~] of 72;
one file; seven marker changes (5.2a, 5.5, 6.1, 6.3, 6.4, 6.5, 8.3). All four
validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…LED 5815412869 C4) (#1154)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

## What this is

This is D-16 of the owed-acts register. `contracts/openxdox-pin.yaml` said *"A resync runbook written for THIS consumption is owed and does not yet exist"*, and its `resync_runbook:` named openXdox's own `README.md#the-lockstep-invariant` as a stand-in. RULED at #656 comment [5815412869](#656 (comment)) (item 3, **C4, option (a)**: *"the openXdox-pin resync runbook lands as one small PR after review"*) and claimed at [5815620605](#656 (comment)). Landing word: *"land the C1, C3 and C4 PRs when green"*. The holder lands this PR. I do not merge it.

## What changes

| file | change |
| --- | --- |
| `docs/openxdox-pin-resync-runbook.md` | **new**, `Status: draft`, `Kind: runbook`, eight sections. It started as the helper bank's draft, re-verified against `main` `dd2466ad` command by command, and then went through eight Copilot rounds (below). Every command it gives fails closed or fails fast, and every one has been run as committed. |
| `README.md` | one doc-index entry, beside the openXdox dispatch-credential binding runbook |
| `contracts/openxdox-pin.yaml` | `resync_runbook:` now names the runbook, and the owed-gap paragraph above it is rewritten. The paragraph above `verify_pin:` still said the verifier was *"not yet wired into any required check"*. It is corrected in the same lines (`:152-153`), because `openxdox-consumer-gate` is a required check (ruleset 23554310) and has run it on every PR since #1059. **The `commit`, the digest and the gitlink do not move.** |
| `scripts/verify-openxdox-pin.py` | The `REMEDIATION` trailer now names `docs/openxdox-pin-resync-runbook.md`. `neutral-product-pin` requires every refusal to name *"the path of the pin-resync runbook"*, and the openXwallet verifier's trailer already names its own. Four stale docstring blocks are corrected in place: `:89-90`, `:99-101`, `:103-105` and `:155-157`. |
| `tests/openxdox_pin/test_openxdox_pin_verifier.py` | The one assertion that pins that trailer follows it. The docstring's dirty-checkout sentence (`:859-860`) gets the same correction as the verifier's. |

**No cited line moves.**
- The promoted `openspec/specs/document-lifecycle/spec.md` cites `contracts/openxdox-pin.yaml:76-79,92-94` and `scripts/verify-openxdox-pin.py:257` through `:329`.
- The active `add-neutral-product-standalone-operability` design cites the pin's `:106-108`.
- `amend-neutral-product-pin-source-tree-digest` cites `verify-openxdox-pin.py:19`, `:158-163` and the test's `:264-265`.
- `scripts/doc_health/pin_shapes.py` cites `verify-openxdox-pin.py:186-187`.

All three edited files keep their exact line counts (154, 626 and 1036), and every edit is in place, so each cited line still holds the content it held.

## What the re-verification corrected in the draft

- **§ 2 (the verifier).** The draft said "four checks". The verifier runs shape guards first: `_pinned_commit` refuses `openxdox-pin-tag-only`, and `_pinned_tree_digest` refuses a malformed `tree_sha256`. Then come the four ordered checks, with five refusal codes in all, plus `pin-unreadable` outside the vocabulary. Check 2 reads the INDEX when the gitlink is staged, so after `git add openXdox` the verifier reports `gitlink read from the index`.
- **§ 3 (the advance).** The draft gave only a pseudo-code digest recipe. The section now has three things:
  - an independent recompute that can be run, reproducing the recorded digest at each of four openXdox commits;
  - the forced leg → root → openxFactory order, with openXdox#18's re-point from PR head `39d8937e` to landed `626f2c8d` as the precedent;
  - the grep for the old sha in the pin's prose, and the by-line citations that make line count and position matter.
- **§ 4 (the lockstep).** This now has the exact comparison, and the measured history: openXdox `646f1dc0`, `cd2596a2` and `2f3f857d` all derive openDox `dc7aa08f`. That is why #1146 and #1148 moved this pin alone. #1084 is the `DIFFERENT` precedent.
- **§ 5 (the gates).** The draft reported *"105 tests, 90 passed, 15 failed"* from an uninitialized clone. This section now gives the environment both workflows set up, then their exact command blocks, floors and named verdicts. It also records a local gotcha: a checkout under any other directory name than `openxFactory` skips 13 ideation tests.
- **§ 6 (the migration triple).** The facts are re-measured, and the check is now fail-closed. The one `UNCONFIRMED` is kept as the draft stated it.

## Copilot rounds

Every thread is resolved with its measurement, and each overview's other items are answered in a PR comment.

| round | review at | overview | fixed at |
| --- | --- | --- | --- |
| 1 | `d7afc3c2` | 🟡: two threads (whether the consumer gate is required; PyYAML's failure behaviour); the digest read could pass on a failed `ls-tree`; sibling staging; stale verifier docstrings | `4a050955` |
| 2 | `4a050955` | 🟡: two threads (step 3 did not fail closed; an abbreviated sha in an example); the step 5 heading contradicted its bullet | `d06bb121` |
| 3 | `d06bb121` | 🟡: one thread (a failed `git` call left a traceback, not `REFUSE`); § 4 accepted two malformed equal commits as lockstep (measured: rc 0 on `"abc"` == `"abc"`) | `5ae23f96` |
| 4 | `5ae23f96` | 🔵, no findings. I re-read every command against its workflow and found three § 5 mismatches, plus § 6's shell-unsafe placeholder | `3302e814` |
| 5 | `3302e814` | 🟡: one thread (a host-absolute placeholder); § 6 did not validate `COMMIT` | `baddd6f3` |
| 6 | `baddd6f3` | 🔵, no findings; one "previously missed" item: § 5 did not give the workflows' environment setup | `51fd78d2` |
| 7 | `51fd78d2` | 🔵, no findings: *"unresolved fail-closed error-handling issues and documentation corrections"*. I re-audited every block and pasted § 3 into an interactive zsh: two blocks carried `#` comments, which zsh passes on as arguments, and § 2's success line was inexact | `db09c2c4` |
| 8 | `db09c2c4` | 🔵, no findings: *"pinned-core validation, dependency handling, and migration-range comparison"*. All three were real: nothing checked the pinned core's commit; § 4 needed PyYAML before § 5's setup; § 6 checked one commit, not the bump's range | `bc36cc09` |

At `bc36cc09` the overview reads 🟢 *"Approval recommended — only minor documentation nits remain, with no approval-blocking issues identified"*, with **Findings: None**.

## Measured (local full clones named `openxFactory`)

The kit replicates every PR-triggered gate from `.github/workflows/*.yml`. It ran over `baddd6f3`, beside `main` `dd2466ad`, this branch's base. `51fd78d2`, `db09c2c4` and `bc36cc09` change only the runbook's text. Those changes are re-measured by doc-health and by running each changed block as committed.

| gate | `main` `dd2466ad` | this branch |
| --- | --- | --- |
| both verifiers | `OK … openXdox@2f3f857d … (149dc2cd…)`, `OK … openDox@dc7aa08f …` | same |
| the other twelve validator steps the PR gates run: openXwallet pin, clearing dispatch, release-tag, signed chain, wallet syntax and validation, factory identity, OpenSpec CLI pin `--all`, openRepoShape pin, carve manifest, sequenced-after, former-id arrival | rc 0 (the arrival gate needs a range, so it runs on the branch only) | rc 0 |
| consumer gate: pin suites | 105 / 105 / 0, 4 named verdicts passed | same |
| consumer gate: ideation | 1137 / 1137 / 0, named verdict passed | same |
| `pytest-suite`, local | 3 failed, 8 skipped | 2 failed, 6 skipped, 0 new failures |
| doc-health `--single-repo --as-of 2026-09-24` | 31 critical, 25 error, 52 warning, 20 info | identical, apart from the draft-age info line (this runbook is a new draft) |

- **The local `pytest-suite` failures are not this PR's.** The two left are `test_validator_cli::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]` and `test_snapshot_equivalence::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on`. Both fail identically at `main` `dd2466ad`. The per-test junit diff shows no test whose outcome worsened. The three that changed are network-dependent `test_pin_reachability` cases, which improved.
- **CI is green.** `pytest-suite` passes at `baddd6f3`, and all twelve checks pass at `bc36cc09`.
- **§ 5's blocks, run as committed** (fences extracted from the file):
  - the setup chain gave rc 0;
  - the consumer chain gave rc 0 (both OK lines, `105 passed`, `1137 passed`);
  - the `pytest-suite` chain with `CORE_CHECKOUT` unset stopped at its first link with rc 1;
  - the `pytest-suite` chain with it set ran through to the end, as it stood at `51fd78d2`, before round 8 added the pinned-core link:
    - the installer put `openspec` 1.12.0 on PATH, so none of the three `tests/proposal-support` tests skipped;
    - 8857 cases: 8850 passed, 6 skipped, 1 failed, the same local-only `test_validator_cli` failure as `main`;
    - both named verdicts, the freshness verifier and the vector replay, passed.
- **§ 3, run end to end** in an interactive `zsh -f -i` under a pty, in a simulation clone with push disabled, with `NEW_SHA=069fe471…`:
  - every step gave rc 0, and the digest came out `3ad15b72…`, the one #1157 records;
  - with the checkout wrong, step 7's chain refused with rc 1.
- **§ 5's pinned-core check**: the codexFactory core at `b21f0100` gives `OK`, rc 0. An openDox-code checkout, a directory that is not a git checkout, or an unset `CORE_CHECKOUT` each refuse with rc 1.
- **§ 4 and the core check without PyYAML** each refuse with rc 1, naming the setup block.
- **§ 6's range check**:
  - over the advance to `069fe471` it reports 0 changed and 0 present for the root (`2f3f857d` → `069fe471`), for code (`626f2c8d` → `e28930bf`) and for spec (unchanged);
  - over openDox-code `52b237e8` → `aca94ecb` it lists six added migration paths;
  - an abbreviated, empty or absent commit gives `REFUSE`, rc 1.

## Touches

- **Rule 6: no landing window.** Nothing under `openspec/changes/`, and not the README OpenSpec Records block.
- **The shared pin file.** C3's openXdox pin bump is open as #1157 and edits this pin's `:109` `commit:` and `:127` `tree_sha256`. This PR edits `:152-153`. `git merge-tree --write-tree` of the two heads is clean: the result keeps 154 lines, with #1157's `commit:` and digest and this PR's prose. Whichever lands second merges `main` in.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.

3 participants