Skip to content

fix(architecture): keep fixture names and one plugin's requirements out of the landscape record - #15595

Merged
kyle-sexton merged 6 commits into
mainfrom
docs/landscape-re-record
Nov 12, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
docs/landscape-re-record

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: the committed landscape record had drifted from the repository since 2026-09-25.

Summary

Fixes two map-landscape collector defects the re-record exposed, then re-records docs/architecture/landscape.json and re-renders landscape.md and portfolio.md from the current tree. The first re-record charted test placeholder names (o/r with 94 references, x/y, evil/x and ten more) as real systems, and reported this shell repository as Python because one plugin ships an optional requirements.txt.

Fix

  • reference-edges.sh skips test files in any language (*.test.*, *.spec.*, previously only .sh, .ts and .js) and *.vectors.json test-input tables. It also treats other and eval-fixture as placeholder owners, and rejects an owner segment that holds a dot. GitHub account names hold no dots, so the elided github.com/.../issues in a skill body and a.b/c in a test now drop out. The rule is stated in the script header.
  • portfolio-facts.sh lets only a root-level runtime-scope requirements*.txt claim the Python runtime. A requirements file declares no package, so a nested one speaks for its component (here plugins/animation/requirements.txt) and not for the repository. Letting it win had reported the runtime as python with numpy and opencv-python-headless, and had discarded .github/requirements-ci.txt. A nested pyproject.toml or setup.py still claims the runtime.
  • Re-recorded with landscape-record.sh --source "current repository plus reference graph" --remote "not used" --edges-from <repo> <repo> and rendered with render-landscape.sh. Both outputs are committed unedited.

Drift against origin/main's record (95 edges before, 227 after):

  • 136 added edges
  • 4 removed edges: bitinn/node-fetch, dometrain/mcp (installs-plugin), miroapp/api-clients, modelcontextprotocol/modelcontextprotocol
  • 39 changed edges (73 changed count or file facts)
  • 2 changed repository facts: dev_dependencies (the CI Python pins, cut at the collector's 25-entry cap) and evidence. runtime stays shell, tooling stays node,python, and dependencies stays empty, with .github/requirements-ci.txt (development scope) cited again.
  • remote moves from the ssh form to https://github.com/melodic-software/claude-code-plugins, because the collector records the origin URL of the clone it runs in. The script reports a transport change without gating on it.

Against the first re-record, the only removed edges are the 13 placeholders: o/r, o/other, xo/r, axb/c, a.b/c, evil/x, npm/attestation, x/y, someowner/somerepo, other/repo, melodic-software/other, eval-fixture/app and .../issues. Some real edges (melodic-software/ci-workflows, github-iac, standards, azure-iac) lost the citations they had from test files. The first re-record was taken before the main merge, so a few counts also moved with the tree, for example ci-workflows uses-workflow going from 367 to 368.

Verification

  • New cases: 9 in reference-edges.test.sh (seven negatives, plus positive controls for a real URL and a dotted repository name) and 9 in portfolio-facts.test.sh (a nested requirements file, a root one beside it, and a nested pyproject). The new negatives fail against the unfixed scripts: 7 in reference-edges, 6 in portfolio-facts.
  • Suites: reference-edges.test.sh 108 cases, portfolio-facts.test.sh 96, landscape-record.test.sh 92, render-landscape.test.sh 120, all with 0 failures.
  • A jq check over the record finds no placeholder target, no edge cited from a test or vectors file, no dotted owner, runtime shell, tooling node,python, dependencies [], and pytest and pyyaml in dev_dependencies. A grep finds no home, temp or drive paths in the record or the rendered files.
  • landscape-record.sh --drift-against docs/architecture/landscape.json after the commit reports no gating drift; only last_touched moved.
  • shellcheck, typos and scripts/check-changelog-fragments.sh --check-required origin/main pass.

Follow-ups

  • Pre-existing (advisory): portfolio-facts.sh caps dev_dependencies at 25 sorted names. .github/requirements-ci.txt now pins 35 packages, transitive pins included, so ruff, tree-sitter* and zizmor fall past the cap even though the file is read. Raising the cap would change the contract for every repository.
  • Pre-existing (advisory): the shell fallback cites the first sorted *.sh as runtime evidence, which is now lib/check-convention-facts.test.sh and was lib/hook-utils.sh before.

Related

  • Split from #15568, which carried the same re-record alongside the plugin rename.

session: AI Hero

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr

kyle-sexton and others added 2 commits November 12, 2026 09:33
Re-records docs/architecture/landscape.json on main's tree with
landscape-record.sh --source "current repository plus reference graph"
--remote "not used". The record was last generated 2026-09-25; the
drift report against it before this change listed 149 added edges,
4 removed (bitinn/node-fetch, dometrain/mcp installs-plugin,
miroapp/api-clients, modelcontextprotocol/modelcontextprotocol),
39 changed edges (73 changed edge facts), 5 changed repository facts
(runtime, tooling, dependencies, dev_dependencies, evidence) and the
https remote form. A drift check after the re-record reports none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T15:06:09.268679Z 886f1a2 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.

@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: 886f1a2d96

ℹ️ 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".

Comment thread docs/architecture/landscape.json Resolved
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 3a1677532a52d161a708311029bce9a9c632a9a8: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15595 at 3a167753 (incremental since a3443be1)

No security issues found.

Scope. This review covered only the changes since a3443be1, and it is complete: I read every hunk of all 8 files in .claude-lane/incremental-files.txt. This lane had already reviewed an earlier head (blocking only: yes), so it would have reported only CRITICAL and IMPORTANT findings. There were none.

What changed

  • reference-edges.sh (map-landscape collector), four changes:
    • is_fixture_file now skips any *.test.*, *.spec.* or *.vectors.json file.
    • is_placeholder_owner now also treats other and eval-fixture as placeholder owners.
    • A new is_valid_owner function rejects an owner segment that contains a dot.
    • add_hit now calls is_valid_owner for the owner segment.
  • portfolio-facts.sh: only a root-level runtime-scope requirements*.txt (elif [[ "$hit" != */* ]]) can claim the Python runtime.
  • Tests: new cases in both .test.sh files.
  • Outputs: landscape.json, landscape.md and portfolio.md were re-recorded and re-rendered.
  • Changelog: a new fragment.

Checks

  • Injection and data flow. The script changes only add case glob patterns and a string comparison inside [[ ]]. They add no new eval, no unquoted expansion and no new command built from repository content. The tests write fixtures with printf and a quoted heredoc (<<'MD') into temporary repositories, so nothing in them is interpreted.
  • Trust boundary. These collectors produce descriptive architecture documents. Skipping more files and filtering out more targets only removes edges from a documentation record. Nothing in this change touches a trust control, token request, merge hold, kill switch or lane input.
  • Trusted paths. None of the 8 changed files matches a TRUSTED PATHS: glob.
  • Leaks. I found no secrets, tokens, or home, temp or drive paths in the re-recorded content. remote is the public clone URL. last_touched now shows a -05:00 offset, which reveals a local timezone; that is not sensitive.
  • Plugin manifests. The diff changes no plugin or marketplace manifest, so there are no manifest lines.
  • Removed instructions. The diff removes or narrows no standing instruction, rule, hook or allowlist. The only additions are script comments describing the new filters.
  • Embedded text. Neither the PR context nor the settled threads ask the lane to pass the PR, skip a check, drop a finding or post somewhere else.
  • Settled threads. The four threads resolved at this head are correctness points about placeholder edges and runtime facts, not security findings. This review raises none of them again. The earlier thread marked lines changed: yes was the owner's note on re-rendering the views; the views are re-rendered here, and that raises no security concern.
  • Prior findings. The one earlier post was this lane's clean summary for a3443be1. It had no findings to carry forward.

critical-findings: 0

@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: 2 inline finding(s) on 886f1a2d96b9b51b41a44ac837f5127c3fd7815b; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread docs/architecture/landscape.json Resolved
Comment thread docs/architecture/landscape.json Resolved
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 3a1677532a52d161a708311029bce9a9c632a9a8: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15595 (incremental, a3443be..3a16775)

No blocking findings. This lane has already reviewed earlier heads of this PR, so this pass reported blocking findings only and dropped advisory ones.

This push adds the collector fixes and tests that the last review said were missing. It also re-records the landscape from the fixed collectors. The diff now matches what the PR description claims.

Checked against the earlier findings

  • Python runtime from a nested requirements file (portfolio-facts.sh:589). A runtime-scope requirements*.txt now claims the runtime only when its path has no slash. The paths are repo-relative: find_all reads REPO_FILES, and find_first uses the same no-slash test for "root level". So plugins/animation/requirements.txt no longer wins. A dev-scope file such as .github/requirements-ci.txt (which is in a dot-directory, so it counts as dev scope) still sets py_dev_manifest, and that becomes the development-scope fallback. The re-recorded entry agrees: runtime shell, tooling node,python, dependencies: [], with the CI requirements cited. That matches the description. New tests cover a nested file, a root file beside a nested one, and a nested pyproject.toml.
  • Test placeholder names recorded as systems (reference-edges.sh).
    • is_fixture_file now matches *.test.*, *.spec.* and *.vectors.json.
    • is_valid_owner rejects a dotted owner, and add_hit calls it at line 328.
    • other and eval-fixture are now placeholder owners.
    • All 13 placeholder targets are gone from landscape.json, and melodic-software/other is gone from landscape.md.
    • The external count drops from 212 to 200. That fits 12 external removals, since melodic-software/other is internal.
    • New tests cover each negative, plus positive controls for a real URL and a dotted repository name.
  • Changelog fragment. bump: patch is the right level for a collector bug fix.

Notes

  • The settled threads on landscape.json lines 8 and 186 were resolved with owner decisions, and their lines are unchanged since resolution. Nothing from them is raised again.
  • There is no closing issue ("No related issue"), so there are no acceptance criteria to check.
  • No plugin manifest changed. Nothing here touches billing or paid resources, so there is no hold.
  • I read every hunk of all 8 files in the incremental diff, plus the surrounding portfolio-facts.sh helpers (find_first, find_all, effective_scope, requirements_scope). I ran nothing. The test-suite counts, jq checks and drift results in the description are the author's claims and I have not verified them.

kyle-sexton and others added 3 commits November 12, 2026 10:17
…of the landscape collectors

reference-edges.sh skips test files in any language (*.test.*, *.spec.*)
and *.vectors.json tables, treats `other` and `eval-fixture` as
placeholder owners, and rejects an owner segment holding a dot, so test
names such as o/r and an elided github.com/.../issues no longer chart
as systems.

portfolio-facts.sh lets only a root-level runtime-scope requirements
file claim the Python runtime. A nested requirements file declares no
package and speaks for its own component; letting it win reported a
shell repository as python and discarded its development-scope CI
requirements. A nested pyproject.toml or setup.py still claims it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
…xed collectors

The 13 placeholder cites edges (o/r, o/other, xo/r, axb/c, a.b/c,
evil/x, npm/attestation, x/y, someowner/somerepo, other/repo,
melodic-software/other, eval-fixture/app, .../issues) drop out, and the
subject repository reads runtime shell, tooling node,python, with
.github/requirements-ci.txt back as the Python development-scope source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
@kyle-sexton kyle-sexton changed the title docs(architecture): re-record the system landscape fix(architecture): keep fixture names and one plugin's requirements out of the landscape record Nov 12, 2026

@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: 2 inline finding(s) on a3443be1bc019992d3ba72f9dd6aeaafcc756220; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread docs/architecture/landscape.json Resolved
Comment thread docs/architecture/landscape.json Resolved
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 4458190 Nov 12, 2026
62 checks passed
@kyle-sexton
kyle-sexton deleted the docs/landscape-re-record branch November 12, 2026 15:41
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/architecture/skills/map-landscape/scripts/portfolio-facts.sh 1 0 0 0 0 0
plugins/architecture/skills/map-landscape/scripts/reference-edges.sh 4 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/architecture/skills/map-landscape/scripts/reference-edges.sh:225 SBR 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

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant