@integrity-labs/agt-cli 0.28.1279 → 0.28.1281
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.
- package/dist/{api-client-YA7657ZN.js → api-client-UW5GPDR5.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-AW6F22KT.js → chunk-A26WJ7TB.js} +2 -2
- package/dist/{chunk-IEZRWDI2.js → chunk-CCWVPE2F.js} +3 -3
- package/dist/{chunk-VB63HJVE.js → chunk-FQMFWJUD.js} +2 -2
- package/dist/{chunk-QAK6K6YV.js → chunk-O5D6I72R.js} +48 -3
- package/dist/chunk-O5D6I72R.js.map +1 -0
- package/dist/{chunk-XTLIEWQ6.js → chunk-SHBU7NAQ.js} +5 -5
- package/dist/{chunk-TGYLUTCA.js → chunk-XNHTH267.js} +6 -3
- package/dist/{chunk-TGYLUTCA.js.map → chunk-XNHTH267.js.map} +1 -1
- package/dist/{claude-code-updater-HAUG3LWF.js → claude-code-updater-L3NMDSSG.js} +3 -3
- package/dist/{claude-pair-runtime-EBORDHDL.js → claude-pair-runtime-TUVLJDJZ.js} +3 -3
- package/dist/lib/manager-worker.js +249 -77
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +41 -2
- package/dist/mcp/index.js +41 -2
- package/dist/mcp/origami.js +41 -2
- package/dist/mcp/slack-channel.js +41 -2
- package/dist/mcp/telegram-channel.js +41 -2
- package/dist/{persistent-session-GT56CLOE.js → persistent-session-LMR3WHVO.js} +4 -4
- package/dist/{responsiveness-probe-CNKJ7AW2.js → responsiveness-probe-FWPQTPQ5.js} +4 -4
- package/dist/{session-auth-dead-TDZADZTZ.js → session-auth-dead-5PNG5ILK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-QAK6K6YV.js.map +0 -1
- /package/dist/{api-client-YA7657ZN.js.map → api-client-UW5GPDR5.js.map} +0 -0
- /package/dist/{chunk-AW6F22KT.js.map → chunk-A26WJ7TB.js.map} +0 -0
- /package/dist/{chunk-IEZRWDI2.js.map → chunk-CCWVPE2F.js.map} +0 -0
- /package/dist/{chunk-VB63HJVE.js.map → chunk-FQMFWJUD.js.map} +0 -0
- /package/dist/{chunk-XTLIEWQ6.js.map → chunk-SHBU7NAQ.js.map} +0 -0
- /package/dist/{claude-code-updater-HAUG3LWF.js.map → claude-code-updater-L3NMDSSG.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EBORDHDL.js.map → claude-pair-runtime-TUVLJDJZ.js.map} +0 -0
- /package/dist/{persistent-session-GT56CLOE.js.map → persistent-session-LMR3WHVO.js.map} +0 -0
- /package/dist/{responsiveness-probe-CNKJ7AW2.js.map → responsiveness-probe-FWPQTPQ5.js.map} +0 -0
- /package/dist/{session-auth-dead-TDZADZTZ.js.map → session-auth-dead-5PNG5ILK.js.map} +0 -0
|
@@ -43337,6 +43337,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
43337
43337
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
43338
43338
|
]);
|
|
43339
43339
|
|
|
43340
|
+
// ../core/dist/browserbase/page-fetch.js
|
|
43341
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
43342
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
43343
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
43344
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
43345
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
43346
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
43347
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
43348
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
43349
|
+
"bad_path",
|
|
43350
|
+
"off_origin",
|
|
43351
|
+
"header_not_allowed",
|
|
43352
|
+
"off_origin_redirect",
|
|
43353
|
+
"redirect_refused",
|
|
43354
|
+
"timeout",
|
|
43355
|
+
"batch_timeout",
|
|
43356
|
+
"network_error",
|
|
43357
|
+
"malformed_result"
|
|
43358
|
+
]);
|
|
43359
|
+
|
|
43340
43360
|
// ../core/dist/browserbase/page-actions.js
|
|
43341
43361
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
43342
43362
|
"Target.getTargets",
|
|
@@ -43361,7 +43381,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
43361
43381
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
43362
43382
|
// script; the drag data stays server-side and is never returned.
|
|
43363
43383
|
"Input.setInterceptDrags",
|
|
43364
|
-
"Input.dispatchDragEvent"
|
|
43384
|
+
"Input.dispatchDragEvent",
|
|
43385
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
43386
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
43387
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
43388
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
43389
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
43390
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
43391
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
43392
|
+
"DOM.resolveNode",
|
|
43393
|
+
"Runtime.callFunctionOn",
|
|
43394
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
43395
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
43396
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
43397
|
+
// turns on the page session's network events; `withPage` counts
|
|
43398
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
43399
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
43400
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
43401
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
43402
|
+
// parameter (no buffer or post-data options).
|
|
43403
|
+
"Network.enable"
|
|
43365
43404
|
]);
|
|
43366
43405
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
43367
43406
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -45008,7 +45047,7 @@ var FLAG_REGISTRY = [
|
|
|
45008
45047
|
},
|
|
45009
45048
|
{
|
|
45010
45049
|
key: "at-rest-scheme-k-writes",
|
|
45011
|
-
description:
|
|
45050
|
+
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. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. 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) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (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); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for 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 \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way 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.',
|
|
45012
45051
|
flagType: "boolean",
|
|
45013
45052
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
45014
45053
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
package/dist/mcp/index.js
CHANGED
|
@@ -29087,6 +29087,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
29087
29087
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
29088
29088
|
]);
|
|
29089
29089
|
|
|
29090
|
+
// ../core/dist/browserbase/page-fetch.js
|
|
29091
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
29092
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
29093
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
29094
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
29095
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
29096
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
29097
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
29098
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
29099
|
+
"bad_path",
|
|
29100
|
+
"off_origin",
|
|
29101
|
+
"header_not_allowed",
|
|
29102
|
+
"off_origin_redirect",
|
|
29103
|
+
"redirect_refused",
|
|
29104
|
+
"timeout",
|
|
29105
|
+
"batch_timeout",
|
|
29106
|
+
"network_error",
|
|
29107
|
+
"malformed_result"
|
|
29108
|
+
]);
|
|
29109
|
+
|
|
29090
29110
|
// ../core/dist/browserbase/page-actions.js
|
|
29091
29111
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
29092
29112
|
"Target.getTargets",
|
|
@@ -29111,7 +29131,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
29111
29131
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
29112
29132
|
// script; the drag data stays server-side and is never returned.
|
|
29113
29133
|
"Input.setInterceptDrags",
|
|
29114
|
-
"Input.dispatchDragEvent"
|
|
29134
|
+
"Input.dispatchDragEvent",
|
|
29135
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
29136
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
29137
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
29138
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
29139
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
29140
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
29141
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
29142
|
+
"DOM.resolveNode",
|
|
29143
|
+
"Runtime.callFunctionOn",
|
|
29144
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
29145
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
29146
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
29147
|
+
// turns on the page session's network events; `withPage` counts
|
|
29148
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
29149
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
29150
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
29151
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
29152
|
+
// parameter (no buffer or post-data options).
|
|
29153
|
+
"Network.enable"
|
|
29115
29154
|
]);
|
|
29116
29155
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
29117
29156
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -30607,7 +30646,7 @@ var FLAG_REGISTRY = [
|
|
|
30607
30646
|
},
|
|
30608
30647
|
{
|
|
30609
30648
|
key: "at-rest-scheme-k-writes",
|
|
30610
|
-
description:
|
|
30649
|
+
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. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. 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) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (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); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for 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 \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way 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.',
|
|
30611
30650
|
flagType: "boolean",
|
|
30612
30651
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
30613
30652
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
package/dist/mcp/origami.js
CHANGED
|
@@ -43148,6 +43148,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
43148
43148
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
43149
43149
|
]);
|
|
43150
43150
|
|
|
43151
|
+
// ../core/dist/browserbase/page-fetch.js
|
|
43152
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
43153
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
43154
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
43155
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
43156
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
43157
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
43158
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
43159
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
43160
|
+
"bad_path",
|
|
43161
|
+
"off_origin",
|
|
43162
|
+
"header_not_allowed",
|
|
43163
|
+
"off_origin_redirect",
|
|
43164
|
+
"redirect_refused",
|
|
43165
|
+
"timeout",
|
|
43166
|
+
"batch_timeout",
|
|
43167
|
+
"network_error",
|
|
43168
|
+
"malformed_result"
|
|
43169
|
+
]);
|
|
43170
|
+
|
|
43151
43171
|
// ../core/dist/browserbase/page-actions.js
|
|
43152
43172
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
43153
43173
|
"Target.getTargets",
|
|
@@ -43172,7 +43192,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
43172
43192
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
43173
43193
|
// script; the drag data stays server-side and is never returned.
|
|
43174
43194
|
"Input.setInterceptDrags",
|
|
43175
|
-
"Input.dispatchDragEvent"
|
|
43195
|
+
"Input.dispatchDragEvent",
|
|
43196
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
43197
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
43198
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
43199
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
43200
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
43201
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
43202
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
43203
|
+
"DOM.resolveNode",
|
|
43204
|
+
"Runtime.callFunctionOn",
|
|
43205
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
43206
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
43207
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
43208
|
+
// turns on the page session's network events; `withPage` counts
|
|
43209
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
43210
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
43211
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
43212
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
43213
|
+
// parameter (no buffer or post-data options).
|
|
43214
|
+
"Network.enable"
|
|
43176
43215
|
]);
|
|
43177
43216
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
43178
43217
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -44409,7 +44448,7 @@ var FLAG_REGISTRY = [
|
|
|
44409
44448
|
},
|
|
44410
44449
|
{
|
|
44411
44450
|
key: "at-rest-scheme-k-writes",
|
|
44412
|
-
description:
|
|
44451
|
+
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. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. 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) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (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); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for 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 \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way 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.',
|
|
44413
44452
|
flagType: "boolean",
|
|
44414
44453
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
44415
44454
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -37590,6 +37590,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
37590
37590
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
37591
37591
|
]);
|
|
37592
37592
|
|
|
37593
|
+
// ../core/dist/browserbase/page-fetch.js
|
|
37594
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
37595
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
37596
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
37597
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
37598
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
37599
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
37600
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
37601
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
37602
|
+
"bad_path",
|
|
37603
|
+
"off_origin",
|
|
37604
|
+
"header_not_allowed",
|
|
37605
|
+
"off_origin_redirect",
|
|
37606
|
+
"redirect_refused",
|
|
37607
|
+
"timeout",
|
|
37608
|
+
"batch_timeout",
|
|
37609
|
+
"network_error",
|
|
37610
|
+
"malformed_result"
|
|
37611
|
+
]);
|
|
37612
|
+
|
|
37593
37613
|
// ../core/dist/browserbase/page-actions.js
|
|
37594
37614
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
37595
37615
|
"Target.getTargets",
|
|
@@ -37614,7 +37634,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
37614
37634
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
37615
37635
|
// script; the drag data stays server-side and is never returned.
|
|
37616
37636
|
"Input.setInterceptDrags",
|
|
37617
|
-
"Input.dispatchDragEvent"
|
|
37637
|
+
"Input.dispatchDragEvent",
|
|
37638
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
37639
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
37640
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
37641
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
37642
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
37643
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
37644
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
37645
|
+
"DOM.resolveNode",
|
|
37646
|
+
"Runtime.callFunctionOn",
|
|
37647
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
37648
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
37649
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
37650
|
+
// turns on the page session's network events; `withPage` counts
|
|
37651
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
37652
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
37653
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
37654
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
37655
|
+
// parameter (no buffer or post-data options).
|
|
37656
|
+
"Network.enable"
|
|
37618
37657
|
]);
|
|
37619
37658
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
37620
37659
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -39264,7 +39303,7 @@ var FLAG_REGISTRY = [
|
|
|
39264
39303
|
},
|
|
39265
39304
|
{
|
|
39266
39305
|
key: "at-rest-scheme-k-writes",
|
|
39267
|
-
description:
|
|
39306
|
+
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. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. 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) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (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); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for 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 \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way 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.',
|
|
39268
39307
|
flagType: "boolean",
|
|
39269
39308
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
39270
39309
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -38056,6 +38056,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
38056
38056
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
38057
38057
|
]);
|
|
38058
38058
|
|
|
38059
|
+
// ../core/dist/browserbase/page-fetch.js
|
|
38060
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
38061
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
38062
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
38063
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
38064
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
38065
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
38066
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
38067
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
38068
|
+
"bad_path",
|
|
38069
|
+
"off_origin",
|
|
38070
|
+
"header_not_allowed",
|
|
38071
|
+
"off_origin_redirect",
|
|
38072
|
+
"redirect_refused",
|
|
38073
|
+
"timeout",
|
|
38074
|
+
"batch_timeout",
|
|
38075
|
+
"network_error",
|
|
38076
|
+
"malformed_result"
|
|
38077
|
+
]);
|
|
38078
|
+
|
|
38059
38079
|
// ../core/dist/browserbase/page-actions.js
|
|
38060
38080
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
38061
38081
|
"Target.getTargets",
|
|
@@ -38080,7 +38100,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
38080
38100
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
38081
38101
|
// script; the drag data stays server-side and is never returned.
|
|
38082
38102
|
"Input.setInterceptDrags",
|
|
38083
|
-
"Input.dispatchDragEvent"
|
|
38103
|
+
"Input.dispatchDragEvent",
|
|
38104
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
38105
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
38106
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
38107
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
38108
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
38109
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
38110
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
38111
|
+
"DOM.resolveNode",
|
|
38112
|
+
"Runtime.callFunctionOn",
|
|
38113
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
38114
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
38115
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
38116
|
+
// turns on the page session's network events; `withPage` counts
|
|
38117
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
38118
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
38119
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
38120
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
38121
|
+
// parameter (no buffer or post-data options).
|
|
38122
|
+
"Network.enable"
|
|
38084
38123
|
]);
|
|
38085
38124
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
38086
38125
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -39730,7 +39769,7 @@ var FLAG_REGISTRY = [
|
|
|
39730
39769
|
},
|
|
39731
39770
|
{
|
|
39732
39771
|
key: "at-rest-scheme-k-writes",
|
|
39733
|
-
description:
|
|
39772
|
+
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. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. 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) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (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); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for 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 \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way 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.',
|
|
39734
39773
|
flagType: "boolean",
|
|
39735
39774
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
39736
39775
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -83,12 +83,12 @@ import {
|
|
|
83
83
|
writeDirectChatSessionState,
|
|
84
84
|
writeEgressAllowlist,
|
|
85
85
|
writePersistentClaudeWrapper
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
86
|
+
} from "./chunk-XNHTH267.js";
|
|
87
|
+
import "./chunk-FQMFWJUD.js";
|
|
88
88
|
import "./chunk-XL2HPM67.js";
|
|
89
89
|
import "./chunk-6HBXEJHO.js";
|
|
90
90
|
import "./chunk-XWVM4KPK.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-O5D6I72R.js";
|
|
92
92
|
import "./chunk-AIUIMEUS.js";
|
|
93
93
|
import "./chunk-DGUM43GV.js";
|
|
94
94
|
export {
|
|
@@ -177,4 +177,4 @@ export {
|
|
|
177
177
|
writeEgressAllowlist,
|
|
178
178
|
writePersistentClaudeWrapper
|
|
179
179
|
};
|
|
180
|
-
//# sourceMappingURL=persistent-session-
|
|
180
|
+
//# sourceMappingURL=persistent-session-LMR3WHVO.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XNHTH267.js";
|
|
4
|
+
import "./chunk-FQMFWJUD.js";
|
|
5
5
|
import "./chunk-XL2HPM67.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-O5D6I72R.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-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-FWPQTPQ5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FQMFWJUD.js";
|
|
4
|
+
import "./chunk-O5D6I72R.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-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-5PNG5ILK.js.map
|