@devfellowship/access 0.2.1 → 0.3.1

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/db-surface.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "version": 1,
3
3
  "source": "prod catalog (pg_class, pg_proc) by scripts/db-surface.sql, read-only; edge functions, migration_head and schemas from dfl-schema main",
4
- "migration_head": "20261118201734",
4
+ "migration_head": "20261130120000",
5
5
  "schemas": [
6
- "academy",
7
6
  "apps",
8
7
  "campaigns",
9
8
  "dbms",
@@ -11,16 +10,16 @@
11
10
  "engineering",
12
11
  "event_management",
13
12
  "financial",
13
+ "graph",
14
14
  "iam",
15
- "key_management",
16
15
  "lesson_studio",
17
16
  "lms",
18
17
  "notifications",
19
18
  "payments",
20
19
  "proposals",
21
20
  "public",
21
+ "quiz",
22
22
  "review_request",
23
- "skill_evals",
24
23
  "social_proof",
25
24
  "strategy",
26
25
  "wiki",
@@ -28,12 +27,6 @@
28
27
  "workflow_management"
29
28
  ],
30
29
  "tables": [
31
- "academy.lessons",
32
- "academy.modules",
33
- "academy.track_item_lesson",
34
- "academy.track_item_user",
35
- "academy.track_items",
36
- "academy.tracks",
37
30
  "apps.activity_logs",
38
31
  "apps.app_builders",
39
32
  "apps.app_concepts",
@@ -98,21 +91,19 @@
98
91
  "campaigns.short_links",
99
92
  "campaigns.social_accounts",
100
93
  "campaigns.zernio_analytics_sync_state",
101
- "dbms.dangerous_pattern_rules",
102
- "dbms.edge_function_deployments",
103
- "dbms.edge_function_invocation_stats",
104
- "dbms.edge_functions",
105
94
  "dbms.managed_schemas",
106
95
  "dbms.project_permissions",
107
96
  "dbms.projects",
108
- "dbms.query_audit_log",
109
97
  "dbms.schema_permissions",
110
98
  "documents.document",
111
99
  "documents.document_log",
112
100
  "documents.signer",
113
101
  "documents.template",
114
102
  "documents.template_variable",
103
+ "engineering.github_refresh_tokens",
115
104
  "engineering.merge_challenges",
105
+ "engineering.page_design_revs",
106
+ "engineering.page_designs",
116
107
  "engineering.schema_catalog_snapshots",
117
108
  "engineering.ux_map_annotations",
118
109
  "engineering.ux_map_apps",
@@ -127,7 +118,6 @@
127
118
  "event_management.event_sessions",
128
119
  "event_management.event_tasks",
129
120
  "event_management.events",
130
- "financial._backup_cc_removal",
131
121
  "financial.account_holder_preferences",
132
122
  "financial.account_holder_users",
133
123
  "financial.account_holders",
@@ -169,6 +159,9 @@
169
159
  "financial.transaction_journal_entries",
170
160
  "financial.wallet_types",
171
161
  "financial.wallets",
162
+ "graph.graphs",
163
+ "graph.items",
164
+ "graph.pending_writes",
172
165
  "iam.mcp_oauth_grants",
173
166
  "iam.permissions",
174
167
  "iam.resource_grants",
@@ -178,12 +171,6 @@
178
171
  "iam.user_app_roles",
179
172
  "iam.user_roles",
180
173
  "iam.user_tiers",
181
- "key_management.events",
182
- "key_management.group_members",
183
- "key_management.groups",
184
- "key_management.items",
185
- "key_management.vault_permissions",
186
- "key_management.vaults",
187
174
  "lesson_studio.activity_log",
188
175
  "lesson_studio.compositions",
189
176
  "lesson_studio.exports",
@@ -287,8 +274,6 @@
287
274
  "public.feature_ideas",
288
275
  "public.feature_votes",
289
276
  "public.github_links",
290
- "public.kudos",
291
- "public.kudos_dimensions",
292
277
  "public.llm_pricing",
293
278
  "public.mcp_tool_calls",
294
279
  "public.media",
@@ -307,21 +292,16 @@
307
292
  "public.tools",
308
293
  "public.transactions",
309
294
  "public.world_objects",
310
- "review_request.assessment_answers",
311
- "review_request.assessment_item_bindings",
312
- "review_request.assessment_items",
313
- "review_request.comments",
295
+ "quiz.answers",
296
+ "quiz.interview_dispatch",
297
+ "quiz.options",
298
+ "quiz.questions",
299
+ "quiz.quizzes",
300
+ "quiz.responses",
314
301
  "review_request.github_webhook_events",
315
- "review_request.request_types",
316
302
  "review_request.review_activity_logs",
317
303
  "review_request.review_request_task_links",
318
304
  "review_request.review_requests",
319
- "skill_evals.attempts",
320
- "skill_evals.challenge_claim_links",
321
- "skill_evals.challenge_examples",
322
- "skill_evals.challenge_test_cases",
323
- "skill_evals.challenges",
324
- "skill_evals.logs",
325
305
  "social_proof.testimonials",
326
306
  "social_proof.use_cases",
327
307
  "strategy.artifact_sources",
@@ -344,6 +324,8 @@
344
324
  "strategy.channels",
345
325
  "strategy.channels_history",
346
326
  "strategy.competitor_ads",
327
+ "strategy.competitor_changes",
328
+ "strategy.competitor_keywords",
347
329
  "strategy.competitor_ratings",
348
330
  "strategy.competitors",
349
331
  "strategy.competitors_history",
@@ -356,10 +338,12 @@
356
338
  "strategy.customer_segment_templates",
357
339
  "strategy.customer_segments",
358
340
  "strategy.customer_segments_history",
341
+ "strategy.decisions",
359
342
  "strategy.deck_exports",
360
343
  "strategy.empathy_maps",
361
344
  "strategy.empathy_maps_history",
362
345
  "strategy.entities",
346
+ "strategy.entity_channels",
363
347
  "strategy.entity_events",
364
348
  "strategy.entity_pricing_plans",
365
349
  "strategy.expense_categories",
@@ -370,11 +354,13 @@
370
354
  "strategy.industries",
371
355
  "strategy.insight_curated_links",
372
356
  "strategy.insight_evidence",
357
+ "strategy.intel_runs",
373
358
  "strategy.key_activities",
374
359
  "strategy.key_activities_history",
375
360
  "strategy.key_activity_resources",
376
361
  "strategy.key_partners",
377
362
  "strategy.key_partners_history",
363
+ "strategy.keyword_exploration",
378
364
  "strategy.keyword_metrics",
379
365
  "strategy.keyword_relations",
380
366
  "strategy.keyword_slug_aliases",
@@ -385,6 +371,10 @@
385
371
  "strategy.kpi_templates_industries",
386
372
  "strategy.kpis",
387
373
  "strategy.kpis_history",
374
+ "strategy.markets",
375
+ "strategy.metric_observations",
376
+ "strategy.moats",
377
+ "strategy.moats_history",
388
378
  "strategy.personas",
389
379
  "strategy.personas_history",
390
380
  "strategy.resource_categories",
@@ -466,6 +456,8 @@
466
456
  "workflow_management.delegated_grants",
467
457
  "workflow_management.outbox_events",
468
458
  "workflow_management.policy_registry",
459
+ "workflow_management.process_links",
460
+ "workflow_management.process_nodes",
469
461
  "workflow_management.proxy_idempotency_cache",
470
462
  "workflow_management.proxy_secret_bindings",
471
463
  "workflow_management.timer_schedules",
@@ -534,7 +526,6 @@
534
526
  "work.business_units",
535
527
  "work.concepts",
536
528
  "work.deliveries_with_metrics",
537
- "work.entity_change_log",
538
529
  "work.expertise_areas",
539
530
  "work.member_activity_status",
540
531
  "work.member_completion_status",
@@ -555,12 +546,10 @@
555
546
  "campaigns.rank_account_post_metrics": "read",
556
547
  "campaigns.renew_zernio_analytics_sync": "write",
557
548
  "campaigns.upsert_zernio_metric_snapshots": "write",
558
- "dbms.create_project": "write",
559
549
  "dbms.get_table_columns": "write",
560
550
  "dbms.get_table_definition": "write",
561
551
  "dbms.has_permission": "read",
562
552
  "dbms.has_project_access": "read",
563
- "dbms.has_project_permission": "read",
564
553
  "dbms.is_project_admin": "read",
565
554
  "dbms.list_schema_tables": "write",
566
555
  "documents.can_read_document": "read",
@@ -613,6 +602,7 @@
613
602
  "iam.default_tenant_id": "read",
614
603
  "iam.delegation_respects_agent_creator": "read",
615
604
  "iam.delegator_user_ids": "read",
605
+ "iam.end_revoked_grant_sessions": "write",
616
606
  "iam.get_app_level": "read",
617
607
  "iam.get_global_level": "read",
618
608
  "iam.get_limit": "read",
@@ -631,15 +621,7 @@
631
621
  "iam.is_my_created_agent": "read",
632
622
  "iam.is_owner": "read",
633
623
  "iam.is_superadmin": "read",
634
- "key_management.check_vault_permission": "write",
635
- "key_management.create_encrypted_item": "write",
636
- "key_management.decrypt_content": "write",
637
- "key_management.encrypt_content": "write",
638
- "key_management.get_encrypted_item_by_id": "write",
639
- "key_management.get_encrypted_items": "write",
640
- "key_management.get_encryption_key": "write",
641
- "key_management.is_vault_owner": "read",
642
- "key_management.update_encrypted_item": "write",
624
+ "iam.mcp_oauth_grant_end_sessions": "write",
643
625
  "lesson_studio.composition_project_id": "read",
644
626
  "lesson_studio.project_owner_id": "read",
645
627
  "lesson_studio.slide_project_id": "read",
@@ -681,7 +663,6 @@
681
663
  "public.get_actor_for_member": "read",
682
664
  "public.get_cash_flow_items": "write",
683
665
  "public.get_current_actor": "read",
684
- "public.get_member_kudos_budget": "write",
685
666
  "public.get_my_iam_role": "read",
686
667
  "public.get_next_version_number": "write",
687
668
  "public.get_user_id_by_email": "read",
@@ -697,8 +678,6 @@
697
678
  "public.restore_persona_version": "write",
698
679
  "public.restore_writing_pattern_version": "write",
699
680
  "public.user_has_course_access": "read",
700
- "review_request.approve_review_request": "write",
701
- "review_request.reject_review_request": "write",
702
681
  "strategy.brand_record_snapshot": "read",
703
682
  "strategy.create_canvas_snapshot": "write",
704
683
  "strategy.immutable_unaccent": "read",
@@ -716,6 +695,7 @@
716
695
  "work.handoff_diagram_comments": "write",
717
696
  "work.handoff_spec_run_comments": "write",
718
697
  "work.is_loop_agent": "read",
698
+ "work.readable_thread_ids": "read",
719
699
  "work.resolve_speaker_to_member": "read",
720
700
  "work.save_spec_run_items": "write",
721
701
  "work.set_spec_run_pricing": "write",
@@ -726,13 +706,13 @@
726
706
  "work.upsert_spec_run_package": "write"
727
707
  },
728
708
  "trigger_functions": [
729
- "academy.set_updated_at",
730
709
  "apps.update_environment_variables_timestamp",
731
710
  "apps.update_updated_at_column",
732
711
  "campaigns.posts_approval_is_self",
733
712
  "campaigns.social_accounts_stamp",
734
713
  "campaigns.trg_fn_seo_pages_history",
735
714
  "documents.update_updated_at_column",
715
+ "engineering.page_designs_guard",
736
716
  "engineering.ux_map_annotations_check_context",
737
717
  "engineering.ux_map_annotations_freeze_anchor",
738
718
  "event_management.guard_events_created_by",
@@ -760,7 +740,8 @@
760
740
  "financial.update_updated_at",
761
741
  "financial.wallets_enforce_leaf_account",
762
742
  "financial.wallets_track_binding_change",
763
- "key_management.update_updated_at_column",
743
+ "iam.mcp_oauth_grants_client_token_guard",
744
+ "iam.mcp_oauth_grants_end_sessions_on_revoke",
764
745
  "lesson_studio.guard_project_owner_change",
765
746
  "lesson_studio.update_updated_at_column",
766
747
  "lms.set_tutor_profiles_updated_at",
@@ -792,6 +773,7 @@
792
773
  "public.update_phase_timestamp",
793
774
  "public.update_updated_at_column",
794
775
  "public.update_version_before_insert",
776
+ "quiz.touch_interview_dispatch_updated_at",
795
777
  "review_request.set_answer_audit",
796
778
  "review_request.set_created_by",
797
779
  "review_request.set_updated_at",
@@ -814,6 +796,7 @@
814
796
  "strategy.trg_fn_key_activities_history",
815
797
  "strategy.trg_fn_key_partners_history",
816
798
  "strategy.trg_fn_kpis_history",
799
+ "strategy.trg_fn_moats_history",
817
800
  "strategy.trg_fn_personas_history",
818
801
  "strategy.trg_fn_resources_history",
819
802
  "strategy.trg_fn_revenue_streams_history",
@@ -861,7 +844,6 @@
861
844
  "dfl-apps-trigger-deploy",
862
845
  "dfl-cost-events-insert",
863
846
  "dfl-crm-proxy",
864
- "dfl-dbms-execute-sql",
865
847
  "dfl-documents-autentique-send",
866
848
  "dfl-documents-autentique-webhook",
867
849
  "dfl-financial-post-journal-entry",
@@ -895,7 +877,6 @@
895
877
  "dfl-revenue-roll-recurring",
896
878
  "dfl-revenue-spedy-webhook",
897
879
  "dfl-revenue-woovi-webhook",
898
- "dfl-seo-fetch-metrics",
899
880
  "dfl-telemetry-send",
900
881
  "end-impersonate",
901
882
  "env-vars",
@@ -907,7 +888,6 @@
907
888
  "impersonate",
908
889
  "media-redirect",
909
890
  "publish-template",
910
- "reset-kudos-budget",
911
891
  "save-epic-postmortem",
912
892
  "search-profile-email",
913
893
  "start-email-verification",
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { can, linesOf, MAX_OWNER_DEPTH, matchingLines } from "./can.js";
4
4
  export { isValidCapability, isValidCapabilityPattern, matchesCapability, } from "./capability.js";
5
5
  export { isLineActive, matchesScope } from "./line.js";
6
6
  export type { ActorRow, ActorType, OwnerResolution, PrincipalReads, ResolvedPrincipal, } from "./principal.js";
7
- export { resolvePrincipal } from "./principal.js";
7
+ export { AGENT_ROLE_CAPABILITY_PREFIX, agentRoleOf, resolvePrincipal, } from "./principal.js";
8
8
  export type { InputSource, RuleDecision, RuleReason, RuleRef, RuleRequest, VerifiedContext, WriteDecision, } from "./rule.js";
9
9
  export { buildRuleInput, decideWrite, evaluateRule } from "./rule.js";
10
10
  export type { VendoredRule } from "./rules.generated.js";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { bindingApplies, RULE_BINDINGS, ruleBindingOf, ruleRefOf, SMOKE_LAB_WORK
2
2
  export { can, linesOf, MAX_OWNER_DEPTH, matchingLines } from "./can.js";
3
3
  export { isValidCapability, isValidCapabilityPattern, matchesCapability, } from "./capability.js";
4
4
  export { isLineActive, matchesScope } from "./line.js";
5
- export { resolvePrincipal } from "./principal.js";
5
+ export { AGENT_ROLE_CAPABILITY_PREFIX, agentRoleOf, resolvePrincipal, } from "./principal.js";
6
6
  export { buildRuleInput, decideWrite, evaluateRule } from "./rule.js";
7
7
  export { RULES_COMMIT, VENDORED_RULES } from "./rules.generated.js";
8
8
  export { DmnError, evaluateDefinition } from "./runtime.js";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * resolvePrincipal(): the `Principal` of `can()` from the rows a caller can read.
3
3
  *
4
- * Moved from dfl-os-commands (S2-T4) into the package (plan
4
+ * Moved from dfl-domain-api (S2-T4) into the package (plan
5
5
  * 20261116-fleet-access-s3-gateway-decision, ADR-1), so the gateway and the
6
6
  * service build the principal with one copy of the rules: the actor, its role
7
7
  * bundles, and for an agent its owner (the delegator of its one ACTIVE
@@ -13,6 +13,16 @@
13
13
  * gateway, an in-memory snapshot in the tests).
14
14
  */
15
15
  import type { PermissionLine, Principal } from "./types.js";
16
+ /**
17
+ * The capability family that gives an AGENT a role (S2-T5, Q 18e7e16f = A, "M2"; S9 ADR-5).
18
+ * An in-force allow line `agents.role.<role_id>` with scope `all` on an agent actor makes
19
+ * `<role_id>` one of the agent's role ids, so the role lines (`principal_role_id = <role_id>`)
20
+ * apply to it. It writes nothing to `iam.user_roles`: that table keeps one human role per user.
21
+ * A person or a service never gets a role this way.
22
+ */
23
+ export declare const AGENT_ROLE_CAPABILITY_PREFIX = "agents.role.";
24
+ /** The role id of an agent-role line, or null when the line is not one. */
25
+ export declare function agentRoleOf(line: PermissionLine): string | null;
16
26
  /** `public.actors.type`. */
17
27
  export type ActorType = "human" | "agent" | "service";
18
28
  /** One row of `public.actors`. */
@@ -46,4 +56,4 @@ export interface ResolvedPrincipal<L extends PermissionLine = PermissionLine> {
46
56
  lines: L[];
47
57
  }
48
58
  /** Null when the actor is not visible to the caller. */
49
- export declare function resolvePrincipal<L extends PermissionLine>(reads: PrincipalReads<L>, actorId: string): Promise<ResolvedPrincipal<L> | null>;
59
+ export declare function resolvePrincipal<L extends PermissionLine>(reads: PrincipalReads<L>, actorId: string, now?: Date): Promise<ResolvedPrincipal<L> | null>;
package/dist/principal.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * resolvePrincipal(): the `Principal` of `can()` from the rows a caller can read.
3
3
  *
4
- * Moved from dfl-os-commands (S2-T4) into the package (plan
4
+ * Moved from dfl-domain-api (S2-T4) into the package (plan
5
5
  * 20261116-fleet-access-s3-gateway-decision, ADR-1), so the gateway and the
6
6
  * service build the principal with one copy of the rules: the actor, its role
7
7
  * bundles, and for an agent its owner (the delegator of its one ACTIVE
@@ -13,14 +13,39 @@
13
13
  * gateway, an in-memory snapshot in the tests).
14
14
  */
15
15
  import { MAX_OWNER_DEPTH } from "./can.js";
16
+ import { matchesCapability } from "./capability.js";
17
+ import { isLineActive } from "./line.js";
18
+ /**
19
+ * The capability family that gives an AGENT a role (S2-T5, Q 18e7e16f = A, "M2"; S9 ADR-5).
20
+ * An in-force allow line `agents.role.<role_id>` with scope `all` on an agent actor makes
21
+ * `<role_id>` one of the agent's role ids, so the role lines (`principal_role_id = <role_id>`)
22
+ * apply to it. It writes nothing to `iam.user_roles`: that table keeps one human role per user.
23
+ * A person or a service never gets a role this way.
24
+ */
25
+ export const AGENT_ROLE_CAPABILITY_PREFIX = "agents.role.";
26
+ /** The role id of an agent-role line, or null when the line is not one. */
27
+ export function agentRoleOf(line) {
28
+ if (line.effect !== "allow" || line.scope_kind !== "all")
29
+ return null;
30
+ if (!line.capability.startsWith(AGENT_ROLE_CAPABILITY_PREFIX))
31
+ return null;
32
+ const id = line.capability.slice(AGENT_ROLE_CAPABILITY_PREFIX.length);
33
+ return AGENT_ROLE_ID.test(id) ? id : null;
34
+ }
35
+ /**
36
+ * An agent role id always starts with `agent-`, so a human bundle (`admin`, `superadmin`) can
37
+ * never be given to an agent through a line.
38
+ */
39
+ const AGENT_ROLE_ID = /^agent-[a-z0-9][a-z0-9_-]{0,80}$/;
16
40
  const KIND = {
17
41
  human: "person",
18
42
  agent: "agent",
19
43
  service: "service",
20
44
  };
21
45
  /** Null when the actor is not visible to the caller. */
22
- export async function resolvePrincipal(reads, actorId) {
46
+ export async function resolvePrincipal(reads, actorId, now = new Date()) {
23
47
  const layers = [];
48
+ const principals = new Map();
24
49
  const seen = new Set();
25
50
  const build = async (id, depth) => {
26
51
  const actor = await reads.readActor(id);
@@ -39,6 +64,7 @@ export async function resolvePrincipal(reads, actorId) {
39
64
  kind: KIND[actor.type] ?? "service",
40
65
  role_ids: roleIds,
41
66
  };
67
+ principals.set(id, principal);
42
68
  if (actor.type !== "agent")
43
69
  return principal;
44
70
  const owners = (await reads.readActorOwners(id)).filter((o) => o !== id);
@@ -69,5 +95,55 @@ export async function resolvePrincipal(reads, actorId) {
69
95
  const actorIds = layers.map((l) => l.actor.id);
70
96
  const roleIds = [...new Set(layers.flatMap((l) => l.role_ids))];
71
97
  const lines = await reads.readLines(actorIds, roleIds);
72
- return { principal, layers, lines };
98
+ // Agent roles (M2): an in-force `agents.role.<id>` allow line on an agent layer adds the role
99
+ // id to that layer. The role lines are read in one more read. No nesting: a line read through
100
+ // a role never adds a role.
101
+ const extraByActor = new Map();
102
+ for (const layer of layers) {
103
+ if (layer.actor.type !== "agent")
104
+ continue;
105
+ const extra = new Set();
106
+ for (const l of lines) {
107
+ if (l.principal_actor_id !== layer.actor.id || !isLineActive(l, now))
108
+ continue;
109
+ const role = agentRoleOf(l);
110
+ if (role !== null && !layer.role_ids.includes(role))
111
+ extra.add(role);
112
+ }
113
+ // Deny wins over membership: an active deny or ask line of the same actor that matches
114
+ // `agents.role.<id>` (the exact line or a pattern such as `agents.*`, of any scope) drops
115
+ // that role. An admin suspends a role of an agent with one deny line.
116
+ for (const role of [...extra]) {
117
+ const name = `${AGENT_ROLE_CAPABILITY_PREFIX}${role}`;
118
+ const blocked = lines.some((l) => l.principal_actor_id === layer.actor.id &&
119
+ l.effect !== "allow" &&
120
+ isLineActive(l, now) &&
121
+ matchesCapability(l.capability, name));
122
+ if (blocked)
123
+ extra.delete(role);
124
+ }
125
+ if (extra.size > 0)
126
+ extraByActor.set(layer.actor.id, [...extra].sort());
127
+ }
128
+ if (extraByActor.size === 0)
129
+ return { principal, layers, lines };
130
+ const newRoleIds = [
131
+ ...new Set([...extraByActor.values()].flat().filter((r) => !roleIds.includes(r))),
132
+ ].sort();
133
+ const roleLines = newRoleIds.length > 0 ? await reads.readLines([], newRoleIds) : [];
134
+ for (const layer of layers) {
135
+ const extra = extraByActor.get(layer.actor.id);
136
+ if (!extra)
137
+ continue;
138
+ layer.role_ids = [...layer.role_ids, ...extra];
139
+ const p = principals.get(layer.actor.id);
140
+ if (p)
141
+ p.role_ids = layer.role_ids;
142
+ }
143
+ const have = new Set(lines.map((l) => l.id));
144
+ return {
145
+ principal,
146
+ layers,
147
+ lines: [...lines, ...roleLines.filter((l) => !have.has(l.id))],
148
+ };
73
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devfellowship/access",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "The one fleet access decision: can() over iam.permissions lines (deny wins, capability patterns, scope, expiry, agent never above its owner). Pure functions, no I/O.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/parity.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$comment": "Parity fixture of the fleet access decision (plan 20261116-fleet-access-s3-gateway-decision, ADR-1). expected = the answer of dfl-os-commands runExplain (resolvePrincipal + can). The service test and the gateway test both assert it. A null expected means the actor is not visible (the service answers 404 not_found).",
2
+ "$comment": "Parity fixture of the fleet access decision (plan 20261116-fleet-access-s3-gateway-decision, ADR-1). expected = the answer of dfl-domain-api runExplain (resolvePrincipal + can). The service test and the gateway test both assert it. A null expected means the actor is not visible (the service answers 404 not_found).",
3
3
  "version": 1,
4
4
  "now": "2026-11-18T12:00:00Z",
5
5
  "world": {