Skip to content

Record unavailable review usage by execution interface (T28) - #289

Merged
erickb336 merged 2 commits into
mainfrom
codex/t28-unavailable-review-usage
Oct 21, 2026
Merged

erickb336 merged 2 commits into
mainfrom
codex/t28-unavailable-review-usage

Conversation

@erickb336

@erickb336 erickb336 commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

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.
  • Existing native run creation: 10 tests, 10 pass. Existing statistics/model migration: 11 tests, 11 pass.
  • Independent built-CLI trials: 18 calls with five unchanged-byte refusals; separate 12-call per-task totals check; header-loss reproduction now refuses and preserves existing metadata.
  • Detached main baseline: the first nine tests gave eight failures and one pass. Seven failures reflect missing new behavior. The provider-isolation failure is only wording; main already refuses it. Genuine old-receipt replay passes main and is a compatibility control. A deliberate incompatible-validator mutation makes that control fail.
  • Both repair regressions fail on rejected predecessor cee974e, then pass on the repaired candidate.
  • git diff --check: exit 0.

Final-head full npm test completed with exit 0: 1896 tests, 1896 pass, 0 fail, 0 cancelled, 0 skipped on 491945c. All 16 reviewed hashes still match and tracked files are clean. The earlier 1894/1894 result belongs to predecessor cee974e; 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 as 33a40be93adc62cfa795a10a6ddf42967a5349e5.

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.

@erickb336
erickb336 marked this pull request as ready for review October 20, 2026 23:59
@erickb336
erickb336 merged commit 33a40be into main Oct 21, 2026
1 check passed
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.

Resolve unavailable review-run token evidence in Codex (T27)

1 participant