Skip to content

chore(tools): bring the compat-inventory and spike-0004 scripts into tools/ - #95

Merged
aRustyDev merged 6 commits into
mainfrom
chore/import-inventory-scripts
Nov 6, 2026
Merged

aRustyDev merged 6 commits into
mainfrom
chore/import-inventory-scripts

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Closes #55.

The spike 0009 inventory and the spike 0004 harness lived only on branch chore/contrail-plan-scripts of aRustyDev/plane (commit dd575509c4, no PR). They are now in this repository under tools/, so the F-X13 acceptance list can be regenerated here and the plan's pointers resolve. tools/, not scripts/, because .github/scripts/classify-changes.sh treats any scripts/ change as a Rust change.

What

Each edit to the imported bytes is its own commit, so the copy can be audited against the source.

Commit Change
chore(tools): import compat-inventory ... git archive of the source directory, byte for byte (44 files: 17 modules, 2 hand-check CSVs, out-pinned/). A README with the provenance and a .gitignore for the default out/
chore(tools): resolve FEATURES.md ... Two lines: the --features default in run_all.py and in join_tag.py
chore(tools): replace the local scan root ... <root> in place of the scan machine's absolute path in RUN.json, pin-verify.json and server-warnings.txt
chore(tools): import spike-0004 ... git archive, byte for byte (29 files, dev.sh and run_platform.sh still executable), and a README saying what run_platform.sh can do to a real account
docs(tools): record how to reproduce ... The command that regenerates out-pinned/, and why each flag is there
docs(plans): point the plan at tools/ ... FEATURES, ADR-0034, research/0003, research/0006, spikes/README.md, the ADR-0006 register (the row, plus a new row for the three spike 0004 Workers as throwaway spike tooling), PLAN.md, contributing/crates.md

Where this differs from the issue

  • Two path defaults break, not one. join_tag.py:366 carries the same FEATURES.md default as run_all.py:96. Both keep their index (the repository root) and append .agents/plans/contrail/FEATURES.md.
  • The acceptance diff, as written, is not empty. It needs --verdicts handcheck-verdicts-pinned.csv (the default file is stale on 29 of 30 rows) and the --label of the pinned run. run_all.py never writes pin-verify.json or delta-vs-prepin.json, so those are excluded too. Two generated files differ in exactly one known way each: server-warnings.txt (the scan root) and line 1 of tables.md (the commit stamp: the committed copy was scanned at 72b2e01497, the pin plus three harness commits that touched only apps/admin/.../oidc/). They are compared separately in the README instead of being excluded unseen. ROOT has to be a real git checkout of the tag, not an export: --vcs files reads the commit from .git.
  • Local paths were removed from the outputs. Three files held the absolute path of the machine that ran the scan, with a local user name. This repository is public, and the path differs on every machine. The README names this as the only edit to generated output.
  • No per-file header, no pyproject.toml. The 26 Python files were written for the plan, not for Plane, thrust is AGPL-3.0-only like the fork, and nothing here checks headers. Every entry script is stdlib-only with a PEP 723 header, so uv run needs no lock file. The one exception, tests/jwt_verifier_test.py, depends on an unpinned cryptography; it is recorded in the spike 0004 README and left as written.
  • The pre-pin out/ is not imported. It was never committed on the source branch. The research/0003 lines that said it was "kept in the repo" now say it is regenerated.
  • Line numbers in the issue had drifted (F-X13 is FEATURES.md:144; the live ADR-0006 register is lines 143 to 152, not 107 and 111). Pointers were found by text. A blind substitution would have broken research/0003 (cd .agents/plans/contrail/scripts/compat-inventory) and 57 of the 60 spike-0004 hits in research/0006, which are Cloudflare resource names; those were edited by hand.

Not in this PR: a gitleaks allowlist (no scanner runs here; the two values in pin-verify.json are one git tree SHA), and deleting the off-repo branch, which is a change to another repository and waits until this merges.

Verification

Run from a clone of the fork checked out at oracle/v1-pin-20261018 (ba85d4d3d3) and at the pre-pin commit 300c2009d4.

Check Result
run_all.py (no --features) on the tag, then the README's diff -ru with six exclusions empty
the two files compared separately (server-warnings.txt with the root normalised, tables.md without line 1) identical
Control: the same run on the pre-pin tree 18 files differ in content, including endpoint-inventory.csv and .json
F-X13 list: endpoint-inventory.csv and .json from run_all.py byte-identical to the committed files
standalone join_tag.py with its default --features, after deleting its two outputs regenerates both, byte-identical
Control: the pre-fix run_all.py at the new depth, no --features FileNotFoundError on a FEATURES.md at the repository root
git grep -nE 'scripts/(compat-inventory|spike-0004)' -- .agents docs one match: the dated "until issue #55 they were ..." in the ADR-0006 amendment
git grep 'pip install' -- tools/compat-inventory tools/spike-0004 empty (control: the same form finds uv run in 18 files)
shape scan of both directories for the redacted identifiers clean: no 32-hex, no real UUID, no op:// path, no real email, no local path. The hits are Plane's example UUIDs, two placeholder emails and components/home/ paths. Control: it flags a planted value of each shape
imported directories against git archive dd575509c4 differ only by the READMEs, the .gitignore, the two edited .py lines and the three sanitised files
classify-changes.sh on this PR's file list rust=false. Control: a scripts/ path gives rust=true

The redaction list in spikes/README.md holds placeholders only, so the real values are not in the repository and the scan is by shape. A scan against the real values can only be run by someone who has them.

Docs and tooling only, so CI should skip the Rust jobs and gate should pass.

🤖 Generated with Claude Code

aRustyDev and others added 6 commits November 6, 2026 14:58
Copies .agents/plans/contrail/scripts/compat-inventory/ from branch
chore/contrail-plan-scripts of aRustyDev/plane (tree 9e58172e35) byte for byte:
17 Python modules, the two hand-check CSVs and the out-pinned/ outputs,
including endpoint-inventory.csv, the current F-X13 acceptance list.

Adds a README with the provenance and a .gitignore for the default out/
directory. The path fixes and the removal of the local scan root follow as
separate commits so each edit to the imported bytes is visible on its own.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…inventory

run_all.py defaulted --features to HERE.parents[1] / "FEATURES.md", and
join_tag.py to parents[2] / "FEATURES.md". Both found the plan directory on the
old layout (.agents/plans/contrail/scripts/compat-inventory/). After the move
to tools/compat-inventory/ the same index lands on the repository root, where
there is no FEATURES.md, so keep the index and append the real location,
.agents/plans/contrail/FEATURES.md.

join_tag.py is not named in the issue; it carries the same default for a
standalone run.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…older

RUN.json (tree_root), pin-verify.json (root) and server-warnings.txt (two
lines) record the absolute path of the worktree the pinned run scanned, which
carries a local user name and directory layout. This repository is public, and
the path differs on every machine, so a re-run could never reproduce those
lines. Replace the path with <root>. Nothing else in the generated output is
touched, and layout-report.json keeps only the worktree's directory name.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copies .agents/plans/contrail/scripts/spike-0004/ from branch
chore/contrail-plan-scripts of aRustyDev/plane (tree d85476e4b2) byte for byte:
nine Python test scripts, the two shell drivers (executable bit kept), the three
JavaScript Workers with their shared module, the OpenTofu root with its
committed provider lock, and the nested .gitignore that keeps tfstate, the
tofu data dir and tests/out/ out of git.

The README records the provenance and what run_platform.sh can do to a real
Cloudflare account, so the next reader does not have to read the script first.
It is throwaway spike tooling, registered as such in ADR-0006 in a later commit.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…output

Adds the command that regenerates out-pinned/ from a checkout of
oracle/v1-pin-20261018, and the diff that shows it matches. It needs more than
the issue's command: --verdicts for the pinned tree, and exclusions for the two
files run_all.py never writes (pin-verify.json, delta-vs-prepin.json). Two
generated files differ in one known way each (the scan root in
server-warnings.txt, the scanned commit stamped on line 1 of tables.md), so they
are compared separately rather than excluded unseen.

Verified: the diff is empty against a checkout of the tag; against the pre-pin
tree 18 files differ in content; the unpatched FEATURES.md default fails with
FileNotFoundError at the new depth while the patched run_all.py and a
standalone join_tag.py regenerate endpoint-inventory.csv and .json byte for byte.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…kers

Every pointer that is a locator now resolves to tools/compat-inventory/ or
tools/spike-0004/: FEATURES.md (F-X13), ADR-0034 round 26, research/0003,
research/0006 and spikes/README.md. The dated sentence around each pointer is
left as written. Narrative history (PROMPT.md, the review and its handoff) is
untouched.

Edited by hand, because a blind substitution is wrong twice over:
research/0003 runs `cd .agents/plans/contrail/scripts/compat-inventory`, so the
whole prefix goes, not the word scripts; and 57 of the 60 spike-0004 hits in
research/0006 are Cloudflare resource names and scratch paths, only three are
pointers.

The pre-pin out/ is not committed, so the research/0003 lines that called it
"kept in the repo" now say it is regenerated. spikes/README.md replaces the
"open decision" paragraph with where the scripts live and where they came from.

ADR-0006 register (round 29): the inventory and spike-0004 row names tools/ in
the in-place amended form used elsewhere in that ADR, and a new row registers
the three spike 0004 JavaScript Workers as throwaway spike tooling. docs
contributing/crates.md lists both directories beside tools/spike-0006/. PLAN.md
records #55 as done in the form rows #37 and #38 use.

Refs: #55
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit f43dc27 into main Nov 6, 2026
13 checks passed
@aRustyDev
aRustyDev deleted the chore/import-inventory-scripts branch November 6, 2026 20:43
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.

chore(plans): bring the compat-inventory and spike-0004 scripts into this repository under tools/

1 participant