GeezerVison is showing github.com — feat(fleet): change-event ledger check for pool config changes (#1334) by dezren39 · Pull Request #14069 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Slice of epic #1334 toward its unchecked acceptance criterion: "The change-event ledger exists and every config change in the window has a matching event with before/after quota snapshots." The steward spec (#1339) says "a config change with no ledger event is a defect" — but no ledger and no check existed. This PR is the measurement harness: scripts/change_ledger.py verifies a JSONL ledger against a changes file (one entry per merged PR touching the canonical config .opencode/opencode.jsonc), and scripts/test_change_ledger.py covers it (14 tests, oracle: #1339's spec + the operator-script argument contract #3352).
After this PR, python3 -I scripts/change_ledger.py check --ledger <ledger> --changes <changes> reports matched/unmatched config changes and defective events (exit 0/1, usage errors exit 2).
Evidence
- Failing first: tests run before the module existed failed with
ModuleNotFoundError: No module named 'change_ledger'; after implementation, 14/14 pass locally (python3 scripts/test_change_ledger.py → OK).
- Remote verification:
fleet queue dispatch is blocked by TLS defect fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185 (invalid peer certificate: UnknownIssuer on the fleet-command.yml dispatch POST), so per the lane fallback I dispatched the workflow directly: run https://github.com/developing-today/fleet/actions/runs/45322738000 — the "Execute target command" step (python3 scripts/test_change_ledger.py on branch xaltha/1334-change-ledger-check) completed with status success. The run was still in post-step container teardown when this PR was opened; the command step result is the verification.
- First real run (measured number, committed here): window 2026-10-27 → 2026-11-24, changes built from the commits API grouped by PR via
commits/{sha}/pulls: 183 config changes (165 merged PRs + 18 direct commits), 0 matched — the ledger file does not exist (~/workspace/goals/keep-the-four-repos-healthy/hidden_files/change-event-ledger.jsonl), exit 1. So criterion 3 is still unmet; this PR makes the gap countable instead of unknown.
- Suite registry:
bash .github/scripts/check-suite-registry.sh prints nothing for scripts/test_change_ledger.py — no registry row needed (only pkgs/id and pkgs/mcpx test files need one), matching the scripts/test_ainventory_gather.py precedent (run directly, no CI wiring).
Merge danger
Additive only: two new files under scripts/, no existing file touched, no behavior changed. The checker is read-only (reads a ledger and a changes file, prints JSON).
Next slice
Create the ledger at the goal-workspace path above and record first events for the in-window changes (starting with the most recent), so the check moves from 0/183 toward full coverage. Criterion 3 stays unchecked until every change in the window matches.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The steward spec (#1339) says a config change with no ledger event is
a defect, but no ledger and no check exist: 207 commits touched
.opencode/opencode.jsonc since the epic was filed, with zero ledger
events to match them against. This slice is the measurement harness:
scripts/change_ledger.py verifies a JSONL ledger against a changes
file (one entry per merged PR touching the canonical config), and
scripts/test_change_ledger.py covers it (14 tests, oracle #1339).
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 29 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4c9ef353-b266-472c-9af4-2e96c7632b1f
Commits
-
Reviewing files that changed from the base of the PR and between 7b95e94 and 9e18323.
Files selected for processing: 2
-
scripts/change_ledger.py
scripts/test_change_ledger.py
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|