Repository navigation
fix(architecture): build deepening report cards from solution and wins fields - #17825
Conversation
Add a deepening kind to build-view.mjs. Its record is a JSON candidate list read strictly: a missing or empty card part, an unknown key, a win over six words or outside the vocabulary terms, or a Verified line other than reproduced, unverified or corrected fails with exit 1 naming the candidate and field. The page loads Mermaid 12.3.0 and Tailwind 4.3.5 at their pins under the html-report.md policy, generates Mermaid source from per-candidate graph data, and must pass its own validator. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add solution and wins to the scan return schema and the candidate artifact, plus a one-clause verified line with the full notes kept in verification-notes. Phase 2 now writes a report record and builds the page with build-view.mjs; html-report.md defines the record, page order, card parts and diagram patterns. The carve-out that skips the page for another repository's files stays: the page loads two pinned CDN scripts, so it cannot meet the escape-helper profile the baseline requires there. The chrome eval case builds through the builder and gains a grader that fails any card with an empty or missing part. The upstream record notes the new fields. Closes #17798 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shared rendered-view reference still said /architecture:improve wrote the deepening HTML itself. Its copies in planning, discovery and debugging regenerate from lib/rendered-view.md; the planning session confirmed no collision. Refs #17798 Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Windows the engine resolves /usr/bin/ffplay to D:\usr�infplay before the fs.exists stand-in sees it, so the sound test never found its player and failed there, blocking unrelated pushes through the pre-push check. The stand-in now drops the drive letter and backslashes before comparing. Closes #17823 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… card The renderer refuses a card whose wins name neither leverage nor locality; the other wins may use any vocabulary term. The docs said both, which 19 of the 24 real candidates do not have. Owner decision in the #17798 interview. Refs #17798 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A blind UX evaluation of the rendered fixture found the page hard to compare and read. The header now names the scope and commit and defines every drawing style, badge and term the page uses; the index gains Verified and Depends on and stacks on a phone; Mermaid panels size from their drawing with no inner scroll, an edgeless graph draws as boxes, and a blocked CDN shows each graph as an edge list. The bars pattern is removed, muted text reaches 4.5:1, and Phase 2 drops a candidate that proposes no change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n phones Mermaid wrapped node labels at its 120 px default and split file names mid-word; wrap at 260 px instead. Below 600 px a diagram keeps its own size and scrolls inside its panel, and the card's grid column no longer grows past the viewport, so the page itself never scrolls sideways. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Windows sound-test fix landed on main in #17852 with its own change note, so this branch's copy would list the same fix twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…table Blind evaluation runs 2 and 3 of the new page agreed on these findings: - The 20-line key came before all content. It is now collapsed under the header, and Strong's line defines the deletion test and the two-adapter rule it rests on. - The index had no problem column. Each row now shows its problem under the title, beside a short id (S1) the card's title also shows. - top_why named dependents in prose that matched no title. The builder now lists the candidates built on the top one from depends_on, linked. - Cards had no way back. Each now ends with a link to the index. - Hand-drawn deep boxes turned light in dark mode. All diagrams now sit on white paper in both themes, and box labels keep their case. - Verified words broke mid-word, and the Mermaid text list was hidden from screen readers. - The stacked-rows and nested-boxes key lines now say what those drawings show, and four record texts match their own cards. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11875c9ffd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Select Tests failed: plan-test-lanes found deepening-report.test.mjs selected with no sibling .test.sh and no Node package in the test-node lane, so no lane ran it and no lane could plan. run-plugin-tests.sh discovers only .test.sh files; the wrapper follows lib/ui-feedback/note-model.test.sh, and its test-scope names the module, its fixture and the escape helper the suite imports. 20/20 pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… rule - build-view wrote every deepening page to architecture-views/deepening.html and deleted the one before, though deepening.md says the printed path is the delivery and is never deleted. A deepening page is now named after its record file, so one scan's page never replaces another's. - A `corrected:` Verified line holds one clause, and the builder refuses a semicolon. The record and artifact docs and the builder's message now say so; a fresh scan had written one and needed a second build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Run 44885373714, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
… fix/deepening-report-cards
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundScope. This pass covers one file changed since What changed. One prose string in test fixture candidate Security relevance. None. The file is test data for the deepening renderer. The new string is plain text with no markup or Mermaid syntax. It passes through the renderer's escaping and the page validator, which the previous review of this PR checked. The change touches no trust control, workflow, manifest, standing instruction or token path, and no trusted-path glob matches it. Prior findings. This lane's earlier summary reported 0 findings, so there is nothing to carry forward. This lane already reviewed an earlier head, so this pass looked only for CRITICAL and IMPORTANT findings. It found none. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): one word changed in the deepening fixtureThis lane already reviewed an earlier head, so this pass reports blocking findings only. I read the whole change since What changed
What I checked
I found no blocking defect. Not applicable this round
Loosened checks: none. The change loosens no check. The prompt has no Verifier dropped 0 of 0 candidates. |
Lane run report
Run 44886423491, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane run report
Run 44886423491, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
The org-repo-token lint refuses this organization's repository name in shipped plugin content, and the fixture's repo field is display text only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… own section Phase 2 dropped a finding whose conclusion is to leave the code alone, so nothing recorded that the code had been looked at, and a later scan could flag it again. Such a finding now goes to the record's optional `kept` list and the artifact's "Looked at, no change" section: title, one-sentence reason and files, with no badge, outside the index and bands, and never the top recommendation. The page lists it last and the header links to it. The fixture's P6 returns as the one kept finding. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…epening fixture The s3 candidate's problem text paired "contract" with "Brief", which the vocabulary check reads as the retired contract-brief sense. Say "rules" instead; the fixture's meaning and every test that reads it are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 2, survived 5, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #17798.
Summary
Every card in the
/architecture:improvedeepening report showed an empty Solution:. No stage of the pipeline had a solution field: the scan schema had none, the candidate artifact'sdeepeningfield holds the problem narrative, and the model wrote the HTML by hand each run with nothing checking the page against the record. This PR adds the fields, builds the report from the record with a renderer that refuses an incomplete card, and lays the page out for choosing a candidate.Fix
solution(one sentence: what the deepened module would own and hide) andwins(<vocabulary term>: <at most six words>, at least one leverage or locality win) join the scan return schema (scan-briefing.md) and the candidate artifact (deepening.md).deepeningkind inplugins/architecture/scripts/build-view.mjs, rendered byscripts/deepening-report.mjs. It reads the record strictly and exits 1 naming the candidate and field for a missing or empty card part, an unknown key, a win over six words or a card with no leverage or locality win, a badverifiedvalue (acorrected:clause holds no semicolon), or a Mermaid label outside the allowed characters. Every string is escaped with the sharedlib/html-escape.mjs, imported unchanged. Each page is named after its record file, so a later scan never overwrites an earlier page.lib/view-builder.mjs: that builder's validator refuses outside scripts, and it is synced into eight plugins. With the CDN blocked, each Mermaid panel shows its arrows as a text list, which also stays available to screen readers when the drawing renders.depends_on), an index of every candidate (short id, title, problem, badge, Verified word, dependency, solution; rows stack below 600 px), then the badge bands. Card order: short id and title, badges, problem, solution, before/after diagram, wins, one Verified line (reproduced,corrected: <clause>orunverified), files, depends-on, a link back to the index.barspattern is removed, since its values measured nothing.kept, artifact section of the same name): title, reason and files, no badge, outside the index, never the top pick, so a later scan sees the code was already looked at (owner decision).lib/rendered-view.md("The deepening report") now says the report builds throughbuild-view. Its copies regenerate in architecture, planning, discovery and debugging; the planning owner session confirmed no collision.docs/upstream/mattpocock-skills.mdre-checked at mattpocock/skills 7739eaed7f.card-parts-completefails any card with an empty or missing part.Verification
Against #17798's done-when:
The old run's candidates re-rendered (
scripts/testdata/deepening-candidates.json: 23 cards, plus P6 under "Looked at, no change" since it proposes none): problem, solution, wins and a drawn diagram on 23/23 cards, 0 empty parts, 25/25 Mermaid diagrams drawn in Chromium with no console error.Blind UX evaluation, the same Nielsen heuristic evaluation plus a pick-one task walkthrough on both pages, one fresh evaluator per run, three runs per round:
Every run found a severity 4 problem on the old page; no run found one above severity 2 on the new page. Round 2's fixes came from the findings rounds 1's runs agreed on.
The
card-parts-completegrader, run offline on the re-rendered page and a fresh scan's page: passes both as built, and fails each with one solution part removed, one problem emptied, or one wins part missing (8/8 cases).Two fresh
claude -p "/architecture:improve deepening"runs with this branch's plugin (--plugin-dir), scopeplugins/planning/skills/interview, read-only:corrected:clause holding a semicolon, which led to the clause rule above;Also:
node --test plugins/architecture/scripts/deepening-report.test.mjs: 20 pass.build-view.test.sh: every deepening check passes; 9 "builds under the temp directory" checks for the map kinds fail on Windows, the same 9 onmain. CI on Linux is the reference.Related
🤖 Generated with Claude Code