Skip to content

ci: authorize removing the ripgrep and poetry config-roundtrip inventory rows - #244

Merged
Artexis10 merged 4 commits into
mainfrom
chore/authorize-ledger-removals-20261107
Nov 7, 2026
Merged

Artexis10 merged 4 commits into
mainfrom
chore/authorize-ledger-removals-20261107

Conversation

@Artexis10

@Artexis10 Artexis10 commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

What this does

This PR adds two inventoryRemovals entries to .github/validation/synthetic-known-failures.json. They authorize removing these rows from the synthetic validation inventory:

  • apps.poetry/default-v1/config-roundtrip-v1
  • apps.ripgrep/default-v1/config-roundtrip-v1

Why

A pending branch converts the ripgrep and Poetry modules to schema-v3 flat modules. The conversion moves each module's Windows proof from the default-v1 config round trip to a capture-contract scenario.

The known-failure check in "Verified Module Matrix" accepts a missing inventory row only when the base ledger already authorizes its removal. So main must record both authorizations before that branch's pull request runs.

Effect on main

  • Both rows stay in the inventory, and main's modules still produce their evidence.
  • The matrix result on main does not change.
  • The pending branch consumes each authorization when it removes the row.

Coverage change

The removals drop the synthetic Windows config round trip for both modules. A flat schema-v3 module must declare one capture-contract scenario, and that scenario proves Windows capture only.

  • ripgrep: no current test restores a Windows-captured ripgrep configuration on Windows.
  • Poetry: the conversion rule requires the converting change to add a Windows regression that restores legacy Poetry captures. This PR does not prove that regression.

Checks

  • The ledger parses and validates with ParseKnownFailureLedger and ValidateKnownFailureLedger.
  • The validationci and endstate-validation tests pass.

The ripgrep module becomes a schema-v3 flat module on a pending branch.
Its Windows proof moves from the default-v1 config round trip to a
capture-contract scenario. The known-failure check accepts a removed
inventory row only when the base ledger authorizes it, so main records
the authorization first.
@Artexis10

Copy link
Copy Markdown
Collaborator Author

Review

  • Verdict: APPROVE, after one correction round. An independent reviewer did the review and the recheck.
  • Net call: ship. The base-ledger authority design forbids authorizing a removal in the same PR that removes the row, so no simpler shape works.
  • Weight: one ledger file. The authorization entry is +10/-1, and the reason rewording is +1/-1. The change has no product code and no test changes.
  • Correction: the first reason text overstated Windows restore coverage. The reworded reason and the "Coverage change" section state that ripgrep loses its only synthetic Windows config round trip.
  • Evidence:
    • The ledger parses and validates with the engine's parser.
    • EvaluateKnownFailureLedger reports clean, both against main's ledger and with this ledger as base and head: 370 planned rows against 370 inventory rows.
    • go test ./internal/validationci passes.

@Artexis10 Artexis10 changed the title ci: authorize removing the ripgrep config-roundtrip inventory row ci: authorize removing the ripgrep and poetry config-roundtrip inventory rows Nov 7, 2026
@Artexis10

Copy link
Copy Markdown
Collaborator Author

Review, round 2

  • Scope: 9bdf31b adds the Poetry authorization. e12e2d9 rewords its reason.
  • Verdict: APPROVE, 0 blocking. The independent recheck found the following:
    • The entry is sorted and unique, and its row is in the inventory.
    • Main evaluates clean: 370 planned rows against 370 inventory rows.
    • go test ./internal/validationci passes.
  • Correction: the recheck flagged that the first Poetry reason stated a future Windows regression as a result. e12e2d9 replaces it with the reviewer's own wording, which states it as a requirement of the conversion rule.
  • Weight: one ledger file. Against main the change is +18/-1, with no code or tests.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

9886131 against base e9105c1. Only the gate fails this check; the rest informs review. Why each check exists: PRACTICES.md.

Gate: passed

Dead code, lint findings and banned patterns on lines this pull request adds. Silence a false positive in .github/quality.yml, in the linter's own config, or for a banned pattern with a reasoned # nosemgrep: line.

Check Result
Unused files, exports and dependencies (knip) not configured
Unreachable Go functions (deadcode) passed
Unused imports and variables, undefined names, redefinitions (ruff F rules) not configured
Lint errors (the repository's ESLint and config) not configured
Go bugs, simplifications and style (staticcheck) passed
Shell script bugs (ShellCheck) no shell script changed
Banned patterns: word lists and word regexes, regex over SQL or markup (semgrep) not configured

Proof weight

Lines added and removed per path class, from git diff --numstat against the base.

Class Files Lines added Lines removed
tooling 1 18 1

Product +0 lines against proof +18 lines (tooling).
A file that matches no class counts as product; lockfiles and other generated files, and docs, count as neither.
Proof that outweighs the product it covers needs a reason in review.

Measures on added lines

Check Result
New duplicate code, exact token clones (jscpd) none on added lines
Python definitions nothing references (vulture, confidence 60+) not configured

Test runtime

This run against the median of the last 5 successful main runs of this workflow on the same runner, from the GitHub Actions API.

Job This run Median on main Change
Go Tests 17m 06s not comparable: 0 main runs on GitHub Actions 1000285879
Go Tests (macos-latest) 1m 06s not comparable: 0 main runs on GitHub Actions 1000285877
Go Tests (ubuntu-latest) 1m 12s not comparable: 0 main runs on GitHub Actions 1000285893
Integration Test (windows) 0m 39s not comparable: 0 main runs on GitHub Actions 1000286033
Synthetic Shard 0 1m 29s not comparable: 0 main runs on GitHub Actions 1000286012
Synthetic Shard 1 1m 09s not comparable: 0 main runs on GitHub Actions 1000286040
Synthetic Shard 2 1m 22s not comparable: 0 main runs on GitHub Actions 1000286061
Synthetic Shard 3 0m 57s not comparable: 0 main runs on GitHub Actions 1000286017
Synthetic Shard 4 1m 09s not comparable: 0 main runs on GitHub Actions 1000286015
Synthetic Shard 5 1m 33s not comparable: 0 main runs on GitHub Actions 1000286024
Synthetic Shard 6 1m 20s not comparable: 0 main runs on GitHub Actions 1000286013
Synthetic Shard 7 1m 19s not comparable: 0 main runs on GitHub Actions 1000286022
Catalog Matrix 0m 22s not comparable: 0 main runs on GitHub Actions 1000286065
Notepad++ Synthetic Engine Contract 0m 16s not comparable: 0 main runs on GitHub Actions 1000286062

@Artexis10

Copy link
Copy Markdown
Collaborator Author

Automated review: APPROVE
Head: e12e2d9
Base: e9105c1
Patch: 7396e343a72dbe3c2322ac85a5a78c1f04f9baac
Reviewer: lane-reviewer, sonnet, xhigh
Blocking by round: 1, 0, 0
Net call: ship after rewording the reason

Net call

Ship. The change adds two inventoryRemovals entries to the synthetic known-failure ledger, for apps.poetry/default-v1/config-roundtrip-v1 and apps.ripgrep/default-v1/config-roundtrip-v1. This is the smallest shape that works: the evaluator accepts a missing inventory row only when the base ledger on main already authorizes it, so the authorization cannot ship in the converting pull request. The round 1 finding is fixed in this head. The one wording nit from round 3 (the Poetry reason promised future work as a present fact) is applied too.

Checks done in disposable copies of the head:

  • The real catalog plan gives 370 rows and the ledger inventory has 370. Evaluating this ledger against main's ledger returns no failure, with 0 removals and 0 additions. The same holds with this ledger as both base and head.
  • Both entries sort canonically (apps.poetry before apps.ripgrep) and have a non-empty reason.
  • go test ./internal/validationci passes.
  • For ripgrep, the converting ledger must remove the old row, add apps.ripgrep/platform-settings-capture/capture-contract, drop this entry, and recompute the inventory digest. An omitted new row, a retained entry, or a base ledger without this PR each fail the evaluator.
  • The change adds no regex, word list or other C6 mechanism.
  • All 17 GitHub checks are green at this head, including "Verified Module Matrix".

Weight

One ledger file, +18/-1 against main. No product code and no tests.

Round 1 blocking finding (verbatim)

The reason text overstated Windows restore coverage.

3. The reason text is inaccurate. This is blocking.

The text is: "its Windows restore keeps an independent engine regression."

  • It traces to 1f8992e's original sidecar evidence: "An independent engine regression proves same-platform restore and cross-platform refusal."
  • That regression is TestLinuxVersionedConfigCaptureRestoreRetainsPlatformProvenance, in go-engine/internal/commands/config_platform_provenance_test.go. It starts with if runtime.GOOS != "linux" { t.Skip }.
  • It proves Linux capture to Linux restore, plus refusal of a Linux-sourced capture on a Windows target. It never restores a Windows-captured ripgrep on Windows, and it skips on the Windows CI runner.
  • The other ripgrep Windows tests I found cover capture only: TestProductionRipgrepSchemaV3WindowsFixtureMapsEngineCoordinates, the preflight tests and the capture-platform test. None exercises restore.
  • The pending branch's own final sidecar (94ffc16) dropped that sentence. It now says the scenario covers Windows capture integrity and optional absence.
  • So removing config-roundtrip-v1 does lose ripgrep's only synthetic Windows restore round trip, and the reason hides that. The drop is forced by design: classification.go says flat schema-v3 settings require one capture-contract scenario.

The reason is a permanent audit record that authorizes a coverage loss, so it should say so.

Later rounds

  • Round 2 approved 48659e4: the ripgrep reason now states the Windows coverage loss, and the PR body has a "Coverage change" section.
  • Round 3 approved 9bdf31b: it added the Poetry entry. The only point raised was non-blocking, that the Poetry reason stated a future Windows regression as present fact.
  • e12e2d9 changes only that Poetry reason, to the wording suggested in round 3 ("The conversion rule requires the converting change to add a Windows regression that restores legacy Poetry captures; this entry does not prove that the regression exists."). git diff 9bdf31b e12e2d9 shows one changed line.

@Artexis10
Artexis10 merged commit 7a18da3 into main Nov 7, 2026
33 of 34 checks passed
@Artexis10
Artexis10 deleted the chore/authorize-ledger-removals-20261107 branch November 7, 2026 01:19
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.

1 participant