Repository navigation
feat(rendered-views): one medium resolver with the publish trust walk and fallback chain - #12714
Conversation
… and fallback chain Every view lane in review, visualization and planning now resolves its medium through lib/view-settings.mjs over the ADR 0075 scopes: the argument decides alone; a terminal or file value from userConfig, team or the personal override keeps the view local; a publishing value counts only from an untracked, gitignored personal override or userConfig; the lane's own default applies when no scope decides; a team file never publishes. Each scope is read on its own through the cascade's new readLayers export, so a lower scope's local value survives a higher scope's publishing one. lib/view-registry.mjs holds the medium entries, the one fallback chain (artifact, file, terminal; hosted read as artifact unless the lane is hosted-capable), the lane registrations and the report line. The retired ~/.claude/rendered-views.md and .claude/rendered-views*.md give a notice once per plugin per project while unchanged, never a value. trustedMedium, digest-policy's resolveMedium and check-deck's list are gone; review and planning gain a medium userConfig option. Closes #12649 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
…e publish gate A local value is moot to the gate; the contract names only the argument and a trusted publishing scope as explicit. Also cites the planning reference by plugin root from the interview skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
…olver # Conflicts: # docs/contracts/config-cascade/CHANGELOG.md
…00-character budget Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
Codex Review SummaryThis 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. |
…o a lane runs it plan-test-lanes.sh refused the plan because no lane held the new Node suite; run-plugin-tests.sh discovers only .test.sh files, as for the config-cascade and publish-gate suites beside it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4edebb775
ℹ️ 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".
|
claude-security-review reviewed Security review: incremental (c146b08 → 5a5974e)I found no security issues in this push. critical-findings: 0 What I checkedI read every hunk of all 15 files on the incremental list:
Prior findings: the earlier rounds posted 0 findings, so I have nothing to restate. The round cap didn't apply ( Spend: none. |
|
claude-review reviewed Code review: incremental (c146b08 → 5a5974e)No findings in this push. I read every hunk of all 15 files in scope: the root What changed: lookups like Why the fix is right:
Tests: I did not run the suites, since I have no shell. The new tests only exercise the root Earlier findings: the earlier summary finding (link) reported no findings and covered files this push doesn't touch, so there is nothing to restate. The round cap did not apply (0 of 3 rounds with findings). Settled thread: the Spend: none. |
…e cascade table The medium option added to the prd hub pushed "ask ONE question" past the 20,000-byte re-attach slice; tighten the prose before it. Regenerate the config-cascade semantics block from the rendered-views source row. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
…default check-deck built its report line from the medium resolution before the publish gate ran. When no trusted layer picked a medium and the source was private, or a credential-shaped line kept the deck local, the result said medium "file" while the report still printed "view: artifact (plugin default)". The skill prints the report unchanged, so the reader was told the deck went to an Artifact. The report is now built after the gate. When the gate keeps a deck local, it names file and the gate's reason, for example "view: file (publish gate: repository visibility is PRIVATE, not PUBLIC)". Two tests cover the private-source and credential cases. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vcupom3BKF6QuC5U3sRJPj
|
The pr-verify verifier failed head What it wrote (119 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
The resolver validated --argument and --lane by plain lookup on the frozen MEDIUMS and LANES objects, so an inherited key such as toString or __proto__ passed as a medium and threw in fallBack(), and constructor passed as a lane. mediumOf() and laneOf() in view-registry.mjs use Object.hasOwn, and every lookup in view-settings.mjs and fallBack() goes through them. The CLI now refuses those names with its usage line, and resolveMedium ignores them as an argument. Refs: #12649 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
|
Reply to the pr-verify note on
|
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #12649
Summary
Every view lane in review, visualization and planning now resolves its medium through one resolver,
lib/view-settings.mjs, on the ADR 0075 scopes, and prints one report line,view: <medium> (<what decided it>). Slice 1 of epic #12646.terminalorfilevalue from userConfig, the team file or the personal override keeps the view local. A publishing value (artifact,hosted) counts only from an untracked, gitignored personal override, then userConfig. With no scope deciding, the lane's own default applies (it ships with the installed plugin). A team file never publishes. An invalid value is ignored without dropping another scope's value;autois unset.readLayers, never a filter onresolve()'s merged output, so a lower scope's local value survives a higher scope's publishing one.resolve()is unchanged; all 66 existing cascade tests pass untouched.~/.claude/rendered-views.mdand.claude/rendered-views*.mdgive one notice per plugin per project, keyed by project identity (plugin-data-report-keying rule 1, vialib/state-key.sh) and the file's content hash, written atomically; never a value.lib/view-registry.mjsholds the medium entries, the one fallback chain (artifact, file, terminal;hostedread asartifactunless the lane is hosted-capable), the lane registrations and the report line.Fix
lib/view-settings.mjs(resolver, generalized personal-override trust check that walks every directory from the root,--team-refgit reader, notices,resolveCLI) andlib/view-registry.mjs, synced withconfig-cascade.mjs,yaml-subset.mjsandstate-key.shinto every plugin that carriespublish-gate.mjsplus planning.trustedMedium(and the trusted-layer helpers) fromlib/publish-gate.mjs, which keeps no imports beyond Node built-ins for the read runner's scan job. Review'sdigest-policy.mjsresolveMediumand check-deck's medium list now call the shared resolver; review reads the team file from the base commit only.--explicitnow followsmedium.explicit: true only for a publishing medium the reader chose (argument, userConfig, trusted personal override), never the plugin default.mediumuserConfig option (defaultauto). Skill prose in review, visualization (present and visualize) and planning runs the CLI instead of listing files.artifactvalue it honored before is now ignored with a notice; changelog fragment says so.Verification
node --test lib/view-settings.test.mjs lib/config-cascade.test.mjs lib/publish-gate.test.mjs: 260 pass, 0 fail.node --test plugins/review/tests/explain-change.test.mjs: 139 pass;plugins/visualization/tests/present.test.mjs: 52 pass.scripts/sync-shared-copies.sh --checkand--check-bump origin/mainexit 0;scripts/check-cross-plugin-source-drift.sh --checkclean.node -e "import('./plugins/<p>/lib/view-settings.mjs')"exits 0 for review, visualization, work-items, harness-ops, source-control, planning.gh search code "filename:rendered-views.yaml path:docs/conventions org:melodic-software"returns[].scripts/check-affected.sh: 14 passed;scripts/check-changed-skills.sh origin/main: all changed skills PASS.lib, review, visualization and planning. It still finds the old paths in adhd, ai-briefing, architecture, codebase-health, debugging, discovery, education, overengineering, prototype and work-items skills and evals, which the issue's Out of scope leaves to the Phase 9 slices.Related
session: html-plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt