Repository navigation
Description
Problem
A deepening report from /architecture:improve showed an empty Solution: on all 24 cards, with the next verification note (runtime-claim, correction) printed beside it. The run's candidate markdown had a suggested deepening for every candidate, so the data existed and the HTML dropped it.
Cause
No stage of the pipeline has a solution field:
- The scan return schema (
plugins/architecture/skills/improve/research/deepening/scan-briefing.md, "Per-candidate return schema") has no solution or wins field. - The candidate artifact (
actions/deepening.md, "Durable candidate artifact") hasdeepening, defined as the friction narrative, "not an interface proposal". - The card still requires a one-sentence solution and leverage/locality wins (
actions/deepening.mdPhase 2,research/deepening/html-report.md"Candidate card").
So each run's model invents the mapping. This run wrote an off-schema deepening it suggests: key, which its hand-written HTML never read. Nothing checks the page against the record: the report is the one rendered view the model writes itself (plugins/architecture/reference/rendered-view.md, "The deepening report").
Baseline (the 24-card report)
- Card parts present: solution 0/24, wins 4/24 (none with both leverage and locality), drawn diagram 0/24; 35 empty labelled parts; 4 kinds of off-spec part (Evidence 24, signal-verified tag 24, runtime-claim 3, correction 2).
- Heuristic evaluation (Nielsen, severity 0-4) plus a pick-one-candidate walkthrough: 12 findings, 1 at severity 4, 5 at severity 3. Among them: no overview and the top recommendation last; every After panel identical; undefined path abbreviations.
Change (decided in the owner interview, 2026-11-20)
- Add
solution(one sentence: what the deepened module would own and hide, no entry points) andwins(a vocabulary term, a colon, then at most six words) to the scan return schema and the candidate artifact; the card renders only from those fields. - Build the report with a
deepeningrenderer inplugins/architecture/scripts/(not the sharedlib/view-builder.mjs, whose validator refuses outside scripts and which syncs into eight plugins), escaping every string throughlib/html-escape.mjsand reading the candidate artifact strictly: a missing card part, an unknown key or an over-long win fails the build. Mermaid and Tailwind stay, loaded from the CDN at today's exact pins (the version-form change is rendered-views: add SRI hashes to exact-version CDN pins #17718). - One defined "Verified" line per card: reproduced, corrected (one clause), or unverified; full notes stay in the artifact.
- Page order: top recommendation, then an index of every candidate (title, badge, one-line solution, link), then badge bands; fixed card order; paths in full or abbreviations defined; the header's counts, tally and verification on separate lines. Final layout and density defaults come from the owner's review of the prototype, after the feedback-tool fixes land.
- Keep the "no HTML for another repository" carve-out: the report loads pinned CDN scripts, so it cannot meet the rendered-views escape-helper gate (self-contained, validator profile) that lifting it needs.
- Re-check
docs/upstream/mattpocock-skills.mdagainst mattpocock/skills 7739eaed7f and record the new fields.
Done when
- The same candidates re-rendered: solution, wins and drawn diagram on every card; 0 off-spec parts; 0 empty parts. The old run had 24; P6 proposes no change, so it now appears under "Looked at, no change" and 23 remain as cards.
- A fresh-context UX evaluation of the old and new pages, same method: the new page has no severity 3 or 4 finding and fewer findings in total.
- An eval grader fails any card with an empty or missing part.
- One fresh
/architecture:improve deepeningrun with this branch's plugin, on the same scope as the original report (plugins/planning/skills/interview, read-only), writes a candidate artifact in which every candidate has asolutionandwins, and its report builds with no refusal. Items 1 and 2 use the 24 candidates the prototype derived from the old run, so they show the page renders what it is given; this item shows a real scan now produces the fields.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-owner-decision
Priority
medium
Activity
github-actions commentedon Nov 21, 2026
Size: Large
Complexity: Medium
Uncertainty: Knowable
Flags: none
Blocked by: none
Blast radius: the architecture plugin's improve skill (scan schema, candidate artifact, deepening report, its evals), the shared view builder and the upstream-drift doc. Anyone who runs
/architecture:improvesees the new report.Reversible: yes; revert the change. Reports already rendered stay as they are.
Open questions: none
I understood this as a defect in
/architecture:improve. The scan schema and candidate artifact have nosolutionorwinsfield, so the model-written HTML shows an empty Solution on every card. The issue chooses the fix: add the two fields, build the report through the view builder as adeepeningkind with strict reads, and add a one-line Verified status and a fixed page order. It also lists three done-when checks.The issue says the final layout and density defaults come from the owner's later review of the prototype. I treated that as tuning inside the chosen design, not an open design choice.
The issue is large enough to need splitting. The fresh-context UX evaluation in done-when item 2 and the owner's prototype review will need people in the loop.
Related open issues, none a duplicate: #17718 (SRI hashes for the CDN pins, referenced by the issue), #16962 (whether the deepening interview loop and hand-off move to shared skills), #17196 (the unattended deepening sometimes omits the withheld security line) and #16412 (a shared HTML default for rendered pages). I found no merged pull request that already fixes this. I did not read the merged-pulls list.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed
- [ ]criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The deepening report is built by the architecture view builder as a deepening kind from a candidate artifact carrying solution and wins, read strictly, with the stated page order and a one-line Verified status.
Related work
Open questions
RECOMMENDED: A person runs it; split it out as a manual check and let the lane deliver schema, builder kind, eval grader and the 24-candidate re-render. Basis: judgment
RECOMMENDED: Name the feedback-tool issue as a dependency; the lane builds the stated page order and leaves density defaults to the owner's review. Basis: judgment
RECOMMENDED: Update plugins/architecture/reference/rendered-view.md, whose deepening section says the report is written by the model, not the builder, and register the kind in plugins/architecture/lib/view-builder.mjs VIEW_KINDS. Basis: .base/plugins/architecture/reference/rendered-view.md:306
RECOMMENDED: Split into those three ordered pieces, since the issue is sized Large. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.