repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Confirm cargo_pup installs and runs; log the real config schema

9dbd0b47cd3ff05823574a8b61fb4d1c0d2c37d9

Claude <noreply@anthropic.com> ·

SSH signature · not checked

Browse filesCompare with HEAD

The corrected re-run downloaded cargo_pup v0.1.8 from crates.io, built it on the
pinned nightly with rust-src/rustc-dev/llvm-tools, and ran it against the
fixture — so the tool works and §3.5 stands unchanged; the original "unpublished"
verdict was only the hyphen-vs-underscore name. The run also pinned down two
fixture-level facts: pup's config is a `LintBuilder`, not the `Pup(..)` guessed
here, and childless crates read as `unknown_crate` exactly as §3.5 warns, so a
real enforcement proof needs a richer fixture.

Recorded in the p34 result block; the stale pup.ron is kept, annotated as the
evidence that produced the schema finding.

Changed files (2)

+38 / −15 text lines

Diff layout

prototypes/PLAN.md

Modified

+30 / −9 text lines

22862286 the way `Cargo.toml` dependency resolution does, so `cargo-pup` (hyphen) was
22872287 "not found". Secondary cause: the source gate needs
22882288 `rust-src rustc-dev llvm-tools-preview` on `nightly-2026-01-22` (it links
2289 rustc internals), which the minimal nightly lacked. cargo_pup's own README
2290 pins the same `nightly-2026-01-22` the spec uses. So §3.5/§11/§15 are correct
2291 as written; no demotion. The corrected pup recipe is validated in the re-run
2292 recorded below.
2289 rustc internals), which the minimal nightly lacked.
2290- Re-run (run 29633526704, arch-gate job) with the corrected recipe: cargo_pup
2291 **v0.1.8 downloaded from crates.io, built in 47s, installed `cargo-pup` +
2292 `pup-driver`**, and `cargo +nightly-2026-01-22 pup` ran against the workspace.
2293 So §3.5/§11/§15 are correct as written; **cargo_pup stays, no demotion.**
2294 Working recipe:
2295 ```bash
2296 rustup toolchain install nightly-2026-01-22 --profile minimal
2297 rustup component add --toolchain nightly-2026-01-22 rust-src rustc-dev llvm-tools-preview
2298 cargo +nightly-2026-01-22 install cargo_pup --locked # v0.1.8, ~47s
2299 ```
2300- Two things the re-run also nailed down, both matters for the fixture, not the
2301 spec:
2302 1. The real `pup.ron` top-level struct is **`LintBuilder`**, not the `Pup(..)`
2303 this prototype guessed (`Expected struct LintBuilder but found Pup`).
2304 2. `pup print-modules` on the 3-crate fixture emits **`unknown_crate`** —
2305 exactly the §3.5-documented caveat that pup synthesizes `unknown_crate`
2306 for crates with no child `mod` items. The trivial single-file crates are
2307 too structureless for pup's module matcher; a real enforcement proof needs
2308 crates with genuine module structure and a source-level import to catch.
2309 So cargo_pup is proven installable and runnable; proving it *enforces* the
2310 §11 edge is still open, blocked only on a richer fixture + a `LintBuilder`
2311 config, not on the tool or the spec.
22942313### Spec Issues
22952314- `docs/SPEC.md §14`
23222341- arch: `python3 gate.py` (pass), inject edge → `python3 gate.py` (fail)
23242343### Next Steps
2325- Prove cargo_pup end-to-end with the corrected recipe (`cargo_pup` underscore
2326 + `rust-src rustc-dev llvm-tools-preview` on nightly-2026-01-22): install,
2327 run against the 3-crate workspace, and confirm it flags a source-level
2328 forbidden import. Keep the stable metadata gate as the always-on companion
2329 (§3.5 already specifies both). No spec change.
2344- Close the pup enforcement proof: give the archgate crates real module
2345 structure (so pup sees `wcore`/`wai` instead of `unknown_crate`), add a
2346 source-level `use wai::...` in wcore for the illegal case, write a
2347 `LintBuilder` pup.ron with a `restrict_imports` rule per §3.5's
2348 `^crate($|::.*)` guidance, and prove pup PASSES the legal graph and FAILS the
2349 illegal one. Keep the stable metadata gate as the always-on companion (§3.5
2350 already specifies both). No spec change.
23302351- Extend the cross bin with `jj-lib` and the TLS/aws-lc tree to close the P30
23312352 gap, or accept it as a release-time risk.
23322353- Split standing prototype CI (`prototypes.yml`, evidence bit-rot guard) from

prototypes/p34-ci-pipeline/archgate/pup.ron

Modified

+8 / −6 text lines

1// Best-effort cargo-pup config expressing the §11 forbidden edge wcore -> wai.
2// P32's open question is exactly whether cargo-pup's schema can state this; the
3// CI job runs pup as `continue-on-error` and captures the real outcome, while
4// the stable-metadata fallback gate (§3.5) is the hard assertion. If this RON
5// shape is wrong, that error IS the evidence that §11 should lean on the
6// metadata gate rather than the nightly source lint.
1// KNOWN-WRONG SCHEMA, kept as the evidence that produced the finding.
2// The re-run (run 29633526704) proved the real cargo_pup top-level struct is
3// `LintBuilder`, not `Pup` (error: "Expected struct LintBuilder but found Pup").
4// It also showed these single-file crates present to pup as `unknown_crate`
5// (the §3.5-documented caveat), so they are too structureless to hang a
6// restrict_imports rule on. Closing the enforcement proof needs a richer
7// fixture + a LintBuilder config — see PLAN.md P34 "Next Steps". Until then the
8// stable `cargo metadata` gate (gate.py) is the proven §11 enforcement.
79Pup(
810 lints: [
911 ArchitectureLint(