@integrity-labs/agt-cli 0.28.1234 → 0.28.1236

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 (34) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-74FVXAHG.js → chunk-6UWT4OVX.js} +3 -3
  3. package/dist/{chunk-PV2LPKJ2.js → chunk-CWO5BDXI.js} +2 -2
  4. package/dist/{chunk-3HLECXMI.js → chunk-FIGZJ6AU.js} +46 -1
  5. package/dist/{chunk-3HLECXMI.js.map → chunk-FIGZJ6AU.js.map} +1 -1
  6. package/dist/{chunk-AZ2QBMCL.js → chunk-IMNBAJ76.js} +2 -2
  7. package/dist/{chunk-UWJTR4AS.js → chunk-O3ZYQFAT.js} +5 -5
  8. package/dist/chunk-O3ZYQFAT.js.map +1 -0
  9. package/dist/{chunk-NPW4S55O.js → chunk-UBEPEAMN.js} +27 -3
  10. package/dist/{chunk-NPW4S55O.js.map → chunk-UBEPEAMN.js.map} +1 -1
  11. package/dist/{claude-code-updater-6GP4LY3Y.js → claude-code-updater-DD6TTIGM.js} +3 -3
  12. package/dist/{claude-pair-runtime-2QA23TMP.js → claude-pair-runtime-YLHZQYW6.js} +3 -3
  13. package/dist/lib/manager-worker.js +42 -24
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +26 -2
  16. package/dist/mcp/index.js +31 -5
  17. package/dist/mcp/origami.js +26 -2
  18. package/dist/mcp/slack-channel.js +26 -2
  19. package/dist/mcp/telegram-channel.js +26 -2
  20. package/dist/{persistent-session-YS5LY7YD.js → persistent-session-2XBZ3AV3.js} +4 -4
  21. package/dist/{responsiveness-probe-C3SSBQCL.js → responsiveness-probe-XEQL4LXY.js} +4 -4
  22. package/dist/{scheduler-engine-M6AFZWNU.js → scheduler-engine-5PCBGRNY.js} +8 -2
  23. package/dist/{session-auth-dead-3GT7MM6J.js → session-auth-dead-UKCQ3SSK.js} +3 -3
  24. package/package.json +1 -1
  25. package/dist/chunk-UWJTR4AS.js.map +0 -1
  26. /package/dist/{chunk-74FVXAHG.js.map → chunk-6UWT4OVX.js.map} +0 -0
  27. /package/dist/{chunk-PV2LPKJ2.js.map → chunk-CWO5BDXI.js.map} +0 -0
  28. /package/dist/{chunk-AZ2QBMCL.js.map → chunk-IMNBAJ76.js.map} +0 -0
  29. /package/dist/{claude-code-updater-6GP4LY3Y.js.map → claude-code-updater-DD6TTIGM.js.map} +0 -0
  30. /package/dist/{claude-pair-runtime-2QA23TMP.js.map → claude-pair-runtime-YLHZQYW6.js.map} +0 -0
  31. /package/dist/{persistent-session-YS5LY7YD.js.map → persistent-session-2XBZ3AV3.js.map} +0 -0
  32. /package/dist/{responsiveness-probe-C3SSBQCL.js.map → responsiveness-probe-XEQL4LXY.js.map} +0 -0
  33. /package/dist/{scheduler-engine-M6AFZWNU.js.map → scheduler-engine-5PCBGRNY.js.map} +0 -0
  34. /package/dist/{session-auth-dead-3GT7MM6J.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.",
@@ -44994,6 +45012,12 @@ var FLAG_REGISTRY = [
44994
45012
  flagType: "boolean",
44995
45013
  defaultValue: true
44996
45014
  },
45015
+ {
45016
+ key: "pending-inbound-tiered-page",
45017
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
45018
+ flagType: "boolean",
45019
+ defaultValue: true
45020
+ },
44997
45021
  {
44998
45022
  key: "promise-outstanding-alarm",
44999
45023
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
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.",
@@ -30676,6 +30694,12 @@ var FLAG_REGISTRY = [
30676
30694
  flagType: "boolean",
30677
30695
  defaultValue: true
30678
30696
  },
30697
+ {
30698
+ key: "pending-inbound-tiered-page",
30699
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
30700
+ flagType: "boolean",
30701
+ defaultValue: true
30702
+ },
30679
30703
  {
30680
30704
  key: "promise-outstanding-alarm",
30681
30705
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
@@ -48897,12 +48921,14 @@ function renderKanbanParkedAct(data, token = newFrameToken()) {
48897
48921
  close: "Closed",
48898
48922
  reassign: "Reassigned",
48899
48923
  escalate: "Escalated",
48900
- reopen: "Reopened"
48924
+ reopen: "Reopened",
48925
+ restart: "Requested a restart of the owner of"
48901
48926
  };
48902
48927
  const released = data.action === "close" && data.from_status === "in_progress";
48903
48928
  const lines = [
48904
48929
  `${released ? "Released" : verb[data.action ?? ""] ?? "Changed"} card ${data.id ?? ""}: ${data.from_status ?? "?"} -> ${data.status ?? "?"}.`,
48905
48930
  ...released ? ["A released in-progress card cannot be reopened with this tool."] : [],
48931
+ ...data.action === "restart" ? ["The card itself is unchanged. The host carries out the restart when it next picks up the request, so this is not yet proof it happened: check the owner's session with agent_session_status. This agent cannot be restarted again for an hour."] : [],
48906
48932
  frameCardText(`title: ${oneLine(data.title ?? "")}`, "whoever filed the card", token),
48907
48933
  data.owner_notified ? "The owning agent was told." : "The owning agent could NOT be told: tell it yourself."
48908
48934
  ];
@@ -51311,11 +51337,11 @@ server.tool(
51311
51337
  );
51312
51338
  server.tool(
51313
51339
  "kanban_parked_act",
51314
- 'Act on ONE card belonging to an agent that reports directly to you: a parked card (needs_attention or waiting), or an ORPHANED in_progress card (its owner has been idle or killed for 30+ minutes since its last completed turn, with nothing logged or progressed on the card since), or a todo/backlog card to reassign. close: the card is dead, or (in_progress) released so its owner stops holding it. It becomes failed with your reason, nobody is told it completed, and a linked ticket is not touched. reassign: move it to another agent on your team (new_owner), keeping its column. escalate: park a parked card on a named person (person_id from directory_lookup), who is notified; the owner keeps the card. reopen: undo your last close, reassign or escalate on this card, restoring what it replaced. A released in_progress card cannot be reopened. Check a linked ticket or PR yourself before closing: this tool does not look it up. A reason is required, the owning agent is told, and every call is audited. Refused for done and failed cards, for an in_progress card whose owner may still be working it (mid-turn, blocked on a prompt, background work running or unknown, not reporting, or active in the last 30 minutes), for cards parked on a pending approval, for any agent that does not report directly to you, and for a manager-only agent. Use kanban_parked first to get the card id (column "active" lists in_progress, todo and backlog).',
51340
+ 'Act on ONE card belonging to an agent that reports directly to you: a parked card (needs_attention or waiting), or an ORPHANED in_progress card (its owner has been idle or killed for 30+ minutes since its last completed turn, with nothing logged or progressed on the card since), or a todo/backlog card to reassign. close: the card is dead, or (in_progress) released so its owner stops holding it. It becomes failed with your reason, nobody is told it completed, and a linked ticket is not touched. reassign: move it to another agent on your team (new_owner), keeping its column. escalate: park a parked card on a named person (person_id from directory_lookup), who is notified; the owner keeps the card. restart: restart the owner of an orphaned in_progress card, in an internal organization only: it must be idle at its prompt with nothing running in the background, at most once per agent per hour. The card is left as it is. reopen: undo your last close, reassign or escalate on this card, restoring what it replaced. A released in_progress card cannot be reopened. Check a linked ticket or PR yourself before closing: this tool does not look it up. A reason is required, the owning agent is told, and every call is audited. Refused for done and failed cards, for an in_progress card whose owner may still be working it (mid-turn, blocked on a prompt, background work running or unknown, not reporting, or active in the last 30 minutes), for cards parked on a pending approval, for any agent that does not report directly to you, and for a manager-only agent. Use kanban_parked first to get the card id (column "active" lists in_progress, todo and backlog).',
51315
51341
  {
51316
51342
  target_agent: external_exports.string().describe("The agent that reports to you and holds the card: code_name (kebab-case) or agent UUID."),
51317
51343
  card_id: external_exports.string().uuid().describe("The card id, from kanban_parked."),
51318
- action: external_exports.enum(["close", "reassign", "escalate", "reopen"]).describe("What to do with the card."),
51344
+ action: external_exports.enum(["close", "reassign", "escalate", "reopen", "restart"]).describe("What to do with the card."),
51319
51345
  reason: external_exports.string().trim().min(1, "reason is required").max(2e3, "reason is too long").describe(
51320
51346
  'Why, for whoever reads this card later. On escalate it is what the person is asked to do, so write it as a request ("confirm the refund was issued").'
51321
51347
  ),
@@ -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.",
@@ -44478,6 +44496,12 @@ var FLAG_REGISTRY = [
44478
44496
  flagType: "boolean",
44479
44497
  defaultValue: true
44480
44498
  },
44499
+ {
44500
+ key: "pending-inbound-tiered-page",
44501
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
44502
+ flagType: "boolean",
44503
+ defaultValue: true
44504
+ },
44481
44505
  {
44482
44506
  key: "promise-outstanding-alarm",
44483
44507
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
@@ -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.",
@@ -39333,6 +39351,12 @@ var FLAG_REGISTRY = [
39333
39351
  flagType: "boolean",
39334
39352
  defaultValue: true
39335
39353
  },
39354
+ {
39355
+ key: "pending-inbound-tiered-page",
39356
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
39357
+ flagType: "boolean",
39358
+ defaultValue: true
39359
+ },
39336
39360
  {
39337
39361
  key: "promise-outstanding-alarm",
39338
39362
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
@@ -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.",
@@ -39524,6 +39542,12 @@ var FLAG_REGISTRY = [
39524
39542
  flagType: "boolean",
39525
39543
  defaultValue: true
39526
39544
  },
39545
+ {
39546
+ key: "pending-inbound-tiered-page",
39547
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
39548
+ flagType: "boolean",
39549
+ defaultValue: true
39550
+ },
39527
39551
  {
39528
39552
  key: "promise-outstanding-alarm",
39529
39553
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-74FVXAHG.js";
72
- import "./chunk-AZ2QBMCL.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-NPW4S55O.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-YS5LY7YD.js.map
150
+ //# sourceMappingURL=persistent-session-2XBZ3AV3.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-74FVXAHG.js";
4
- import "./chunk-AZ2QBMCL.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-NPW4S55O.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-C3SSBQCL.js.map
807
+ //# sourceMappingURL=responsiveness-probe-XEQL4LXY.js.map
@@ -1,5 +1,8 @@
1
1
  import {
2
+ CATCH_UP_MIN_LATENESS_MS,
3
+ catchUpNote,
2
4
  computeNextFire,
5
+ describeCatchUp,
3
6
  findTaskByTemplate,
4
7
  getProjectDir,
5
8
  getReadyTasks,
@@ -7,10 +10,13 @@ import {
7
10
  markTaskFired,
8
11
  saveSchedulerState,
9
12
  syncTasksToScheduler
10
- } from "./chunk-3HLECXMI.js";
13
+ } from "./chunk-FIGZJ6AU.js";
11
14
  import "./chunk-DGUM43GV.js";
12
15
  export {
16
+ CATCH_UP_MIN_LATENESS_MS,
17
+ catchUpNote,
13
18
  computeNextFire,
19
+ describeCatchUp,
14
20
  findTaskByTemplate,
15
21
  getProjectDir,
16
22
  getReadyTasks,
@@ -19,4 +25,4 @@ export {
19
25
  saveSchedulerState,
20
26
  syncTasksToScheduler
21
27
  };
22
- //# sourceMappingURL=scheduler-engine-M6AFZWNU.js.map
28
+ //# sourceMappingURL=scheduler-engine-5PCBGRNY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-AZ2QBMCL.js";
4
- import "./chunk-NPW4S55O.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-3GT7MM6J.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.1234",
3
+ "version": "0.28.1236",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {