@integrity-labs/agt-cli 0.28.1235 → 0.28.1237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-VGZ2SKEW.js → chunk-6UWT4OVX.js} +3 -3
  3. package/dist/{chunk-GAQFCMBK.js → chunk-CWO5BDXI.js} +2 -2
  4. package/dist/{chunk-WAWLHUCT.js → chunk-IMNBAJ76.js} +2 -2
  5. package/dist/{chunk-ASJCTFLB.js → chunk-MRG3MIJH.js} +5 -5
  6. package/dist/chunk-MRG3MIJH.js.map +1 -0
  7. package/dist/{chunk-I57M57XZ.js → chunk-UBEPEAMN.js} +21 -3
  8. package/dist/{chunk-I57M57XZ.js.map → chunk-UBEPEAMN.js.map} +1 -1
  9. package/dist/{claude-code-updater-GXYP3Y6O.js → claude-code-updater-DD6TTIGM.js} +3 -3
  10. package/dist/{claude-pair-runtime-GEFCVMJA.js → claude-pair-runtime-YLHZQYW6.js} +3 -3
  11. package/dist/lib/manager-worker.js +37 -21
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/mcp/direct-chat-channel.js +20 -2
  14. package/dist/mcp/index.js +20 -2
  15. package/dist/mcp/origami.js +20 -2
  16. package/dist/mcp/slack-channel.js +20 -2
  17. package/dist/mcp/telegram-channel.js +20 -2
  18. package/dist/{persistent-session-VEE36NTM.js → persistent-session-2XBZ3AV3.js} +4 -4
  19. package/dist/{responsiveness-probe-ZPBEQOK5.js → responsiveness-probe-XEQL4LXY.js} +4 -4
  20. package/dist/{session-auth-dead-HOVWVHBB.js → session-auth-dead-UKCQ3SSK.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-ASJCTFLB.js.map +0 -1
  23. /package/dist/{chunk-VGZ2SKEW.js.map → chunk-6UWT4OVX.js.map} +0 -0
  24. /package/dist/{chunk-GAQFCMBK.js.map → chunk-CWO5BDXI.js.map} +0 -0
  25. /package/dist/{chunk-WAWLHUCT.js.map → chunk-IMNBAJ76.js.map} +0 -0
  26. /package/dist/{claude-code-updater-GXYP3Y6O.js.map → claude-code-updater-DD6TTIGM.js.map} +0 -0
  27. /package/dist/{claude-pair-runtime-GEFCVMJA.js.map → claude-pair-runtime-YLHZQYW6.js.map} +0 -0
  28. /package/dist/{persistent-session-VEE36NTM.js.map → persistent-session-2XBZ3AV3.js.map} +0 -0
  29. /package/dist/{responsiveness-probe-ZPBEQOK5.js.map → responsiveness-probe-XEQL4LXY.js.map} +0 -0
  30. /package/dist/{session-auth-dead-HOVWVHBB.js.map → session-auth-dead-UKCQ3SSK.js.map} +0 -0
@@ -39510,8 +39510,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
39510
39510
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39511
39511
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39512
39512
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39513
- var DECK_PRINT_BUTTON_W_PX = 72;
39514
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
39513
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
39514
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39515
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39516
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39515
39517
 
39516
39518
  // ../core/dist/integrations/augmented-live/codec.js
39517
39519
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -44692,6 +44694,22 @@ var FLAG_REGISTRY = [
44692
44694
  // deliberate staged security flip, so mutations require explicit confirmation.
44693
44695
  sensitive: true
44694
44696
  },
44697
+ {
44698
+ key: "at-rest-scheme-k-writes",
44699
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
44700
+ flagType: "boolean",
44701
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
44702
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
44703
+ // `k` row is only readable via the KMS key it names, so the two failure
44704
+ // directions are not symmetric and the safe one is down.
44705
+ defaultValue: false,
44706
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
44707
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
44708
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
44709
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
44710
+ // every row it produces, so mutations require explicit confirmation.
44711
+ sensitive: true
44712
+ },
44695
44713
  {
44696
44714
  key: "opencode-host-wizard",
44697
44715
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
package/dist/mcp/index.js CHANGED
@@ -25606,8 +25606,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
25606
25606
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
25607
25607
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
25608
25608
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
25609
- var DECK_PRINT_BUTTON_W_PX = 72;
25610
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
25609
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
25610
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
25611
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
25612
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
25611
25613
 
25612
25614
  // ../core/dist/integrations/augmented-live/codec.js
25613
25615
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -30374,6 +30376,22 @@ var FLAG_REGISTRY = [
30374
30376
  // deliberate staged security flip, so mutations require explicit confirmation.
30375
30377
  sensitive: true
30376
30378
  },
30379
+ {
30380
+ key: "at-rest-scheme-k-writes",
30381
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
30382
+ flagType: "boolean",
30383
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
30384
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
30385
+ // `k` row is only readable via the KMS key it names, so the two failure
30386
+ // directions are not symmetric and the safe one is down.
30387
+ defaultValue: false,
30388
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
30389
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
30390
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
30391
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
30392
+ // every row it produces, so mutations require explicit confirmation.
30393
+ sensitive: true
30394
+ },
30377
30395
  {
30378
30396
  key: "opencode-host-wizard",
30379
30397
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
@@ -39667,8 +39667,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
39667
39667
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39668
39668
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39669
39669
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
39670
- var DECK_PRINT_BUTTON_W_PX = 72;
39671
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
39670
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
39671
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39672
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39673
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
39672
39674
 
39673
39675
  // ../core/dist/integrations/augmented-live/codec.js
39674
39676
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -44176,6 +44178,22 @@ var FLAG_REGISTRY = [
44176
44178
  // deliberate staged security flip, so mutations require explicit confirmation.
44177
44179
  sensitive: true
44178
44180
  },
44181
+ {
44182
+ key: "at-rest-scheme-k-writes",
44183
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
44184
+ flagType: "boolean",
44185
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
44186
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
44187
+ // `k` row is only readable via the KMS key it names, so the two failure
44188
+ // directions are not symmetric and the safe one is down.
44189
+ defaultValue: false,
44190
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
44191
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
44192
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
44193
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
44194
+ // every row it produces, so mutations require explicit confirmation.
44195
+ sensitive: true
44196
+ },
44179
44197
  {
44180
44198
  key: "opencode-host-wizard",
44181
44199
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
@@ -34100,8 +34100,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
34100
34100
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34101
34101
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34102
34102
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34103
- var DECK_PRINT_BUTTON_W_PX = 72;
34104
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
34103
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
34104
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34105
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34106
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34105
34107
 
34106
34108
  // ../core/dist/integrations/augmented-live/codec.js
34107
34109
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -39031,6 +39033,22 @@ var FLAG_REGISTRY = [
39031
39033
  // deliberate staged security flip, so mutations require explicit confirmation.
39032
39034
  sensitive: true
39033
39035
  },
39036
+ {
39037
+ key: "at-rest-scheme-k-writes",
39038
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
39039
+ flagType: "boolean",
39040
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
39041
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
39042
+ // `k` row is only readable via the KMS key it names, so the two failure
39043
+ // directions are not symmetric and the safe one is down.
39044
+ defaultValue: false,
39045
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
39046
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
39047
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
39048
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
39049
+ // every row it produces, so mutations require explicit confirmation.
39050
+ sensitive: true
39051
+ },
39034
39052
  {
39035
39053
  key: "opencode-host-wizard",
39036
39054
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
@@ -34297,8 +34297,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
34297
34297
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34298
34298
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34299
34299
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34300
- var DECK_PRINT_BUTTON_W_PX = 72;
34301
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
34300
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
34301
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34302
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34303
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
34302
34304
 
34303
34305
  // ../core/dist/integrations/augmented-live/codec.js
34304
34306
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -39222,6 +39224,22 @@ var FLAG_REGISTRY = [
39222
39224
  // deliberate staged security flip, so mutations require explicit confirmation.
39223
39225
  sensitive: true
39224
39226
  },
39227
+ {
39228
+ key: "at-rest-scheme-k-writes",
39229
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
39230
+ flagType: "boolean",
39231
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
39232
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
39233
+ // `k` row is only readable via the KMS key it names, so the two failure
39234
+ // directions are not symmetric and the safe one is down.
39235
+ defaultValue: false,
39236
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
39237
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
39238
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
39239
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
39240
+ // every row it produces, so mutations require explicit confirmation.
39241
+ sensitive: true
39242
+ },
39225
39243
  {
39226
39244
  key: "opencode-host-wizard",
39227
39245
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-VGZ2SKEW.js";
72
- import "./chunk-WAWLHUCT.js";
71
+ } from "./chunk-6UWT4OVX.js";
72
+ import "./chunk-IMNBAJ76.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-I57M57XZ.js";
76
+ import "./chunk-UBEPEAMN.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-VEE36NTM.js.map
150
+ //# sourceMappingURL=persistent-session-2XBZ3AV3.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-VGZ2SKEW.js";
4
- import "./chunk-WAWLHUCT.js";
3
+ } from "./chunk-6UWT4OVX.js";
4
+ import "./chunk-IMNBAJ76.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-I57M57XZ.js";
8
+ import "./chunk-UBEPEAMN.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-ZPBEQOK5.js.map
807
+ //# sourceMappingURL=responsiveness-probe-XEQL4LXY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-WAWLHUCT.js";
4
- import "./chunk-I57M57XZ.js";
3
+ } from "./chunk-IMNBAJ76.js";
4
+ import "./chunk-UBEPEAMN.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-HOVWVHBB.js.map
208
+ //# sourceMappingURL=session-auth-dead-UKCQ3SSK.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1235",
3
+ "version": "0.28.1237",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {