Skip to content

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

Closed

Description

@aRustyDev

Context

The compat-plane inventory (spike 0009, desk half) and the spike 0004 harness are cited across the plan as scripts/compat-inventory/ and scripts/spike-0004/ (FEATURES F-X13 at FEATURES.md:137, ADR-0034 round 26, research/0003, research/0006), but neither directory is in this repository. spikes/README.md:54 says why: they sit on branch chore/contrail-plan-scripts of aRustyDev/plane (head dd575509c4), because that repository's required Copy Right Check wants the Plane AGPL header on every tracked .py file. On that branch, .agents/plans/contrail/scripts/compat-inventory/ holds 17 Python modules, two hand-check CSVs and the out-pinned/ outputs (including endpoint-inventory.csv, the current F-X13 acceptance list), and .agents/plans/contrail/scripts/spike-0004/ holds 9 Python test scripts, two shell drivers, three small JavaScript Workers with a shared module, and an OpenTofu root. This repository already keeps oracle tooling under tools/spike-0006/, with uv (tools/spike-0006/sanitize/pyproject.toml, uv.lock).

Problem

FR-15: the Python tooling lives off-repo and is missing from the ADR-0006 register of non-Rust pieces. The acceptance list and the sizing numbers in research/0003 cannot be regenerated from this repository, and a branch with no PR on another repository is easy to lose. The README's open decision ("add the header there, exclude .agents/** from that check, or bring the scripts here (this repository has no such check)") has no owner.

Proposal

  • Copy both directories to tools/compat-inventory/ and tools/spike-0004/, not scripts/: .github/scripts/classify-changes.sh:21 treats any scripts/ change as a Rust change and would run every Rust cell. Record the source branch and commit in a README in each directory.
  • uv only. The entry scripts carry PEP 723 headers and are stdlib only (run_all.py: "Stdlib only; run through uv run"). Keep that, or add a pyproject.toml and uv.lock per directory as tools/spike-0006/sanitize/ does. No bare pip.
  • Fix the paths the move breaks: run_all.py defaults --features to HERE.parents[1] / "FEATURES.md", which found the plan directory on the old layout and finds the repository root after the move.
  • Update every plan reference (FEATURES, ADR-0034, research/0003, research/0006, spikes/README.md) and the ADR-0006 register row for the inventory scripts (round-29 note) to tools/; register the spike 0004 JavaScript Workers there as throwaway spike tooling.
  • out-pinned/pin-verify.json tripped gitleaks on the Plane repository (two tree SHAs, false positives; PROMPT.md round 27). Allowlist those two values if a scanner runs here.
  • After the import merges, delete the off-repo branch or leave a pointer, and replace spikes/README.md:54.

Acceptance criteria

  • uv run tools/compat-inventory/run_all.py --root <checkout of oracle/v1-pin-20261018> --out <tmp> exits 0, and diff -ru tools/compat-inventory/out-pinned <tmp> -x RUN.json -x layout-report.json is empty. The same run against the pre-pin tree (300c2009d4) gives a non-empty diff (control).
  • Running run_all.py without --features reads .agents/plans/contrail/FEATURES.md.
  • grep -rnE "scripts/(compat-inventory|spike-0004)" .agents docs returns nothing outside dated history notes.
  • grep -rn "pip install" tools/compat-inventory tools/spike-0004 returns nothing.
  • A scan of the imported files finds none of the identifiers on the spikes/README.md:56 redaction list.
  • spikes/README.md:54 is replaced and the ADR-0006 register row names tools/.

References

  • Review: .agents/plans/contrail/reviews/2026-10-19-fable-architecture-review.md (FR-15)
  • .agents/plans/contrail/spikes/README.md:54,56; .agents/plans/contrail/FEATURES.md:137
  • aRustyDev/plane branch chore/contrail-plan-scripts (dd575509c4), .agents/plans/contrail/scripts/
  • ADR-0006 (register, lines 107, 111; round-29 note), ADR-0034 (round 26)
  • research/0003-compat-plane-inventory.md, research/0006-topology-public-half.md
  • tools/spike-0006/sanitize/pyproject.toml; .github/scripts/classify-changes.sh:21

Finding: FR-15

Activity

  1. added
    area:process
    review:fable-2026-10-19
    on Oct 20, 2026
  2. aRustyDev commented on Nov 6, 2026

    @aRustyDev
    OwnerAuthor

    Landed in #95 (f43dc27). The scripts are in tools/compat-inventory/ and tools/spike-0004/, each with a README that records the source: aRustyDev/plane, branch chore/contrail-plan-scripts, commit dd575509c4.

    The acceptance command in this issue could not be met as written, so #95 amends it. The exact commands are in tools/compat-inventory/README.md, under "Reproducing out-pinned/":

    • It needs --verdicts tools/compat-inventory/handcheck-verdicts-pinned.csv and the pinned run's --label. The default verdicts file is for the pre-pin tree and is stale on 29 of 30 rows.
    • pin-verify.json and delta-vs-prepin.json are excluded as well as RUN.json and layout-report.json, because run_all.py never writes them.
    • server-warnings.txt and tables.md are compared separately. Each differs in one known way: the scan root in the first, the scanned commit stamped on line 1 of the second.
    • The root must be a real git checkout of oracle/v1-pin-20261018, not an export: --vcs files reads the commit from .git. The tag is not on GitHub.
    • Control: the same run on the pre-pin tree (300c2009d4) gives 18 files that differ in content, including endpoint-inventory.csv and .json.

    Two other things changed from the issue text: join_tag.py:366 carries the same FEATURES.md default as run_all.py:96 and was fixed too, and three out-pinned/ files had the scan machine's absolute path replaced with <root>.

    Still open: the off-repo branch chore/contrail-plan-scripts on aRustyDev/plane has not been deleted and has no pointer. The last bullet of the proposal waits on that decision.

  3. aRustyDev commented on Nov 6, 2026

    @aRustyDev
    OwnerAuthor

    Follow-up: the off-repo branch chore/contrail-plan-scripts on aRustyDev/plane was deleted on 2026-11-06, so the "Still open" note above no longer applies; the tools/ READMEs keep its commit dd575509c4 as provenance.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:processprio:p1review:fable-2026-10-19

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions