Skip to content

feat(codebase-health): offer a rendered view of the audit report per the rendered-views genre rubric - #12344

Closed
melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-11363-41420323700-1
Closed

melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-11363-41420323700-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #11363

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Applied the rendered-views genre rubric and stopping rule (now at docs/contracts/rendered-views/README.md; the docs/conventions page is a redirect) to the candidates. codebase-health:audit adopts an offer-only lane: its report is in the reports genre and feeds a fix pass (dual-audience), so it offers to render through visualization:visualize and never builds a page, modeled on overengineering:audit, with a --medium argument and the cascade. harness-ops:morning-brief already had a shared-builder status page; the contract now lists it, and its view.md no longer publishes on a team-layer artifact value, as the cascade concern requires. education:explain (short text answer, page and video already covered by education:illustrate and explainer-video:produce, the #5835 lane), knowledge:docpage-digest, knowledge:distill, knowledge:absorb-upstream (records a later pass reads) and testing:audit (a script's own rule-tagged rows, text rung) are recorded with no lane. knowledge:course-digest and knowledge:map-corpus fit a genre and need builder-backed pages for their K2 text, so they are left for later work.

Remaining work

  • knowledge:course-digest: its repo-candidates.md and action-items.md are person-facing recommendations (reports genre, like video-digest's menu view). Adopting a view needs a builder- or escape-helper-backed page for its K2 course text, decided in its own change
  • knowledge:map-corpus: its Phase 3 map approval is a plan presented for approval. A view needs a builder-backed page for the fetched K2 link map, decided in its own change

Not verified

  • Tidy skipped: the change spans 3 areas (docs/contracts, plugins/codebase-health, plugins/harness-ops), over the 1-area tidy cutoff
  • Test suites and the CI-only checks check-affected lists (evals-schema, contract-clause-coverage, line-citations, editorconfig, etc.) were not run here; left to the PR's CI
  • The evals were not executed against a model; only their structure and quality were checked
  • Untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not written by this run, which looks like sandbox mount residue; keep them out of the patch
  • The issues #3606 and #5835 could not be read (no tracker access in this lane); #5835 was identified from the repo as the explainer-video spec container (scripts/skill-leaf-name-registry.txt, docs/contracts/on-demand-dependencies/README.md), and the candidate list was taken from the issue body

Fix

  • plugins/codebase-health/skills/audit/SKILL.md: new 'Rendered view (offered, never emitted)' section (medium resolution from --medium then the three rendered-views layers, an offer table, a one-line fallback when visualization is absent), a --medium argument in argument-hint and Argument Parsing, and
  • plugins/codebase-health/skills/audit/evals/evals.json: evals 8 (offer made with shipped default, no page built) and 9 (medium: terminal from the user-global layer drops the offer)
  • plugins/codebase-health/README.md: a paragraph on the rendered-view offer and --medium
  • .changes/codebase-health/work-resolve-issue-issue-11363-41420323700-1-15665aae.md: minor fragment for the new offer and argument
  • plugins/harness-ops/skills/morning-brief/context/view.md: the artifact/hosted row keeps the page local when the value comes from the team layer
  • .changes/harness-ops/work-resolve-issue-issue-11363-41420323700-1-5e0dab14.md: patch fragment for that fix
  • docs/contracts/rendered-views/README.md: codebase-health:audit row among the argument-then-cascade emitters, harness-ops:morning-brief among shared-builder emitters, and an 'Assessed under the genre rubric and given no lane' list with a reason per skill
  • docs/contracts/rendered-views/CHANGELOG.md: entry for this rubric pass

Verification

The runner ran each check from the base copy against 9945bec:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 16 fragments valid
  • check-changed-skills: codebase-health audit and harness-ops morning-brief PASS, 0 errors (warnings were already there: description length, body size, Gotchas)
  • check-affected: 11 passed, 7 skipped (typos not installed; checks that run code from the checked tree), the rest CI only
  • check-evals-quality on plugins/codebase-health/skills/audit/evals/evals.json: PASS; 2 warnings on evals 3 and 6, which were already there
  • Fresh-context review subagent over the whole diff: 4 confirmed findings (testing:audit reason wrong about --check, knowledge reason confused record with view, morning-brief team-layer publish gap, Fix gate STOP contradicted the offer), all fixed; doubts on course-digest/map-corpus genre fit led to l
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41420323700

Left out: the items under Not verified.

Related

#11363

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 9945becdddb088b212fc72709cac7b44999f54c8; the summary is in this lane's pull request comment.

claude-lane: claude-review

| `terminal` | The brief only. Build nothing. |
| `file`, or `auto` in an interactive session | Build the page to an untracked temp file and tell the reader its path. |
| `artifact`, or `hosted` (never sent to a page host here) | Build the page, then publish that file with the Artifact tool when it is available. Otherwise take the `file` row and say why. Publishing does not lower the page's class. |
| `artifact`, or `hosted` (never sent to a page host here) | From the team layer, which a checked-out branch can write: take the `file` row and say a team layer cannot publish. From any other layer: build the page, then publish that file with the Artifact tool when it is available. Otherwise take the `file` row and say why. Publishing does not lower the page's class. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Advisory: no eval covers the new team-layer rule. This row is the substance of the harness-ops patch fragment: a medium: artifact or hosted in the tracked <root>/.claude/rendered-views.md, which any checked-out branch can write, must now fall back to the file row and say why. But the skill's only cascade eval (plugins/harness-ops/skills/morning-brief/evals/evals.json, the case near line 107) sets medium: file in the user-global layer, and that path never reaches this branch. If the team-layer clause were dropped or reworded so that a team value publishes again, every existing case would still pass.

To show the gap: run /harness-ops:morning-brief in an interactive session whose tracked .claude/rendered-views.md says medium: artifact, with no user-global or overlay value. The expected result is a local page path plus a line saying a team layer cannot publish, with no Artifact call. Nothing asserts that today.

Suggested fix: add one case with that fixture. Its expectations should be that the page is built to a local temp file, that the Artifact tool is not called, that the output names the team layer as the source of medium, and that it says a team layer cannot publish.

claude-lane: claude-review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-unblock / address-feedback: VALID (defer), left open

Evidence: plugins/harness-ops/skills/morning-brief/context/view.md:35, plugins/harness-ops/skills/morning-brief/evals/evals.json:107

Confirmed: the only cascade eval for morning-brief (id 8) sets medium: file in the user-global layer, so nothing checks the new team-layer clause in the view.md artifact/hosted row. The fix belongs in plugins/harness-ops/skills/morning-brief/evals/evals.json, which this pull request does not otherwise change. This lane cannot land a fix whose only changed file is outside the pull request's files, so it is left for a person. Suggested case: an interactive session with the Artifact tool available, a tracked .claude/rendered-views.md saying medium: artifact, and no user-global or overlay layer. Expectations: the page is built with scripts/build-brief-view.mjs to a local temp file and its path is given; the Artifact tool is not called; the team layer is named as the source of medium; the reply says a team layer cannot publish.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6322279cf92f33c87a34e7dd361c242da0870bd1: read 2 of 2 changed file(s); 1 finding(s), 0 as inline comments.

Code review (incremental: ce5d462 → 6322279): PR #12344

Scope. This round covers only what changed since ce5d462, in two files: docs/contracts/rendered-views/README.md and docs/contracts/rendered-views/CHANGELOG.md. I read every hunk of both in .claude-lane/incremental.diff. I used the full PR diff and the head files for context only.

What changed and what I checked

  • README.md L595-L600, the codebase-health:audit contract entry. It now says "artifact or hosted from the team layer keeps the offer and passes file to it, so a team layer cannot publish". The clause sits before the "every other value" fallback.
    • It matches the skill's offer-table row at plugins/codebase-health/skills/audit/SKILL.md#L339.
    • It matches the guard the same PR gave the harness-ops:morning-brief entry.
    • Because the clause is limited to the team layer, a --medium argument and a counted overlay still decide first, which is consistent with the skill.
  • CHANGELOG.md L10-L11. The audit's entry now records the team-layer guard in the same terms as the contract and the skill. The morning-brief bullet already had matching wording.

This resolves my earlier advisory finding (discussion_r4441030309): the registry is no longer inconsistent between the two emitters. That finding is not re-raised.

Findings (1, advisory)

  1. already posted: feat(codebase-health): offer a rendered view of the audit report per the rendered-views genre rubric #12344 (comment). No eval covers the team-layer row in harness-ops:morning-brief's context/view.md. Neither that file nor its evals has changed since that post, so the gap is still open. It is outside this round's incremental scope and is restated here only because the thread is still open.

Notes

  • No closing issue. The PR closes no issue (it carries only Refs: #11363), so there are no closing-issue criteria to check.
  • Settled thread. The thread on SKILL.md L340 was resolved, and its lines are unchanged since then. Not re-raised.
  • Verification is author-claimed. The CI checks and eval runs in the PR body are the author's claims. I did not verify them: this lane has no shell.
  • No spend. This change touches no turn limits, models, schedules or billing.
  • No embedded instructions. The PR context, settled-threads and prior-findings files contain no instructions aimed at this lane.
  • Round cap. This is round 3 of a cap of 3; past the cap: no, so the cap did not apply.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 9945becdddb088b212fc72709cac7b44999f54c8; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6322279cf92f33c87a34e7dd361c242da0870bd1: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12344 (incremental since ce5d462)

I read every hunk in .claude-lane/incremental.diff for both files in scope:

  • docs/contracts/rendered-views/CHANGELOG.md
  • docs/contracts/rendered-views/README.md

Neither file matches a trusted-path glob. The increment touches no plugin manifest, workflow, action, token request or merge-hold script.

What changed

  • Both files are documentation, and both now state the rule that the previous round added to plugins/codebase-health/skills/audit/SKILL.md:
    • README.md L598-L600 (the codebase-health:audit emitter entry) says an artifact or hosted value from the team layer keeps the offer and passes file, so a team layer cannot publish.
    • The CHANGELOG.md entry says the same thing.
  • This narrows publishing. The contract now matches the skill's offer table and the cascade concern: a publishing value counts only from a layer that a checked-out branch cannot write.
  • Before, the contract's catch-all ("every other value ... leaves the rung to visualization:visualize") described the gap that the skill row closed.

Prior findings and settled threads

  • My earlier SUGGESTION (discussion_r4440899790) is resolved and settled with lines changed since resolution: no.
  • This increment brings the contract in line with that fix, so there is nothing to repost.

Other checks

  • Instruction-surface lens: no rule was removed or softened. The only edit adds a narrowing clause ahead of the catch-all, so I did not need to check the instruction exception register.
  • PR context: it contains no instructions aimed at the review lane.
  • Spend: nothing beyond normal session use.
  • Round cap: not reached (1 of 3).

No security issues found in this increment.

critical-findings: 0

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ynACg

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on ce5d462d1cc0f3a21ef7a6ef3f3f851c39e45489; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on ce5d462.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 2, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=12344 -f activity=address-feedback

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ynUbR
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 6322279.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 6322279cf92f33c87a34e7dd361c242da0870bd1. The lanes clear this reason on their own; the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which ci-status fails
  in the merge queue

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 2, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Hold: replaced by #12351 (it adds the morning-brief team-layer eval the open review thread asks for, in a file outside this pull request's files that the pr-unblock lane cannot change). Releases when: #12351 merges.

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #12351, merged.

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

Labels

do-not-merge Hard merge gate: do not merge while applied. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant