Repository navigation
ideation-dashboard: explicit --generated-at for sealed-artifact runs (add-nightly-dashboard-refresh task 3.6; re-realization S1) - #642
Conversation
The nightly-refresh recipe as amended 2026-09-01 and re-ratified 2026-09-04 has the credentialed parent seal a bounded source artifact and the artifact-only child generate the snapshot from it. A sealed artifact is not a git checkout, so `_generation_stamp`'s `git show -s --format=%cI` derivation resolves to nothing there and the published snapshot loses its freshness stamp IN SILENCE: `generation.generated_at` is optional in the snapshot schema, so `--strict` still passes, the image still ships, and nothing anywhere says the stamp went missing. `design.md` Decision 3's amended step 3 names `--generated-at <manifest source committer timestamp>`; that flag did not exist. It does now, on `generate` and `generate-and-open`, beside `--source-revision` in the shared `_add_generate_args` — the two anchors are pinned together or not at all, and the two verbs that publish a snapshot cannot diverge. The value is contained at the CLI boundary against the shape the snapshot schema declares for `generation.generated_at` (`generator.is_rfc3339_datetime`: the RFC 3339 pattern AND the parse, so `2026-02-30T00:00:00Z` is refused), then handed straight to `generate_snapshot(generated_at=...)` — recorded VERBATIM, never normalised, overriding the git derivation. Verbatim is the contract: the value is an anchor copied from the manifest, and a snapshot that disagreed with the manifest it was pinned from would defeat the pinning. A malformed value is REFUSED — stderr, exit 1, no snapshot file written, and on `generate-and-open` not even a run directory left behind. That is the one place in this package where an unresolvable timestamp is fatal rather than omitted, and it is fatal because this one was TYPED: every other timestamp path degrades because it tried to DISCOVER the value. Absence changes nothing: the derivation still runs and an unresolvable stamp is still omitted, exactly as before. `generate`'s report now prints the stamp or `<absent>`, because its absence was invisible and a run that meant to pin one needs to see whether it landed. Pinned by `tests/ideation-dashboard/test_generated_at_anchor.py` (16 cases: the amended recipe's own argv parses, verbatim, override, absence on both paths, seven malformed spellings refused with nothing left behind, and the pinned value passing a real `--strict` validation run). Ticks `tasks.md` 3.6 and marks the `design.md` step-3 snippet realized. Substrates (Rule 7): none. No `openspec/specs/**` path moves, no README OpenSpec Records entry, no `sequenced_after` pin, no contract byte. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
File-forward: the note and the step-3 snippet were written with a placeholder because the number does not exist until the pull request does. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb
|
Lane: openxfactory-f2 @codex review Head |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
openspec/changes/add-nightly-dashboard-refresh/tasks.md still states task 3.6 is “not yet done (still unticked above)” even though it is now checked [x], which makes the task record internally contradictory.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds an explicit --generated-at <RFC3339> generation anchor to ideation-dashboard snapshot generation so sealed-artifact (non-git-checkout) runs can still produce a correctly pinned generation.generated_at timestamp, with CLI-boundary validation and dedicated regression tests to prevent silent omission.
Changes:
- Introduces
is_rfc3339_datetime()ingenerator.pyand wires it into the CLI to validate--generated-at, refusing malformed values (exit 1) before any snapshot is written. - Extends
generateandgenerate-and-opento accept/pass through--generated-at, and updates reporting to make absence visible (generated_at=<absent>). - Adds a new test module covering parsing, verb coverage, override/absence semantics, refusal behavior, and strict validation.
File summaries
| File | Description |
|---|---|
tests/ideation-dashboard/test_generated_at_anchor.py |
Adds comprehensive tests for the new --generated-at anchor behavior and refusal semantics. |
scripts/ideation_dashboard/generator.py |
Adds RFC 3339 datetime validation helper used to guard the new CLI input. |
scripts/ideation_dashboard/cli.py |
Adds --generated-at to generation verbs, validates/refuses malformed inputs, passes value into snapshot generation, and reports the resulting stamp. |
openspec/changes/add-nightly-dashboard-refresh/tasks.md |
Marks task 3.6 as completed and records dated evidence about the implementation and tests. |
openspec/changes/add-nightly-dashboard-refresh/design.md |
Updates the recipe snippet/commentary to reflect the implemented flag and records realization. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…s it Copilot round 1, TAKEN. The ratified amendment text stays verbatim — that is this packet's convention — but a reader skimming the task list met "it is not yet done (still unticked above)" beside a ticked box and had to reach the DONE note to learn which one was true. The pointer now sits inside the clause, and the DONE note drops the sentence that was doing that work from the far end. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb
|
Lane: openxfactory-f2 Validation recordLocal, isolated clone of The one failure is environmental and pre-existing, not from this change: CI at Bot roundsRound 1. Codex: rate-limited, not a review ("You have reached your Codex usage limits for code reviews") — recorded as a non-review, not as an approval. Sourcery: private-repo upsell stub, not a review. Copilot: one finding, TAKEN at No merge from this lane. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is backward-compatible, validated at the CLI boundary, and includes targeted automated tests that pin the new interface and refusal behavior.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/ideation_dashboard/generator.py:93
is_rfc3339_datetimeand_RFC3339_DATETIME_REduplicate the same RFC-3339 shape+parse logic already maintained elsewhere in the repo (e.g.scripts/ideation_dashboard/intent_apply_lane.py:_RFC3339+_parses_as_datetime). Keeping two independent implementations increases drift risk (a future bugfix/tightening could land in one place but not the other). Consider extracting a single shared helper (e.g.ideation_dashboard/temporal.py:is_rfc3339_datetime) and importing it from both call sites.
- Files reviewed: 5/5 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-f2 Provenance for the admin merge. RULING for lane openxfactory-f2's PR #642 (head |
Catch-up only, no conflict. Main moved twice while this review round ran and BOTH commits came in with this merge, so both are named rather than the one the merge was started for: * #639 (73b1b3c) — tests/doc-health/test_modified_block_currency_self_gate.py and nothing else. * #642 (bbc21e4) — the ideation-dashboard --generated-at anchor, a realization slice of add-nightly-dashboard-refresh: scripts/ and tests/ideation-dashboard/ only. NEITHER adds nor archives a change directory, so the sequenced_after baseline design D11 records is unmoved and no re-derivation is owed. VERIFIED AFTER THE MERGE rather than argued: --ledger-diff still reports 164 change ids (35 active + 129 archived), 113 co-modified, 51 sole, active 22 / 13, and "consistent with the corpus (164 rows)". Neither touches contracts/clearing/, the register, or any artifact this packet names. Merged so that `git diff origin/main` over this branch shows the packet and nothing else. Before it, the same command showed a 246-line phantom revert of main's newer test file — exactly the kind of reader trap this review round exists to remove, and the one this reviewer walked into on the first command of the round. Lane: hermes-wallet-exercise
…d; S7 and the first nightly owed before archive) (#655) * add-nightly-dashboard-refresh: record the re-realization (S1-S5 landed; S7 and the first nightly owed) Slice S6 of plan-nightly-refresh-rerealization-2026-09-04.md, doc-only. Brett's words: "go S2 to S7", then "lets go". The re-ratified amendment created a code/spec disagreement its own proposal declined to assess. Five PRs closed it; this records them in the packet, with every squash sha verified merged at the gate rather than read out of a handoff: S1 openxFactory #642 bbc21e4 --generated-at on the generate CLI S4 openxFactory #641 19a777d the module's raw-clone --phase build retired S2 openxFactory #648 96aa61a the parent seals the bounded source artifact S3 opensoft/xFactory #243 84dbbb24 the child consumes it, holds no Git credential S5 Omnigent-Install #211 cdfe3152 the worker profile describes the sealed intake tasks.md — no checkbox moves (3.2/3.3/3.4/4.1/3.6 were already ticked; 3.6 by #642). Each of those five gains a dated REALIZED evidence note naming the PR and its squash. The stale note in 3.4 that still described the child as running `dashboard-refresh-nightly.py --phase build` is CORRECTED by an appended, dated note rather than an edit — the sentence is retained text, and #641's body flagged it for this slice. Task 7.6 gains the size measurement and stays UNTICKED, because its staleness half needs a live run. New § 9a records the five acts, the four remaining S7 host acts (act D is DELETED, not deferred), and § 9's not-re-verified list carried forward. design.md — three notes. (a) The disambiguation owed to PR #595's DECLINED review thread: "host clone" in the sealed-artifact failure scenario means a clone on the WORKER host, and the parent's materialization is the prior scenario's requirement, so the two scenarios do not contradict when read in order. (b) What the manifest attests versus corroborates: verification step 5 is an INTERNAL-CONSISTENCY check (both sides come from one manifest), and the independent anchors are correlation_id, artifact_name, parent_run_id and parent_repository (#243's finding) — plus open question 7's sealed-but-not-baked validator asymmetry and #243's equality-not-presence check on generated_at. (c) The sealed source measures 3511 files / ~35.1 MB, recorded beside the design's ~8 MB estimate, which is low by a factor of four. proposal.md — § AMENDED AFTER RATIFICATION gains a dated REALIZED subsection listing the five PRs and stating what S7 still owes. Status: ratified and the single Ratified: citation line are untouched (grep -c = 1). README.md — the OpenSpec Records entry's lifecycle sentence gains the re-realization state; no entry added, removed or reordered. Substrate row 3 claimed on issue #630 before the push, per protocol Rule 7. The ARCHIVE GATE STAYS OPEN. S1-S5 make the lane exercisable, which is not exercised: the evidence is one real nightly's pin PR merged and reconciled plus one wider diff refused and parked, and that is S7's. Refs #591 Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Ground the build-context claim in task 3.2 against the landed worker file Bot round 1 (Copilot), one thread, PARTIALLY TAKEN. Copilot: the note asserts the child keeps `manifest.json` and `recipe/` out of the Docker build context, which "isn't established elsewhere in this packet (and could be false if the seal root is used as the build context)". The factual half is DECLINED — the claim is true. But the grounding half is TAKEN, and it caught a real ambiguity: openxFactory #648's own S3 contract had proposed the SEAL ROOT as the build context with `manifest.json` and `recipe/` merely "inert" in it, so a reader following that contract would conclude exactly what Copilot suspected. #243 chose the leaner assembled shape instead. Settled against the LANDED file rather than either PR body: `.github/workflows/dashboard-image-worker.yml` at `84dbbb24` runs `docker build -f "$GITHUB_WORKSPACE/$SEAL_DIR/recipe/Dockerfile" -t "$REF" "$GITHUB_WORKSPACE/ctx"` — the context is `ctx/`, assembled by copying `CONTEXT_ROOTS` out of `<seal>/openxFactory` — and the file carries the assertion in its own comment ("the daemon receives a lean tree and neither manifest.json nor recipe/ reaches it"), plus a guard that fails when the assembled context is missing the renderer packages. The note now states the mechanism, names the divergence from #648's contract and why #243's shape is also what the ratified requirement's "the assembled workspace shape as context" says, and cites the landed file and its comment. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Copilot round 2: reconcile the README amendment dates, qualify the readiness paths by repository Four findings, all in Copilot's suppressed set (no new inline threads). Two TAKEN as reported, one TAKEN with the remedy corrected, one TAKEN. 1. README amendment dates CONFLICT — TAKEN, and it was a REAL pre-existing contradiction my sentence made visible. The entry said "WAS AMENDED 2026-09-04 AND RE-RATIFIED THE SAME DAY" while its very next sentence said "authored 2026-09-01", and `proposal.md`'s front-matter `Amended:` line — the authoritative one — reads 2026-09-01. Reconciled to the real sequence: RULED 2026-09-01, reached this repository 2026-09-04 by rescue (PR #595), re-ratified that same day. Both halves of the entry now say it, and the entry names the front-matter line as authoritative. 2 + 4. `worker_readiness.py` "does not exist in this repository" — the observation TAKEN, the proposed remedy DECLINED. Measured, not assumed: `scripts/worker_readiness.py` AND `scripts/check-worker-readiness.py` both live in `opensoft/xFactory`, and NEITHER is a path in openxFactory. They are not two spellings of one entrypoint to be unified — `check-worker-readiness` is the CLI and imports `from worker_readiness import evaluate`, and the gate predicate this packet is about (`repository_credentials_present`) is in the module. openxFactory's `doc-health-reusable.yml` invokes the CLI by a relative path that resolves in the CALLER's checkout, because it is a REUSABLE workflow — which is exactly why neither file is here. So both references are now qualified by repository and the CLI/module relationship is stated, rather than one name being rewritten into the other and losing the distinction. 3. "STILL STAYS OPEN" redundant — TAKEN, now "STAYS OPEN". Validation on this head: openspec validate <change> --strict valid; --all --strict 89 passed / 0 failed; pytest -q tests/doc-health tests/sequenced_after 1714 passed; grep -c on the Ratified: line = 1. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Copilot round 3: the phase list matches the CLI's own order One finding, TAKEN. The 3.4 correction note listed the surviving phases as `decide | pin | report | seal | record-pr`, but `dashboard_refresh_lane.py` declares `choices=("decide", "seal", "pin", "report", "record-pr")` — so a reader who hit `--phase build` would see a usage error listing them in a different order than this note. Matched to the tuple verbatim, and the note now says that is where the order comes from, so the next edit has a reason to keep them in step. Validation on this head: openspec validate <change> --strict valid; --all --strict 89 passed / 0 failed; pytest -q tests/doc-health tests/sequenced_after 1714 passed; grep -c on the Ratified: line = 1. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-f2
Brett, 2026-09-04: "do 3.6" and "go S2 to S7". This is slice S1 of the
re-realization plan for
add-nightly-dashboard-refreshafter the 2026-09-04re-ratification (plan § "S1 — oxF: task 3.6, the timestamp interface", which
blocks S3). Task 3.6 of the active change; the packet has been on
mainsince PR #595 (
92e662cf).The requirement this realizes
Amended
specs/doc-health/spec.md, "Ideation-dashboard image refresh lane":design.mdDecision 3's amended step 3 spells the invocation out and names--generated-at <manifest source committer timestamp>. The packet's ownmeasurement note recorded that the flag did not exist, and filed it as
tasks.md§ 3.6.Before / after
Before.
generateaccepted--repo-root,--repository,--source-revision,--project-register,--possibles,--strict,--no-validateand nothing else.generated_athad exactly one source:generator._generation_stamprunninggit show -s --format=%cIinside thescanned tree, via a
RealGitDatesdocumented to degrade "to None … outside agit checkout". A sealed source artifact is not a checkout — so on the amended
lane the snapshot would ship with no freshness stamp at all, and nothing
would say so:
generation.generated_atis OPTIONAL incontracts/schemas/ideation-dashboard-snapshot.schema.yaml, so--strictpasses, the image builds, the digest lands, and the served plane's freshness
header quietly loses its stamp. (Plan risk 4 — this is why S1 lands before S3.)
After.
--generated-at <RFC 3339>ongenerateandgenerate-and-open,declared in the shared
_add_generate_argsright beside--source-revisionbecause the two anchors are pinned together or not at all, and the two verbs
that publish a snapshot cannot diverge.
generator.is_rfc3339_datetime— theshape the snapshot schema declares for
generation.generated_at(
format: date-time): pattern and parse, so2026-02-30T00:00:00Zisrefused. Placed in
generator.pybeside_REVISION_RE, which is where thesame containment already lives for the other anchor (
--source-revision, inRealGitDates.commit_date).generate_snapshot(generated_at=…);_generation_stampalready prefers asupplied value, so no plumbing was invented.
+00:00is NOT normalised toZ— the value is an anchor copied from the manifest, and a snapshot thatdisagreed with the manifest it was pinned from would defeat the pinning.
cli.GeneratedAtRefused→stderr, exit 1, no snapshot file written, and on
generate-and-opennot evena run directory left behind (the same early check that verb already makes for
--repo-root). This is the one place in the package where an unresolvabletimestamp is fatal rather than omitted, and it is fatal because this one was
typed: every other timestamp path degrades because it tried to
discover the value. Degrading here would reproduce exactly the silent
defect the flag exists to end.
unresolvable stamp is still omitted, byte-identical to today.
generate's report now printsgenerated_at=…or<absent>, because theabsence was invisible and a run that meant to pin one needs to see whether it
landed.
Deliberately unchanged:
RealGitDatessemantics;_gate_snapshot(the secondgenerate_snapshotcall site) — the gate verbs plan against a snapshot theynever publish and take no timestamp anchor, so they keep
_add_gate_snapshot_argsas it is; and the schema, which stays optional (making it required would be a
contract cut this packet does not need — plan risk 4).
Tests
New
tests/ideation-dashboard/test_generated_at_anchor.py, 16 cases:+00:00survives) end-to-end throughthe CLI;
FakeGit);on a non-git tree — the pre-change behaviour, pinned;
month 13, epoch seconds, empty) each refused with the flag named,
RFC 3339in the message, and no snapshot file left behind;
generate-and-open;--strictvalidation run against thepinned validator, so the anchor is known to satisfy
format: date-timeforreal rather than only satisfying the CLI's own predicate.
Validation (local, this head)
python3 -m pytest -q tests/ideation-dashboard tests/doc-health tests/sequenced_after— see the comment below for the recorded totals.OPENSPEC_TELEMETRY=0 openspec validate add-nightly-dashboard-refresh --strict→Change 'add-nightly-dashboard-refresh' is validOPENSPEC_TELEMETRY=0 openspec validate --all --strict→Totals: 88 passed, 0 failed (88 items)python3 -W error -m py_compileoncli.py,generator.py, the new test module → cleanPacket
Ticks
tasks.md3.6 with a dated evidence note (the ratified body is retainedverbatim; the note supersedes its "not yet done" clause and restates that 3.6 is
still not part of what closes the archive gate, § 4.8). Replaces the
# requires task 3.6 — flag not yet implementedmarker indesign.md's step-3snippet, and appends one dated REALIZED line to the measurement note directly
below it — that note is the marker's home and said in the present tense that the
flag "IS NOT" a real argument, which ticking 3.6 would have falsified. No other
packet text is touched; S6 still owns the wider bookkeeping.
Substrates (Rule 7)
None. No
openspec/specs/**path is added, removed or renamed (row 1untouched); no README "OpenSpec Records" entry; no
tests/sequenced_afterlivepin; no
contracts/byte and no contract cut (row 4 untouched); no codexFactorygitlink or
review-lane.ymlsha (row 5 untouched). Nothing to claim on #630.Claimed on #591. Sibling check: no open PR touches this surface; S4 (which
retires
--phase buildindashboard_refresh_lane.py) is a sibling from thislane and this PR touches that module not at all.
🤖 Generated with Claude Code
https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb