Skip to content

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

Merged
kyle-sexton merged 5 commits into
mainfrom
fix/12344-replacement
Nov 2, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
fix/12344-replacement

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #11363
Refs: #12344

Summary

Replaces #12344, which the work-resolve-issue lane opened. Its pr-unblock address-feedback lane stopped with feedback-untaken-threads: the one open claude-review thread asks for an eval in plugins/harness-ops/skills/morning-brief/evals/evals.json, a file outside that pull request's files, which the lane cannot change. This branch is origin/main with #12344's head (6322279c) merged in, plus that eval.

Content carried over from #12344: codebase-health:audit offers a rendered view of its report through visualization:visualize (offer only, --medium argument, team-layer artifact/hosted passes file); harness-ops:morning-brief's context/view.md keeps the page local when the team layer sets artifact or hosted; the rendered-views contract records both emitters and the skills assessed with no lane. knowledge:course-digest and knowledge:map-corpus stay open under #11363.

Fix

  • plugins/harness-ops/skills/morning-brief/evals/evals.json: eval 10 team-layer-artifact-keeps-the-page-local. A tracked .claude/rendered-views.md with medium: artifact and no other layer: the page is built with scripts/build-brief-view.mjs to a local temp file, the Artifact tool is not called, the team layer is named as the source of medium, and the reply says a team layer cannot publish.
  • Every other file: unchanged from feat(codebase-health): offer a rendered view of the audit report per the rendered-views genre rubric #12344 (see its Fix section).

Verification

  • plugins/skill-quality/scripts/check-evals-quality.sh on the morning-brief evals: PASS, 3 warnings (Q4 path-shaped token without a fixture; eval 8 already carries the same warning).
  • scripts/check-changelog-fragments.sh --check: all 60 fragments valid.
  • scripts/check-changed-skills.sh --merge-base: codebase-health audit and harness-ops morning-brief PASS, 0 errors.
  • Pre-push check-affected: passed.
  • The evals were not run against a model.

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 5 commits November 2, 2026 09:42
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ynACg
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ynUbR
…h an eval

Add eval 10 to morning-brief: a tracked .claude/rendered-views.md that
says medium: artifact keeps the page local, never calls the Artifact
tool, names the team layer as the source and says a team layer cannot
publish. This answers the open claude-review thread on #12344, which
the pr-unblock lane could not fix because evals.json is outside that
pull request's files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T10:33:51.241971Z 7b77585 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7b77585047c92d0391eef27466361de9459d2996: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12351 (head 7b77585)

I read all 9 changed files in .claude-lane/pr.diff hunk by hunk. I also read the whole of the head plugins/harness-ops/skills/morning-brief/context/view.md and the medium-resolution section of plugins/visualization/skills/visualize/SKILL.md, which the new audit offer hands off to.

No security issues found.

What I checked

  • harness-ops:morning-brief's context/view.md: this change narrows publishing. Before it, medium: artifact or hosted from any layer published the page with the Artifact tool. That included the tracked team layer <root>/.claude/rendered-views.md, which a checked-out branch can write. Now that value from the team layer takes the file row (view.md#L35). The existing overlay checks are unchanged: a staged or non-gitignored overlay is not honored, and an untracked team layer is a hard stop (L26-L27). A checkout cannot create an untracked, gitignored overlay, so a branch has no route left to publish.
  • codebase-health:audit rendered-view offer (SKILL.md, new section): the skill only offers a view and builds no page itself. The person must accept the offer before anything is handed to visualization:visualize. A team-layer artifact or hosted passes an explicit file, which overrides visualize's own cascade read at rung 1. Without that override, visualize would honor a team-layer artifact (rung 3, visualize SKILL.md#L123-L137), so the new skill text closes that route for this emitter. The overlay is counted only when untracked and gitignored, the same rule visualize and morning-brief use. --medium comes from the invoker. No new command, script or tool grant is added: the argument-hint changes, but allowed-tools and model invocation do not.
  • Evals, changelog fragments, contract README/CHANGELOG, plugin README: these are documentation and test fixtures only, with no executable surface. The eval fixtures describe the team layer as hostile-capable and check that nothing is published.
  • Trusted paths: none of the changed files match a TRUSTED PATHS: glob. No plugin manifest (plugin.json or marketplace.json) changed, so there are no manifest lines to report.
  • Instruction-surface lens: the diff removes no guardrail. The one edited instruction row in morning-brief adds a restriction. I did not need to consult docs/contracts/instruction-exception-register/README.md, because nothing was deleted or softened.
  • PR context: the description contains no embedded directives aimed at the review.

visualize itself still honors a team-layer artifact when another caller invokes it with no argument. That predates this PR and is outside its scope, so it is not counted.

Spend: none. The change adds 4 evals, which spend prepaid model credit only when they run.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 7b77585047c92d0391eef27466361de9459d2996: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12351 (no findings)

I read every hunk in all 9 changed files.

What the PR does

  • codebase-health:audit now offers to render its report through visualization:visualize. It only makes the offer and never builds a page itself.
  • A new --medium argument controls the offer, and so do the three rendered-views layers. When the team layer sets artifact or hosted, the audit passes file instead.
  • harness-ops:morning-brief keeps its page local when the team layer sets a publishing medium. Eval 10 now pins this behaviour.
  • The rendered-views contract and its CHANGELOG record both emitters, plus five skills that were assessed and given no rendering option.

Checks

  • Matches the contract: The new codebase-health rules match the contract's cascade section, README.md#L780-L812. A publishing value counts only from a layer a checked-out branch cannot write. The new rules use the same overlay test (git ls-files / git check-ignore) and the same way of finding the repository root as morning-brief/context/view.md. The behaviour table in SKILL.md, the plugin README, the contract entry, the CHANGELOG and both changelog fragments all describe the same rules.
  • Behaviour edge cases:
    • terminal from any source makes no offer and prints no "unavailable" line.
    • The offer comes before any --fix handoff.
    • The text that stops the run when --fix is absent was updated to include the offer line.
    • The #rendered-view-offered-never-emitted anchor resolves to the new heading.
  • Evals: codebase-health evals 8, 9 and 10 cover the default, user-global terminal and team-layer artifact cases. morning-brief eval 10 covers the team-layer artifact case. Eval ids are unique in both files.
  • Changelog fragments: codebase-health is minor (a new argument and capability) and harness-ops is patch (a behaviour fix). Both levels fit the changes.
  • Manifests: no plugin.json or marketplace.json changed, so the manifest checks don't apply.
  • Repository rules: the rules in .claude/rules/ whose paths match these files are eval-case-transcripts, skill-bodies-state-current-rules and cost-claims. No changed line breaks them: there are no transcripts in the evals, no restated upstream specifics and no cost claims.
  • Paved paths: no paved-path entry applies.

Not in scope here: whether the team-layer guard is strong enough is a security question. It belongs to the security lane (pr-review-security-hosted.yml), so this lane did not judge it.

Closing issues: the PR uses Refs: for #11363 and #12344 and closes no issue, so there were no acceptance criteria to check.

Not verified by me: the eval-quality, changelog-fragment, changed-skill and check-affected results in the PR body are the author's claims. The PR also says the evals were not run against a model.

Spend: none beyond normal lane usage.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant