Skip to content

architecture:improve: the deepening report drops every card's solution, and is hard to read #17798

Closed

Description

@kyle-sexton

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") has deepening, defined as the friction narrative, "not an interface proposal".
  • The card still requires a one-sentence solution and leverage/locality wins (actions/deepening.md Phase 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) and wins (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 deepening renderer in plugins/architecture/scripts/ (not the shared lib/view-builder.mjs, whose validator refuses outside scripts and which syncs into eight plugins), escaping every string through lib/html-escape.mjs and 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.md against mattpocock/skills 7739eaed7f and record the new fields.

Done when

  1. 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.
  2. 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.
  3. An eval grader fails any card with an empty or missing part.
  4. One fresh /architecture:improve deepening run 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 a solution and wins, 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.

Activity

  1. added
    needs-triage
    on Nov 21, 2026
  2. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    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:improve sees 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 no solution or wins field, 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 a deepening kind 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.

  3. removed
    needs-triage
    on Nov 21, 2026
  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    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).

  5. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    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

    1. Done-when item 2 needs a fresh-context UX evaluation of the old and new pages (no severity 3 or 4 finding, fewer findings). Should an unattended run check it, or does a person run it and sign off?
      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
    2. The issue says final layout and density defaults come from the owner's prototype review after the feedback-tool fixes land. Which issue is that fix, and should the lane wait for the review?
      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
    3. The issue lifts the 'no HTML for another repository' carve-out once the builder renders the page. Which file holds that carve-out and which lane registers the new kind?
      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
    4. Should the work be one pull request or split into schema and artifact, builder kind, then eval grader and upstream doc?
      RECOMMENDED: Split into those three ordered pieces, since the issue is sized Large. Basis: judgment

    Sources read

    • plugins/architecture/reference/rendered-view.md:306: says the deepening report is written by the model itself, not through the builder, and only as a local file
    • plugins/architecture/lib/view-builder.mjs:430: VIEW_KINDS registers plan, brainstorm and design kinds, with no deepening kind
    • plugins/architecture/skills/improve/actions/deepening.md:64: the card requires a one-sentence solution, a diagram, and leverage and locality benefits
    • plugins/architecture/skills/improve/research/deepening/scan-briefing.md:102: the per-candidate return schema section the issue says lacks solution and wins

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions