Skip to content

feat(ripwireadapter): bump ripwire pin to the first release with the #478 import fixes - #96

Merged
jflowers merged 9 commits into
mainfrom
opsx/bump-ripwire-pin
Nov 24, 2026
Merged

jflowers merged 9 commits into
mainfrom
opsx/bump-ripwire-pin

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Draft — blocked on upstream. Phase A is complete and council-reviewed. Phase B (tasks 7.1–7.6) needs the first redhat-et/ripwire release containing #533; until then the pin is a clearly marked provisional 0.6.11 @ 1edb6fd and the README/CHANGELOG carry <RELEASE> placeholders.

Closes #94. Docs: #95. Spec: openspec/changes/bump-ripwire-pin/.

Why

The ripwire adapter fails closed on anything but ripwire 0.6.9. Upstream has since fixed all four Python import-resolution gaps from redhat-et/ripwire#478 (gap 2 via #530 and gaps 3/4 via Train 44 in v0.6.10; gap 1 via #533, unreleased). The same releases changed the --arch surface (ARCH-HONEST): a Python tree holding one Go file failed to parse.

What changed

  • Parser (parse_arch.go): requires only the attributes the adapter consumes (path, types, abstract; ca/ce except on zone="unknown" rows, read as floors); parses <pruned_packages>.
  • coupling-floor warning (mapping.go): one warning naming modules whose Ca/Ce are floors and their no_file_edges= languages.
  • Denylist (denylist.go): warning lists the union of the filesystem pre-check and ripwire's <pruned_packages>, disclosing partial listings.
  • Cycles (cycles.go): ripwire's <cycles> cap now follows --limit (every loss published, except <cycles>: truncation there is silent redhat-et/ripwire#479); single-sourced as depsWindowLimit.
  • Error budgets (budget.go): re-measured with a committed harness (measurement/) against 0.6.9, 0.6.10, and the main build; message names the pinned version.
  • Fixtures: wide/alias/collide packages pin gaps 1, 2, 4 at directory grain; python-mixed recordings cover ARCH-HONEST; all recordings re-captured; Python golden regenerated via metrics.Compute*.
  • Single-source pin: only pinnedRipwireVersion/pinnedRipwireCommit name a version; tests and GoDoc reference them.

Measured (same harness, measurement/results.md)

Target 0.6.9 → main build
pip src/ dir Ca / Ce exact 79.2% / 77.4% → 100% / 100%
django dir Ca / Ce exact 93.9% / 59.0% → 100% / 100%
pip file edges lost / spurious (≥) 4.80% / 0.78% → 0.11% / 0.00%
django file edges lost / spurious (≥) 14.18% / 0.11% → 0.00% / 0.01%
rollup unresolved imports 0.16% → 0.16%

Design D6 gate (no figure worse than 0.6.9) passes.

Known limitation (documented, out of scope)

Cycle derivation name-resolves --deps <inc t=> text, which records from fixturepy import cycle_b as "fixturepy"; a cycle closed only through a wide-form subpackage import is not detected even though Ca/Ce count the edge. Not a regression (0.6.9 missed it everywhere). Pinned in tests; disclosed in README; remedies in the design's Risks.

Verification

CI parity with ripwire removed from PATH: build, vet, go test -race -count=1, coverage ratchet (8/8 pass), golangci-lint clean on changed packages. TestIntegration_RealBinaryCorroboration skips without ripwire and cannot pass until a release matching the pin exists.

Remaining (Phase B)

  • 7.1–7.2 Set the pin to the published release; replace provisional version.txt
  • 7.3 Re-capture recordings; coupling must match Phase A byte-for-byte
  • 7.4 Re-run the measurement against the release binary
  • 7.5 Fill <RELEASE> placeholders; CI parity; real-binary test
  • 7.6 Review council on the Phase B diff, then mark ready

🤖 Generated with Claude Code

jflowers and others added 8 commits November 19, 2026 15:36
Plan moving the ripwire adapter pin from 0.6.9 @ bedc0cd to the first
upstream release containing redhat-et/ripwire#533, adopting all four
#478 Python import-resolution fixes.

Probes against a ripwire main build (1edb6fd) showed the bump is not a
constant edit: ARCH-HONEST rows omit I/D/reachable, so a Python tree
with one Go file fails to parse today. The change narrows the --arch
parse contract to consumed attributes, adds a coupling-floor warning,
unions the denylist warning with ripwire's <pruned_packages>, and
re-measures the error budgets with a committed harness. Phase A runs
against main now; Phase B finalizes on the upstream release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase A of openspec/changes/bump-ripwire-pin, developed against a
Release build of ripwire main @ 1edb6fd (contains redhat-et/ripwire#533).

- parse_arch: require only consumed attributes (path, types, abstract;
  ca/ce except on zone="unknown" rows, read as floors); parse
  <pruned_packages>. A Python tree holding one Go file no longer fails.
- mapping: carry the floor flag and emit one coupling-floor warning.
- denylist: warn on the union of the pre-check and ripwire's
  <pruned_packages>, disclosing a partial ripwire listing.
- cycles: the <cycles> SCC cap now follows the --deps --limit
  (redhat-et/ripwire#479); single-source it as depsWindowLimit.
- fixtures: wide/alias/collide packages exercise #478 gaps 1, 2, 4;
  python-mixed recordings cover ARCH-HONEST; all recordings re-captured.
- pin: PROVISIONAL 0.6.11 @ 1edb6fd until the upstream release (Phase B);
  tests and GoDoc reference the pin constants instead of literals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dens

Re-capture python/cc.json after the fixture commit so git churn matches
the committed tree; rewrite the testdata README (provisional provenance,
mixed-language and zero-edge derivation, expected stderr line, new
recording facts) and update the golden-notes ledger for the wide/alias/
collide modules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
README caveats gain coupling-floor and denylist-pruned rows and an honest
cycle-approximation row; CHANGELOG records the pin move (Changed) and the
coupling-floor warning (Added); AGENTS.md describes the reshaped adapter
files. <RELEASE>/<BUDGET-FIGURES> placeholders are filled by tasks 5.3
and 7.5. The design records two Phase A findings: wide-form member edges
are invisible to cycle derivation, and ripwire's <cycles> cap now follows
--limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add a reproducible measurement harness (openspec/changes/bump-ripwire-pin/
measurement/) comparing ripwire's --arch Ca/Ce and cc.json fan-out to an
ast ground truth, run on pip, django, and rollup against ripwire 0.6.9,
0.6.10, and the main build. Directory Ca/Ce exact rises from 79%/77% to
100% on pip and from 94%/59% to 100% on django; TypeScript stays at 0.16%
unresolved. The design D6 gate (no figure worse than 0.6.9) passes.

The error-budget warning now states the measured figures and names the
pinned version; README and CHANGELOG carry the figures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase B of bump-ripwire-pin (tasks 7.1-7.5). Upstream skipped 0.6.11 and
released 0.7.0 @ 5a3df04, the first release containing redhat-et/ripwire#533.

- Pin pinnedRipwireVersion/pinnedRipwireCommit to 0.7.0/5a3df04; version.txt
  recordings are the release binary's real --version line.
- Re-capture recordings from the verified release archive (sha256 checked).
  typescript/ and python-mixed/ are byte-identical to Phase A; python/
  differs because 0.7.0 indexes a build/ directory whose files git tracks,
  so fixturepy/operations/build is now an isolated module.
- detectDenylistPruned drops denylist-named directories with an --arch
  module at or beneath them, so the warning never names a directory
  ripwire analyzed; nested unindexed candidates are still reported.
- Regenerate the Python golden and notes; move recorded <pruned_packages>
  coverage to the non-git python-mixed recording.
- Measurement harness gains --tracked-build; every 0.7.0 figure equals
  Phase A (gate holds, budget.go unchanged).
- Fill README/CHANGELOG release placeholders; amend spec (new denylist
  scenario), design D5/D8, proposal, and tasks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jflowers
jflowers marked this pull request as ready for review November 24, 2026 17:11
@jflowers
jflowers merged commit 58a6f3a into main Nov 24, 2026
4 checks passed
jflowers added a commit that referenced this pull request Nov 24, 2026
jflowers added a commit that referenced this pull request Nov 24, 2026
Documentation issue #97 filed; draft PR opened stacked on #96.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jflowers added a commit that referenced this pull request Nov 24, 2026
#96 merged with Phase B on the ripwire 0.7.0 release. Rebased onto main;
the Python recordings were re-captured with the 0.7.0 binary during the
rebase and CI parity re-run. Marking the PR ready remains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jflowers added a commit that referenced this pull request Nov 24, 2026
Documentation issue #97 filed; draft PR opened stacked on #96.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jflowers added a commit that referenced this pull request Nov 24, 2026
#96 merged with Phase B on the ripwire 0.7.0 release. Rebased onto main;
the Python recordings were re-captured with the 0.7.0 binary during the
rebase and CI parity re-run. Marking the PR ready remains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jflowers added a commit that referenced this pull request Nov 25, 2026
- README: add the --store flag row and a "Tracking drift over time"
  section (provenance.input commitSHA/branch, --no-provenance
  precedence, trending mode's Dewey requirement and its zero/one/many
  snapshot behavior); list the mx-f-architecture-trend agent among the
  assets `vibe-check init` deploys.
- AGENTS.md: add mx-f-architecture-trend.md to the embedded agent assets.
- openspec bump-ripwire-pin: mark task 7.6 complete (council approved
  7421b3e; PR #96 merged as 58a6f3a).

Closes #45

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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: bump ripwire pin to the first release containing the #478 import fixes (OpenSpec: opsx/bump-ripwire-pin)

2 participants