Skip to content

feat(rendered-views): one medium resolver with the publish trust walk and fallback chain - #12714

Merged
kyle-sexton merged 10 commits into
mainfrom
feat/12649-medium-resolver
Nov 3, 2026
Merged

kyle-sexton merged 10 commits into
mainfrom
feat/12649-medium-resolver

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

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.

  • The argument decides alone. A terminal or file value 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; auto is unset.
  • Each scope is read on its own through a new cascade export, readLayers, never a filter on resolve()'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.
  • The retired ~/.claude/rendered-views.md and .claude/rendered-views*.md give one notice per plugin per project, keyed by project identity (plugin-data-report-keying rule 1, via lib/state-key.sh) and the file's content hash, written atomically; never a value.
  • 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.

Fix

  • New lib/view-settings.mjs (resolver, generalized personal-override trust check that walks every directory from the root, --team-ref git reader, notices, resolve CLI) and lib/view-registry.mjs, synced with config-cascade.mjs, yaml-subset.mjs and state-key.sh into every plugin that carries publish-gate.mjs plus planning.
  • Removed trustedMedium (and the trusted-layer helpers) from lib/publish-gate.mjs, which keeps no imports beyond Node built-ins for the read runner's scan job. Review's digest-policy.mjs resolveMedium and check-deck's medium list now call the shared resolver; review reads the team file from the base commit only.
  • The publish gate's --explicit now follows medium.explicit: true only for a publishing medium the reader chose (argument, userConfig, trusted personal override), never the plugin default.
  • Review and planning gain a medium userConfig option (default auto). Skill prose in review, visualization (present and visualize) and planning runs the CLI instead of listing files.
  • Rewrote the rendered-views contract's reachability and settings sections (fallback chain, personal override, precedence) and fixed the config-cascade rows that called rendered-views "conforms" (D6), including the root-rule and location-axis rows.
  • Behavior change for review: a team artifact value 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 --check and --check-bump origin/main exit 0; scripts/check-cross-plugin-source-drift.sh --check clean.
  • 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.
  • The retired-path grep is clean in 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

  • Epic Epic: consolidate the planning chain #12646; later slices migrate the other view lanes (Phase 9) and add shared copies to them (Phase 8).
  • Design: contracts C1 (medium resolution), C2 (registry), C3 (report line).

session: html-plan

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt

kyle-sexton and others added 6 commits November 2, 2026 23:24
… 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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 3, 2026 05:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-03T05:25:01.925462Z e4edebb Draft marked ready
ℹ️ 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.

…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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5a5974e614eda821b1eb374bed9a1475908e1360: read 15 of 15 changed file(s); 0 finding(s), 0 as inline comments.

Security review: incremental (c146b08 → 5a5974e)

I found no security issues in this push.

critical-findings: 0

What I checked

I read every hunk of all 15 files on the incremental list: lib/view-registry.mjs, lib/view-settings.mjs, the test file, and the six synced plugin copies (harness-ops, planning, review, source-control, visualization, work-items). The plugin copies match the root files hunk for hunk.

  • The new lookups mediumOf / laneOf (lib/view-registry.mjs): they return a registry entry only for a string that is an own key of the frozen MEDIUMS / LANES objects. Before, a lookup like MEDIUMS[x] could match inherited names such as toString, constructor or __proto__. This push can only reject input that used to resolve, so it lets nothing new through:
    • In the CLI, --argument toString used to pass validation. Inside fallBack it would then have thrown on .reachable. It now gets the usage error, exit 2.
    • --lane constructor is now refused, both at the CLI and in resolveMedium.
  • The publish decision is unchanged for every valid medium:
    • gateExplicit still needs a medium with publishes set, decided by the argument, userConfig or the personal override (L200). An inherited key gave undefined before and still does.
    • The personal-override trust walk, the team-never-publishes rule and the local-first scope order are unchanged.
  • fallBack now throws on an unknown medium instead of failing on a property of undefined. That is a fail-closed error and it publishes nothing.
  • One crash path checked: scopes.find(... !mediumOf(medium).publishes) (L244) would throw on an unregistered value. It only sees layer values that passed readLayers against SCHEMA; an invalid value goes to that layer's errors and is reported as ignored. The worst case would be a thrown error, not a publish.
  • Trust controls, manifests and Actions: this push touches no trusted-actor list, token request, kill switch, merge hold, workflow, plugin manifest or userConfig default. None of the 15 files matches a TRUSTED PATHS glob (lib/publish-gate.mjs matches one, but this push doesn't change it). Nothing deletes or softens a standing instruction.

Prior findings: the earlier rounds posted 0 findings, so I have nothing to restate. The round cap didn't apply (past the cap: no).

Spend: none.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 5a5974e614eda821b1eb374bed9a1475908e1360: read 15 of 15 changed file(s); 0 finding(s), 0 as inline comments.

Code review: incremental (c146b08 → 5a5974e)

No findings in this push. I read every hunk of all 15 files in scope: the root lib/view-registry.mjs, lib/view-settings.mjs and lib/view-settings.test.mjs, plus the six plugin copies of view-registry.mjs and view-settings.mjs. The plugin copies' hunks match the root versions exactly.

What changed: lookups like MEDIUMS[x] and LANES[x] are replaced by mediumOf and laneOf, which check typeof id === "string" && Object.hasOwn(...). An inherited key such as toString, __proto__ or constructor no longer counts as a medium or a lane.

Why the fix is right:

  • The bug it closes is real. On the old code, --argument toString passed MEDIUMS[argument], so finish("toString") ran. In fallBack, MEDIUMS.toString.reachable is undefined, so calling it threw a TypeError. The new test an inherited key as the argument does not decide would fail on the old code.
  • The non-null dereferences are safe:
    • mediumOf(medium).publishes at lib/view-settings.mjs:244: every scopes value has passed readLayers' schema check. SCHEMA limits medium to NO_PREFERENCE plus Object.keys(MEDIUMS) (lib/config-cascade.mjs:145), and auto is filtered out, so the lookup always finds an entry.
    • mediumOf(id).reachable in fallBack: each candidate comes from FALLBACK_CHAIN or is "hosted", and all of those are own keys.
  • The new guard in fallBack turns a lookup that used to crash with a TypeError into a named unknown medium error.
  • Gate behaviour: gateExplicit and the personal-override check still work for real mediums. For a non-own key, the publishes check now reads false and doesn't depend on whatever the prototype holds.
  • CLI: main refuses an inherited lane or argument with a usage exit (status 2). The new CLI test covers toString, __proto__ and constructor.

Tests: I did not run the suites, since I have no shell. The new tests only exercise the root lib/ copy. The plugin copies are byte-identical in these hunks.

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 check-deck.mjs L233 thread is about a file this push doesn't touch. It stays settled.

Spend: none.

kyle-sexton and others added 2 commits November 3, 2026 00:39
…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
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head c146b084e19d4318a8a4c8b16aae1b80b9481dd5. What it wrote, as data:

What it wrote (119 lines)
Summary: Whole spec, fail: Issue #12649 (PR #12714): the chunks deliver the outcome, AC4, AC7, AC14
  and D6. Two done-when items are not delivered. First, the retired-path git grep still finds
  rendered-views(.local).md outside the resolver: the PR body and chunk 1 both say so. The issue's
  Out of scope covers migrating skills onto the CLI, not this grep, and the issue has no
  person_checks or scope that excuses it. Second, the tests and shared-copies item: no chunk says
  plainly that the tests pass or that the --check and --check-bump runs pass. All three chunks say
  this is unsettled because select-tests was skipped.
Chunk 1 of 3, pass-notes: Chunk 1 of 3 for issue #12649 (PR #12714). I read all 20 parts in full and
  found nothing that blocks. What each done-when item gets from this chunk:

- **AC4: delivered.** `lib/view-settings.mjs` implements `resolveMedium` and the `resolve` CLI on
  the ADR 0075 scopes. The argument decides alone. A terminal or file value from any scope keeps the
  view local. A publishing value counts only from an untracked, gitignored personal override
  (checked at every directory on its path), then userConfig. A team file never publishes. The plugin
  default applies when no scope decides. An invalid value is dropped from its own scope only, and
  `auto` counts as unset. Each scope is read separately through the new `readLayers` export in
  `lib/config-cascade.mjs`, and `resolve()` is unchanged. The retired files are never read as
  values. `lib/view-settings.test.mjs` holds every case the issue names: team artifact + userConfig
  file gives file; team invalid + userConfig file gives fil
Chunk 2 of 3, pass-notes: Chunk 2 of 3 for issue #12649 (one medium resolver on the ADR 0075
  scopes). I read all 20 parts of this chunk whole. Because this chunk's code imports files that
  chunk 1 holds, I also read chunk-1 parts 018, 019 and 020 whole: the review copies of
  config-cascade.mjs and publish-gate.mjs. No binary files.

What this chunk delivers for each done-when item:

- AC4 (partly delivered here): review's digest-policy.mjs and present's check-deck.mjs now resolve
  the medium only through the shared resolver (resolveMedium in view-settings.mjs). The shared
  copies of the resolver in review, source-control and visualization read each scope separately
  through readLayers, so a team file never publishes. They read the team file from a git ref through
  --team-ref or the base commit. A personal override publishes only when untracked and gitignored.
  The plugin default applies when no scope decides. ~/.claude/rendered-views.md and
  .claude/rendered-views*.md are never read as a sett
Chunk 3 of 3, pass-notes: Issue #12649, chunk 3 of 3. This chunk holds the work-items copies of the
  shared modules (publish-gate.mjs with trustedMedium removed and OPT_IN no longer naming
  ~/.claude/rendered-views.md, plus new state-key.sh, view-registry.mjs, view-settings.mjs and
  yaml-subset.mjs) and the registrations in scripts/shared-copies.txt and
  scripts/cross-plugin-source-registry.txt. What these parts deliver: (1) for the done-when item
  "each synced view-settings copy imports", the work-items copy has every sibling it imports.
  config-cascade.mjs is in chunk 2 part-018, which I read; view-registry.mjs and yaml-subset.mjs are
  in this chunk. state-key.sh, which the resolver runs, is here too. (2) Part of the "shared-copies
  --check / --check-bump" item: the copy registrations for review, visualization, work-items,
  harness-ops, source-control and planning. Whether the script actually passes is not settled,
  because no CI job shows it ran. (3) Part of AC4, AC7 and AC14 in the work-ite
- Done-when item 'A git grep for rendered-views(.local).md outside the resolver and its tests finds
  only changelog lines' is not delivered. Chunk 1 and the PR body both say the old paths remain in
  the skills and evals of adhd, ai-briefing, architecture, codebase-health, debugging, discovery,
  education, overengineering, prototype and work-items. The issue's Out of scope excludes migrating
  those skills onto the CLI, not this grep. The issue has no person_checks or scope that would limit
  the item.
- Done-when item 'The publish-gate and config-cascade tests pass; the shared-copies script passes
  --check and --check-bump; each synced view-settings copy imports' is not delivered. Chunks 1, 2
  and 3 each say it is not settled, because select-tests was skipped and no CI run shows these
  checks on head c146b084. Only the PR body says they passed.
- scripts/shared-copies.txt: chunk 3 notes that harness-ops gets view-settings.mjs (chunk 1) but no
  state-key.sh copy is registered or added in the manifest. If base has no copy either, retired-file
  notices in harness-ops would repeat every run, against AC14's once-only rule. A person should
  confirm.
- plugins/review/lib/config-cascade.mjs and plugins/planning/lib/config-cascade.mjs (chunk 1) import
  ./yaml-subset.mjs, but the manifest adds no yaml-subset.mjs for review or planning. Chunks 1, 2
  and 3 each flag this; confirm that copies exist at base.
- The done-when item "git grep for rendered-views(.local).md finds only changelog lines" is not met
  in full: by the PR body's own account the old paths remain in adhd, ai-briefing, architecture,
  codebase-health, debugging, discovery, education, overengineering, prototype and work-items skills
  and evals. Those files are outside this diff; the final verifier should decide whether the issue's
  Out of scope (migrating other plugins' skills) excuses this item.
- upstream-jobs.json: select-tests was skipped (a re-run that ran no suite), so no green job shows
  that lib/view-settings.test.sh, lib/config-cascade.test.sh, lib/publish-gate.test.sh or the
  shared-copies checks ran on this head. Only the PR body says they passed.
- lib/view-settings.mjs:284 (main): `!MEDIUMS[request.argument]` and `!LANES[request.lane]` look
  values up on plain frozen objects, so an inherited key such as `--argument toString` passes
  validation and then throws a TypeError in fallBack(). Use Object.hasOwn(MEDIUMS, …) and
  Object.hasOwn(LANES, …), here and in resolveMedium's `MEDIUMS[argument]` check. Minor: these
  arguments come from the skill, not from untrusted input.
- lib/publish-gate.mjs: trustedMedium, findRoot, overlayApplies and MEDIUMS are removed from the
  canonical file and from the harness-ops and review copies. Any other importer of these exports
  would break; the callers I can see from here (digest-policy.mjs, check-deck.mjs) are in chunk 2,
  and the PR body says check-affected passed.
- plugins/planning/lib/config-cascade.mjs and plugins/review/lib/config-cascade.mjs import
  ./yaml-subset.mjs, but this diff adds no yaml-subset.mjs to planning or review. Presumably both
  already carry it; the PR body says each copy imports. Worth confirming with the shared-copies
  --check.
- plugins/planning/skills/prd/SKILL.md:212-216: a small rewording of the Acceptance-criteria capture
  section that the issue does not ask for. It is harmless, possibly a skill-budget trim.
- plugins/review/.claude-plugin/plugin.json and plugins/planning/.claude-plugin/plugin.json add a
  `medium` userConfig option (default auto); review's change log marks a major bump because a team
  `artifact` value no longer publishes digests. That is a tightening, not a loosened hold.
- upstream-jobs.json: select-tests was skipped (a label or body-edit re-run), so the job list is no
  evidence either way. explain-change.test.mjs and present.test.mjs have no green CI run on this
  head, so whether they pass is not settled here.
- plugins/review/lib/config-cascade.mjs: imports ./yaml-subset.mjs, but the diff adds no
  plugins/review/lib/yaml-subset.mjs (the source-control, visualization, work-items and harness-ops
  copies are added). Confirm the review copy already exists on the base and is registered in
  scripts/shared-copies.txt; otherwise digest-policy.mjs fails at import.
- plugins/source-control/lib/view-settings.mjs: the resolver and registry, with their cascade,
  yaml-subset and state-key copies, are synced into source-control, which has no view lane. The PR
  says this follows from removing trustedMedium from every publish-gate.mjs copy. It is outside the
  issue's named lanes, but harmless.
- plugins/review/skills/explain-change/scripts/digest-policy.mjs:134: behavior change. Review no
  longer honors a team-file artifact medium or ~/.claude/rendered-views.md, as the spec asks. Users
  who set hosted in the retired user file must move it to the review plugin's medium option; they
  get a one-time notice.
- plugins/visualization/skills/visualize/evals/evals.json: — escapes were rewritten as literal em
  dashes. The content is unchanged, but this is churn the issue did not ask for.
- upstream-jobs.json: select-tests is skipped, so this was a re-run that ran no suite and the job
  list is no evidence either way. That the view-settings, config-cascade and publish-gate tests
  pass, and that shared-copies passes --check and --check-bump, rests only on the PR body's claims.
- scripts/shared-copies.txt: harness-ops is registered for view-settings.mjs, view-registry.mjs,
  config-cascade.mjs and yaml-subset.mjs but not for state-key.sh, and the manifest adds no
  plugins/harness-ops/lib/state-key.sh. If harness-ops carries no copy at base, its
  view-settings.mjs never gets a state key, and every retired-file notice repeats on each run (the
  safe direction, but it breaks AC14's rule that an unchanged file notices only once in that
  plugin). Add `lib/state-key.sh plugins/harness-ops/lib/state-key.sh` unless a copy already exists.
- scripts/shared-copies.txt: review and planning get config-cascade.mjs but no registered
  yaml-subset.mjs copy. The PR body says those copies import cleanly, so a sibling presumably exists
  at base. That falls to chunks 1 and 2 to confirm.
- plugins/work-items/lib/publish-gate.mjs: trustedMedium, overlayApplies, findRoot and MEDIUMS are
  removed from this copy's exports. I could not check from my parts whether any work-items caller
  still imports them; the canonical lib/publish-gate.mjs change is in chunk 1.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass at a new commit removes the label.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 3, 2026
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
@kyle-sexton

Copy link
Copy Markdown
Member Author

Reply to the pr-verify note on c146b084, one line per finding. New head: 5a5974e614eda821b1eb374bed9a1475908e1360.

  • (a) Grep done-when item. The issue's item was scoped (issue edited 2026-11-03T07:02:38Z) to exclude the skills and evals the per-plugin slices refactor(adhd): resolve the view medium through the shared resolver #12668-refactor(discovery): resolve the view medium through the shared resolver #12741 under Epic: consolidate the planning chain #12646 migrate; it now reads "...finds only changelog lines, and the skills and evals of the plugins the per-plugin slices migrate (adhd, ai-briefing, architecture, codebase-health, debugging, discovery, education, overengineering, prototype, work-items ...; the repo-wide grep is checked in chore(vocabulary): retire rung, default ladder, overlay and the other clashing senses with a checker #12750 after they merge)". chore(vocabulary): retire rung, default ladder, overlay and the other clashing senses with a checker #12750 carries it as "AC4 (carried from feat(rendered-views): one medium resolver with the publish trust walk and fallback chain #12649): git grep -nE "rendered-views(\.local)?\.md" -- lib plugins outside lib/view-settings.mjs, its test and its synced copies prints only CHANGELOG lines." Basis: PLAN Phase 9 assigns those skills to the per-plugin slices.

  • (b) Tests and shared copies. Run locally on 5a5974e614; the new push gives CI a head where select-tests runs the suites (scripts/plan-test-lanes.sh --base origin/main places lib/view-settings.test.sh in bash leg 6, lib/publish-gate.test.sh and plugins/visualization/tests/present.test.sh in leg 8, plugins/review/tests/explain-change.test.sh in leg 9, lib/config-cascade.test.sh in leg 10; unmapped=0).

    $ bash lib/view-settings.test.sh            -> tests 34, pass 34, fail 0
    $ bash lib/config-cascade.test.sh           -> tests 71, pass 71, fail 0
    $ bash lib/publish-gate.test.sh             -> tests 158, pass 158, fail 0
    $ bash plugins/review/tests/explain-change.test.sh   -> tests 139, pass 139, fail 0
    $ bash plugins/visualization/tests/present.test.sh   -> tests 54, pass 54, fail 0
    $ scripts/sync-shared-copies.sh --check
    All 595 registered copies match their canonical sources.
    $ scripts/sync-shared-copies.sh --check-bump origin/main
    6 canonical source(s) or their copies changed vs origin/main; every carrying plugin bumped its version.
    $ node -e "import('plugins/<p>/lib/view-settings.mjs')"  for each copy
    harness-ops: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    planning: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    review: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    source-control: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    visualization: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    work-items: ok, exports findRoot,gateExplicit,main,overlayApplies,resolveMedium
    
  • (c) harness-ops state-key.sh and the review/planning yaml-subset.mjs copies exist on main. git ls-tree --name-only origin/main plugins/harness-ops/lib/state-key.sh plugins/review/lib/yaml-subset.mjs plugins/planning/lib/yaml-subset.mjs lists all three, so the diff adds none; --check above confirms every registered copy matches.

  • (d) Inherited keys in lib/view-settings.mjs. Fixed in 5a5974e: mediumOf() and laneOf() in lib/view-registry.mjs match on Object.hasOwn, and every lookup in lib/view-settings.mjs and fallBack() goes through them; copies re-synced. New tests in lib/view-settings.test.mjs (argument toString and __proto__, lane constructor, through the CLI and resolveMedium) failed before the fix with TypeError: MEDIUMS[want].reachable is not a function and pass after.

@kyle-sexton
kyle-sexton deleted the feat/12649-medium-resolver branch November 3, 2026 08:02
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
lib/config-cascade.mjs 1 1 0 0 0 0
lib/view-registry.mjs 2 0 0 0 0 0
lib/view-settings.mjs 3 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
lib/config-cascade.mjs:557 ROR productive input-gap

The run's summary has the full report.

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.

feat(rendered-views): one medium resolver with the publish trust walk and fallback chain

1 participant