Skip to content

feat: signature drift alarm, family-scoped suspensions, live verifier (2.9.15) - #123

Merged
JoshRob297 merged 1 commit into
mainfrom
feat/blindaje-2.9.15
Nov 27, 2026
Merged

JoshRob297 merged 1 commit into
mainfrom
feat/blindaje-2.9.15

Conversation

@JoshRob297

Copy link
Copy Markdown
Owner

Implements the remaining hardening items.

Highlights:

  • CLI drift is visible: antigravity_stats prints CLI SIGNATURE: <version> | cl=<build> and appends updater reports X; add its build id to ANTIGRAVITY_CLI_BUILDS when the table is behind. version.ts also warns and writes to the debug log.
  • v2 suspension handling: the 403 ToS path only existed in the v1 handler; the v2 adapter treated it as a 60s rate limit. It now detects the body, marks/persists the suspension, and lets the manager skip the account.
  • Family-scoped suspensions: a message that names one family writes suspendedFamilies and removes only that family; unqualified messages stay account-wide. Rendered as (suspended: claude) / [suspended: claude] / SUSPENDED:claude.
  • Managed project persistence: v1 and v2 persist the resolved managedProjectId (never the shared fallback), so hrjoces22 no longer re-resolves every session.
  • Contract test (src/plugin/contract.test.ts) pins the six body keys, the agent/<uuid>/<ms>/<uuid>/1 shape, the signed UA and the absence of the rejected google headers.
  • Live verifier: script/verify-live.ts (npm run verify:live), manual by design.

Verification: 53 test files / 1268 pass; verify:live returned 200 for gemini-3.8-flash-high, gemini-4-hydrogen-high and claude-sonnet-4-6; after loading the build, hrjoces22's managedProjectId persisted as aicode-consumers.

…ive verifier

- stats prints CLI SIGNATURE and warns when the updater announces a version
  whose build id is missing; version.ts warns and writes to the debug log
- 403 ToS handling now runs on the v2 path too (it only existed in v1), marks
  the account suspended and persists it
- a 403 that names one family writes suspendedFamilies and only removes that
  family from rotation; unqualified messages stay account-wide
- v2 resolves and persists managedProjectId instead of calling loadCodeAssist
  on every session
- contract test pins the body keys, requestId shape and signed UA
- script/verify-live.ts (npm run verify:live) for manual smoke tests
- docs and changelog updated; version 2.9.15
@github-actions

Copy link
Copy Markdown

Automated verification

Check Result
typecheck success
tests success
build success
branch clean
typecheck

> opencode-antigravity-auth@2.9.15 typecheck
> tsc --noEmit

tests
sts�[22m�[2m)�[22m�[32m 41�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/transform/cross-model-sanitizer.test.ts �[2m(�[22m�[2m28 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/storage.test.ts �[2m(�[22m�[2m22 tests�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/model-discovery.test.ts �[2m(�[22m�[2m49 tests�[22m�[2m)�[22m�[32m 33�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/updater.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 31�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cross-model-integration.test.ts �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/persist-account-pool.test.ts �[2m(�[22m�[2m38 tests�[22m�[2m | �[22m�[90m25 todo�[39m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/stores/signature-store.test.ts �[2m(�[22m�[2m30 tests�[22m�[2m)�[22m�[32m 18�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/thinking-recovery.test.ts �[2m(�[22m�[2m29 tests�[22m�[2m)�[22m�[32m 14�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cache.test.ts �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/search.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 56�[2mms�[22m�[39m
 �[32m✓�[39m src/v2/adapter.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 45�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/auto-update-checker/index.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/recovery.test.ts �[2m(�[22m�[2m32 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/antigravity-first-fallback.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/version.test.ts �[2m(�[22m�[2m15 tests�[22m�[2m)�[22m�[32m 46�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/usage-ledger.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/model-entitlements.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/auto-update-checker/checker.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 30�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/auth.test.ts �[2m(�[22m�[2m19 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/refresh-queue.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/quota-fallback.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 187�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/debug.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/safety.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/v2/adapter-usage-attribution.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 867�[2mms�[22m�[39m
   �[32m✓�[39m v2 adapter usage attribution �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m credits each concurrent round-robin request to the account that served it�[33m 866�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/header-timeout-retry.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/errors.test.ts �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/stats.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 44�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/storage-persistence-integrity.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 33�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/ui/auth-menu.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 25�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/model-specific-quota.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/logging-utils.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/constants.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/core/streaming/safety-shield.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/warmup-retry-limit.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 143�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/historical-pruning.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/contract.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/token.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 29�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/ui/ansi.test.ts �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/models.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/empty-response-retry.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 1547�[2mms�[22m�[39m
   �[32m✓�[39m empty-response retry across endpoint fallbacks �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m keeps retrying the same endpoint until the fourth attempt instead of failing�[33m 1545�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cache/signature-cache-persistence.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/tiered-families.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/logger.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/schema.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m53 passed�[39m�[22m�[90m (53)�[39m
�[2m      Tests �[22m �[1m�[32m1268 passed�[39m�[22m�[2m | �[22m�[90m25 todo�[39m�[90m (1293)�[39m
�[2m   Start at �[22m 22:31:40
�[2m   Duration �[22m 5.18s�[2m (tests 43%, import 32%, transform 21%, worker 4%)�[22m

�[2m    Isolate �[22m �[33m53 workers spawned�[39m�[2m · ~104ms startup each (spawn + environment, per file)�[22m
�[2m            �[22m �[2mat least ~1.74s faster with �[22m�[33misolate: false�[39m�[2m — reuses workers across files instead of one per file�[22m

build

> opencode-antigravity-auth@2.9.15 build
> tsc -p tsconfig.build.json

@JoshRob297
JoshRob297 merged commit fbd885f into main Nov 27, 2026
1 check passed
@JoshRob297
JoshRob297 deleted the feat/blindaje-2.9.15 branch November 27, 2026 22:32
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