Skip to content

Reserving the dashboard is one command, and the plane leaves /tmp - #167

Merged
brettheap merged 1 commit into
mainfrom
tooling/reserve-dashboard
Aug 13, 2026
Merged

brettheap merged 1 commit into
mainfrom
tooling/reserve-dashboard

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Two power cuts in two days (2026-08-12 07:34, 2026-08-13 05:53) took the local
multi-repository dashboard down. Both recoveries worked only because a
fourteen-argument argv file happened to still be sitting in a DEAD session's
/tmp scratchpad — along with the plane's fourteen snapshots. Neither belonged
there, and neither is a recovery plan.

scripts/reserve-dashboard.sh replaces the two-command runbook recipe with one
idempotent command: --status, --stop, --rebuild, --supervise, and a bare
invocation that ensures the plane and serves. Three properties the manual recipe
could not have:

  • The plane has a durable home under XDG state
    (~/.local/state/xfactory-dashboard/local-plane, XF_DASHBOARD_PLANE
    overrides), so it no longer depends on a /tmp directory surviving a reboot.
  • The argument list is DERIVED, never remembered. The serving checkout is the
    repository the script lives in; the aggregation root is the nearest ancestor
    carrying project-register.yaml; and one --source-root is emitted per
    repository the lane ACTUALLY published, read back out of the index.json it
    just wrote — so the serve cannot disagree with the plane about who is in it.
    openxFactory resolves to the serving checkout, because that is the tree the
    gate acts on.
  • It is safe to run when already up, which is what makes it the right thing to
    type after a power cut without checking first.

It also refuses to find the serve with pgrep -f serve: that pattern matches the
shell running the pgrep, which bit this project twice in one session (once
reporting a phantom serve, once when a pkill killed its own shell). The port
holder comes from ss -ltnp instead.

THE SYSTEMD UNIT IS COMMITTED READY, NOT WORKING, and its header says so with the
measurement: this host has [boot] systemd=false in /etc/wsl.conf, PID 1 is
init(Ubuntu-24.04), and systemctl --user answers "System has not been booted
with systemd as init system." So --supervise is the restart path that works
today — a loop in one process, which survives a CRASH and not a reboot. The unit
carries the four enabling steps plus loginctl enable-linger, marked required
rather than optional: without lingering a user unit waits for a login, so a power
cut with nobody logged in still leaves the dashboard down, which is the exact
failure this is meant to end. The two non-systemd boot routes ([boot] command=,
Windows Task Scheduler at logon) are named there too.

Verified rather than reasoned about:

  • cold start — stopped the hand-started serve, ran the script with no plane at
    all: published all 14 repositories into the new home, derived 42 args with 0
    unresolved source roots, served, and answered with 16 index entries, full
    session/gate/edit authority, and the model catalog at 200. Identical to what
    it replaced.
  • --supervise on port 8799 (so 8765 stayed up): killed the serve at pid
    311292, the supervisor brought up 313090. Test processes cleaned up.
  • idempotence — a bare invocation while up exits 0 saying so, touching nothing.
  • tests/ideation-dashboard: 2850 passed / 5 skipped / exit 0, read directly.
  • doc-health A/B'd with and without these changes: 30 warnings either way, so
    the runbook section adds none. (The 28->30 shift seen earlier came from
    elsewhere in the corpus, not from here.)

Co-Authored-By: Claude Opus 5 [email protected]

🤖 Generated with Claude Code

Two power cuts in two days (2026-08-12 07:34, 2026-08-13 05:53) took the local
multi-repository dashboard down. Both recoveries worked only because a
fourteen-argument argv file happened to still be sitting in a DEAD session's
/tmp scratchpad — along with the plane's fourteen snapshots. Neither belonged
there, and neither is a recovery plan.

`scripts/reserve-dashboard.sh` replaces the two-command runbook recipe with one
idempotent command: `--status`, `--stop`, `--rebuild`, `--supervise`, and a bare
invocation that ensures the plane and serves. Three properties the manual recipe
could not have:

  - The plane has a durable home under XDG state
    (`~/.local/state/xfactory-dashboard/local-plane`, `XF_DASHBOARD_PLANE`
    overrides), so it no longer depends on a /tmp directory surviving a reboot.
  - The argument list is DERIVED, never remembered. The serving checkout is the
    repository the script lives in; the aggregation root is the nearest ancestor
    carrying `project-register.yaml`; and one `--source-root` is emitted per
    repository the lane ACTUALLY published, read back out of the `index.json` it
    just wrote — so the serve cannot disagree with the plane about who is in it.
    `openxFactory` resolves to the serving checkout, because that is the tree the
    gate acts on.
  - It is safe to run when already up, which is what makes it the right thing to
    type after a power cut without checking first.

It also refuses to find the serve with `pgrep -f serve`: that pattern matches the
shell running the pgrep, which bit this project twice in one session (once
reporting a phantom serve, once when a pkill killed its own shell). The port
holder comes from `ss -ltnp` instead.

THE SYSTEMD UNIT IS COMMITTED READY, NOT WORKING, and its header says so with the
measurement: this host has `[boot] systemd=false` in /etc/wsl.conf, PID 1 is
`init(Ubuntu-24.04)`, and `systemctl --user` answers "System has not been booted
with systemd as init system." So `--supervise` is the restart path that works
today — a loop in one process, which survives a CRASH and not a reboot. The unit
carries the four enabling steps plus `loginctl enable-linger`, marked required
rather than optional: without lingering a user unit waits for a login, so a power
cut with nobody logged in still leaves the dashboard down, which is the exact
failure this is meant to end. The two non-systemd boot routes (`[boot] command=`,
Windows Task Scheduler at logon) are named there too.

Verified rather than reasoned about:

  - cold start — stopped the hand-started serve, ran the script with no plane at
    all: published all 14 repositories into the new home, derived 42 args with 0
    unresolved source roots, served, and answered with 16 index entries, full
    session/gate/edit authority, and the model catalog at 200. Identical to what
    it replaced.
  - `--supervise` on port 8799 (so 8765 stayed up): killed the serve at pid
    311292, the supervisor brought up 313090. Test processes cleaned up.
  - idempotence — a bare invocation while up exits 0 saying so, touching nothing.
  - `tests/ideation-dashboard`: 2850 passed / 5 skipped / exit 0, read directly.
  - doc-health A/B'd with and without these changes: 30 warnings either way, so
    the runbook section adds none. (The 28->30 shift seen earlier came from
    elsewhere in the corpus, not from here.)

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 13, 2026 10:40

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit 32cc7c6 into main Aug 13, 2026
@brettheap
brettheap deleted the tooling/reserve-dashboard branch August 13, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces an idempotent “one command” entrypoint to (re)build and run the local multi-repository ideation dashboard, moving the plane out of per-session /tmp and documenting boot-start options (systemd-ready unit plus non-systemd alternatives).

Changes:

  • Add scripts/reserve-dashboard.sh to build/serve/stop/status/supervise the local dashboard using a durable XDG state plane and derived arguments.
  • Add a user systemd unit stub (scripts/systemd/xfactory-dashboard.service) intended for future systemd-enabled hosts.
  • Update the runbook to recommend the new script over the manual multi-argument serve invocation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
scripts/systemd/xfactory-dashboard.service Adds a user unit for boot-start/restart of the dashboard via the new script (currently inert on WSL as documented).
scripts/reserve-dashboard.sh Adds an idempotent CLI to publish the plane and run the ideation dashboard serve, including stop/status and a crash-restart loop.
docs/ideation-dashboard-session-runbook.md Documents the new one-command workflow and clarifies reboot/supervision constraints and options.
Suppressed comments (2)

scripts/reserve-dashboard.sh:166

  • In --supervise mode, if the port is already bound by a non-dashboard process (or by a stale dashboard that no longer answers /capabilities), is_up() stays false and the loop will repeatedly attempt to start the server, typically failing fast and restarting every 2s. Detect the port being in use and refuse (or back off) instead of busy-looping.
    while true; do
      if is_up; then sleep 10; continue; fi
      ( exec_serve ) || true
      echo "reserve-dashboard: serve exited — restarting in 2s" >&2
      sleep 2
    done

scripts/reserve-dashboard.sh:174

  • In normal serve mode, is_up() only probes /capabilities. If the port is occupied by some other process (or a broken dashboard instance), the script will proceed to exec_serve and fail with a bind error. It would be clearer and safer to detect the port already being held when /capabilities does not answer and stop early with an actionable message.
  ""|--serve)
    if is_up; then
      echo "reserve-dashboard: already up on http://127.0.0.1:$PORT (pid $(listening_pid)) — nothing to do"
      exit 0
    fi
    ensure_plane; exec_serve
    ;;

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

Comment on lines +30 to +32
PORT="${XF_DASHBOARD_PORT:-8765}"
PLANE="${XF_DASHBOARD_PLANE:-${XDG_STATE_HOME:-$HOME/.local/state}/xfactory-dashboard/local-plane}"

Comment on lines +45 to +47
ExecStart=%h/projects/xFactory/openxFactory-worktrees/change-add-wheel-action-verbs/scripts/reserve-dashboard.sh
Restart=always
RestartSec=3
Comment on lines +128 to +133
ensure_plane() {
if [ ! -f "$INDEX" ]; then
echo "reserve-dashboard: no plane at $PLANE — building it"
build_plane
fi
}
brettheap added a commit that referenced this pull request Sep 2, 2026
…the enumeration names, and the required suite watches the snapshot (#569)

* Advance the review-lane pin to the core that carries the floor, and move everything that names it

The openxFactory half of the (b′) landing pair, first commit: WHICH codexFactory
decision core judges this repository. codexFactory PR #162 (merge `e37c5ac2`)
rewrote `openxfactory-review-authority-floor.yaml` from 4 entries to 57 — the
four hand-reasoned chokepoints plus one machine-generated block carrying every
tracked path under `openspec/specs` at openxFactory `1a69b7cb`. That document is
INERT until this line moves: the lane reads the floor from the commit the pin
names, never from codexFactory `main`. Authority: the (b′) record §12, ruled by
Brett Heap, session `openxfactory-f5`.

`core_commit` -> `db157dbb` (codexFactory `origin/main` HEAD, 2026-09-01, the
merge of PR #167), which CONTAINS `e37c5ac2`. Pinning the tip rather than
`e37c5ac2` itself is safe and measured: `git diff` over both `pinned_members`
between the two commits is EMPTY, so the tip acquires the floor extension and
the three new core functions without acquiring a different version of anything
this lane consumes.

A PIN MOVES WITH EVERYTHING THAT NAMES IT, which here is more than the three
sites the last ceremony moved:

* `contracts/review-lane-pin.yaml` — `core_commit`, `declared_at`,
  `declared_from`, and `pinned_members` gains
  `scripts/merge_master/repository_floor_drift.py`. That module became
  load-bearing at this advance and is re-exported through `repository_floor`, so
  the import site does not name it and a re-point ceremony would not know to
  re-verify it.
* `.github/workflows/merge-master-approval.yml` — both pin literals
  (`PINNED_CORE_COMMIT` and the checkout `ref:`), plus the divergence note in
  the header, which named `3c35ca8b` and had been stale since 2026-08-28.
* `tests/review_lane_pin/test_review_lane_caller.py` — the lockstep assertion,
  and the `pinned_members` assertion.
* `specs/025-openxfactory-review-lane-caller/` — task 6.5's standing D2
  obligation and the spec paragraph that priced it.

LOCKSTEP IS `diverged` AGAIN, AND SAYING SO IS THE POINT. Measured on xFactory
`main`, 2026-09-01: both judging surfaces name `f4702f64`, where the 2026-08-28
ceremony (xFactory `eae4dc6`) left all three. At that commit the floor is four
entries and `post_merge_tree_paths`, `candidate_floor_drift` and
`parse_repository_floor_reporting` do not exist, so the converged commit cannot
evaluate the object this advance exists to make operative. Forced by the feature
for the second time; the obligation to re-converge stands and is restated with
the five sites a future ceremony must move together.

VENDORED BESIDE THE PIN: `contracts/review-lane-floor-snapshot.yaml`, a byte
copy of the floor document at `core_commit` (sha256 declared in the pin,
`entry_count: 57`), routed to a code owner. It is the offline witness CSC-C6's
required-check home reads; the check that reads it lands two commits later.

ITS `generated_at` IS DECLARED AS A NON-MEMBER, NOT AS A MEMBER, and the pin
file records why at length because the instinct runs the other way. The value is
a real openxFactory commit inside the derivation-pin sweep roots and it RESOLVES,
so the class must say something about it — `pin_class.py`'s coverage test
resolves every 40-hex token in every swept file. The MEMBER route was tried and
is wrong twice, measured:

* the generator writes the value into a YAML COMMENT. The sweep's commit-shaped
  pass reads every line and FINDS it; the non-commit pass skips comment lines by
  design and does NOT. One member therefore classifies the file TWICE — a
  resolved pin site AND an `absent_key` — and the "no site is classified twice"
  pin fails, correctly;
* `PIN_KEY_VOCABULARY` is the UNION of declared field keys, so the declaration
  widens the sweep repo-wide over 21 files inside the scan roots whose
  `generated_at` is an ISO TIMESTAMP, moving the sentinel accounting 67 -> 68
  sites and 3 -> 4 recognized absences.

And the file may not be edited to suit either pass: it is a WITNESS, and an
edited witness proves nothing. So the exclusion is DECLARED with its
measurement, exactly as the `NON_MEMBERS` examples row is — "an exclusion nobody
can read is indistinguishable from a coverage gap". The claim this file makes is
codexFactory's, not this repository's about itself, which is the line every row
there draws. The provenance is bound by the `sha256` and the byte-for-byte
freshness comparison instead, which is the stronger guarantee.

Discharges nothing on its own. `tests/review_lane_pin`: 33 passed, 0 skipped.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

* Wire the three amended guards into the lane: the deletion refuses, the report precedes the refusal, and the enumeration must be complete

The second commit of the openxFactory half. The pin now names a core that
carries `post_merge_tree_paths`, `candidate_floor_drift` and
`parse_repository_floor_reporting` — three mechanisms codexFactory PR #162
landed with their red cases executed, and which are INERT until a caller invokes
them. This is the caller.

LA-A2 and CPL-C1 (both BLOCKING) — THE DELETION DIRECTION. Step 7's gather now
proves a string `status` on every changed-file entry and emits
`changed_entries.json`; step 8 parses the floor against
`post_merge_tree_paths(base tree, this candidate's changed files)` instead of
against the base tree alone. That is CPL-C1's first sufficient discharge in its
own words — "the base tree adjusted by the candidate's own changed paths" — and
it inverts the failure LA-A2 filed: the pull request that deletes a floored path
was green and the NEXT, innocent one was red. `candidate_floor_drift` then keeps
"this candidate did it" apart from "already dead on the base branch", because
failing an innocent author for someone else's deletion is the shape LS-A1 calls
fail-dark. A missing or unrecognized `status` PARKS rather than guessing, in the
same class as a listing that arrives short: the core refuses to reconstruct a
tree "from incomplete facts without risking either a silent deletion or a false
accusation."

LS-A1 (BLOCKING) — REPORT BEFORE YOU REFUSE. On an unreachable floor step 8 no
longer prints one string and stops. It names the unreachable entries, attributes
them, and prints `matched_paths` over the REACHABLE subset — the four
constitutional chokepoints survive every scenario the seat probed — at an
explicit `floor_partially_unreachable` stage, and only then exits non-zero.
FAIL-CLOSED IS PRESERVED IN FULL: every refusal path still ends in `exit 1`, and
the report block runs on the clean path too, so a reviewer of a red run learns
what the candidate touched and not only what died.

LQ-A7 (BLOCKING) — THE COMPLETENESS DIRECTION, the opposite defect. A set
difference over data the lane already had on hand: every tracked path under
`openspec/specs` the floor does not name, computed over the post-merge tree so
the pull request that ADDS the uncovered spec is the one that sees it. The
prefix is a CODE CONSTANT (`FLOORED_PREFIX`) and deliberately not read from the
floor: the generated block declares its prefix in a COMMENT, and a prefix read
out of prose narrows silently when the prose changes. Ruled BOTH, LAYERED at
record §6.1 — this half here; the required-check half lands next.

The anti-vacuity step gains three positive assertions, one per guard, because a
guard that silently stopped computing is indistinguishable from a guard that
found nothing.

RED-PROVED, by extracting step 8's python heredoc VERBATIM from the shipped file
and running it against the real tree with the pinned core:

  innocent PR                     -> ok, 57 entries, 53 tracked, 0 uncovered
  deletes openspec/specs/doc-health/spec.md
                                  -> REFUSED floor_drift_caused_by_candidate,
                                     caused_by_candidate names it
  renames that path away          -> REFUSED, both limbs (drift + incomplete)
  adds a spec off the floor       -> REFUSED floor_incomplete, names the path
  entry already dead on base      -> REFUSED floor_partially_unreachable,
                                     caused_by_candidate EMPTY, and
                                     matched_paths still reported
  unknown/absent `status`         -> REFUSED changed_entries_unusable
  the SAME tree at the OLD pin    -> REFUSED floor_incomplete, 53 uncovered

That last line is the pair, proven: at `f4702f64` this lane cannot pass, and at
the new pin it passes with nothing uncovered.

The report block guards every lookup with `// []` / `// "-"`, and that is not
defensive noise: the four EARLY refusal stages emit a document carrying `stage`
and `reason` and nothing else, and `.matched_paths[]` over an absent key is a jq
ERROR rather than an empty list. Without the defaults the report would abort at
its first line exactly when the run has gone wrong, which is the one time a
reader needs it. Exercised against a minimal `governance_load` document: all
eight lines print, rc 0.

`tests/review_lane_pin`: 36 passed, 0 skipped.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

* Give the completeness assertion a home somebody is required to look at, and make a failed fetch loud

The third commit: CSC-C6's required-check half, ruled BOTH, LAYERED at the (b′)
record §6.1 and commissioned there as the feasibility question CSC itself named.
It is feasible, and this is the build.

CSC-C6 (BLOCKING) requires the coverage assertion to run "on a check somebody is
required to look at — not on the openxFactory advisory lane alone, which blocks
nobody", failing red "on the commit that adds a spec off the floor".
`pytest-suite` is REQUIRED on this repository by organization ruleset
`21538893`; the advisory lane is required by nothing. So the assertion runs in
both places, which is the layering CSC's own letter asks for: not the advisory
lane ALONE.

THE HYBRID, AND WHY IT IS NOT JUST A CHECKOUT.

* The LOAD-BEARING assertion is offline. `tests/review_lane_pin/
  test_floor_snapshot.py` reads `git ls-files openspec/specs` and the vendored
  `contracts/review-lane-floor-snapshot.yaml`, and asserts `surface ⊆ entries`.
  No network, no credential, no ruleset act. Coverage therefore holds whether or
  not codexFactory is reachable — a codexFactory outage never wedges this
  repository.
* A COPY IS NOT TRUSTED ON ITS OWN. A snapshot missing entries reds
  conservatively; a snapshot carrying an entry the real floor lacks is a SILENT
  FALSE GREEN, the CSC-F16 defect species. So `pytest-suite.yml` also checks out
  the pinned core (`continue-on-error`, using the App token this job already
  mints) and the same module compares the two byte for byte.
* AND THE FETCH CANNOT DEGRADE IN SILENCE, which is the whole trick and is built
  out of machinery already here. The freshness comparison SKIPS when the core is
  absent. `EXPECT_SKIPPED: "21"` is pinned EXACTLY and fails the job on any
  drift. On the normal path the checkout succeeds, the comparison RUNS, and the
  count does not move; when the fetch stops working the count becomes 22 and this
  REQUIRED check goes red with a named cause. `MIN_SELECTED` / `MIN_PASSED` are
  floors and need no edit — the new module only widens their margin.

VERIFIED BOTH WAYS, locally: with a codexFactory checkout on disk
`tests/review_lane_pin` is 53 passed / 0 skipped; without one it is 52 passed /
1 skipped. The skip count moves by exactly the amount the pin would catch.

RED-PROVED, each guard by its own case:

  a fabricated `openspec/specs/<new>/spec.md` added to a tmp copy of the real
    tree -> test_every_tracked_openspec_spec_path_is_on_the_floor FAILS, naming
    the path (LQ-A7's own falsification, on a REQUIRED check)
  one byte appended to the snapshot -> SNAPSHOT DIGEST MISMATCH
  one byte appended to the core's floor document -> SNAPSHOT IS STALE
  a locator pointed at a directory with no floor -> returns None, i.e. the skip
    is legitimate only when the core really is absent

The `ref:` in `pytest-suite.yml` is a FOURTH site the core commit is written, so
`test_the_required_suite_checks_out_the_pinned_core` ties it to the pin — without
that tie the freshness comparison could measure the snapshot against some
codexFactory tree rather than the one this repository consumes, which proves
nothing. The core is checked out BESIDE the repository tree, never inside it: a
foreign checkout under the repo root is visible to every test that scans the
real tree.

THE COST, STATED. From here, adding a path under `openspec/specs` requires the
two-repository repair before this required check is green. The assertion does not
create that tax — the exact enumeration does; the assertion only stops it being
paid silently, which is what CSC asked for. The ordered repair is in the pinned
core's `docs/repository-gate-floor-repair-runbook.md` and is quoted in both
refusal messages.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

* Make the named core authoritative: CI found the fallback that would have verified the snapshot against the wrong tree

FOUND BY CI ON THE FIRST RUNNER EXECUTION, and recorded rather than quietly
squashed, because the defect is more interesting than the fix.

`pytest-suite` on `ec88f35b` failed exactly one test — this pull request's own
negative control:

  FAILED tests/review_lane_pin/test_floor_snapshot.py::NegativeControls::
    test_the_core_locator_refuses_a_directory_without_the_floor
    AssertionError: PosixPath('.../openxFactory/.merge-master-core') is not None

The locator tried the declared `PINNED_CORE_CHECKOUT` and THEN two fallbacks. On
a runner the second fallback — `REPO_ROOT.parent/.merge-master-core` — is a real
codexFactory checkout, because `GITHUB_WORKSPACE` is the PARENT of the repository
checkout and that is exactly where the new step puts the core. Locally the
fallbacks are empty, so the defect was invisible in every local run.

WHAT IT WOULD HAVE COST IS WORSE THAN A RED CONTROL. A run whose NAMED core was
missing would have fallen back to whatever tree happened to be lying beside the
repository, compared the snapshot against it, and reported a PASS — the exact
silent-degradation shape the exact skip pin exists to make impossible. The bug
was in the half of the design that is supposed to be the alarm.

THE RULE, NOW WRITTEN DOWN: `PINNED_CORE_CHECKOUT` is AUTHORITATIVE when set. A
named core that is absent yields None, therefore a skip, therefore a moved skip
count, therefore a red REQUIRED check with a named cause. The fallbacks survive
only for the unnamed developer case, where nothing was claimed. Both branches now
carry a control, and the failing one carries the story so the next reader
inherits the finding rather than the fix.

Verified in all four shapes, including a local reproduction of the runner's
layout (a real core at `REPO_ROOT.parent` with the variable naming a missing
path -> SKIPS, does not fall back):

  named + present   -> 55 passed, 0 skipped
  unnamed + absent  -> 54 passed, 1 skipped
  named + missing, real core beside the repo -> 1 skipped, 0 failed
  named + present (that same core)           -> 0 skipped

The rest of that CI run is the evidence this change does not touch: the
cross-repository checkout step SUCCEEDED, the freshness verifier RAN, and the
suite reported 21 skipped — exactly `EXPECT_SKIPPED`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

* The freshness verifier is watched by name, not by the crowd it hides in

Codex read the (b') activation's failure signal and found it was an AGGREGATE
(P2, PR #569, .github/workflows/pytest-suite.yml:460). The design said: the
pinned-core checkout is `continue-on-error`, so when it fails the snapshot
freshness verifier SKIPS, the run's skipped count becomes 22, and
`EXPECT_SKIPPED: "21"` — pinned exactly — reds the REQUIRED check. True on a
run where nothing else moves. But a sum cannot tell "the core checkout failed"
(+1 skip) from "the core checkout failed AND some other conditional skip
started running" (+1 -1 = 0). On that second run — a pull request that fixes or
deletes one of the 21 — the count is 21 again, the required check is GREEN, and
the byte-for-byte comparison the vendored snapshot's fidelity rests on has
silently disappeared. The floors cannot cover for it: they are floors with
slack and a one-test change never approaches them.

That is CSC-F16's silent-false-green, found inside the guard built against
CSC-F16.

SO THE ONE TEST THAT DEPENDS ON A CROSS-REPOSITORY CHECKOUT IS NOW WATCHED AS
ITSELF. The pin step's JUnit parser — same step, same stdlib `xml.etree`, one
more printed field — looks the verifier's own `<testcase>` up by classname and
name and requires the verdict `passed`. Absent, skipped, failed and errored
each fail the job with the named message

  ::error::snapshot freshness verifier did not run — pinned core checkout
  unavailable or test removed (<classname>::<name> is '<verdict>' in
  pytest-report.xml, wanted 'passed'). contracts/review-lane-floor-snapshot.yaml
  was NOT compared byte for byte against the pinned decision core on this run,
  so a stale copy could assert coverage the real floor does not give. ...
  Do not delete this assertion — the skipped-count pin CANNOT cover for it,
  which is the Codex P2 finding on PR #569

and nothing happening elsewhere in the suite can cancel it. `EXPECT_SKIPPED`
is UNCHANGED at 21 and keeps the job it was always for: the general skip
discipline, "a directory that silently turned into skips", which the named
verdict says nothing about. Two signals, split, both kept — the name first.

THE NODE ID IS ASSERTED AGAINST THE LIVE OBJECTS, because a watcher pointed at
a name that no longer exists is the same defect one level up. A rename that
forgets the workflow makes the verdict `absent`, which reds — fail-safe — but
it would red as a mystery, so `TheRealFiles::
test_the_required_suite_watches_the_verifier_by_name` compares
`FRESHNESS_CLASSNAME`/`FRESHNESS_TESTNAME` to the class and method objects and
fails on the developer's machine first, naming the two strings to move.
(pytest's JUnit `classname` is the rootdir-relative node id folded to dots, not
`__module__` — `tests/` carries no `__init__.py` — so the test rebuilds it the
way the report does.) The skip reason also now opens with the greppable marker
`FRESHNESS-VERIFIER-DID-NOT-RUN:` so the log names the cause without the XML.

RED-PROVED against the SHIPPED bytes, not a reimplementation: the step's `run:`
and `env:` were extracted from `pytest-suite.yml` with PyYAML and executed
under bash against JUnit fixtures shaped like a CI report — testsuite
tests="7100" skipped="21" failures="0" errors="0", so every AGGREGATE assertion
passes and only the named one can speak.

  fixture                                     aggregate   new step        old step
  freshness testcase <skipped/>  (the Codex   all GREEN   exit 1, named   exit 0
    scenario: core failed, another skip                     message         GREEN
    started passing, sum still 21)
  freshness testcase ABSENT (renamed/deleted) all GREEN   exit 1, named   exit 0
  freshness testcase <failure>                all GREEN   exit 1, named   exit 0
  freshness testcase <error>                  all GREEN   exit 1, named   exit 0
  freshness testcase passed                   all GREEN   exit 0          exit 0

The "old step" column is the same extraction from HEAD~1: it exits 0 — GREEN —
on all four, which is the finding, reproduced against the bytes that shipped.
Two REAL pytest-emitted reports confirm the shape the fixtures imitate: with a
core on disk the verdict reads `passed` (exit 0), without one it reads
`skipped` and reds with the named message.

Also run: actionlint on the workflow (exit 0, clean);
`pytest tests/review_lane_pin -q` → 55 passed, 1 skipped, 18 subtests (was 54
passed, 1 skipped — the one added guard, no new skip, so `EXPECT_SKIPPED` does
not move and the floors only widen). The workflow change itself is exercised by
CI, which is the only place the real report exists; the full suite runs there.

Docstrings and `contracts/review-lane-pin.yaml`'s prose restated in the new
order — the name is the signal, the count is the backstop — with the finding
cited at each site, so the next reader does not re-derive the aggregate
argument and delete the assertion that answers it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

---------

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.

2 participants