Repository navigation
Realize add-citation-remainder-report R2: the nightly wiring - #1111
Conversation
…ading, one artifact, a clean-tree assertion `add-citation-remainder-report` § 2.2, realization slice R2. Two steps in the `finalize` job of `.github/workflows/doc-health-reusable.yml`, immediately after `Upload report artifact` and before any step that writes inside the openxFactory checkout, plus the parsed-YAML test that pins them. ONE INVOCATION, ONE FILE, as `tasks.md` § 2.2 fixes it: `--json` is a boolean output-format flag taking no path, so the redirect is shell-level and the report writes `citation-remainder.json` AT THE AGGREGATION ROOT — outside the scanned root, which is how D3(a)'s output-path fence holds structurally rather than by an exclusion list. The script path is submodule-qualified and the `REPO_ROOT` positional is `openxFactory`, because the CLI's own default is `.` and `.` here is the aggregation tree: a different corpus, with a different remainder, that would be published as this repository's. TWO DECISIONS TAKEN RATHER THAN LEFT IN THE COMMENT. Q6 (may a cannot-run red the nightly?) takes the house's own habit and not the plan's recommendation: `continue-on-error: true` plus an explicit `::warning::` on every failure path. The packet's own requirement says PROMOTING THE REPORT TO A GATE SHALL BE A SEPARATE ACT ON A SEPARATE WORD, and this is not that word; every other optional lane in this file records a graceful skip; and the governance nightly has concluded `failure` on all eight of its last scheduled runs for reasons owned elsewhere, so a ninth way to red it buys a signal nobody can read. Nothing is swallowed: the warning annotates and the upload's `outcome` gate leaves the artifact absent, so a night without a reading is a visible HOLE in D6's series. The tree-state assertion is FOLDED under that same posture rather than split out to always red, and the reason is measured: the neutrality lane's merge inside `Run doc-health suite` can persist writes under `openxFactory/health/neutrality-drift/` — the very next step exists to commit them back, and `baseline/codexFactory.yaml` is already tracked — so a dirty checkout at this point is a foreseeable state of another lane doing its job, not a defect worth reddening a nightly for. What it IS is a reading that must not enter D6's series, which the warning and the absent artifact say exactly. The lane wrote nothing on the 2026-09-18 run (`no neutrality lane writes`), so the hazard is prospective; the step is ordered ahead of both commit-backs so it stays that way. `retention-days: 90` is kept and is now measured rather than argued: every artifact in `opensoft/xFactory` — the CALLER, where a reusable workflow's artifacts live, `opensoft/openxFactory` holding none of its own — expires exactly 90 days after its run starts. D6's N = 14 window fits six times over. The test module is new rather than an addition to `tests/doc-health/test_workflow_contract.py`, so a citation-report step that moves reds a citation-report test. Its assertions were mutation-tested, not asserted: sixteen deliberate breakages of the shipped step, each caught, and one that was NOT caught in the first draft (a tree-state branch that warns and stops stopping) is why that test now cuts the branch out before asserting on it. Refs #1053. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…he run it does not The tick rule's first clause: a `[x]` is a diff in THIS pull request. The wiring § 2.2 describes is that diff, and the record beneath the box says in its own first sentences what the tick does NOT claim — the first `doc-health-nightly` run that produces `citation-remainder-<YYYY-MM-DD>`, which arrives on the aggregation's cron within 24 hours of the merge or immediately by `workflow_dispatch`, and which lands in § 3.3's realization comment and the archive pull request's evidence list. A merged workflow file is not evidence that a step ran. The record also carries the two decisions § 2.2 left open and the measurement that closes D6's own open question: Q6 answered toward a graceful skip with an annotation, the tree-state check folded under that same posture on the neutrality lane's measured ability to dirty this checkout by design, and the artifact retention read where a reusable workflow's artifacts actually live — `opensoft/xFactory`, 90 days, sixty consecutive artifacts measured, against D6's N = 14. And the three scenarios this wiring is operational evidence for, each beside the test that pins it, plus the one it is NOT evidence for and why. Refs #1053. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 3 days and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis PR adds advisory nightly wiring that runs the citation remainder CLI once against the correct submodule, uploads only clean successful readings as 90-day artifacts, and uses dedicated structural tests to protect the invocation and workflow safety contract; the task record captures R2 while leaving first-run and later realization evidence outstanding. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
Address the workflow upload/name-collision risks and strengthen the ordering guard.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds advisory nightly execution and artifact publication for the citation remainder report.
Changes:
- Runs the report and uploads clean-tree readings.
- Adds structural workflow tests.
- Records R2 realization details in
tasks.md.
File summaries
| File | Summary |
|---|---|
.github/workflows/doc-health-reusable.yml |
Adds report execution and artifact upload. Findings: two moderate issues involving non-blocking upload handling and artifact-name collisions, plus one nit about inaccurate wording. |
tests/citation_remainder/test_report_wiring.py |
Adds workflow safeguards. Finding: one moderate gap in modeling the suite’s in-step writer. |
openspec/changes/add-citation-remainder-report/tasks.md |
Records realization and implementation decisions; no findings. |
Review details
Suppressed comments (2)
.github/workflows/doc-health-reusable.yml:2343
- The report is explicitly advisory and the run step is non-blocking, but this upload action is not. A storage failure or an immutable-name collision can therefore fail the entire
finalizejob and turn an otherwise successful nightly red, contrary to the Q6 non-gating posture; make the optional upload non-blocking and retain an explicit warning/skip signal for a missing artifact.
uses: actions/upload-artifact@v4
tests/citation_remainder/test_report_wiring.py:230
- This guard does not enforce the invariant stated by its name: it only finds steps containing
cd openxFactory, while theRun doc-health suitestep immediately above can itself persist neutrality writes underopenxFactory/health/neutrality-drift/(as the surrounding workflow comment acknowledges). A refactor that moves the reading relative to that writer would therefore remain green. Narrow the invariant to commit-back steps or model the suite's in-step writer explicitly.
writers = [(i, s.get("name")) for i, s in enumerate(job["steps"])
if "cd openxFactory" in (s.get("run") or "")]
assert writers, "expected at least one commit-back step to order against"
for i, name in writers:
assert i > reading_at, f"{name!r} writes in the submodule at step " \
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…say what the CLI actually does with a modified tree Bench round one on PR #1111, both threads taken. `steps.run.outputs.run_date` is written by the LAST line of `Run doc-health suite`, so a suite that fails earlier never writes it — and this lane is `always()` precisely so the reading survives such a night. The interpolation would have been empty and the artifact would have uploaded as `citation-remainder-`, a series point with no date on it. The run step now publishes its own `run_date`, preferring the suite's value through `env:` (one date per run, shared with the doc-health report beside it) and falling back to `date -u +%F`, and the upload names THIS step's output. The write stands before every failure path, and a test asserts that ordering as well as the fallback. (Copilot `PRRT_kwDOTAvnrs6jzmDm`.) What is NOT the failure mode, measured rather than argued: artifact names repeat freely across runs. `opensoft/xFactory` holds five nights of `semantic-sweep-bundle` under that one name, runs `35299844095`, `35174877222`, `35048443668`, `34921684313`, `34799775414`. A dateless name would not have been rejected as a duplicate; it would have cost a series point nobody could place, which is reason enough. And the tree-state comment was broken in the middle and misdescribed the CLI besides. The CLI never refuses a modified tree: it produces the reading and declares the state beside the head, which is what the spec requires of it. What the declaration withholds is the standing of a later point in the series taken at that head, so the wiring keeps such a reading out of the series rather than uploading one nothing can compare. (Copilot `PRRT_kwDOTAvnrs6jzmD-`.) The `env:` this adds carries one non-secret value, and the test that asserted "no `env:` at all" now asserts what it was always for: no `permissions:`, no token, no secret. Refs #1053. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Guard the tree_state read-back and complete writer-ordering coverage; reconcile the documented lifecycle details.
Review details
Suppressed comments (5)
.github/workflows/doc-health-reusable.yml:2355
- Could this read-back be guarded like the
TREE_CLEANextraction above? Withset -e, a missing or malformedtree_statemakes this assignment fail and exits the step before the::warning::below;continue-on-errorthen hides that failure and leaves the skipped artifact without the promised annotation. Wrap the assignment in anif ! ...; thenbranch that emits the cannot-read warning before exiting.
STATE="$(python3 -c 'import json;print(json.load(open("citation-remainder.json"))["tree_state"])')"
.github/workflows/doc-health-reusable.yml:2319
- The PR description says neither new step declares
env:, but this step does (SUITE_RUN_DATE), and the new test explicitly permits and asserts that handoff. Please reconcile the description with the shipped wiring (or remove the env block if the no-env claim is a requirement); otherwise the review/realization record is inaccurate.
env:
# PASSED THROUGH `env:` RATHER THAN INTERPOLATED INTO THE SCRIPT, the
# house rule this file already polices for itself
# (`test_untrusted_workflow_inputs_are_not_interpolated_into_bash`).
SUITE_RUN_DATE: ${{ steps.run.outputs.run_date }}
openspec/changes/add-citation-remainder-report/tasks.md:536
- This tick leaves the earlier realization-status paragraph at lines 380–384 saying that “§§ 2.2, 2.3 and 2.4 stay open” and that the nightly wiring is a later slice. After marking 2.2
[x]and recording R2 here, the packet states both that this task is complete and still open; please update or explicitly mark that earlier paragraph as historical so the lifecycle record has one state.
- [x] 2.2 **THE NIGHTLY WIRING**, at the size D5 rules. Under the recommended
tests/citation_remainder/test_report_wiring.py:227
- This writer scan is incomplete: the current
finalizejob also has script-backed writers after this step.Ideation readiness lane (merge, persist, report link)persists theopenxFactoryindex via--repo-root ., andDerive-possibles lane (merge, persist, report link)persists the possibles register; neither command containscd openxFactory. Consequently, moving the report below either writer would leave this ordering test green despite violating the invariant it claims to enforce. Include these writer steps (or another authoritative writer manifest) in the assertion.
writers = [(i, s.get("name")) for i, s in enumerate(job["steps"])
if "cd openxFactory" in (s.get("run") or "")]
tests/citation_remainder/test_report_wiring.py:217
- This test only orders the later
cd openxFactorycommit-back steps; the precedingRun doc-health suitecan also writeopenxFactory/health/neutrality-drift/through the neutrality merge. The current name claims coverage of every submodule writer, so it should be narrowed to the commit-back ordering it actually enforces.
def test_the_reading_is_taken_before_any_step_that_writes_in_the_submodule():
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
|
Brett Heap, 2026-09-18T20:02Z, in the lane session (verbatim): "land #1111 when green" — the landing word for this pull request (R2, the nightly wiring). Recorded here so the Rule 6 LANDING line can cite it. The decisions recorded in the body (Q6 graceful skip, tree-state folded, Q2 90 days, § 2.2 ticked in-PR, placement after the suite, not a draft) stand as written unless ruled otherwise on #1053. Lane: openxfactory-1 |
|
FREEZE — lane openxfactory-1, session 393ade52-a921-4dd9-9dc5-224ebc056651, 2026-09-18T20:02Z: head Lane: openxfactory-1 |
|
Lane: openxfactory-1 (openXfactory-1) LANDING — lane openxfactory-1, session 393ade52-a921-4dd9-9dc5-224ebc056651@Eagle, 2026-09-18T20:03:31Z, PR #1111 into opensoft/openxFactory main Guard at 2026-09-18T20:03:36Z on head |



Lane: openxfactory-1 (openXfactory-1)
Claim: #1053 (comment)
Status: head
78258890, branchrealize/citation-report-r2, 3 commits, working tree clean. Checks: every check green at this head,pytest-suiteincluded (run35366503026, 21m48s). Review threads: 2 opened by Copilot, both taken in78258890, both replied to and both resolved; 0 unresolved. Not for landing by its author — the Rule 6 window and the merge are the orchestrator's, on Brett Heap's word.What this realizes
add-citation-remainder-report§ 2.2, realization slice R2: the nightly wiring. The packet was ratified by Brett Heap on 2026-09-17 — PR #1069 comment 5714138459, verbatim "ratify #1069", a BARE word taking D1–D7 at the RECOMMENDED option each and naming no veto, recorded in the packet's own.openspec.yaml(approved_by/approved_on).code_surface: openxFactoryis non-empty, so the archive stays held behind merged-plus-green realization evidence;target_release: implemented, so no bundle is cut and no contract byte moves.What landed before this, in order
c32749c3af5f6f43c316e24a9c963685f3943c7683166366d499d58b5e8801e0bb17e346c73fc8e6Patch B landed before R1, which is the order R1's own body asked for, and
git merge-base --is-ancestor c32749c3 HEADconfirms it is in this tree. This branch is cut from83166366itself — R1's merge commit is this branch's merge base, so every fence proof below reads against a base that carries the CLI the new step invokes.scripts/report-citation-remainder.pyis present in the clone, andgrep -c 'citation-remainder\.txt' …/tasks.mdreads 0, confirming the tree carries Patch B's one-invocation § 2.2 rather than the superseded two-file sketch.What R2 does
Three files, 547 insertions, 1 deletion.
.github/workflows/doc-health-reusable.ymlfinalizejob, immediately afterUpload report artifact(:2250-2254) and before every step that writes inside the openxFactory checkouttests/citation_remainder/test_report_wiring.pyopenspec/changes/add-citation-remainder-report/tasks.mdCommits:
cda09bafd3979ddcf31df76f012253736c15a154ae16d03277b868ee4ad4ec4ff597f284ea3b1f1478258890bcefee4b35e711853af77188899f2f36The step, as shipped
ONE invocation, ONE file, as
tasks.md§ 2.2 fixes it.--jsonis a boolean output-format flag taking no path (D2), so the redirect is shell-level. The script path is submodule-qualified like every sibling (:582,:1045,:2233) and theREPO_ROOTpositional isopenxFactory, because the CLI's own default is.(nargs="?", default=".") and.in this job is the aggregation tree — a different corpus, with a different remainder, that would be published as this repository's. The redirect target sits at the aggregation root, outside the scanned root, which is how D3(a)'s output-path fence holds structurally rather than by an exclusion list.Run, not merely parsed. The step's shell was executed verbatim in the aggregation shape (a directory whose
openxFactoryentry is this clone), at this branch's head:Both failure branches were executed too, against purpose-built trees: a dirty checkout produced
::warning::citation-remainder: the tracked content read stands MODIFIED at this head …and exit 1; a root that is not a git work tree producedTHE REPORT DID NOT RUN: … not a git repositoryon stderr, the cannot-run warning, and exit 1. Undercontinue-on-errorboth leaveoutcome == 'failure', so the upload is skipped and the night is a visible hole.The figures above are a reading of a MOVING corpus, pinned to the run that produced them; they are not restated from R1's record and are not a claim about any later head. The three-readings caution R1's § 2.1 record carries (the shipped CLI's normalized
issue-nativereading differs fromdesign.mdD0(iv)'s headline by the three choices the spec fixes) applies to any comparison a reviewer makes against the packet's own tables.What R2 does NOT do
scripts/report-citation-remainder.pyis untouched —git diff $BASE..HEAD -- scripts/report-citation-remainder.py | wc -l→0.opensoft/xFactory:.github/workflows/doc-health-nightly.ymlalready grantsactions: write,contents: write,issues: write,pull-requests: write, andactions/upload-artifact@v4needs no grant of its own. Neither new step declarespermissions:orenv:, and a test asserts it.--fail-on, and a test asserts there is none.Q2 — artifact retention, measured, and D6 is satisfiable
90 days. D6 is measurable under D5 option 1; option 2 is not forced.
The plan and the brief both sent me to Settings → Actions → General in openxFactory. That is the wrong repository, and the measurement says so: a reusable workflow's artifacts belong to the caller, so every artifact this nightly has ever produced lives in
opensoft/xFactory, andgh api repos/opensoft/openxFactory/actions/artifactsreturns 0 artifacts.gh api repos/opensoft/xFactory/actions/permissionsstill exposes no retention field ({"enabled":true,"allowed_actions":"all","sha_pinning_required":false}), so the figure was read off the artifacts themselves:opensoft/xFactorydoc-health-report-2026-09-18, run35299844095, started2026-09-18T02:33:56Z, expires2026-12-17T02:33:57ZD6's
N = 14window fits six times over.retention-days: 90is therefore kept, and it is no longer a departure argued from need: it matches the effective maximum rather than raising it, and it pins the series' lifetime against a later lowering of the repository default.Q6 — a cannot-run records a skip, and does not red the nightly
Decision:
continue-on-error: trueplus an explicit::warning::on every failure path — the house's own habit, not the plan's recommendation. Three reasons, in order of weight:continue-on-error: trueand "records a graceful skip NOTE — never an error"; so do the cataloger, organizer, readiness and dashboard-image lanes.doc-health-nightlyhas concludedfailureon all eight of its last scheduled runs (35299844095,35174877222,35048443668,34921684313,34799775414,34733307293,34667923153,34555063717), each at step 50Open regression issue. A ninth way to red a nightly that is already red buys nobody a signal they can act on.Nothing is swallowed. Every non-zero path annotates with
::warning::, and the upload'soutcomegate leaves the artifact absent — so a night without a reading is a visible hole in D6's series rather than a false point in it. The testtest_every_failure_path_annotates_rather_than_swallowing_the_skipasserts mechanically that everyexit 1in the step's shell is preceded by a::warning::, so the posture cannot decay into a silent skip.Where my step lands, relative to the failure that reds the nightly today: the last run's
finalizejob numbered its steps 21Run doc-health suite, 22Upload report artifact, 23Neutrality-drift lane commit-back, and failed at 50. My two steps become 23 and 24. They run, and they produce the artifact, on a red night.The tree-state check: FOLDED under the same posture, and why the split would be the wrong way round
The resync that added the tree-state assertion flagged a genuine second decision: should a dirty checkout always red, even under the graceful-skip reading, on the argument that a dirty nightly checkout is a CI defect categorically unlike an advisory tool's unavailability?
Kept folded, on a fact measured in this workflow rather than reasoned about. A dirty checkout at this point in
finalizeis a foreseeable state of another lane doing its job:Run doc-health suite— the step above mine — can persist lane writes underopenxFactory/health/neutrality-drift/;cd openxFactory; git status --porcelain health/neutrality-drift/ …);git ls-files health/listshealth/neutrality-drift/baseline/codexFactory.yaml, so a re-recorded baseline is a tracked-content modification, which is exactly what the CLI'sgit diff --quiet HEADreads;neutrality-driftdefaults to true.A split that always reds would therefore import a false red on the first night that lane persists anything. It writes nothing today — the 2026-09-18 run logged
no neutrality lane writes — nothing to commit back, so the hazard is prospective, not live — but the wiring should not be one lane's activation away from reddening the estate's governance nightly.What the check still guarantees, unchanged: a reading taken over a modified tree never enters D6's series, because the step exits non-zero and the upload's
outcomegate suppresses it. And the ORDER is asserted as well as the check:test_the_reading_is_taken_before_any_step_that_writes_in_the_submodulefinds every step whoseruncontainscd openxFactoryand requires each to stand after the reading, so a later refactor cannot quietly move the reading behind a commit-back.Test placement: a new module, not an addition to
test_workflow_contract.pyNew
tests/citation_remainder/test_report_wiring.py. The resync fairly flagged thattests/doc-health/test_workflow_contract.pyandtest_workflow_guards.pyalreadyyaml.safe_loadthis same file and this same job, and that no packet rule decides between them. Reasons for the new module:R2.1), and it keeps this capability's test surface where every other body in this realization cites it:pytest tests/citation_remainderis one command covering R1's CLI tests and R2's wiring tests together.test_workflow_guards.py(theload()/step(job, name)shape) exactly as the resync instructed, so there is one instrument and not two.What the wiring test pins, and the proof that each assertion bites
17 tests, all against the parsed YAML, none against a live run. Each assertion was mutation-tested: the shipped step was broken 20 ways in turn and a named test caught every one.
scripts/report-citation-remainder.pytest_the_script_path_is_submodule_qualifiedREPO_ROOTpositional droppedtest_the_repo_root_positional_is_this_submodule_and_never_a_default--include docsaddedtest_the_argv_is_the_fixed_one_and_carries_no_refinementopenxFactory/citation-remainder.jsontest_the_reading_is_written_outside_the_scanned_root--jsongiven an operandtest_the_json_flag_is_passed_with_no_operandtest_the_nightly_runs_the_report_exactly_once--fail-on errorsmuggled intest_the_step_carries_no_fail_on_and_adds_no_gatetest_the_tree_state_of_the_reading_is_checked_and_not_merely_printedtest_the_tree_state_of_the_reading_is_checked_and_not_merely_printedtest_every_failure_path_annotates_rather_than_swallowing_the_skiptest_every_failure_path_annotates_rather_than_swallowing_the_skipcontinue-on-errordropped without a wordtest_every_failure_path_annotates_rather_than_swallowing_the_skiptest_the_reading_is_taken_before_any_step_that_writes_in_the_submodulealways()alonetest_the_upload_is_gated_on_the_run_steps_outcomeif-no-files-founddroppedtest_an_empty_artifact_is_an_error_rather_than_a_silent_uploadretention-daysshortened to 1test_the_series_outlives_the_window_d6_measures_overrun_datetest_the_artifact_name_carries_a_date_even_when_the_suite_step_diestest_the_artifact_name_carries_a_date_even_when_the_suite_step_diestest_the_artifact_name_carries_a_date_even_when_the_suite_step_diesenv:test_the_step_asks_for_no_permission_the_job_does_not_already_holdOne of those sixteen was NOT caught by the first draft of the test, and it is recorded rather than quietly repaired: with the assertion written as "some
exit 1follows the field name", a tree-state branch that warns and then continues stayed green, because theexit 1of the read-back branch a few lines above satisfied it. The test now cuts the!= "true"branch out of the shell before asserting on it, and the reason is written in the test.Scenario coverage — what this wiring is evidence for, by name
R2 realizes no requirement, so none of these is R2's to claim as realized. What the wiring and its test add is a different kind of evidence for three of the packet's 72 scenarios (counted in this tree: 5 requirements, 72
#### Scenario:blocks).test_the_tree_state_of_the_reading_is_checked_and_not_merely_printed,test_the_reading_is_taken_before_any_step_that_writes_in_the_submoduletest_the_argv_is_the_fixed_one_and_carries_no_refinement,test_the_nightly_runs_the_report_exactly_once,test_the_script_path_is_submodule_qualified,test_the_repo_root_positional_is_this_submodule_and_never_a_default,test_the_json_flag_is_passed_with_no_operandtest_the_reading_is_written_outside_the_scanned_rootNot claimed: A caller's refinement names the report's own output — the step passes no
--includeand no--exclude, so that scenario is exercised by R1's fixtures alone. What R2 adds is the assertion that the nightly never starts passing one.D7's scope fences, and the whole file list
No citation is edited, nothing cross-repository is resolved, no doc-health file moves, no promoted byte moves.
Validators
python3 -m pytest tests/citation_remainder tests/doc-health -qpython3 -m pytest tests/citation_remainder/test_report_wiring.py -qpython3 -m pytest tests/ -q -m "not postgres"(the required gate's own invocation, at the final head)tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization], and it is not this branch's: it is a wall-clock flake against that file'ssubprocess.run(…, timeout=30)on a loaded workstation, and it reproduces onmainitself — the same test, the same parameterization, fails in a control clone at the merge base (83166366, none of this diff) in 47.41s under load average 8.66 with six concurrent suites from another lane, and passed in that same control an hour earlier when the box was quiet. Timed directly, the validator takes 25.5s in this branch and 28.0s in the control, so this branch is if anything the faster tree.pytest-suiteon CI is green at this head (run35366503026, 21m48s)python3 -m pytest -qfrom the clone roottests/argument is what makes the run meaningfulpython3 scripts/validate-code-surface.py .code_surface validation passed (every active declaration's head is admitted).— 47 active proposals, 47 declaringpython3 scripts/validate-sequenced-after.py .sequenced_after validation passed (47 active changes, 17 declaring the field).+ archive-date and archive-date-vs-commit agreement passedOPENSPEC_TELEMETRY=0 openspec validate add-citation-remainder-report --strictChange 'add-citation-remainder-report' is validOPENSPEC_TELEMETRY=0 openspec validate --all --strictTotals: 108 passed, 1 failed (109 items)— the one failure isadd-chain-attestation, pre-existing and untouched by this branch's three-file diff. The brief expected TWO pre-existing failures;add-composed-view-authoringno longer fails, which is a fact aboutmainand not about this branchpython3 scripts/validate-openspec-cli-pin.py --change add-citation-remainder-report --strictOK openspec-cli-pin: @fission-ai/[email protected] verified against its content address and every target validated --strict cleanscripts/proposal-support.py . verifyproposal support verification okpython3 -c "import yaml; yaml.safe_load(open('.github/workflows/doc-health-reusable.yml'))"finalizecarries 52 steps, the new pair at indices 21 and 22, betweenUpload report artifactandNeutrality-drift lane commit-backactionlint .github/workflows/doc-health-reusable.ymlpython3 scripts/doc-health.py --single-repo .31 critical, 13 error, 28 warning, 21 info)A note on that last row, because the first attempt looked like a regression and was not. The control clone initially reported two fewer
release-inventory-drifterrors (scripts/hermes_runtime_validation/catalog.py,release.py) — files this branch never touches, byte-identical in both clones. The cause is the family's own early return: with submodules unmaterialized the control hitthe pinned openxdox_spec leg is not materialized … Run git submodule update --init --recursive openDox openXdox, which skips from the middle of a sorted comparison and drops every member after it. With the control's submodules materialized, the two runs are identical. Worth knowing before anyone diffs doc-health across clones again.Bench round one — both Copilot threads taken in
78258890, both resolvedsteps.run.outputs.run_dateis written by the LAST line ofRun doc-health suite; a suite that fails earlier never writes it, and this lane isalways()precisely so the reading survives such a night — the name would have beencitation-remainder-. The neighbouringUpload report artifactis not exposed to this because it carries noif:and is simply skipped on that night; the exposure arrives withalways(). The run step now publishes its ownrun_date, preferring the suite's value throughenv:(one date per run, shared with the doc-health report) and falling back todate -u +%F, written before every failure path, with the upload naming this step's output. Both branches were executed locally: with the suite date present the name iscitation-remainder-2026-09-18; with it empty the fallback produces the same. One part of the report's stated mechanism was corrected rather than accepted, with a measurement: artifact names do NOT collide across runs (v4 immutability is per-run, andopensoft/xFactoryholds five nights ofsemantic-sweep-bundleunder that one name), so a dateless night would have uploaded fine and been unplaceable — the cost is the series, not the upload.DECISIONS RAISED
tasks.md§ 2.2 is ticked here, againstbrief-R2-wiring.md's instruction to leave the box for R3's writer. It is ticked on the tick rule's own first clause — "a[x]is either a diff in THIS pull request or a measurement recorded verbatim" — and on R1's landed precedent, which ticked § 2.1 in its own pull request although the realization plan's § 4 table named "R1's merge sha" as the ticker. The record beneath the box states in its first sentences what the tick does NOT claim: the first nightly run. If the reading should be the stricter one, unticking is one character and the record stands either way.Upload report artifact, which puts it AFTERRun doc-health suite— the step whose neutrality merge can persist writes into the scanned checkout. Taking the reading BEFORE the suite would make a dirty tree impossible rather than merely handled, at the cost ofsteps.run.outputs.run_datenot yet existing for the artifact name. I did not move it: the placement is decided in the brief and in the plan, the ordering guarantee that matters is asserted, and the hazard is dormant. Named here so the choice is visible rather than discovered.Outstanding, and whose it is
The first
doc-health-nightlyrun that actually produces the artifact — cited by run id and artifact namecitation-remainder-<YYYY-MM-DD>— is § 2.2's other half and is not this pull request's to produce. It arrives within 24 hours of the merge on the aggregation's own cron (17 2 * * *inopensoft/xFactory:.github/workflows/doc-health-nightly.yml), or immediately byworkflow_dispatchon that workflow by whoever holds it. Owner: the orchestrator, orbrief-R3-ticks.md's writer, who carries it into § 3.3's realization comment and the archive pull request's evidence list. A merged workflow file is not evidence that a step ran.Refs #1053.
Lane: openxfactory-1
🤖 Generated with Claude Code