@integrity-labs/agt-cli 0.28.1246 → 0.28.1248
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/bin/agt.js +6 -6
- package/dist/{chunk-OSXVD3YF.js → chunk-73NMB6QK.js} +16 -1
- package/dist/chunk-73NMB6QK.js.map +1 -0
- package/dist/{chunk-22GBHBJZ.js → chunk-EKFRF2GR.js} +2 -2
- package/dist/{chunk-V47ZQJ3Y.js → chunk-OYLLSEI5.js} +2 -2
- package/dist/{chunk-EGMQVUAO.js → chunk-RSFDRIIC.js} +3 -3
- package/dist/{chunk-ZHLBICZL.js → chunk-VGL726BP.js} +5 -5
- package/dist/{claude-code-updater-6QVV5JHB.js → claude-code-updater-G4Y3CMTI.js} +3 -3
- package/dist/{claude-pair-runtime-IOUQF6RF.js → claude-pair-runtime-ZGYYBH3G.js} +3 -3
- package/dist/lib/manager-worker.js +289 -118
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +15 -0
- package/dist/mcp/index.js +15 -0
- package/dist/mcp/origami.js +15 -0
- package/dist/mcp/slack-channel.js +15 -0
- package/dist/mcp/telegram-channel.js +15 -0
- package/dist/{persistent-session-4HI235XH.js → persistent-session-R2RY5NJ3.js} +4 -4
- package/dist/{responsiveness-probe-AD6WIPDA.js → responsiveness-probe-MU5WMZSZ.js} +4 -4
- package/dist/{session-auth-dead-6FSKTBLA.js → session-auth-dead-B6JRV3QH.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-OSXVD3YF.js.map +0 -1
- /package/dist/{chunk-22GBHBJZ.js.map → chunk-EKFRF2GR.js.map} +0 -0
- /package/dist/{chunk-V47ZQJ3Y.js.map → chunk-OYLLSEI5.js.map} +0 -0
- /package/dist/{chunk-EGMQVUAO.js.map → chunk-RSFDRIIC.js.map} +0 -0
- /package/dist/{chunk-ZHLBICZL.js.map → chunk-VGL726BP.js.map} +0 -0
- /package/dist/{claude-code-updater-6QVV5JHB.js.map → claude-code-updater-G4Y3CMTI.js.map} +0 -0
- /package/dist/{claude-pair-runtime-IOUQF6RF.js.map → claude-pair-runtime-ZGYYBH3G.js.map} +0 -0
- /package/dist/{persistent-session-4HI235XH.js.map → persistent-session-R2RY5NJ3.js.map} +0 -0
- /package/dist/{responsiveness-probe-AD6WIPDA.js.map → responsiveness-probe-MU5WMZSZ.js.map} +0 -0
- /package/dist/{session-auth-dead-6FSKTBLA.js.map → session-auth-dead-B6JRV3QH.js.map} +0 -0
|
@@ -39509,6 +39509,12 @@ function sniffImageType(bytes) {
|
|
|
39509
39509
|
}
|
|
39510
39510
|
return null;
|
|
39511
39511
|
}
|
|
39512
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
39513
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
39514
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
39515
|
+
opens: new RegExp(`${src}$`),
|
|
39516
|
+
closes: new RegExp(src)
|
|
39517
|
+
}));
|
|
39512
39518
|
|
|
39513
39519
|
// ../core/dist/integrations/augmented-live/publisher.js
|
|
39514
39520
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
@@ -47107,6 +47113,15 @@ var FLAG_REGISTRY = [
|
|
|
47107
47113
|
// §4 reserves for deliberate, audited flips.
|
|
47108
47114
|
sensitive: true
|
|
47109
47115
|
},
|
|
47116
|
+
{
|
|
47117
|
+
key: "org-two-factor-enforcement",
|
|
47118
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
47119
|
+
flagType: "boolean",
|
|
47120
|
+
defaultValue: false,
|
|
47121
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
47122
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
47123
|
+
sensitive: true
|
|
47124
|
+
},
|
|
47110
47125
|
{
|
|
47111
47126
|
key: "first-party-token-refusal",
|
|
47112
47127
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
package/dist/mcp/index.js
CHANGED
|
@@ -25605,6 +25605,12 @@ var ASSET_TYPES = {
|
|
|
25605
25605
|
// module header does not apply. Embedded as <audio src=...> in the page HTML.
|
|
25606
25606
|
"audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
|
|
25607
25607
|
};
|
|
25608
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
25609
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
25610
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
25611
|
+
opens: new RegExp(`${src}$`),
|
|
25612
|
+
closes: new RegExp(src)
|
|
25613
|
+
}));
|
|
25608
25614
|
|
|
25609
25615
|
// ../core/dist/integrations/augmented-live/publisher.js
|
|
25610
25616
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
@@ -32789,6 +32795,15 @@ var FLAG_REGISTRY = [
|
|
|
32789
32795
|
// §4 reserves for deliberate, audited flips.
|
|
32790
32796
|
sensitive: true
|
|
32791
32797
|
},
|
|
32798
|
+
{
|
|
32799
|
+
key: "org-two-factor-enforcement",
|
|
32800
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
32801
|
+
flagType: "boolean",
|
|
32802
|
+
defaultValue: false,
|
|
32803
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
32804
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
32805
|
+
sensitive: true
|
|
32806
|
+
},
|
|
32792
32807
|
{
|
|
32793
32808
|
key: "first-party-token-refusal",
|
|
32794
32809
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
package/dist/mcp/origami.js
CHANGED
|
@@ -39666,6 +39666,12 @@ var ASSET_TYPES = {
|
|
|
39666
39666
|
// module header does not apply. Embedded as <audio src=...> in the page HTML.
|
|
39667
39667
|
"audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
|
|
39668
39668
|
};
|
|
39669
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
39670
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
39671
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
39672
|
+
opens: new RegExp(`${src}$`),
|
|
39673
|
+
closes: new RegExp(src)
|
|
39674
|
+
}));
|
|
39669
39675
|
|
|
39670
39676
|
// ../core/dist/integrations/augmented-live/publisher.js
|
|
39671
39677
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
@@ -46591,6 +46597,15 @@ var FLAG_REGISTRY = [
|
|
|
46591
46597
|
// §4 reserves for deliberate, audited flips.
|
|
46592
46598
|
sensitive: true
|
|
46593
46599
|
},
|
|
46600
|
+
{
|
|
46601
|
+
key: "org-two-factor-enforcement",
|
|
46602
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
46603
|
+
flagType: "boolean",
|
|
46604
|
+
defaultValue: false,
|
|
46605
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
46606
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
46607
|
+
sensitive: true
|
|
46608
|
+
},
|
|
46594
46609
|
{
|
|
46595
46610
|
key: "first-party-token-refusal",
|
|
46596
46611
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -34099,6 +34099,12 @@ var ASSET_TYPES = {
|
|
|
34099
34099
|
// module header does not apply. Embedded as <audio src=...> in the page HTML.
|
|
34100
34100
|
"audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
|
|
34101
34101
|
};
|
|
34102
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
34103
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
34104
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
34105
|
+
opens: new RegExp(`${src}$`),
|
|
34106
|
+
closes: new RegExp(src)
|
|
34107
|
+
}));
|
|
34102
34108
|
|
|
34103
34109
|
// ../core/dist/integrations/augmented-live/publisher.js
|
|
34104
34110
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
@@ -41446,6 +41452,15 @@ var FLAG_REGISTRY = [
|
|
|
41446
41452
|
// §4 reserves for deliberate, audited flips.
|
|
41447
41453
|
sensitive: true
|
|
41448
41454
|
},
|
|
41455
|
+
{
|
|
41456
|
+
key: "org-two-factor-enforcement",
|
|
41457
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
41458
|
+
flagType: "boolean",
|
|
41459
|
+
defaultValue: false,
|
|
41460
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
41461
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
41462
|
+
sensitive: true
|
|
41463
|
+
},
|
|
41449
41464
|
{
|
|
41450
41465
|
key: "first-party-token-refusal",
|
|
41451
41466
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -34296,6 +34296,12 @@ var ASSET_TYPES = {
|
|
|
34296
34296
|
// module header does not apply. Embedded as <audio src=...> in the page HTML.
|
|
34297
34297
|
"audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
|
|
34298
34298
|
};
|
|
34299
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
34300
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
34301
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
34302
|
+
opens: new RegExp(`${src}$`),
|
|
34303
|
+
closes: new RegExp(src)
|
|
34304
|
+
}));
|
|
34299
34305
|
|
|
34300
34306
|
// ../core/dist/integrations/augmented-live/publisher.js
|
|
34301
34307
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
@@ -41637,6 +41643,15 @@ var FLAG_REGISTRY = [
|
|
|
41637
41643
|
// §4 reserves for deliberate, audited flips.
|
|
41638
41644
|
sensitive: true
|
|
41639
41645
|
},
|
|
41646
|
+
{
|
|
41647
|
+
key: "org-two-factor-enforcement",
|
|
41648
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
41649
|
+
flagType: "boolean",
|
|
41650
|
+
defaultValue: false,
|
|
41651
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
41652
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
41653
|
+
sensitive: true
|
|
41654
|
+
},
|
|
41640
41655
|
{
|
|
41641
41656
|
key: "first-party-token-refusal",
|
|
41642
41657
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
writeDirectChatSessionState,
|
|
69
69
|
writeEgressAllowlist,
|
|
70
70
|
writePersistentClaudeWrapper
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-RSFDRIIC.js";
|
|
72
|
+
import "./chunk-OYLLSEI5.js";
|
|
73
73
|
import "./chunk-HYQ7VOC3.js";
|
|
74
74
|
import "./chunk-6HBXEJHO.js";
|
|
75
75
|
import "./chunk-XWVM4KPK.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-73NMB6QK.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-
|
|
150
|
+
//# sourceMappingURL=persistent-session-R2RY5NJ3.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RSFDRIIC.js";
|
|
4
|
+
import "./chunk-OYLLSEI5.js";
|
|
5
5
|
import "./chunk-HYQ7VOC3.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-73NMB6QK.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-MU5WMZSZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OYLLSEI5.js";
|
|
4
|
+
import "./chunk-73NMB6QK.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-B6JRV3QH.js.map
|