Repository navigation
Record unavailable review usage by execution interface (T28) - #289
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 20, 2026 23:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #284
Sage task T28; investigation T27
Completed manual reviews can now record usage as unavailable when their declared execution interface has no authoritative per-run count. This is a narrow provider capability exception, not a general opt-out. The chief declaration remains explicitly unauthenticated under owner decision G5.
A fixed provider-injected list binds each manual run to an immutable interface snapshot. Supported, default and unknown interfaces cannot select unavailable usage. A retrieval error does not change that rule. Numeric counts remain numeric or empty; status and stats disclose partial totals and distinguish measured, unavailable and legacy-unrecorded runs. Later measured enrichment records an audited, idempotent update without changing terminal status, reports or prior measured counts. Native completion authority and review/task/ownership checks remain intact.
The initial candidate exposed a recovery column-loss defect and a missing per-task amount. Both are repaired. Two fresh independent code/QA cycles are clean on final commit
491945ca044f0ea1a5d5107979616525272f8241(R156/R157 and R158/R159).Validation uses fake ps/pgrep/kill first on PATH and unsets NODE_TEST_CONTEXT:
npm run build: built 324 files.npm run check: all checks pass; five existing annotated timing bounds.node --test scripts/usage.test.mjs: 11 tests, 11 pass, 0 fail, independently repeated in both review cycles.cee974e, then pass on the repaired candidate.git diff --check: exit 0.Final-head full
npm testcompleted with exit 0: 1896 tests, 1896 pass, 0 fail, 0 cancelled, 0 skipped on491945c. All 16 reviewed hashes still match and tracked files are clean. The earlier 1894/1894 result belongs to predecessorcee974e; the fresh result above certifies this repaired head locally. GitHub CI also passed on the exact reviewed head: 1896 tests, 1896 pass, 0 fail, 0 cancelled, 0 skipped. PR #289 merged as33a40be93adc62cfa795a10a6ddf42967a5349e5.Not verified: real host token retrieval, authenticated interface identity, installed automatic Sage or autopilot. Disposable usage references simulate evidence content; the CLI behavior is real. The installed CLI still cannot close these legacy-created reviewer records with unavailable usage, so their bookkeeping remains explicitly blocked while exact substantive reports/verdicts are preserved. No count or native receipt was fabricated. One old reviewer test lost its execution handle; its terminal state and cleanup remain unconfirmed and are not cleared by later successful checks.
No Claude-active board or README sources changed. Generated plugin files come from the build.