@smartergpt/lexrunner 1.2.1 → 1.4.0

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/cli.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { z } from 'zod';
3
+ import { AXErrorException } from '@smartergpt/lex/errors';
3
4
  import { F as FrameOutcome, a as FrameEmitResult } from './types-CYMIAhy8.js';
4
- export { m as mcpToolError } from './adapters-DciX_uRh.js';
5
+ export { m as mcpToolError } from './adapters-r7_TjMwo.js';
5
6
  import { Octokit } from '@octokit/rest';
6
- import '@smartergpt/lex/errors';
7
7
 
8
8
  /**
9
9
  * Gate execution result
@@ -221,6 +221,56 @@ declare const Plan: z.ZodObject<{
221
221
  }, z.core.$strict>>>;
222
222
  }, z.core.$strict>;
223
223
  type Plan = z.infer<typeof Plan>;
224
+ /**
225
+ * Machine-readable validation error
226
+ */
227
+ interface ValidationError {
228
+ path: string;
229
+ message: string;
230
+ code: string;
231
+ }
232
+ interface PlanValidationFailure {
233
+ contract: "bounded-ax-v1";
234
+ valid: false;
235
+ code: string;
236
+ message: string;
237
+ errorCount: number;
238
+ errors: ValidationError[];
239
+ errorsTruncated: boolean;
240
+ nextActions: string[];
241
+ context: {
242
+ errorCount: number;
243
+ errorsTruncated: boolean;
244
+ };
245
+ }
246
+ /**
247
+ * Schema validation error - thrown when Zod validation fails
248
+ * Now extends AXErrorException to provide structured error with nextActions
249
+ */
250
+ declare class SchemaValidationError extends AXErrorException {
251
+ readonly issues: z.ZodIssue[];
252
+ readonly errors: ValidationError[];
253
+ readonly errorCount: number;
254
+ readonly errorsTruncated: boolean;
255
+ constructor(issues: z.ZodIssue[]);
256
+ /**
257
+ * Get legacy machine-readable error format for backward compatibility
258
+ */
259
+ toLegacyJSON(): {
260
+ valid: false;
261
+ errors: ValidationError[];
262
+ };
263
+ }
264
+ /**
265
+ * Return the stable, bounded validation envelope used by CLI and MCP surfaces.
266
+ *
267
+ * Raw Zod issues are intentionally not returned because they can contain the
268
+ * rejected input. The normalized error list retains only path, message, and
269
+ * code, with deterministic count and byte limits.
270
+ */
271
+ declare function formatPlanValidationFailure(error: SchemaValidationError): PlanValidationFailure;
272
+ declare function asPlanValidationFailure(error: unknown): PlanValidationFailure | undefined;
273
+ declare function formatPlanValidationFailureText(failure: PlanValidationFailure): string;
224
274
  /**
225
275
  * Load and validate a plan.json file
226
276
  */
@@ -578,6 +628,10 @@ declare function executeGatesWithPolicy(plan: Plan, executionState: ExecutionSta
578
628
  runId?: string;
579
629
  baseDir?: string;
580
630
  turnCostTracker?: MergeWeaveTurnCost;
631
+ onlyItem?: string;
632
+ onlyGate?: string;
633
+ emitReceipt?: boolean;
634
+ suppressStdout?: boolean;
581
635
  }): Promise<void>;
582
636
 
583
637
  /**
@@ -1194,8 +1248,8 @@ type ArtifactType = keyof typeof ARTIFACT_TYPES;
1194
1248
  declare const ListArtifactsInputSchema: z.ZodObject<{
1195
1249
  runId: z.ZodString;
1196
1250
  type: z.ZodOptional<z.ZodEnum<{
1197
- gate: "gate";
1198
1251
  failure: "failure";
1252
+ gate: "gate";
1199
1253
  log: "log";
1200
1254
  decision: "decision";
1201
1255
  report: "report";
@@ -1213,8 +1267,8 @@ declare const ListArtifactsOutputSchema: z.ZodObject<{
1213
1267
  artifacts: z.ZodArray<z.ZodObject<{
1214
1268
  path: z.ZodString;
1215
1269
  type: z.ZodEnum<{
1216
- gate: "gate";
1217
1270
  failure: "failure";
1271
+ gate: "gate";
1218
1272
  log: "log";
1219
1273
  decision: "decision";
1220
1274
  report: "report";
@@ -1916,7 +1970,6 @@ declare const WorkItem_v1: z.ZodObject<{
1916
1970
  }, z.core.$strict>;
1917
1971
  type WorkItem_v1 = z.infer<typeof WorkItem_v1>;
1918
1972
  declare const RunStatus: z.ZodEnum<{
1919
- created: "created";
1920
1973
  blocked: "blocked";
1921
1974
  completed: "completed";
1922
1975
  planning: "planning";
@@ -1925,6 +1978,7 @@ declare const RunStatus: z.ZodEnum<{
1925
1978
  failed: "failed";
1926
1979
  paused: "paused";
1927
1980
  cancelled: "cancelled";
1981
+ created: "created";
1928
1982
  executing: "executing";
1929
1983
  delivering: "delivering";
1930
1984
  awaiting_human: "awaiting_human";
@@ -1951,7 +2005,6 @@ declare const Run_v1: z.ZodObject<{
1951
2005
  release: z.ZodBoolean;
1952
2006
  }, z.core.$strict>;
1953
2007
  status: z.ZodEnum<{
1954
- created: "created";
1955
2008
  blocked: "blocked";
1956
2009
  completed: "completed";
1957
2010
  planning: "planning";
@@ -1960,6 +2013,7 @@ declare const Run_v1: z.ZodObject<{
1960
2013
  failed: "failed";
1961
2014
  paused: "paused";
1962
2015
  cancelled: "cancelled";
2016
+ created: "created";
1963
2017
  executing: "executing";
1964
2018
  delivering: "delivering";
1965
2019
  awaiting_human: "awaiting_human";
@@ -1986,15 +2040,15 @@ declare const AttemptStatus: z.ZodEnum<{
1986
2040
  failed: "failed";
1987
2041
  cancelled: "cancelled";
1988
2042
  prepared: "prepared";
2043
+ rejected: "rejected";
2044
+ quarantined: "quarantined";
1989
2045
  leased: "leased";
1990
2046
  launching: "launching";
1991
2047
  running: "running";
1992
2048
  receipt_submitted: "receipt_submitted";
1993
2049
  accepted: "accepted";
1994
- rejected: "rejected";
1995
2050
  inconclusive: "inconclusive";
1996
2051
  launch_failed: "launch_failed";
1997
- quarantined: "quarantined";
1998
2052
  }>;
1999
2053
  type AttemptStatus = z.infer<typeof AttemptStatus>;
2000
2054
  declare function attemptStatusRequiresReceipt(status: AttemptStatus): boolean;
@@ -2022,15 +2076,15 @@ declare const Attempt_v1: z.ZodObject<{
2022
2076
  failed: "failed";
2023
2077
  cancelled: "cancelled";
2024
2078
  prepared: "prepared";
2079
+ rejected: "rejected";
2080
+ quarantined: "quarantined";
2025
2081
  leased: "leased";
2026
2082
  launching: "launching";
2027
2083
  running: "running";
2028
2084
  receipt_submitted: "receipt_submitted";
2029
2085
  accepted: "accepted";
2030
- rejected: "rejected";
2031
2086
  inconclusive: "inconclusive";
2032
2087
  launch_failed: "launch_failed";
2033
- quarantined: "quarantined";
2034
2088
  }>;
2035
2089
  created_at: z.ZodString;
2036
2090
  updated_at: z.ZodString;
@@ -2244,15 +2298,15 @@ declare const AgentWorkFanInDecision_v1: z.ZodPipe<z.ZodObject<{
2244
2298
  failed: "failed";
2245
2299
  cancelled: "cancelled";
2246
2300
  prepared: "prepared";
2301
+ rejected: "rejected";
2302
+ quarantined: "quarantined";
2247
2303
  leased: "leased";
2248
2304
  launching: "launching";
2249
2305
  running: "running";
2250
2306
  receipt_submitted: "receipt_submitted";
2251
2307
  accepted: "accepted";
2252
- rejected: "rejected";
2253
2308
  inconclusive: "inconclusive";
2254
2309
  launch_failed: "launch_failed";
2255
- quarantined: "quarantined";
2256
2310
  }>;
2257
2311
  receipt_id: z.ZodOptional<z.ZodString>;
2258
2312
  receipt_hash: z.ZodOptional<z.ZodString>;
@@ -2287,7 +2341,7 @@ declare const AgentWorkFanInDecision_v1: z.ZodPipe<z.ZodObject<{
2287
2341
  candidates: {
2288
2342
  attempt_id: string;
2289
2343
  premise_id: string;
2290
- attempt_status: "blocked" | "verifying" | "verified" | "failed" | "cancelled" | "prepared" | "leased" | "launching" | "running" | "receipt_submitted" | "accepted" | "rejected" | "inconclusive" | "launch_failed" | "quarantined";
2344
+ attempt_status: "blocked" | "verifying" | "verified" | "failed" | "cancelled" | "prepared" | "rejected" | "quarantined" | "leased" | "launching" | "running" | "receipt_submitted" | "accepted" | "inconclusive" | "launch_failed";
2291
2345
  trust_gap_count: number;
2292
2346
  conclusion: "rejected" | "selected" | "equivalent" | "unselected" | "missing_evidence";
2293
2347
  reason_codes: string[];
@@ -2330,7 +2384,7 @@ declare const AgentWorkFanInDecision_v1: z.ZodPipe<z.ZodObject<{
2330
2384
  candidates: {
2331
2385
  attempt_id: string;
2332
2386
  premise_id: string;
2333
- attempt_status: "blocked" | "verifying" | "verified" | "failed" | "cancelled" | "prepared" | "leased" | "launching" | "running" | "receipt_submitted" | "accepted" | "rejected" | "inconclusive" | "launch_failed" | "quarantined";
2387
+ attempt_status: "blocked" | "verifying" | "verified" | "failed" | "cancelled" | "prepared" | "rejected" | "quarantined" | "leased" | "launching" | "running" | "receipt_submitted" | "accepted" | "inconclusive" | "launch_failed";
2334
2388
  trust_gap_count: number;
2335
2389
  conclusion: "rejected" | "selected" | "equivalent" | "unselected" | "missing_evidence";
2336
2390
  reason_codes: string[];
@@ -2578,12 +2632,97 @@ declare const ExecutionEnvelope_v1: z.ZodObject<{
2578
2632
  paths: z.ZodObject<{
2579
2633
  project_root: z.ZodString;
2580
2634
  execution_root: z.ZodString;
2635
+ allocation_root: z.ZodOptional<z.ZodString>;
2581
2636
  worktree_root: z.ZodString;
2582
2637
  }, z.core.$strict>;
2583
- path_mappings: z.ZodArray<z.ZodObject<{
2584
- runtime: z.ZodString;
2585
- worktree_root: z.ZodString;
2586
- }, z.core.$strict>>;
2638
+ path_mappings: z.ZodArray<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodObject<{
2639
+ mapping_digest: z.ZodString;
2640
+ schema_version: z.ZodLiteral<"1.0.0">;
2641
+ projection_id: z.ZodString;
2642
+ repository_id: z.ZodString;
2643
+ base_sha: z.ZodString;
2644
+ native_host_id: z.ZodString;
2645
+ request_digest: z.ZodString;
2646
+ projection_digest: z.ZodString;
2647
+ projection_mapping_digest: z.ZodString;
2648
+ roots: z.ZodPreprocess<z.ZodObject<{
2649
+ windows_source: z.ZodPreprocess<z.ZodObject<{
2650
+ runtime_id: z.ZodString;
2651
+ path: z.ZodString;
2652
+ verification: z.ZodLiteral<"declared">;
2653
+ }, z.core.$strip>>;
2654
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
2655
+ runtime_id: z.ZodString;
2656
+ path: z.ZodString;
2657
+ verification: z.ZodLiteral<"git_observed">;
2658
+ observation_digest: z.ZodString;
2659
+ }, z.core.$strip>>;
2660
+ native_repository: z.ZodPreprocess<z.ZodObject<{
2661
+ runtime_id: z.ZodString;
2662
+ path: z.ZodString;
2663
+ verification: z.ZodLiteral<"directory_identity">;
2664
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2665
+ device: z.ZodString;
2666
+ inode: z.ZodString;
2667
+ }, z.core.$strip>>;
2668
+ }, z.core.$strip>>;
2669
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
2670
+ runtime_id: z.ZodString;
2671
+ path: z.ZodString;
2672
+ verification: z.ZodLiteral<"directory_identity">;
2673
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2674
+ device: z.ZodString;
2675
+ inode: z.ZodString;
2676
+ }, z.core.$strip>>;
2677
+ }, z.core.$strip>>;
2678
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
2679
+ runtime_id: z.ZodString;
2680
+ path: z.ZodString;
2681
+ verification: z.ZodLiteral<"directory_identity">;
2682
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2683
+ device: z.ZodString;
2684
+ inode: z.ZodString;
2685
+ }, z.core.$strip>>;
2686
+ }, z.core.$strip>>;
2687
+ }, z.core.$strip>>;
2688
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
2689
+ mapping_digest: z.ZodString;
2690
+ schema_version: z.ZodLiteral<"1.0.0">;
2691
+ mapping_kind: z.ZodLiteral<"native_linux">;
2692
+ repository_id: z.ZodString;
2693
+ base_sha: z.ZodString;
2694
+ native_host_id: z.ZodString;
2695
+ git_runtime: z.ZodString;
2696
+ roots: z.ZodPreprocess<z.ZodObject<{
2697
+ native_repository: z.ZodPreprocess<z.ZodObject<{
2698
+ runtime_id: z.ZodString;
2699
+ path: z.ZodString;
2700
+ verification: z.ZodLiteral<"directory_identity">;
2701
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2702
+ device: z.ZodString;
2703
+ inode: z.ZodString;
2704
+ }, z.core.$strip>>;
2705
+ }, z.core.$strip>>;
2706
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
2707
+ runtime_id: z.ZodString;
2708
+ path: z.ZodString;
2709
+ verification: z.ZodLiteral<"directory_identity">;
2710
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2711
+ device: z.ZodString;
2712
+ inode: z.ZodString;
2713
+ }, z.core.$strip>>;
2714
+ }, z.core.$strip>>;
2715
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
2716
+ runtime_id: z.ZodString;
2717
+ path: z.ZodString;
2718
+ verification: z.ZodLiteral<"directory_identity">;
2719
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
2720
+ device: z.ZodString;
2721
+ inode: z.ZodString;
2722
+ }, z.core.$strip>>;
2723
+ }, z.core.$strip>>;
2724
+ }, z.core.$strip>>;
2725
+ }, z.core.$strip>>]>>;
2587
2726
  exposed_environment_keys: z.ZodArray<z.ZodString>;
2588
2727
  created_at: z.ZodString;
2589
2728
  }, z.core.$strict>;
@@ -2615,8 +2754,8 @@ type ControllerLease_v1 = z.infer<typeof ControllerLease_v1>;
2615
2754
  declare const WorkspaceLeaseStatus: z.ZodEnum<{
2616
2755
  verifying: "verifying";
2617
2756
  active: "active";
2618
- receipt_submitted: "receipt_submitted";
2619
2757
  quarantined: "quarantined";
2758
+ receipt_submitted: "receipt_submitted";
2620
2759
  released: "released";
2621
2760
  expired: "expired";
2622
2761
  reserved: "reserved";
@@ -2670,8 +2809,8 @@ declare const WorkspaceLease_v1: z.ZodObject<{
2670
2809
  status: z.ZodEnum<{
2671
2810
  verifying: "verifying";
2672
2811
  active: "active";
2673
- receipt_submitted: "receipt_submitted";
2674
2812
  quarantined: "quarantined";
2813
+ receipt_submitted: "receipt_submitted";
2675
2814
  released: "released";
2676
2815
  expired: "expired";
2677
2816
  reserved: "reserved";
@@ -3543,6 +3682,18 @@ declare const WorkspaceObservation: z.ZodObject<{
3543
3682
  reason: z.ZodOptional<z.ZodString>;
3544
3683
  }, z.core.$strict>;
3545
3684
  type WorkspaceObservation = z.infer<typeof WorkspaceObservation>;
3685
+ declare const HeartbeatWorkerSessionStatus: z.ZodEnum<{
3686
+ awaiting_human: "awaiting_human";
3687
+ running: "running";
3688
+ }>;
3689
+ type HeartbeatWorkerSessionStatus = z.infer<typeof HeartbeatWorkerSessionStatus>;
3690
+ declare const EndWorkerSessionStatus: z.ZodEnum<{
3691
+ completed: "completed";
3692
+ failed: "failed";
3693
+ cancelled: "cancelled";
3694
+ lost: "lost";
3695
+ }>;
3696
+ type EndWorkerSessionStatus = z.infer<typeof EndWorkerSessionStatus>;
3546
3697
 
3547
3698
  /** Durable attempt state. Attempts exist before a workspace is allocated. */
3548
3699
  interface AttemptRecord {
@@ -3694,6 +3845,22 @@ interface WorkerAdapterBindingRecord {
3694
3845
  trustGapDimensions: string[];
3695
3846
  createdAt: string;
3696
3847
  }
3848
+ /** Immutable canonical envelope authorized for one launching Attempt. */
3849
+ interface LaunchEnvelopeBindingRecord {
3850
+ runId: string;
3851
+ attemptId: string;
3852
+ workspaceLeaseId: string;
3853
+ attemptRevision: number;
3854
+ workspaceLeaseRevision: number;
3855
+ authorizationMutationId: string;
3856
+ envelopeId: string;
3857
+ envelopeHash: string;
3858
+ envelopeJson: string;
3859
+ controllerId: string;
3860
+ controllerLeaseId: string;
3861
+ fencingToken: number;
3862
+ createdAt: string;
3863
+ }
3697
3864
  interface WorkerSessionEvent {
3698
3865
  runId: string;
3699
3866
  attemptId: string;
@@ -3717,6 +3884,74 @@ interface AuthenticatedMutationInput {
3717
3884
  mutationId: string;
3718
3885
  now: string;
3719
3886
  }
3887
+ interface AuthenticatedWorkerMutationInput extends AuthenticatedMutationInput {
3888
+ attemptId: string;
3889
+ workspaceLeaseId: string;
3890
+ expectedAttemptRevision: number;
3891
+ expectedWorkspaceLeaseRevision: number;
3892
+ }
3893
+ interface AttachWorkerSessionInput extends AuthenticatedWorkerMutationInput {
3894
+ sessionId: string;
3895
+ packetId: string;
3896
+ packetHash: string;
3897
+ executionEnvelopeId: string;
3898
+ executionEnvelopeHash: string;
3899
+ hostId: string;
3900
+ workerRuntime: string;
3901
+ gitRuntime: string;
3902
+ backend: WorkerSessionBackend;
3903
+ workerId: string;
3904
+ model?: string;
3905
+ startedAt: string;
3906
+ adapter?: {
3907
+ adapterId: string;
3908
+ adapterVersion: string;
3909
+ enforcementSummaryHash: string;
3910
+ trustGapDimensions: string[];
3911
+ };
3912
+ }
3913
+ interface BindLaunchEnvelopeInput {
3914
+ runId: string;
3915
+ attemptId: string;
3916
+ workspaceLeaseId: string;
3917
+ expectedRunRevision: number;
3918
+ expectedAttemptRevision: number;
3919
+ expectedWorkspaceLeaseRevision: number;
3920
+ controller: ControllerLeaseCredential;
3921
+ authorizationMutationId: string;
3922
+ envelopeId: string;
3923
+ envelopeHash: string;
3924
+ envelopeJson: string;
3925
+ /**
3926
+ * Required for every new launch-envelope binding. It remains optional in
3927
+ * the input type solely so callers can exactly replay an already-persisted
3928
+ * legacy envelope-only binding during compatibility migration; it must not
3929
+ * be omitted when creating a binding.
3930
+ */
3931
+ packetJson?: string;
3932
+ createdAt: string;
3933
+ }
3934
+ /**
3935
+ * Fenced fail-closed recovery for an Attempt stranded after launch authorization but before its
3936
+ * immutable envelope and packet were durably bound. No envelope evidence is accepted here.
3937
+ */
3938
+ interface ReconcileIncompleteLaunchInput extends AuthenticatedMutationInput {
3939
+ attemptId: string;
3940
+ workspaceLeaseId: string;
3941
+ expectedAttemptRevision: number;
3942
+ expectedWorkspaceLeaseRevision: number;
3943
+ }
3944
+ type LaunchEnvelopeBindingResult = {
3945
+ bound: true;
3946
+ binding: LaunchEnvelopeBindingRecord;
3947
+ idempotentReplay: boolean;
3948
+ } | {
3949
+ bound: false;
3950
+ reason: WorkspaceMutationFailureReason;
3951
+ currentAttemptRevision?: number;
3952
+ currentWorkspaceLeaseRevision?: number;
3953
+ currentRunRevision?: number;
3954
+ };
3720
3955
  interface AttemptReceiptRecord {
3721
3956
  receiptId: string;
3722
3957
  receiptHash: string;
@@ -3923,6 +4158,19 @@ type AttemptVerificationSubmissionResult = {
3923
4158
  currentSessionRevision?: number;
3924
4159
  currentRunRevision?: number;
3925
4160
  };
4161
+ interface HeartbeatWorkerSessionInput extends AuthenticatedWorkerMutationInput {
4162
+ sessionId: string;
4163
+ expectedSessionRevision: number;
4164
+ status?: HeartbeatWorkerSessionStatus;
4165
+ }
4166
+ interface EndWorkerSessionInput extends AuthenticatedWorkerMutationInput {
4167
+ sessionId: string;
4168
+ expectedSessionRevision: number;
4169
+ status: EndWorkerSessionStatus;
4170
+ exitReason?: string;
4171
+ exitCode?: number;
4172
+ exitSummary?: string;
4173
+ }
3926
4174
  type WorkerSessionMutationResult = {
3927
4175
  updated: true;
3928
4176
  attempt: AttemptRecord;
@@ -4058,6 +4306,22 @@ interface AgentWorkFanoutStore {
4058
4306
  getFanInDecision(decisionId: string): Promise<FanInDecisionRecord | null>;
4059
4307
  getFanInDecisionForFanout(fanoutId: string): Promise<FanInDecisionRecord | null>;
4060
4308
  }
4309
+ /** Additive binding port for Stage 3 launch envelopes. */
4310
+ interface LaunchEnvelopeBindingStore {
4311
+ bindLaunchEnvelope(input: BindLaunchEnvelopeInput): Promise<LaunchEnvelopeBindingResult>;
4312
+ reconcileIncompleteLaunch(input: ReconcileIncompleteLaunchInput): Promise<WorkspaceMutationResult>;
4313
+ getLaunchEnvelopeBinding(attemptId: string): Promise<LaunchEnvelopeBindingRecord | null>;
4314
+ }
4315
+ /** Additive Stage 3 persistence port; kept separate from the Stage 1 workspace contract. */
4316
+ interface WorkerSessionStore {
4317
+ attachWorkerSession(input: AttachWorkerSessionInput): Promise<WorkerSessionMutationResult>;
4318
+ heartbeatWorkerSession(input: HeartbeatWorkerSessionInput): Promise<WorkerSessionMutationResult>;
4319
+ endWorkerSession(input: EndWorkerSessionInput): Promise<WorkerSessionMutationResult>;
4320
+ getWorkerSession(sessionId: string): Promise<WorkerSessionRecord | null>;
4321
+ getWorkerSessionForAttempt(attemptId: string): Promise<WorkerSessionRecord | null>;
4322
+ getWorkerAdapterBinding(sessionId: string): Promise<WorkerAdapterBindingRecord | null>;
4323
+ listWorkerSessionEvents(runId: string): Promise<WorkerSessionEvent[]>;
4324
+ }
4061
4325
  /** Additive immutable AgentTaskReceipt v2 persistence port. */
4062
4326
  interface AttemptReceiptStore {
4063
4327
  submitAttemptReceipt(input: SubmitAttemptReceiptInput): Promise<AttemptReceiptSubmissionResult>;
@@ -4078,6 +4342,70 @@ interface AttemptVerificationStore {
4078
4342
  listAttemptVerificationEvents(runId: string): Promise<AttemptVerificationEvent[]>;
4079
4343
  }
4080
4344
 
4345
+ interface WorktreeTarget extends WorkspaceIdentity {
4346
+ /** Immutable full Git object ID used to create this Attempt workspace. */
4347
+ baseSha: string;
4348
+ }
4349
+ interface BrokerOperationOptions {
4350
+ timeoutMs?: number;
4351
+ signal?: AbortSignal;
4352
+ boundaryAuthority?: BrokerBoundaryAuthority;
4353
+ }
4354
+ interface BrokerBoundaryAuthority {
4355
+ operationId: string;
4356
+ orchestrationLeaseId: string;
4357
+ orchestrationLeaseRevision: number;
4358
+ ownerId: string;
4359
+ }
4360
+ type BrokerOperation = "create" | "observe" | "remove";
4361
+ interface BrokerCommandEvidence {
4362
+ executable: string;
4363
+ args: string[];
4364
+ cwd: string;
4365
+ exitCode: number | null;
4366
+ stdoutTail: string;
4367
+ stderrTail: string;
4368
+ }
4369
+ type BrokerFailureReason = "invalid_base_sha" | "invalid_branch" | "invalid_path" | "runtime_mismatch" | "path_conflict" | "branch_conflict" | "containment_violation" | "identity_mismatch" | "dirty_workspace" | "command_failed" | "timeout" | "aborted";
4370
+ interface BrokerFailure {
4371
+ ok: false;
4372
+ operation: BrokerOperation;
4373
+ reason: BrokerFailureReason;
4374
+ message: string;
4375
+ command?: BrokerCommandEvidence;
4376
+ observation?: WorkspaceObservation;
4377
+ }
4378
+ interface CreateWorktreeSuccess {
4379
+ ok: true;
4380
+ outcome: "created" | "reused";
4381
+ observation: WorkspaceObservation;
4382
+ }
4383
+ type CreateWorktreeResult = CreateWorktreeSuccess | BrokerFailure;
4384
+ interface ObserveWorktreeSuccess {
4385
+ ok: true;
4386
+ outcome: "observed";
4387
+ observation: WorkspaceObservation;
4388
+ }
4389
+ type ObserveWorktreeResult = ObserveWorktreeSuccess | BrokerFailure;
4390
+ type WorktreePreservationReason = "dirty" | "missing" | "unregistered" | "wrong_repository" | "wrong_branch" | "identity_ambiguous";
4391
+ interface RemoveWorktreeSuccess {
4392
+ ok: true;
4393
+ outcome: "removed" | "preserved";
4394
+ preservationReason?: WorktreePreservationReason;
4395
+ observation: WorkspaceObservation;
4396
+ }
4397
+ type RemoveWorktreeResult = RemoveWorktreeSuccess | BrokerFailure;
4398
+ /**
4399
+ * Git side-effect port. Durable ownership and fencing remain the
4400
+ * WorkspaceLifecycleStore's responsibility; the broker only observes and
4401
+ * mutates the declared runtime's Git worktree registry.
4402
+ */
4403
+ interface GitWorktreeBroker {
4404
+ create(target: WorktreeTarget, options?: BrokerOperationOptions): Promise<CreateWorktreeResult>;
4405
+ observe(target: WorktreeTarget, options?: BrokerOperationOptions): Promise<ObserveWorktreeResult>;
4406
+ remove(target: WorktreeTarget, options?: BrokerOperationOptions): Promise<RemoveWorktreeResult>;
4407
+ }
4408
+
4081
4409
  type LifecyclePhase = "controller" | "attempt_create" | "workspace_allocate" | "workspace_resume" | "launch_authorize";
4082
4410
  type LifecycleFailureReason = "controller_held" | "store_rejected" | "workspace_rejected" | "identity_mismatch" | "inactive_workspace" | "stale_authority" | "expired_workspace" | "reconciliation_required";
4083
4411
  interface AgentWorkLifecycleSuccess {
@@ -4156,113 +4484,1396 @@ interface BoundedLaunchStatus {
4156
4484
  reconciliationRequired: boolean;
4157
4485
  }
4158
4486
 
4159
- interface WorkerSessionStatusResult {
4160
- workerSession: WorkerSessionRecord | null;
4161
- adapter: BoundedWorkerAdapterStatus | null;
4162
- }
4163
- interface BoundedWorkerAdapterStatus extends WorkerAdapterBindingRecord {
4164
- enforcement: "enforced" | "trust_gap";
4165
- }
4166
-
4167
- interface AttemptLaunchBundleSuccess {
4168
- ok: true;
4169
- outcome: "launch_bundle_ready";
4170
- lifecycle: AgentWorkLifecycleSuccess;
4171
- packet: AgentTaskPacket_v1;
4172
- envelope: ExecutionEnvelope_v1;
4487
+ type DirectoryIdentityBoundarySupport = {
4488
+ readonly supported: true;
4489
+ readonly platform: NodeJS.Platform;
4490
+ readonly pathComparison: "case-sensitive";
4491
+ readonly reasonCode: "native_linux_ready";
4492
+ } | {
4493
+ readonly supported: false;
4494
+ readonly platform: NodeJS.Platform;
4495
+ readonly pathComparison: "case-sensitive" | "case-insensitive";
4496
+ readonly reasonCode: "windows_native_boundary_unavailable" | "macos_unsupported" | "unsupported_platform" | "case_insensitive_runtime" | "procfs_unavailable";
4497
+ };
4498
+ interface DirectoryIdentityPathProbe {
4499
+ readonly verified: boolean;
4500
+ readonly filesystem: "native_linux" | "wsl_drvfs_9p" | "unknown";
4501
+ readonly reasonCode: "directory_verified" | "wsl_drvfs_9p" | "invalid_native_path" | "path_unavailable" | "filesystem_unverified";
4173
4502
  }
4174
- type AttemptLaunchBundleResult = AttemptLaunchBundleSuccess | AgentWorkLifecycleFailure;
4175
4503
 
4176
- declare const AttemptStartRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
4504
+ declare const AgentWorkContainmentPreflightRequestSchema: z.ZodObject<{
4177
4505
  runtime: z.ZodObject<{
4178
- databasePath: z.ZodString;
4179
4506
  repositoryId: z.ZodString;
4180
4507
  repositoryRoot: z.ZodString;
4181
4508
  worktreeRoot: z.ZodString;
4182
- hostId: z.ZodString;
4183
4509
  gitRuntime: z.ZodString;
4184
4510
  pathComparison: z.ZodEnum<{
4185
4511
  "case-sensitive": "case-sensitive";
4186
4512
  "case-insensitive": "case-insensitive";
4187
4513
  }>;
4188
- gitExecutable: z.ZodOptional<z.ZodString>;
4189
- timeoutMs: z.ZodOptional<z.ZodNumber>;
4190
- maxDirtyPaths: z.ZodOptional<z.ZodNumber>;
4191
4514
  }, z.core.$strict>;
4192
- attempt: z.ZodObject<{
4193
- runId: z.ZodString;
4194
- initialRunState: z.ZodObject<{
4195
- runId: z.ZodString;
4196
- mode: z.ZodString;
4197
- procedure: z.ZodString;
4198
- repo: z.ZodString;
4199
- task: z.ZodOptional<z.ZodString>;
4200
- state: z.ZodString;
4201
- createdAt: z.ZodString;
4202
- updatedAt: z.ZodString;
4203
- completedAt: z.ZodOptional<z.ZodString>;
4204
- completedSteps: z.ZodArray<z.ZodString>;
4205
- currentStep: z.ZodNullable<z.ZodString>;
4206
- params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4207
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4208
- persona: z.ZodOptional<z.ZodObject<{
4209
- mode: z.ZodString;
4210
- forbidden: z.ZodArray<z.ZodString>;
4211
- completionGates: z.ZodArray<z.ZodString>;
4212
- decisionStyle: z.ZodOptional<z.ZodObject<{
4213
- preferSmallDiffs: z.ZodOptional<z.ZodBoolean>;
4214
- requireRationaleForSkips: z.ZodOptional<z.ZodBoolean>;
4215
- escalateSecurityFindings: z.ZodOptional<z.ZodBoolean>;
4216
- }, z.core.$strip>>;
4217
- outputFormat: z.ZodOptional<z.ZodObject<{
4218
- severityLevels: z.ZodOptional<z.ZodArray<z.ZodString>>;
4219
- requireSeverityOnFindings: z.ZodOptional<z.ZodBoolean>;
4220
- }, z.core.$strip>>;
4221
- }, z.core.$strip>>;
4222
- }, z.core.$strip>;
4223
- controller: z.ZodObject<{
4224
- controllerId: z.ZodString;
4225
- leaseId: z.ZodString;
4226
- now: z.ZodString;
4227
- ttlMs: z.ZodNumber;
4228
- }, z.core.$strict>;
4229
- attempt: z.ZodObject<{
4230
- attemptId: z.ZodString;
4231
- workItemId: z.ZodString;
4232
- workItemRevision: z.ZodNumber;
4233
- packetId: z.ZodString;
4234
- packetHash: z.ZodString;
4235
- baseSha: z.ZodString;
4236
- }, z.core.$strict>;
4237
- workspace: z.ZodObject<{
4238
- workspaceLeaseId: z.ZodString;
4239
- repositoryId: z.ZodString;
4240
- hostId: z.ZodString;
4241
- gitRuntime: z.ZodString;
4242
- projectRoot: z.ZodString;
4243
- branch: z.ZodString;
4244
- worktreePath: z.ZodString;
4245
- ttlMs: z.ZodNumber;
4246
- }, z.core.$strict>;
4247
- mutations: z.ZodObject<{
4248
- createAttempt: z.ZodObject<{
4249
- mutationId: z.ZodString;
4250
- now: z.ZodString;
4251
- }, z.core.$strict>;
4252
- reserveWorkspace: z.ZodObject<{
4253
- mutationId: z.ZodString;
4254
- now: z.ZodString;
4255
- }, z.core.$strict>;
4256
- activateWorkspace: z.ZodObject<{
4257
- mutationId: z.ZodString;
4258
- now: z.ZodString;
4259
- }, z.core.$strict>;
4260
- resumeWorkspace: z.ZodObject<{
4261
- mutationId: z.ZodString;
4262
- now: z.ZodString;
4263
- }, z.core.$strict>;
4264
- quarantineWorkspace: z.ZodObject<{
4265
- mutationId: z.ZodString;
4515
+ }, z.core.$strict>;
4516
+ declare const AgentWorkContainmentPreflightRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
4517
+ runtime: z.ZodObject<{
4518
+ repositoryId: z.ZodString;
4519
+ repositoryRoot: z.ZodString;
4520
+ worktreeRoot: z.ZodString;
4521
+ gitRuntime: z.ZodString;
4522
+ pathComparison: z.ZodEnum<{
4523
+ "case-sensitive": "case-sensitive";
4524
+ "case-insensitive": "case-insensitive";
4525
+ }>;
4526
+ }, z.core.$strict>;
4527
+ }, z.core.$strict>>;
4528
+ type AgentWorkContainmentPreflightRequest = z.infer<typeof AgentWorkContainmentPreflightRequestSchema>;
4529
+ type AgentWorkContainmentCapabilityState = "native_ready" | "broker_required" | "unsupported";
4530
+ type AgentWorkContainmentReasonCode = "native_linux_ready" | "windows_native_boundary_unavailable"
4531
+ /** Legacy v1 reason retained for persisted result compatibility. */
4532
+ | "windows_requires_native_wsl_broker" | "macos_unsupported" | "unsupported_platform" | "case_insensitive_runtime" | "procfs_unavailable" | "repository_root_invalid" | "worktree_root_invalid" | "path_roots_overlap" | "repository_root_wsl_drvfs_9p" | "repository_git_wsl_drvfs_9p" | "worktree_root_wsl_drvfs_9p" | "repository_root_unavailable" | "repository_git_directory_unavailable" | "worktree_root_unavailable" | "repository_root_filesystem_unverified" | "repository_git_filesystem_unverified" | "worktree_root_filesystem_unverified";
4533
+ type AgentWorkContainmentNextAction = "construct_attempt_packet" | "install_native_windows_boundary" | "provision_native_wsl_projection" | "select_native_case_sensitive_linux_runtime" | "correct_declared_paths" | "rerun_containment_preflight";
4534
+ interface AgentWorkContainmentPathStatus {
4535
+ readonly inspection: "identity_verified" | "filesystem_verified" | "syntactic_only" | "unverified" | "not_checked";
4536
+ readonly filesystem: "native_linux" | "wsl_drvfs_9p" | "unknown";
4537
+ }
4538
+ interface AgentWorkContainmentPreflightResult {
4539
+ readonly schemaVersion: "1.0.0";
4540
+ readonly operation: "agent-work.containment.preflight";
4541
+ readonly bindingDigest: `sha256:${string}`;
4542
+ readonly state: AgentWorkContainmentCapabilityState;
4543
+ readonly reasonCode: AgentWorkContainmentReasonCode;
4544
+ readonly physicalContainmentAvailable: boolean;
4545
+ readonly projectionRequired: boolean;
4546
+ readonly runtime: {
4547
+ readonly platform: "linux" | "windows" | "macos" | "other";
4548
+ readonly pathComparison: "case-sensitive" | "case-insensitive";
4549
+ };
4550
+ readonly paths: {
4551
+ readonly repositoryRoot: AgentWorkContainmentPathStatus;
4552
+ readonly repositoryGitDirectory: AgentWorkContainmentPathStatus;
4553
+ readonly worktreeRoot: AgentWorkContainmentPathStatus;
4554
+ };
4555
+ readonly nextActions: readonly AgentWorkContainmentNextAction[];
4556
+ }
4557
+ interface AgentWorkContainmentPreflightInputError {
4558
+ readonly code: "invalid_input";
4559
+ readonly message: "Invalid containment preflight input";
4560
+ readonly issues: ReadonlyArray<{
4561
+ readonly path: string;
4562
+ readonly message: string;
4563
+ }>;
4564
+ }
4565
+ type AgentWorkContainmentPreflightHandlerResult = {
4566
+ readonly ok: true;
4567
+ readonly result: AgentWorkContainmentPreflightResult;
4568
+ } | {
4569
+ readonly ok: false;
4570
+ readonly error: AgentWorkContainmentPreflightInputError;
4571
+ };
4572
+ interface AgentWorkContainmentPreflightHandler {
4573
+ preflight(request: unknown): Promise<AgentWorkContainmentPreflightHandlerResult>;
4574
+ }
4575
+ interface AgentWorkContainmentCapabilityDependencies {
4576
+ runtimeProbe?: (pathComparison: "case-sensitive" | "case-insensitive") => DirectoryIdentityBoundarySupport;
4577
+ pathProbe?: (absolutePath: string, label: string) => DirectoryIdentityPathProbe;
4578
+ }
4579
+ /** Stateless, read-only capability owner shared by CLI and MCP adapters. */
4580
+ declare class AgentWorkContainmentCapabilityService {
4581
+ private readonly runtimeProbe;
4582
+ private readonly pathProbe;
4583
+ constructor(dependencies?: AgentWorkContainmentCapabilityDependencies);
4584
+ preflight(request: AgentWorkContainmentPreflightRequest): AgentWorkContainmentPreflightResult;
4585
+ }
4586
+ declare function createAgentWorkContainmentPreflightHandler(service?: AgentWorkContainmentCapabilityService): AgentWorkContainmentPreflightHandler;
4587
+
4588
+ declare const NATIVE_WSL_PROJECTION_CONTRACT_VERSION: "1.0.0";
4589
+ declare const NATIVE_WSL_PROJECTION_HASH_PROFILE: "canonical-json-domain-separated-v1";
4590
+ declare const NativeDirectoryIdentityClaim_v1: z.ZodPreprocess<z.ZodObject<{
4591
+ device: z.ZodString;
4592
+ inode: z.ZodString;
4593
+ }, z.core.$strip>>;
4594
+ type NativeDirectoryIdentityClaim_v1 = z.infer<typeof NativeDirectoryIdentityClaim_v1>;
4595
+ declare const ProjectionRequestShape: {
4596
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
4597
+ readonly request_id: z.ZodString;
4598
+ readonly repository: z.ZodPreprocess<z.ZodObject<{
4599
+ id: z.ZodString;
4600
+ expected_remote_hash: z.ZodString;
4601
+ }, z.core.$strip>>;
4602
+ readonly source: z.ZodPreprocess<z.ZodObject<{
4603
+ windows_runtime: z.ZodString;
4604
+ windows_repository_path: z.ZodString;
4605
+ wsl_distribution: z.ZodString;
4606
+ wsl_git_runtime: z.ZodString;
4607
+ wsl_repository_path: z.ZodString;
4608
+ head_policy: z.ZodEnum<{
4609
+ observe: "observe";
4610
+ require_base: "require_base";
4611
+ }>;
4612
+ dirty_policy: z.ZodEnum<{
4613
+ require_clean: "require_clean";
4614
+ committed_base_only: "committed_base_only";
4615
+ }>;
4616
+ }, z.core.$strip>>;
4617
+ readonly native: z.ZodPreprocess<z.ZodObject<{
4618
+ host_id: z.ZodString;
4619
+ git_runtime: z.ZodString;
4620
+ projection_root: z.ZodString;
4621
+ worktree_root: z.ZodString;
4622
+ }, z.core.$strip>>;
4623
+ readonly base_sha: z.ZodString;
4624
+ };
4625
+ declare const NativeWslProjectionRequest_v1: z.ZodPreprocess<z.ZodObject<{
4626
+ request_digest: z.ZodString;
4627
+ schema_version: z.ZodLiteral<"1.0.0">;
4628
+ request_id: z.ZodString;
4629
+ repository: z.ZodPreprocess<z.ZodObject<{
4630
+ id: z.ZodString;
4631
+ expected_remote_hash: z.ZodString;
4632
+ }, z.core.$strip>>;
4633
+ source: z.ZodPreprocess<z.ZodObject<{
4634
+ windows_runtime: z.ZodString;
4635
+ windows_repository_path: z.ZodString;
4636
+ wsl_distribution: z.ZodString;
4637
+ wsl_git_runtime: z.ZodString;
4638
+ wsl_repository_path: z.ZodString;
4639
+ head_policy: z.ZodEnum<{
4640
+ observe: "observe";
4641
+ require_base: "require_base";
4642
+ }>;
4643
+ dirty_policy: z.ZodEnum<{
4644
+ require_clean: "require_clean";
4645
+ committed_base_only: "committed_base_only";
4646
+ }>;
4647
+ }, z.core.$strip>>;
4648
+ native: z.ZodPreprocess<z.ZodObject<{
4649
+ host_id: z.ZodString;
4650
+ git_runtime: z.ZodString;
4651
+ projection_root: z.ZodString;
4652
+ worktree_root: z.ZodString;
4653
+ }, z.core.$strip>>;
4654
+ base_sha: z.ZodString;
4655
+ }, z.core.$strip>>;
4656
+ type NativeWslProjectionRequest_v1 = z.infer<typeof NativeWslProjectionRequest_v1>;
4657
+ declare const NativeWslProjectionRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodPreprocess<z.ZodObject<{
4658
+ request_digest: z.ZodString;
4659
+ schema_version: z.ZodLiteral<"1.0.0">;
4660
+ request_id: z.ZodString;
4661
+ repository: z.ZodPreprocess<z.ZodObject<{
4662
+ id: z.ZodString;
4663
+ expected_remote_hash: z.ZodString;
4664
+ }, z.core.$strip>>;
4665
+ source: z.ZodPreprocess<z.ZodObject<{
4666
+ windows_runtime: z.ZodString;
4667
+ windows_repository_path: z.ZodString;
4668
+ wsl_distribution: z.ZodString;
4669
+ wsl_git_runtime: z.ZodString;
4670
+ wsl_repository_path: z.ZodString;
4671
+ head_policy: z.ZodEnum<{
4672
+ observe: "observe";
4673
+ require_base: "require_base";
4674
+ }>;
4675
+ dirty_policy: z.ZodEnum<{
4676
+ require_clean: "require_clean";
4677
+ committed_base_only: "committed_base_only";
4678
+ }>;
4679
+ }, z.core.$strip>>;
4680
+ native: z.ZodPreprocess<z.ZodObject<{
4681
+ host_id: z.ZodString;
4682
+ git_runtime: z.ZodString;
4683
+ projection_root: z.ZodString;
4684
+ worktree_root: z.ZodString;
4685
+ }, z.core.$strip>>;
4686
+ base_sha: z.ZodString;
4687
+ }, z.core.$strip>>>;
4688
+ declare function createNativeWslProjectionRequest(input: z.input<z.ZodObject<typeof ProjectionRequestShape>>): NativeWslProjectionRequest_v1;
4689
+ declare const SourceObservationShape: {
4690
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
4691
+ readonly repository_id: z.ZodString;
4692
+ readonly request_digest: z.ZodString;
4693
+ readonly observed_remote_hash: z.ZodString;
4694
+ readonly source_head_sha: z.ZodString;
4695
+ readonly requested_object_sha: z.ZodString;
4696
+ readonly requested_object_type: z.ZodEnum<{
4697
+ commit: "commit";
4698
+ other: "other";
4699
+ missing: "missing";
4700
+ }>;
4701
+ readonly cleanliness: z.ZodEnum<{
4702
+ unknown: "unknown";
4703
+ clean: "clean";
4704
+ dirty: "dirty";
4705
+ }>;
4706
+ readonly observed_at: z.ZodString;
4707
+ };
4708
+ declare const NativeWslSourceObservation_v1: z.ZodPreprocess<z.ZodObject<{
4709
+ observation_digest: z.ZodString;
4710
+ schema_version: z.ZodLiteral<"1.0.0">;
4711
+ repository_id: z.ZodString;
4712
+ request_digest: z.ZodString;
4713
+ observed_remote_hash: z.ZodString;
4714
+ source_head_sha: z.ZodString;
4715
+ requested_object_sha: z.ZodString;
4716
+ requested_object_type: z.ZodEnum<{
4717
+ commit: "commit";
4718
+ other: "other";
4719
+ missing: "missing";
4720
+ }>;
4721
+ cleanliness: z.ZodEnum<{
4722
+ unknown: "unknown";
4723
+ clean: "clean";
4724
+ dirty: "dirty";
4725
+ }>;
4726
+ observed_at: z.ZodString;
4727
+ }, z.core.$strip>>;
4728
+ type NativeWslSourceObservation_v1 = z.infer<typeof NativeWslSourceObservation_v1>;
4729
+ declare function createNativeWslSourceObservation(input: z.input<z.ZodObject<typeof SourceObservationShape>>): NativeWslSourceObservation_v1;
4730
+ declare const ProjectionPathMappingShape: {
4731
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
4732
+ readonly projection_id: z.ZodString;
4733
+ readonly repository_id: z.ZodString;
4734
+ readonly base_sha: z.ZodString;
4735
+ readonly request_digest: z.ZodString;
4736
+ readonly roots: z.ZodPreprocess<z.ZodObject<{
4737
+ windows_source: z.ZodPreprocess<z.ZodObject<{
4738
+ runtime_id: z.ZodString;
4739
+ path: z.ZodString;
4740
+ verification: z.ZodLiteral<"declared">;
4741
+ }, z.core.$strip>>;
4742
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
4743
+ runtime_id: z.ZodString;
4744
+ path: z.ZodString;
4745
+ verification: z.ZodLiteral<"git_observed">;
4746
+ observation_digest: z.ZodString;
4747
+ }, z.core.$strip>>;
4748
+ native_repository: z.ZodPreprocess<z.ZodObject<{
4749
+ runtime_id: z.ZodString;
4750
+ path: z.ZodString;
4751
+ verification: z.ZodLiteral<"directory_identity">;
4752
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4753
+ device: z.ZodString;
4754
+ inode: z.ZodString;
4755
+ }, z.core.$strip>>;
4756
+ }, z.core.$strip>>;
4757
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4758
+ runtime_id: z.ZodString;
4759
+ path: z.ZodString;
4760
+ verification: z.ZodLiteral<"directory_identity">;
4761
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4762
+ device: z.ZodString;
4763
+ inode: z.ZodString;
4764
+ }, z.core.$strip>>;
4765
+ }, z.core.$strip>>;
4766
+ }, z.core.$strip>>;
4767
+ };
4768
+ declare const NativeWslProjectionPathMapping_v1: z.ZodPreprocess<z.ZodObject<{
4769
+ mapping_digest: z.ZodString;
4770
+ schema_version: z.ZodLiteral<"1.0.0">;
4771
+ projection_id: z.ZodString;
4772
+ repository_id: z.ZodString;
4773
+ base_sha: z.ZodString;
4774
+ request_digest: z.ZodString;
4775
+ roots: z.ZodPreprocess<z.ZodObject<{
4776
+ windows_source: z.ZodPreprocess<z.ZodObject<{
4777
+ runtime_id: z.ZodString;
4778
+ path: z.ZodString;
4779
+ verification: z.ZodLiteral<"declared">;
4780
+ }, z.core.$strip>>;
4781
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
4782
+ runtime_id: z.ZodString;
4783
+ path: z.ZodString;
4784
+ verification: z.ZodLiteral<"git_observed">;
4785
+ observation_digest: z.ZodString;
4786
+ }, z.core.$strip>>;
4787
+ native_repository: z.ZodPreprocess<z.ZodObject<{
4788
+ runtime_id: z.ZodString;
4789
+ path: z.ZodString;
4790
+ verification: z.ZodLiteral<"directory_identity">;
4791
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4792
+ device: z.ZodString;
4793
+ inode: z.ZodString;
4794
+ }, z.core.$strip>>;
4795
+ }, z.core.$strip>>;
4796
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4797
+ runtime_id: z.ZodString;
4798
+ path: z.ZodString;
4799
+ verification: z.ZodLiteral<"directory_identity">;
4800
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4801
+ device: z.ZodString;
4802
+ inode: z.ZodString;
4803
+ }, z.core.$strip>>;
4804
+ }, z.core.$strip>>;
4805
+ }, z.core.$strip>>;
4806
+ }, z.core.$strip>>;
4807
+ type NativeWslProjectionPathMapping_v1 = z.infer<typeof NativeWslProjectionPathMapping_v1>;
4808
+ declare function createNativeWslProjectionPathMapping(input: z.input<z.ZodObject<typeof ProjectionPathMappingShape>>): NativeWslProjectionPathMapping_v1;
4809
+ declare const ProjectionManifestShape: {
4810
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
4811
+ readonly projection_id: z.ZodString;
4812
+ readonly repository_id: z.ZodString;
4813
+ readonly base_sha: z.ZodString;
4814
+ readonly request_digest: z.ZodString;
4815
+ readonly source_observation: z.ZodPreprocess<z.ZodObject<{
4816
+ observation_digest: z.ZodString;
4817
+ schema_version: z.ZodLiteral<"1.0.0">;
4818
+ repository_id: z.ZodString;
4819
+ request_digest: z.ZodString;
4820
+ observed_remote_hash: z.ZodString;
4821
+ source_head_sha: z.ZodString;
4822
+ requested_object_sha: z.ZodString;
4823
+ requested_object_type: z.ZodEnum<{
4824
+ commit: "commit";
4825
+ other: "other";
4826
+ missing: "missing";
4827
+ }>;
4828
+ cleanliness: z.ZodEnum<{
4829
+ unknown: "unknown";
4830
+ clean: "clean";
4831
+ dirty: "dirty";
4832
+ }>;
4833
+ observed_at: z.ZodString;
4834
+ }, z.core.$strip>>;
4835
+ readonly native_host_id: z.ZodString;
4836
+ readonly native_repository: z.ZodPreprocess<z.ZodObject<{
4837
+ path: z.ZodString;
4838
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4839
+ device: z.ZodString;
4840
+ inode: z.ZodString;
4841
+ }, z.core.$strip>>;
4842
+ git_directory_identity: z.ZodPreprocess<z.ZodObject<{
4843
+ device: z.ZodString;
4844
+ inode: z.ZodString;
4845
+ }, z.core.$strip>>;
4846
+ head_sha: z.ZodString;
4847
+ }, z.core.$strip>>;
4848
+ readonly native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4849
+ path: z.ZodString;
4850
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4851
+ device: z.ZodString;
4852
+ inode: z.ZodString;
4853
+ }, z.core.$strip>>;
4854
+ }, z.core.$strip>>;
4855
+ readonly path_mapping: z.ZodPreprocess<z.ZodObject<{
4856
+ mapping_digest: z.ZodString;
4857
+ schema_version: z.ZodLiteral<"1.0.0">;
4858
+ projection_id: z.ZodString;
4859
+ repository_id: z.ZodString;
4860
+ base_sha: z.ZodString;
4861
+ request_digest: z.ZodString;
4862
+ roots: z.ZodPreprocess<z.ZodObject<{
4863
+ windows_source: z.ZodPreprocess<z.ZodObject<{
4864
+ runtime_id: z.ZodString;
4865
+ path: z.ZodString;
4866
+ verification: z.ZodLiteral<"declared">;
4867
+ }, z.core.$strip>>;
4868
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
4869
+ runtime_id: z.ZodString;
4870
+ path: z.ZodString;
4871
+ verification: z.ZodLiteral<"git_observed">;
4872
+ observation_digest: z.ZodString;
4873
+ }, z.core.$strip>>;
4874
+ native_repository: z.ZodPreprocess<z.ZodObject<{
4875
+ runtime_id: z.ZodString;
4876
+ path: z.ZodString;
4877
+ verification: z.ZodLiteral<"directory_identity">;
4878
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4879
+ device: z.ZodString;
4880
+ inode: z.ZodString;
4881
+ }, z.core.$strip>>;
4882
+ }, z.core.$strip>>;
4883
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4884
+ runtime_id: z.ZodString;
4885
+ path: z.ZodString;
4886
+ verification: z.ZodLiteral<"directory_identity">;
4887
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4888
+ device: z.ZodString;
4889
+ inode: z.ZodString;
4890
+ }, z.core.$strip>>;
4891
+ }, z.core.$strip>>;
4892
+ }, z.core.$strip>>;
4893
+ }, z.core.$strip>>;
4894
+ readonly created_at: z.ZodString;
4895
+ };
4896
+ declare const NativeWslProjectionManifest_v1: z.ZodPreprocess<z.ZodObject<{
4897
+ manifest_digest: z.ZodString;
4898
+ schema_version: z.ZodLiteral<"1.0.0">;
4899
+ projection_id: z.ZodString;
4900
+ repository_id: z.ZodString;
4901
+ base_sha: z.ZodString;
4902
+ request_digest: z.ZodString;
4903
+ source_observation: z.ZodPreprocess<z.ZodObject<{
4904
+ observation_digest: z.ZodString;
4905
+ schema_version: z.ZodLiteral<"1.0.0">;
4906
+ repository_id: z.ZodString;
4907
+ request_digest: z.ZodString;
4908
+ observed_remote_hash: z.ZodString;
4909
+ source_head_sha: z.ZodString;
4910
+ requested_object_sha: z.ZodString;
4911
+ requested_object_type: z.ZodEnum<{
4912
+ commit: "commit";
4913
+ other: "other";
4914
+ missing: "missing";
4915
+ }>;
4916
+ cleanliness: z.ZodEnum<{
4917
+ unknown: "unknown";
4918
+ clean: "clean";
4919
+ dirty: "dirty";
4920
+ }>;
4921
+ observed_at: z.ZodString;
4922
+ }, z.core.$strip>>;
4923
+ native_host_id: z.ZodString;
4924
+ native_repository: z.ZodPreprocess<z.ZodObject<{
4925
+ path: z.ZodString;
4926
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4927
+ device: z.ZodString;
4928
+ inode: z.ZodString;
4929
+ }, z.core.$strip>>;
4930
+ git_directory_identity: z.ZodPreprocess<z.ZodObject<{
4931
+ device: z.ZodString;
4932
+ inode: z.ZodString;
4933
+ }, z.core.$strip>>;
4934
+ head_sha: z.ZodString;
4935
+ }, z.core.$strip>>;
4936
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4937
+ path: z.ZodString;
4938
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4939
+ device: z.ZodString;
4940
+ inode: z.ZodString;
4941
+ }, z.core.$strip>>;
4942
+ }, z.core.$strip>>;
4943
+ path_mapping: z.ZodPreprocess<z.ZodObject<{
4944
+ mapping_digest: z.ZodString;
4945
+ schema_version: z.ZodLiteral<"1.0.0">;
4946
+ projection_id: z.ZodString;
4947
+ repository_id: z.ZodString;
4948
+ base_sha: z.ZodString;
4949
+ request_digest: z.ZodString;
4950
+ roots: z.ZodPreprocess<z.ZodObject<{
4951
+ windows_source: z.ZodPreprocess<z.ZodObject<{
4952
+ runtime_id: z.ZodString;
4953
+ path: z.ZodString;
4954
+ verification: z.ZodLiteral<"declared">;
4955
+ }, z.core.$strip>>;
4956
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
4957
+ runtime_id: z.ZodString;
4958
+ path: z.ZodString;
4959
+ verification: z.ZodLiteral<"git_observed">;
4960
+ observation_digest: z.ZodString;
4961
+ }, z.core.$strip>>;
4962
+ native_repository: z.ZodPreprocess<z.ZodObject<{
4963
+ runtime_id: z.ZodString;
4964
+ path: z.ZodString;
4965
+ verification: z.ZodLiteral<"directory_identity">;
4966
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4967
+ device: z.ZodString;
4968
+ inode: z.ZodString;
4969
+ }, z.core.$strip>>;
4970
+ }, z.core.$strip>>;
4971
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
4972
+ runtime_id: z.ZodString;
4973
+ path: z.ZodString;
4974
+ verification: z.ZodLiteral<"directory_identity">;
4975
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
4976
+ device: z.ZodString;
4977
+ inode: z.ZodString;
4978
+ }, z.core.$strip>>;
4979
+ }, z.core.$strip>>;
4980
+ }, z.core.$strip>>;
4981
+ }, z.core.$strip>>;
4982
+ created_at: z.ZodString;
4983
+ }, z.core.$strip>>;
4984
+ type NativeWslProjectionManifest_v1 = z.infer<typeof NativeWslProjectionManifest_v1>;
4985
+ declare function createNativeWslProjectionManifest(input: z.input<z.ZodObject<typeof ProjectionManifestShape>>): NativeWslProjectionManifest_v1;
4986
+ declare const ExecutionPathMappingShape: {
4987
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
4988
+ readonly projection_id: z.ZodString;
4989
+ readonly repository_id: z.ZodString;
4990
+ readonly base_sha: z.ZodString;
4991
+ readonly native_host_id: z.ZodString;
4992
+ readonly request_digest: z.ZodString;
4993
+ readonly projection_digest: z.ZodString;
4994
+ readonly projection_mapping_digest: z.ZodString;
4995
+ readonly roots: z.ZodPreprocess<z.ZodObject<{
4996
+ windows_source: z.ZodPreprocess<z.ZodObject<{
4997
+ runtime_id: z.ZodString;
4998
+ path: z.ZodString;
4999
+ verification: z.ZodLiteral<"declared">;
5000
+ }, z.core.$strip>>;
5001
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
5002
+ runtime_id: z.ZodString;
5003
+ path: z.ZodString;
5004
+ verification: z.ZodLiteral<"git_observed">;
5005
+ observation_digest: z.ZodString;
5006
+ }, z.core.$strip>>;
5007
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5008
+ runtime_id: z.ZodString;
5009
+ path: z.ZodString;
5010
+ verification: z.ZodLiteral<"directory_identity">;
5011
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5012
+ device: z.ZodString;
5013
+ inode: z.ZodString;
5014
+ }, z.core.$strip>>;
5015
+ }, z.core.$strip>>;
5016
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5017
+ runtime_id: z.ZodString;
5018
+ path: z.ZodString;
5019
+ verification: z.ZodLiteral<"directory_identity">;
5020
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5021
+ device: z.ZodString;
5022
+ inode: z.ZodString;
5023
+ }, z.core.$strip>>;
5024
+ }, z.core.$strip>>;
5025
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5026
+ runtime_id: z.ZodString;
5027
+ path: z.ZodString;
5028
+ verification: z.ZodLiteral<"directory_identity">;
5029
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5030
+ device: z.ZodString;
5031
+ inode: z.ZodString;
5032
+ }, z.core.$strip>>;
5033
+ }, z.core.$strip>>;
5034
+ }, z.core.$strip>>;
5035
+ };
5036
+ declare const NativeWslExecutionPathMapping_v1: z.ZodPreprocess<z.ZodObject<{
5037
+ mapping_digest: z.ZodString;
5038
+ schema_version: z.ZodLiteral<"1.0.0">;
5039
+ projection_id: z.ZodString;
5040
+ repository_id: z.ZodString;
5041
+ base_sha: z.ZodString;
5042
+ native_host_id: z.ZodString;
5043
+ request_digest: z.ZodString;
5044
+ projection_digest: z.ZodString;
5045
+ projection_mapping_digest: z.ZodString;
5046
+ roots: z.ZodPreprocess<z.ZodObject<{
5047
+ windows_source: z.ZodPreprocess<z.ZodObject<{
5048
+ runtime_id: z.ZodString;
5049
+ path: z.ZodString;
5050
+ verification: z.ZodLiteral<"declared">;
5051
+ }, z.core.$strip>>;
5052
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
5053
+ runtime_id: z.ZodString;
5054
+ path: z.ZodString;
5055
+ verification: z.ZodLiteral<"git_observed">;
5056
+ observation_digest: z.ZodString;
5057
+ }, z.core.$strip>>;
5058
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5059
+ runtime_id: z.ZodString;
5060
+ path: z.ZodString;
5061
+ verification: z.ZodLiteral<"directory_identity">;
5062
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5063
+ device: z.ZodString;
5064
+ inode: z.ZodString;
5065
+ }, z.core.$strip>>;
5066
+ }, z.core.$strip>>;
5067
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5068
+ runtime_id: z.ZodString;
5069
+ path: z.ZodString;
5070
+ verification: z.ZodLiteral<"directory_identity">;
5071
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5072
+ device: z.ZodString;
5073
+ inode: z.ZodString;
5074
+ }, z.core.$strip>>;
5075
+ }, z.core.$strip>>;
5076
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5077
+ runtime_id: z.ZodString;
5078
+ path: z.ZodString;
5079
+ verification: z.ZodLiteral<"directory_identity">;
5080
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5081
+ device: z.ZodString;
5082
+ inode: z.ZodString;
5083
+ }, z.core.$strip>>;
5084
+ }, z.core.$strip>>;
5085
+ }, z.core.$strip>>;
5086
+ }, z.core.$strip>>;
5087
+ type NativeWslExecutionPathMapping_v1 = z.infer<typeof NativeWslExecutionPathMapping_v1>;
5088
+ declare function createNativeWslExecutionPathMapping(input: z.input<z.ZodObject<typeof ExecutionPathMappingShape>>): NativeWslExecutionPathMapping_v1;
5089
+ declare const NativeExecutionPathMappingShape: {
5090
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
5091
+ readonly mapping_kind: z.ZodLiteral<"native_linux">;
5092
+ readonly repository_id: z.ZodString;
5093
+ readonly base_sha: z.ZodString;
5094
+ readonly native_host_id: z.ZodString;
5095
+ readonly git_runtime: z.ZodString;
5096
+ readonly roots: z.ZodPreprocess<z.ZodObject<{
5097
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5098
+ runtime_id: z.ZodString;
5099
+ path: z.ZodString;
5100
+ verification: z.ZodLiteral<"directory_identity">;
5101
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5102
+ device: z.ZodString;
5103
+ inode: z.ZodString;
5104
+ }, z.core.$strip>>;
5105
+ }, z.core.$strip>>;
5106
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5107
+ runtime_id: z.ZodString;
5108
+ path: z.ZodString;
5109
+ verification: z.ZodLiteral<"directory_identity">;
5110
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5111
+ device: z.ZodString;
5112
+ inode: z.ZodString;
5113
+ }, z.core.$strip>>;
5114
+ }, z.core.$strip>>;
5115
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5116
+ runtime_id: z.ZodString;
5117
+ path: z.ZodString;
5118
+ verification: z.ZodLiteral<"directory_identity">;
5119
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5120
+ device: z.ZodString;
5121
+ inode: z.ZodString;
5122
+ }, z.core.$strip>>;
5123
+ }, z.core.$strip>>;
5124
+ }, z.core.$strip>>;
5125
+ };
5126
+ declare const NativeExecutionPathMapping_v1: z.ZodPreprocess<z.ZodObject<{
5127
+ mapping_digest: z.ZodString;
5128
+ schema_version: z.ZodLiteral<"1.0.0">;
5129
+ mapping_kind: z.ZodLiteral<"native_linux">;
5130
+ repository_id: z.ZodString;
5131
+ base_sha: z.ZodString;
5132
+ native_host_id: z.ZodString;
5133
+ git_runtime: z.ZodString;
5134
+ roots: z.ZodPreprocess<z.ZodObject<{
5135
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5136
+ runtime_id: z.ZodString;
5137
+ path: z.ZodString;
5138
+ verification: z.ZodLiteral<"directory_identity">;
5139
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5140
+ device: z.ZodString;
5141
+ inode: z.ZodString;
5142
+ }, z.core.$strip>>;
5143
+ }, z.core.$strip>>;
5144
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5145
+ runtime_id: z.ZodString;
5146
+ path: z.ZodString;
5147
+ verification: z.ZodLiteral<"directory_identity">;
5148
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5149
+ device: z.ZodString;
5150
+ inode: z.ZodString;
5151
+ }, z.core.$strip>>;
5152
+ }, z.core.$strip>>;
5153
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5154
+ runtime_id: z.ZodString;
5155
+ path: z.ZodString;
5156
+ verification: z.ZodLiteral<"directory_identity">;
5157
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5158
+ device: z.ZodString;
5159
+ inode: z.ZodString;
5160
+ }, z.core.$strip>>;
5161
+ }, z.core.$strip>>;
5162
+ }, z.core.$strip>>;
5163
+ }, z.core.$strip>>;
5164
+ type NativeExecutionPathMapping_v1 = z.infer<typeof NativeExecutionPathMapping_v1>;
5165
+ declare function createNativeExecutionPathMapping(input: z.input<z.ZodObject<typeof NativeExecutionPathMappingShape>>): NativeExecutionPathMapping_v1;
5166
+ declare const AgentExecutionPathMapping_v1: z.ZodUnion<readonly [z.ZodPreprocess<z.ZodObject<{
5167
+ mapping_digest: z.ZodString;
5168
+ schema_version: z.ZodLiteral<"1.0.0">;
5169
+ projection_id: z.ZodString;
5170
+ repository_id: z.ZodString;
5171
+ base_sha: z.ZodString;
5172
+ native_host_id: z.ZodString;
5173
+ request_digest: z.ZodString;
5174
+ projection_digest: z.ZodString;
5175
+ projection_mapping_digest: z.ZodString;
5176
+ roots: z.ZodPreprocess<z.ZodObject<{
5177
+ windows_source: z.ZodPreprocess<z.ZodObject<{
5178
+ runtime_id: z.ZodString;
5179
+ path: z.ZodString;
5180
+ verification: z.ZodLiteral<"declared">;
5181
+ }, z.core.$strip>>;
5182
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
5183
+ runtime_id: z.ZodString;
5184
+ path: z.ZodString;
5185
+ verification: z.ZodLiteral<"git_observed">;
5186
+ observation_digest: z.ZodString;
5187
+ }, z.core.$strip>>;
5188
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5189
+ runtime_id: z.ZodString;
5190
+ path: z.ZodString;
5191
+ verification: z.ZodLiteral<"directory_identity">;
5192
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5193
+ device: z.ZodString;
5194
+ inode: z.ZodString;
5195
+ }, z.core.$strip>>;
5196
+ }, z.core.$strip>>;
5197
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5198
+ runtime_id: z.ZodString;
5199
+ path: z.ZodString;
5200
+ verification: z.ZodLiteral<"directory_identity">;
5201
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5202
+ device: z.ZodString;
5203
+ inode: z.ZodString;
5204
+ }, z.core.$strip>>;
5205
+ }, z.core.$strip>>;
5206
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5207
+ runtime_id: z.ZodString;
5208
+ path: z.ZodString;
5209
+ verification: z.ZodLiteral<"directory_identity">;
5210
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5211
+ device: z.ZodString;
5212
+ inode: z.ZodString;
5213
+ }, z.core.$strip>>;
5214
+ }, z.core.$strip>>;
5215
+ }, z.core.$strip>>;
5216
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5217
+ mapping_digest: z.ZodString;
5218
+ schema_version: z.ZodLiteral<"1.0.0">;
5219
+ mapping_kind: z.ZodLiteral<"native_linux">;
5220
+ repository_id: z.ZodString;
5221
+ base_sha: z.ZodString;
5222
+ native_host_id: z.ZodString;
5223
+ git_runtime: z.ZodString;
5224
+ roots: z.ZodPreprocess<z.ZodObject<{
5225
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5226
+ runtime_id: z.ZodString;
5227
+ path: z.ZodString;
5228
+ verification: z.ZodLiteral<"directory_identity">;
5229
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5230
+ device: z.ZodString;
5231
+ inode: z.ZodString;
5232
+ }, z.core.$strip>>;
5233
+ }, z.core.$strip>>;
5234
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
5235
+ runtime_id: z.ZodString;
5236
+ path: z.ZodString;
5237
+ verification: z.ZodLiteral<"directory_identity">;
5238
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5239
+ device: z.ZodString;
5240
+ inode: z.ZodString;
5241
+ }, z.core.$strip>>;
5242
+ }, z.core.$strip>>;
5243
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
5244
+ runtime_id: z.ZodString;
5245
+ path: z.ZodString;
5246
+ verification: z.ZodLiteral<"directory_identity">;
5247
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5248
+ device: z.ZodString;
5249
+ inode: z.ZodString;
5250
+ }, z.core.$strip>>;
5251
+ }, z.core.$strip>>;
5252
+ }, z.core.$strip>>;
5253
+ }, z.core.$strip>>]>;
5254
+ type AgentExecutionPathMapping_v1 = z.infer<typeof AgentExecutionPathMapping_v1>;
5255
+ interface AgentExecutionPathBindingContext {
5256
+ repositoryId: string;
5257
+ baseSha: string;
5258
+ hostId: string;
5259
+ gitRuntime: string;
5260
+ repositoryRoot: string;
5261
+ allocationRoot: string;
5262
+ worktreePath: string;
5263
+ }
5264
+ type AgentExecutionPathBindingValidation = {
5265
+ valid: true;
5266
+ kind: "native_wsl_projection" | "native_linux";
5267
+ mappingDigest: string;
5268
+ } | {
5269
+ valid: false;
5270
+ reason: "mapping_count" | "repository_identity" | "base_identity" | "host_identity" | "runtime_identity" | "repository_path" | "allocation_path" | "worktree_path" | "directory_identity";
5271
+ };
5272
+ /** Pure identity validation shared by durable lifecycle consumers. */
5273
+ declare function validateAgentExecutionPathBinding(mappings: readonly AgentExecutionPathMapping_v1[], context: AgentExecutionPathBindingContext): AgentExecutionPathBindingValidation;
5274
+ declare const NativeWslProjectionOutcome: z.ZodEnum<{
5275
+ reused: "reused";
5276
+ prepared: "prepared";
5277
+ rejected: "rejected";
5278
+ quarantined: "quarantined";
5279
+ }>;
5280
+ type NativeWslProjectionOutcome = z.infer<typeof NativeWslProjectionOutcome>;
5281
+ declare const NativeWslProjectionReasonCode: z.ZodEnum<{
5282
+ operation_failed: "operation_failed";
5283
+ projection_prepared: "projection_prepared";
5284
+ projection_reused: "projection_reused";
5285
+ source_dirty: "source_dirty";
5286
+ source_head_mismatch: "source_head_mismatch";
5287
+ source_object_missing: "source_object_missing";
5288
+ source_object_not_commit: "source_object_not_commit";
5289
+ repository_identity_mismatch: "repository_identity_mismatch";
5290
+ source_replaced: "source_replaced";
5291
+ native_state_stale: "native_state_stale";
5292
+ native_state_conflict: "native_state_conflict";
5293
+ staging_interrupted: "staging_interrupted";
5294
+ concurrent_request: "concurrent_request";
5295
+ cleanup_failed_quarantined: "cleanup_failed_quarantined";
5296
+ unsupported_filesystem: "unsupported_filesystem";
5297
+ containment_unavailable: "containment_unavailable";
5298
+ }>;
5299
+ type NativeWslProjectionReasonCode = z.infer<typeof NativeWslProjectionReasonCode>;
5300
+ declare const ProjectionReceiptShape: {
5301
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
5302
+ readonly request_id: z.ZodString;
5303
+ readonly request_digest: z.ZodString;
5304
+ readonly outcome: z.ZodEnum<{
5305
+ reused: "reused";
5306
+ prepared: "prepared";
5307
+ rejected: "rejected";
5308
+ quarantined: "quarantined";
5309
+ }>;
5310
+ readonly reason_code: z.ZodEnum<{
5311
+ operation_failed: "operation_failed";
5312
+ projection_prepared: "projection_prepared";
5313
+ projection_reused: "projection_reused";
5314
+ source_dirty: "source_dirty";
5315
+ source_head_mismatch: "source_head_mismatch";
5316
+ source_object_missing: "source_object_missing";
5317
+ source_object_not_commit: "source_object_not_commit";
5318
+ repository_identity_mismatch: "repository_identity_mismatch";
5319
+ source_replaced: "source_replaced";
5320
+ native_state_stale: "native_state_stale";
5321
+ native_state_conflict: "native_state_conflict";
5322
+ staging_interrupted: "staging_interrupted";
5323
+ concurrent_request: "concurrent_request";
5324
+ cleanup_failed_quarantined: "cleanup_failed_quarantined";
5325
+ unsupported_filesystem: "unsupported_filesystem";
5326
+ containment_unavailable: "containment_unavailable";
5327
+ }>;
5328
+ readonly source_observation_digest: z.ZodOptional<z.ZodString>;
5329
+ readonly projection_digest: z.ZodOptional<z.ZodString>;
5330
+ readonly mapping_digest: z.ZodOptional<z.ZodString>;
5331
+ readonly completed_at: z.ZodString;
5332
+ };
5333
+ declare const NativeWslProjectionReceipt_v1: z.ZodPreprocess<z.ZodObject<{
5334
+ receipt_digest: z.ZodString;
5335
+ schema_version: z.ZodLiteral<"1.0.0">;
5336
+ request_id: z.ZodString;
5337
+ request_digest: z.ZodString;
5338
+ outcome: z.ZodEnum<{
5339
+ reused: "reused";
5340
+ prepared: "prepared";
5341
+ rejected: "rejected";
5342
+ quarantined: "quarantined";
5343
+ }>;
5344
+ reason_code: z.ZodEnum<{
5345
+ operation_failed: "operation_failed";
5346
+ projection_prepared: "projection_prepared";
5347
+ projection_reused: "projection_reused";
5348
+ source_dirty: "source_dirty";
5349
+ source_head_mismatch: "source_head_mismatch";
5350
+ source_object_missing: "source_object_missing";
5351
+ source_object_not_commit: "source_object_not_commit";
5352
+ repository_identity_mismatch: "repository_identity_mismatch";
5353
+ source_replaced: "source_replaced";
5354
+ native_state_stale: "native_state_stale";
5355
+ native_state_conflict: "native_state_conflict";
5356
+ staging_interrupted: "staging_interrupted";
5357
+ concurrent_request: "concurrent_request";
5358
+ cleanup_failed_quarantined: "cleanup_failed_quarantined";
5359
+ unsupported_filesystem: "unsupported_filesystem";
5360
+ containment_unavailable: "containment_unavailable";
5361
+ }>;
5362
+ source_observation_digest: z.ZodOptional<z.ZodString>;
5363
+ projection_digest: z.ZodOptional<z.ZodString>;
5364
+ mapping_digest: z.ZodOptional<z.ZodString>;
5365
+ completed_at: z.ZodString;
5366
+ }, z.core.$strip>>;
5367
+ type NativeWslProjectionReceipt_v1 = z.infer<typeof NativeWslProjectionReceipt_v1>;
5368
+ declare function createNativeWslProjectionReceipt(input: z.input<z.ZodObject<typeof ProjectionReceiptShape>>): NativeWslProjectionReceipt_v1;
5369
+ declare const ProjectionSelectionShape: {
5370
+ readonly schema_version: z.ZodLiteral<"1.0.0">;
5371
+ readonly manifest_digest: z.ZodString;
5372
+ readonly receipt: z.ZodPreprocess<z.ZodObject<{
5373
+ receipt_digest: z.ZodString;
5374
+ schema_version: z.ZodLiteral<"1.0.0">;
5375
+ request_id: z.ZodString;
5376
+ request_digest: z.ZodString;
5377
+ outcome: z.ZodEnum<{
5378
+ reused: "reused";
5379
+ prepared: "prepared";
5380
+ rejected: "rejected";
5381
+ quarantined: "quarantined";
5382
+ }>;
5383
+ reason_code: z.ZodEnum<{
5384
+ operation_failed: "operation_failed";
5385
+ projection_prepared: "projection_prepared";
5386
+ projection_reused: "projection_reused";
5387
+ source_dirty: "source_dirty";
5388
+ source_head_mismatch: "source_head_mismatch";
5389
+ source_object_missing: "source_object_missing";
5390
+ source_object_not_commit: "source_object_not_commit";
5391
+ repository_identity_mismatch: "repository_identity_mismatch";
5392
+ source_replaced: "source_replaced";
5393
+ native_state_stale: "native_state_stale";
5394
+ native_state_conflict: "native_state_conflict";
5395
+ staging_interrupted: "staging_interrupted";
5396
+ concurrent_request: "concurrent_request";
5397
+ cleanup_failed_quarantined: "cleanup_failed_quarantined";
5398
+ unsupported_filesystem: "unsupported_filesystem";
5399
+ containment_unavailable: "containment_unavailable";
5400
+ }>;
5401
+ source_observation_digest: z.ZodOptional<z.ZodString>;
5402
+ projection_digest: z.ZodOptional<z.ZodString>;
5403
+ mapping_digest: z.ZodOptional<z.ZodString>;
5404
+ completed_at: z.ZodString;
5405
+ }, z.core.$strip>>;
5406
+ readonly source_observation: z.ZodPreprocess<z.ZodObject<{
5407
+ observation_digest: z.ZodString;
5408
+ schema_version: z.ZodLiteral<"1.0.0">;
5409
+ repository_id: z.ZodString;
5410
+ request_digest: z.ZodString;
5411
+ observed_remote_hash: z.ZodString;
5412
+ source_head_sha: z.ZodString;
5413
+ requested_object_sha: z.ZodString;
5414
+ requested_object_type: z.ZodEnum<{
5415
+ commit: "commit";
5416
+ other: "other";
5417
+ missing: "missing";
5418
+ }>;
5419
+ cleanliness: z.ZodEnum<{
5420
+ unknown: "unknown";
5421
+ clean: "clean";
5422
+ dirty: "dirty";
5423
+ }>;
5424
+ observed_at: z.ZodString;
5425
+ }, z.core.$strip>>;
5426
+ };
5427
+ /**
5428
+ * Engine-authored current selection authority. Its public digest is only an
5429
+ * integrity identifier; provenance comes from the identity-anchored engine
5430
+ * record that launch preparation resolves.
5431
+ */
5432
+ declare const NativeWslProjectionSelection_v1: z.ZodPreprocess<z.ZodObject<{
5433
+ selection_digest: z.ZodString;
5434
+ schema_version: z.ZodLiteral<"1.0.0">;
5435
+ manifest_digest: z.ZodString;
5436
+ receipt: z.ZodPreprocess<z.ZodObject<{
5437
+ receipt_digest: z.ZodString;
5438
+ schema_version: z.ZodLiteral<"1.0.0">;
5439
+ request_id: z.ZodString;
5440
+ request_digest: z.ZodString;
5441
+ outcome: z.ZodEnum<{
5442
+ reused: "reused";
5443
+ prepared: "prepared";
5444
+ rejected: "rejected";
5445
+ quarantined: "quarantined";
5446
+ }>;
5447
+ reason_code: z.ZodEnum<{
5448
+ operation_failed: "operation_failed";
5449
+ projection_prepared: "projection_prepared";
5450
+ projection_reused: "projection_reused";
5451
+ source_dirty: "source_dirty";
5452
+ source_head_mismatch: "source_head_mismatch";
5453
+ source_object_missing: "source_object_missing";
5454
+ source_object_not_commit: "source_object_not_commit";
5455
+ repository_identity_mismatch: "repository_identity_mismatch";
5456
+ source_replaced: "source_replaced";
5457
+ native_state_stale: "native_state_stale";
5458
+ native_state_conflict: "native_state_conflict";
5459
+ staging_interrupted: "staging_interrupted";
5460
+ concurrent_request: "concurrent_request";
5461
+ cleanup_failed_quarantined: "cleanup_failed_quarantined";
5462
+ unsupported_filesystem: "unsupported_filesystem";
5463
+ containment_unavailable: "containment_unavailable";
5464
+ }>;
5465
+ source_observation_digest: z.ZodOptional<z.ZodString>;
5466
+ projection_digest: z.ZodOptional<z.ZodString>;
5467
+ mapping_digest: z.ZodOptional<z.ZodString>;
5468
+ completed_at: z.ZodString;
5469
+ }, z.core.$strip>>;
5470
+ source_observation: z.ZodPreprocess<z.ZodObject<{
5471
+ observation_digest: z.ZodString;
5472
+ schema_version: z.ZodLiteral<"1.0.0">;
5473
+ repository_id: z.ZodString;
5474
+ request_digest: z.ZodString;
5475
+ observed_remote_hash: z.ZodString;
5476
+ source_head_sha: z.ZodString;
5477
+ requested_object_sha: z.ZodString;
5478
+ requested_object_type: z.ZodEnum<{
5479
+ commit: "commit";
5480
+ other: "other";
5481
+ missing: "missing";
5482
+ }>;
5483
+ cleanliness: z.ZodEnum<{
5484
+ unknown: "unknown";
5485
+ clean: "clean";
5486
+ dirty: "dirty";
5487
+ }>;
5488
+ observed_at: z.ZodString;
5489
+ }, z.core.$strip>>;
5490
+ }, z.core.$strip>>;
5491
+ type NativeWslProjectionSelection_v1 = z.infer<typeof NativeWslProjectionSelection_v1>;
5492
+ declare function createNativeWslProjectionSelection(input: z.input<z.ZodObject<typeof ProjectionSelectionShape>>): NativeWslProjectionSelection_v1;
5493
+ declare const NativeWslProjectionInventoryState: z.ZodEnum<{
5494
+ ready: "ready";
5495
+ invalid: "invalid";
5496
+ quarantined: "quarantined";
5497
+ absent: "absent";
5498
+ staging: "staging";
5499
+ interrupted: "interrupted";
5500
+ conflicting: "conflicting";
5501
+ }>;
5502
+ type NativeWslProjectionInventoryState = z.infer<typeof NativeWslProjectionInventoryState>;
5503
+ declare const NativeWslProjectionPlanAction: z.ZodEnum<{
5504
+ prepare_staging: "prepare_staging";
5505
+ reuse_ready: "reuse_ready";
5506
+ wait_for_same_request: "wait_for_same_request";
5507
+ quarantine_then_prepare: "quarantine_then_prepare";
5508
+ cleanup_quarantine_then_prepare: "cleanup_quarantine_then_prepare";
5509
+ refuse_conflict: "refuse_conflict";
5510
+ }>;
5511
+ type NativeWslProjectionPlanAction = z.infer<typeof NativeWslProjectionPlanAction>;
5512
+ declare const NativeWslProjectionPlanReason: z.ZodEnum<{
5513
+ projection_absent: "projection_absent";
5514
+ projection_exact_match: "projection_exact_match";
5515
+ projection_staging_same_request: "projection_staging_same_request";
5516
+ projection_staging_conflict: "projection_staging_conflict";
5517
+ projection_stale: "projection_stale";
5518
+ projection_quarantined: "projection_quarantined";
5519
+ projection_invalid: "projection_invalid";
5520
+ projection_interrupted: "projection_interrupted";
5521
+ projection_conflicting: "projection_conflicting";
5522
+ }>;
5523
+ type NativeWslProjectionPlanReason = z.infer<typeof NativeWslProjectionPlanReason>;
5524
+ declare function nativeWslProjectionId(requestDigest: string): string;
5525
+
5526
+ declare const NativeWslProjectionInventoryObservation_v1: z.ZodUnion<readonly [z.ZodPreprocess<z.ZodObject<{
5527
+ state: z.ZodLiteral<"absent">;
5528
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5529
+ state: z.ZodLiteral<"ready">;
5530
+ manifest: z.ZodPreprocess<z.ZodObject<{
5531
+ manifest_digest: z.ZodString;
5532
+ schema_version: z.ZodLiteral<"1.0.0">;
5533
+ projection_id: z.ZodString;
5534
+ repository_id: z.ZodString;
5535
+ base_sha: z.ZodString;
5536
+ request_digest: z.ZodString;
5537
+ source_observation: z.ZodPreprocess<z.ZodObject<{
5538
+ observation_digest: z.ZodString;
5539
+ schema_version: z.ZodLiteral<"1.0.0">;
5540
+ repository_id: z.ZodString;
5541
+ request_digest: z.ZodString;
5542
+ observed_remote_hash: z.ZodString;
5543
+ source_head_sha: z.ZodString;
5544
+ requested_object_sha: z.ZodString;
5545
+ requested_object_type: z.ZodEnum<{
5546
+ commit: "commit";
5547
+ other: "other";
5548
+ missing: "missing";
5549
+ }>;
5550
+ cleanliness: z.ZodEnum<{
5551
+ unknown: "unknown";
5552
+ clean: "clean";
5553
+ dirty: "dirty";
5554
+ }>;
5555
+ observed_at: z.ZodString;
5556
+ }, z.core.$strip>>;
5557
+ native_host_id: z.ZodString;
5558
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5559
+ path: z.ZodString;
5560
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5561
+ device: z.ZodString;
5562
+ inode: z.ZodString;
5563
+ }, z.core.$strip>>;
5564
+ git_directory_identity: z.ZodPreprocess<z.ZodObject<{
5565
+ device: z.ZodString;
5566
+ inode: z.ZodString;
5567
+ }, z.core.$strip>>;
5568
+ head_sha: z.ZodString;
5569
+ }, z.core.$strip>>;
5570
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
5571
+ path: z.ZodString;
5572
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5573
+ device: z.ZodString;
5574
+ inode: z.ZodString;
5575
+ }, z.core.$strip>>;
5576
+ }, z.core.$strip>>;
5577
+ path_mapping: z.ZodPreprocess<z.ZodObject<{
5578
+ mapping_digest: z.ZodString;
5579
+ schema_version: z.ZodLiteral<"1.0.0">;
5580
+ projection_id: z.ZodString;
5581
+ repository_id: z.ZodString;
5582
+ base_sha: z.ZodString;
5583
+ request_digest: z.ZodString;
5584
+ roots: z.ZodPreprocess<z.ZodObject<{
5585
+ windows_source: z.ZodPreprocess<z.ZodObject<{
5586
+ runtime_id: z.ZodString;
5587
+ path: z.ZodString;
5588
+ verification: z.ZodLiteral<"declared">;
5589
+ }, z.core.$strip>>;
5590
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
5591
+ runtime_id: z.ZodString;
5592
+ path: z.ZodString;
5593
+ verification: z.ZodLiteral<"git_observed">;
5594
+ observation_digest: z.ZodString;
5595
+ }, z.core.$strip>>;
5596
+ native_repository: z.ZodPreprocess<z.ZodObject<{
5597
+ runtime_id: z.ZodString;
5598
+ path: z.ZodString;
5599
+ verification: z.ZodLiteral<"directory_identity">;
5600
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5601
+ device: z.ZodString;
5602
+ inode: z.ZodString;
5603
+ }, z.core.$strip>>;
5604
+ }, z.core.$strip>>;
5605
+ native_worktree_root: z.ZodPreprocess<z.ZodObject<{
5606
+ runtime_id: z.ZodString;
5607
+ path: z.ZodString;
5608
+ verification: z.ZodLiteral<"directory_identity">;
5609
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
5610
+ device: z.ZodString;
5611
+ inode: z.ZodString;
5612
+ }, z.core.$strip>>;
5613
+ }, z.core.$strip>>;
5614
+ }, z.core.$strip>>;
5615
+ }, z.core.$strip>>;
5616
+ created_at: z.ZodString;
5617
+ }, z.core.$strip>>;
5618
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5619
+ state: z.ZodLiteral<"staging">;
5620
+ projection_id: z.ZodString;
5621
+ request_digest: z.ZodString;
5622
+ started_at: z.ZodString;
5623
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5624
+ state: z.ZodLiteral<"quarantined">;
5625
+ projection_id: z.ZodOptional<z.ZodString>;
5626
+ request_digest: z.ZodOptional<z.ZodString>;
5627
+ quarantined_at: z.ZodString;
5628
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5629
+ state: z.ZodLiteral<"invalid">;
5630
+ projection_id: z.ZodOptional<z.ZodString>;
5631
+ request_digest: z.ZodOptional<z.ZodString>;
5632
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5633
+ state: z.ZodLiteral<"interrupted">;
5634
+ projection_id: z.ZodString;
5635
+ request_digest: z.ZodString;
5636
+ started_at: z.ZodString;
5637
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
5638
+ state: z.ZodLiteral<"conflicting">;
5639
+ projection_id: z.ZodString;
5640
+ request_digest: z.ZodOptional<z.ZodString>;
5641
+ observed_at: z.ZodString;
5642
+ }, z.core.$strip>>]>;
5643
+ type NativeWslProjectionInventoryObservation_v1 = z.infer<typeof NativeWslProjectionInventoryObservation_v1>;
5644
+ declare const NativeWslProjectionNextAction: z.ZodEnum<{
5645
+ prepare_projection_staging: "prepare_projection_staging";
5646
+ reuse_projection: "reuse_projection";
5647
+ retry_after_active_request: "retry_after_active_request";
5648
+ quarantine_observed_projection: "quarantine_observed_projection";
5649
+ cleanup_quarantined_projection: "cleanup_quarantined_projection";
5650
+ stop_and_report_conflict: "stop_and_report_conflict";
5651
+ }>;
5652
+ type NativeWslProjectionNextAction = z.infer<typeof NativeWslProjectionNextAction>;
5653
+ declare const NativeWslProjectionPlan_v1: z.ZodPreprocess<z.ZodObject<{
5654
+ schema_version: z.ZodLiteral<"1.0.0">;
5655
+ projection_id: z.ZodString;
5656
+ request_digest: z.ZodString;
5657
+ inventory_state: z.ZodEnum<{
5658
+ ready: "ready";
5659
+ invalid: "invalid";
5660
+ quarantined: "quarantined";
5661
+ absent: "absent";
5662
+ staging: "staging";
5663
+ interrupted: "interrupted";
5664
+ conflicting: "conflicting";
5665
+ }>;
5666
+ action: z.ZodEnum<{
5667
+ prepare_staging: "prepare_staging";
5668
+ reuse_ready: "reuse_ready";
5669
+ wait_for_same_request: "wait_for_same_request";
5670
+ quarantine_then_prepare: "quarantine_then_prepare";
5671
+ cleanup_quarantine_then_prepare: "cleanup_quarantine_then_prepare";
5672
+ refuse_conflict: "refuse_conflict";
5673
+ }>;
5674
+ reason: z.ZodEnum<{
5675
+ projection_absent: "projection_absent";
5676
+ projection_exact_match: "projection_exact_match";
5677
+ projection_staging_same_request: "projection_staging_same_request";
5678
+ projection_staging_conflict: "projection_staging_conflict";
5679
+ projection_stale: "projection_stale";
5680
+ projection_quarantined: "projection_quarantined";
5681
+ projection_invalid: "projection_invalid";
5682
+ projection_interrupted: "projection_interrupted";
5683
+ projection_conflicting: "projection_conflicting";
5684
+ }>;
5685
+ selection_allowed: z.ZodBoolean;
5686
+ mutation_required: z.ZodBoolean;
5687
+ selected_manifest_digest: z.ZodOptional<z.ZodString>;
5688
+ next_actions: z.ZodArray<z.ZodEnum<{
5689
+ prepare_projection_staging: "prepare_projection_staging";
5690
+ reuse_projection: "reuse_projection";
5691
+ retry_after_active_request: "retry_after_active_request";
5692
+ quarantine_observed_projection: "quarantine_observed_projection";
5693
+ cleanup_quarantined_projection: "cleanup_quarantined_projection";
5694
+ stop_and_report_conflict: "stop_and_report_conflict";
5695
+ }>>;
5696
+ }, z.core.$strip>>;
5697
+ type NativeWslProjectionPlan_v1 = z.infer<typeof NativeWslProjectionPlan_v1>;
5698
+ declare function planNativeWslProjection(requestInput: NativeWslProjectionRequest_v1, observationInput: NativeWslProjectionInventoryObservation_v1): NativeWslProjectionPlan_v1;
5699
+
5700
+ type CommandAction = "source_root" | "source_remote" | "source_head" | "source_object_exists" | "source_object_type" | "source_status" | "clone_nonlocal" | "fetch_exact_object" | "verify_projected_object" | "checkout_exact_object" | "remove_projection_remote" | "list_projection_branches" | "remove_projection_branch" | "verify_projection_head" | "verify_projection_status";
5701
+ interface NativeWslProjectionCommandEvidence {
5702
+ action: CommandAction;
5703
+ argvHash: string;
5704
+ outcome: "passed" | "failed";
5705
+ exitCode: number | null;
5706
+ stdoutHash: string;
5707
+ stderrHash: string;
5708
+ durationMs: number;
5709
+ }
5710
+ interface NativeWslProjectionSuccess {
5711
+ ok: true;
5712
+ outcome: "prepared" | "reused";
5713
+ manifest: NativeWslProjectionManifest_v1;
5714
+ receipt: NativeWslProjectionReceipt_v1;
5715
+ sourceObservation: NativeWslSourceObservation_v1;
5716
+ selection: NativeWslProjectionSelection_v1;
5717
+ broker: GitWorktreeBroker;
5718
+ commandEvidence: NativeWslProjectionCommandEvidence[];
5719
+ recoveredReason?: NativeWslProjectionReasonCode;
5720
+ }
5721
+ interface NativeWslProjectionFailure {
5722
+ ok: false;
5723
+ outcome: "rejected" | "quarantined";
5724
+ reasonCode: Exclude<NativeWslProjectionReasonCode, "projection_prepared" | "projection_reused">;
5725
+ receipt: NativeWslProjectionReceipt_v1;
5726
+ sourceObservation?: NativeWslSourceObservation_v1;
5727
+ commandEvidence: NativeWslProjectionCommandEvidence[];
5728
+ }
5729
+ type NativeWslProjectionResult = NativeWslProjectionSuccess | NativeWslProjectionFailure;
5730
+ type NativeWslProjectionLifecycleState = "absent" | "preparing" | "ready" | "ready_unselected" | "stale" | "invalid" | "conflicting";
5731
+ interface NativeWslProjectionQuarantineSummary {
5732
+ count: number;
5733
+ entryDigests: string[];
5734
+ truncated: boolean;
5735
+ }
5736
+ interface NativeWslProjectionInspection {
5737
+ state: NativeWslProjectionLifecycleState;
5738
+ projectionId: string;
5739
+ requestDigest: string;
5740
+ manifestDigest?: string;
5741
+ selectionDigest?: string;
5742
+ mappingDigest?: string;
5743
+ sourceObservationDigest?: string;
5744
+ activeWorktreeCount: number;
5745
+ quarantine: {
5746
+ repository: NativeWslProjectionQuarantineSummary;
5747
+ allocation: NativeWslProjectionQuarantineSummary;
5748
+ };
5749
+ commandEvidence: NativeWslProjectionCommandEvidence[];
5750
+ }
5751
+ type NativeWslProjectionCleanupReason = "cleanup_complete" | "projection_absent" | "active_worktrees" | "concurrent_request" | "state_quarantined" | "cleanup_failed";
5752
+ interface NativeWslProjectionCleanupResult {
5753
+ outcome: "cleaned" | "absent" | "refused" | "quarantined" | "failed";
5754
+ reasonCode: NativeWslProjectionCleanupReason;
5755
+ projectionId: string;
5756
+ requestDigest: string;
5757
+ removed: {
5758
+ repository: boolean;
5759
+ allocation: boolean;
5760
+ quarantineEntries: number;
5761
+ };
5762
+ remainingQuarantine: number;
5763
+ }
5764
+
5765
+ interface WorkerSessionStatusResult {
5766
+ workerSession: WorkerSessionRecord | null;
5767
+ adapter: BoundedWorkerAdapterStatus | null;
5768
+ pathMapping: null | {
5769
+ state: "bound" | "invalid";
5770
+ kind?: "native_wsl_projection" | "native_linux";
5771
+ mappingDigest?: string;
5772
+ };
5773
+ }
5774
+ interface BoundedWorkerAdapterStatus extends WorkerAdapterBindingRecord {
5775
+ enforcement: "enforced" | "trust_gap";
5776
+ }
5777
+
5778
+ interface AttemptLaunchBundleSuccess {
5779
+ ok: true;
5780
+ outcome: "launch_bundle_ready";
5781
+ lifecycle: AgentWorkLifecycleSuccess;
5782
+ packet: AgentTaskPacket_v1;
5783
+ envelope: ExecutionEnvelope_v1;
5784
+ }
5785
+ type AttemptLaunchBundleResult = AttemptLaunchBundleSuccess | AgentWorkLifecycleFailure;
5786
+
5787
+ declare const AttemptStartRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
5788
+ runtime: z.ZodObject<{
5789
+ databasePath: z.ZodString;
5790
+ repositoryId: z.ZodString;
5791
+ repositoryRoot: z.ZodString;
5792
+ worktreeRoot: z.ZodString;
5793
+ hostId: z.ZodString;
5794
+ gitRuntime: z.ZodString;
5795
+ pathComparison: z.ZodEnum<{
5796
+ "case-sensitive": "case-sensitive";
5797
+ "case-insensitive": "case-insensitive";
5798
+ }>;
5799
+ gitExecutable: z.ZodOptional<z.ZodString>;
5800
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
5801
+ maxDirtyPaths: z.ZodOptional<z.ZodNumber>;
5802
+ }, z.core.$strict>;
5803
+ attempt: z.ZodObject<{
5804
+ runId: z.ZodString;
5805
+ initialRunState: z.ZodObject<{
5806
+ runId: z.ZodString;
5807
+ mode: z.ZodString;
5808
+ procedure: z.ZodString;
5809
+ repo: z.ZodString;
5810
+ task: z.ZodOptional<z.ZodString>;
5811
+ state: z.ZodString;
5812
+ createdAt: z.ZodString;
5813
+ updatedAt: z.ZodString;
5814
+ completedAt: z.ZodOptional<z.ZodString>;
5815
+ completedSteps: z.ZodArray<z.ZodString>;
5816
+ currentStep: z.ZodNullable<z.ZodString>;
5817
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5818
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5819
+ persona: z.ZodOptional<z.ZodObject<{
5820
+ mode: z.ZodString;
5821
+ forbidden: z.ZodArray<z.ZodString>;
5822
+ completionGates: z.ZodArray<z.ZodString>;
5823
+ decisionStyle: z.ZodOptional<z.ZodObject<{
5824
+ preferSmallDiffs: z.ZodOptional<z.ZodBoolean>;
5825
+ requireRationaleForSkips: z.ZodOptional<z.ZodBoolean>;
5826
+ escalateSecurityFindings: z.ZodOptional<z.ZodBoolean>;
5827
+ }, z.core.$strip>>;
5828
+ outputFormat: z.ZodOptional<z.ZodObject<{
5829
+ severityLevels: z.ZodOptional<z.ZodArray<z.ZodString>>;
5830
+ requireSeverityOnFindings: z.ZodOptional<z.ZodBoolean>;
5831
+ }, z.core.$strip>>;
5832
+ }, z.core.$strip>>;
5833
+ }, z.core.$strip>;
5834
+ controller: z.ZodObject<{
5835
+ controllerId: z.ZodString;
5836
+ leaseId: z.ZodString;
5837
+ now: z.ZodString;
5838
+ ttlMs: z.ZodNumber;
5839
+ }, z.core.$strict>;
5840
+ attempt: z.ZodObject<{
5841
+ attemptId: z.ZodString;
5842
+ workItemId: z.ZodString;
5843
+ workItemRevision: z.ZodNumber;
5844
+ packetId: z.ZodString;
5845
+ packetHash: z.ZodString;
5846
+ baseSha: z.ZodString;
5847
+ }, z.core.$strict>;
5848
+ workspace: z.ZodObject<{
5849
+ workspaceLeaseId: z.ZodString;
5850
+ repositoryId: z.ZodString;
5851
+ hostId: z.ZodString;
5852
+ gitRuntime: z.ZodString;
5853
+ projectRoot: z.ZodString;
5854
+ branch: z.ZodString;
5855
+ worktreePath: z.ZodString;
5856
+ ttlMs: z.ZodNumber;
5857
+ }, z.core.$strict>;
5858
+ mutations: z.ZodObject<{
5859
+ createAttempt: z.ZodObject<{
5860
+ mutationId: z.ZodString;
5861
+ now: z.ZodString;
5862
+ }, z.core.$strict>;
5863
+ reserveWorkspace: z.ZodObject<{
5864
+ mutationId: z.ZodString;
5865
+ now: z.ZodString;
5866
+ }, z.core.$strict>;
5867
+ activateWorkspace: z.ZodObject<{
5868
+ mutationId: z.ZodString;
5869
+ now: z.ZodString;
5870
+ }, z.core.$strict>;
5871
+ resumeWorkspace: z.ZodObject<{
5872
+ mutationId: z.ZodString;
5873
+ now: z.ZodString;
5874
+ }, z.core.$strict>;
5875
+ quarantineWorkspace: z.ZodObject<{
5876
+ mutationId: z.ZodString;
4266
5877
  now: z.ZodString;
4267
5878
  }, z.core.$strict>;
4268
5879
  authorizeLaunch: z.ZodObject<{
@@ -4373,17 +5984,20 @@ declare const AttemptPrepareRequestJsonSchema: z.core.ZodStandardJSONSchemaPaylo
4373
5984
  executionRoot: z.ZodString;
4374
5985
  exposedEnvironmentKeys: z.ZodArray<z.ZodString>;
4375
5986
  createdAt: z.ZodString;
5987
+ projection: z.ZodOptional<z.ZodObject<{
5988
+ selectionDigest: z.ZodString;
5989
+ }, z.core.$strict>>;
4376
5990
  }, z.core.$strict>;
4377
5991
  attempt: z.ZodObject<{
5992
+ broker: z.ZodOptional<z.ZodObject<{
5993
+ timeoutMs: z.ZodNumber;
5994
+ }, z.core.$strict>>;
4378
5995
  controller: z.ZodObject<{
4379
5996
  controllerId: z.ZodString;
4380
5997
  leaseId: z.ZodString;
4381
5998
  now: z.ZodString;
4382
5999
  ttlMs: z.ZodNumber;
4383
6000
  }, z.core.$strict>;
4384
- broker: z.ZodOptional<z.ZodObject<{
4385
- timeoutMs: z.ZodNumber;
4386
- }, z.core.$strict>>;
4387
6001
  initialRunState: z.ZodObject<{
4388
6002
  runId: z.ZodString;
4389
6003
  mode: z.ZodString;
@@ -4482,6 +6096,308 @@ interface AttemptPreparationHandler {
4482
6096
  /** Top-level lifecycle seam. Every request owns and closes its SQLite connection. */
4483
6097
  declare function createAttemptLifecycleHandlers(): AttemptLifecycleHandlers & AttemptPreparationHandler;
4484
6098
 
6099
+ declare const NativeWslProjectionPrepareRequestSchema: z.ZodObject<{
6100
+ request: z.ZodPreprocess<z.ZodObject<{
6101
+ request_digest: z.ZodString;
6102
+ schema_version: z.ZodLiteral<"1.0.0">;
6103
+ request_id: z.ZodString;
6104
+ repository: z.ZodPreprocess<z.ZodObject<{
6105
+ id: z.ZodString;
6106
+ expected_remote_hash: z.ZodString;
6107
+ }, z.core.$strip>>;
6108
+ source: z.ZodPreprocess<z.ZodObject<{
6109
+ windows_runtime: z.ZodString;
6110
+ windows_repository_path: z.ZodString;
6111
+ wsl_distribution: z.ZodString;
6112
+ wsl_git_runtime: z.ZodString;
6113
+ wsl_repository_path: z.ZodString;
6114
+ head_policy: z.ZodEnum<{
6115
+ observe: "observe";
6116
+ require_base: "require_base";
6117
+ }>;
6118
+ dirty_policy: z.ZodEnum<{
6119
+ require_clean: "require_clean";
6120
+ committed_base_only: "committed_base_only";
6121
+ }>;
6122
+ }, z.core.$strip>>;
6123
+ native: z.ZodPreprocess<z.ZodObject<{
6124
+ host_id: z.ZodString;
6125
+ git_runtime: z.ZodString;
6126
+ projection_root: z.ZodString;
6127
+ worktree_root: z.ZodString;
6128
+ }, z.core.$strip>>;
6129
+ base_sha: z.ZodString;
6130
+ }, z.core.$strip>>;
6131
+ mutation: z.ZodObject<{
6132
+ authorized: z.ZodLiteral<true>;
6133
+ reason: z.ZodOptional<z.ZodString>;
6134
+ }, z.core.$strict>;
6135
+ }, z.core.$strict>;
6136
+ declare const NativeWslProjectionStatusRequestSchema: z.ZodObject<{
6137
+ request: z.ZodPreprocess<z.ZodObject<{
6138
+ request_digest: z.ZodString;
6139
+ schema_version: z.ZodLiteral<"1.0.0">;
6140
+ request_id: z.ZodString;
6141
+ repository: z.ZodPreprocess<z.ZodObject<{
6142
+ id: z.ZodString;
6143
+ expected_remote_hash: z.ZodString;
6144
+ }, z.core.$strip>>;
6145
+ source: z.ZodPreprocess<z.ZodObject<{
6146
+ windows_runtime: z.ZodString;
6147
+ windows_repository_path: z.ZodString;
6148
+ wsl_distribution: z.ZodString;
6149
+ wsl_git_runtime: z.ZodString;
6150
+ wsl_repository_path: z.ZodString;
6151
+ head_policy: z.ZodEnum<{
6152
+ observe: "observe";
6153
+ require_base: "require_base";
6154
+ }>;
6155
+ dirty_policy: z.ZodEnum<{
6156
+ require_clean: "require_clean";
6157
+ committed_base_only: "committed_base_only";
6158
+ }>;
6159
+ }, z.core.$strip>>;
6160
+ native: z.ZodPreprocess<z.ZodObject<{
6161
+ host_id: z.ZodString;
6162
+ git_runtime: z.ZodString;
6163
+ projection_root: z.ZodString;
6164
+ worktree_root: z.ZodString;
6165
+ }, z.core.$strip>>;
6166
+ base_sha: z.ZodString;
6167
+ }, z.core.$strip>>;
6168
+ }, z.core.$strict>;
6169
+ declare const NativeWslProjectionCleanupRequestSchema: z.ZodObject<{
6170
+ request: z.ZodPreprocess<z.ZodObject<{
6171
+ request_digest: z.ZodString;
6172
+ schema_version: z.ZodLiteral<"1.0.0">;
6173
+ request_id: z.ZodString;
6174
+ repository: z.ZodPreprocess<z.ZodObject<{
6175
+ id: z.ZodString;
6176
+ expected_remote_hash: z.ZodString;
6177
+ }, z.core.$strip>>;
6178
+ source: z.ZodPreprocess<z.ZodObject<{
6179
+ windows_runtime: z.ZodString;
6180
+ windows_repository_path: z.ZodString;
6181
+ wsl_distribution: z.ZodString;
6182
+ wsl_git_runtime: z.ZodString;
6183
+ wsl_repository_path: z.ZodString;
6184
+ head_policy: z.ZodEnum<{
6185
+ observe: "observe";
6186
+ require_base: "require_base";
6187
+ }>;
6188
+ dirty_policy: z.ZodEnum<{
6189
+ require_clean: "require_clean";
6190
+ committed_base_only: "committed_base_only";
6191
+ }>;
6192
+ }, z.core.$strip>>;
6193
+ native: z.ZodPreprocess<z.ZodObject<{
6194
+ host_id: z.ZodString;
6195
+ git_runtime: z.ZodString;
6196
+ projection_root: z.ZodString;
6197
+ worktree_root: z.ZodString;
6198
+ }, z.core.$strip>>;
6199
+ base_sha: z.ZodString;
6200
+ }, z.core.$strip>>;
6201
+ mutation: z.ZodObject<{
6202
+ authorized: z.ZodLiteral<true>;
6203
+ reason: z.ZodOptional<z.ZodString>;
6204
+ }, z.core.$strict>;
6205
+ includeQuarantine: z.ZodOptional<z.ZodBoolean>;
6206
+ }, z.core.$strict>;
6207
+ declare const NativeWslProjectionPrepareRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
6208
+ request: z.ZodPreprocess<z.ZodObject<{
6209
+ request_digest: z.ZodString;
6210
+ schema_version: z.ZodLiteral<"1.0.0">;
6211
+ request_id: z.ZodString;
6212
+ repository: z.ZodPreprocess<z.ZodObject<{
6213
+ id: z.ZodString;
6214
+ expected_remote_hash: z.ZodString;
6215
+ }, z.core.$strip>>;
6216
+ source: z.ZodPreprocess<z.ZodObject<{
6217
+ windows_runtime: z.ZodString;
6218
+ windows_repository_path: z.ZodString;
6219
+ wsl_distribution: z.ZodString;
6220
+ wsl_git_runtime: z.ZodString;
6221
+ wsl_repository_path: z.ZodString;
6222
+ head_policy: z.ZodEnum<{
6223
+ observe: "observe";
6224
+ require_base: "require_base";
6225
+ }>;
6226
+ dirty_policy: z.ZodEnum<{
6227
+ require_clean: "require_clean";
6228
+ committed_base_only: "committed_base_only";
6229
+ }>;
6230
+ }, z.core.$strip>>;
6231
+ native: z.ZodPreprocess<z.ZodObject<{
6232
+ host_id: z.ZodString;
6233
+ git_runtime: z.ZodString;
6234
+ projection_root: z.ZodString;
6235
+ worktree_root: z.ZodString;
6236
+ }, z.core.$strip>>;
6237
+ base_sha: z.ZodString;
6238
+ }, z.core.$strip>>;
6239
+ mutation: z.ZodObject<{
6240
+ authorized: z.ZodLiteral<true>;
6241
+ reason: z.ZodOptional<z.ZodString>;
6242
+ }, z.core.$strict>;
6243
+ }, z.core.$strict>>;
6244
+ declare const NativeWslProjectionStatusRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
6245
+ request: z.ZodPreprocess<z.ZodObject<{
6246
+ request_digest: z.ZodString;
6247
+ schema_version: z.ZodLiteral<"1.0.0">;
6248
+ request_id: z.ZodString;
6249
+ repository: z.ZodPreprocess<z.ZodObject<{
6250
+ id: z.ZodString;
6251
+ expected_remote_hash: z.ZodString;
6252
+ }, z.core.$strip>>;
6253
+ source: z.ZodPreprocess<z.ZodObject<{
6254
+ windows_runtime: z.ZodString;
6255
+ windows_repository_path: z.ZodString;
6256
+ wsl_distribution: z.ZodString;
6257
+ wsl_git_runtime: z.ZodString;
6258
+ wsl_repository_path: z.ZodString;
6259
+ head_policy: z.ZodEnum<{
6260
+ observe: "observe";
6261
+ require_base: "require_base";
6262
+ }>;
6263
+ dirty_policy: z.ZodEnum<{
6264
+ require_clean: "require_clean";
6265
+ committed_base_only: "committed_base_only";
6266
+ }>;
6267
+ }, z.core.$strip>>;
6268
+ native: z.ZodPreprocess<z.ZodObject<{
6269
+ host_id: z.ZodString;
6270
+ git_runtime: z.ZodString;
6271
+ projection_root: z.ZodString;
6272
+ worktree_root: z.ZodString;
6273
+ }, z.core.$strip>>;
6274
+ base_sha: z.ZodString;
6275
+ }, z.core.$strip>>;
6276
+ }, z.core.$strict>>;
6277
+ declare const NativeWslProjectionCleanupRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
6278
+ request: z.ZodPreprocess<z.ZodObject<{
6279
+ request_digest: z.ZodString;
6280
+ schema_version: z.ZodLiteral<"1.0.0">;
6281
+ request_id: z.ZodString;
6282
+ repository: z.ZodPreprocess<z.ZodObject<{
6283
+ id: z.ZodString;
6284
+ expected_remote_hash: z.ZodString;
6285
+ }, z.core.$strip>>;
6286
+ source: z.ZodPreprocess<z.ZodObject<{
6287
+ windows_runtime: z.ZodString;
6288
+ windows_repository_path: z.ZodString;
6289
+ wsl_distribution: z.ZodString;
6290
+ wsl_git_runtime: z.ZodString;
6291
+ wsl_repository_path: z.ZodString;
6292
+ head_policy: z.ZodEnum<{
6293
+ observe: "observe";
6294
+ require_base: "require_base";
6295
+ }>;
6296
+ dirty_policy: z.ZodEnum<{
6297
+ require_clean: "require_clean";
6298
+ committed_base_only: "committed_base_only";
6299
+ }>;
6300
+ }, z.core.$strip>>;
6301
+ native: z.ZodPreprocess<z.ZodObject<{
6302
+ host_id: z.ZodString;
6303
+ git_runtime: z.ZodString;
6304
+ projection_root: z.ZodString;
6305
+ worktree_root: z.ZodString;
6306
+ }, z.core.$strip>>;
6307
+ base_sha: z.ZodString;
6308
+ }, z.core.$strip>>;
6309
+ mutation: z.ZodObject<{
6310
+ authorized: z.ZodLiteral<true>;
6311
+ reason: z.ZodOptional<z.ZodString>;
6312
+ }, z.core.$strict>;
6313
+ includeQuarantine: z.ZodOptional<z.ZodBoolean>;
6314
+ }, z.core.$strict>>;
6315
+ declare const NativeWslProjectionQuarantineRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
6316
+ request: z.ZodPreprocess<z.ZodObject<{
6317
+ request_digest: z.ZodString;
6318
+ schema_version: z.ZodLiteral<"1.0.0">;
6319
+ request_id: z.ZodString;
6320
+ repository: z.ZodPreprocess<z.ZodObject<{
6321
+ id: z.ZodString;
6322
+ expected_remote_hash: z.ZodString;
6323
+ }, z.core.$strip>>;
6324
+ source: z.ZodPreprocess<z.ZodObject<{
6325
+ windows_runtime: z.ZodString;
6326
+ windows_repository_path: z.ZodString;
6327
+ wsl_distribution: z.ZodString;
6328
+ wsl_git_runtime: z.ZodString;
6329
+ wsl_repository_path: z.ZodString;
6330
+ head_policy: z.ZodEnum<{
6331
+ observe: "observe";
6332
+ require_base: "require_base";
6333
+ }>;
6334
+ dirty_policy: z.ZodEnum<{
6335
+ require_clean: "require_clean";
6336
+ committed_base_only: "committed_base_only";
6337
+ }>;
6338
+ }, z.core.$strip>>;
6339
+ native: z.ZodPreprocess<z.ZodObject<{
6340
+ host_id: z.ZodString;
6341
+ git_runtime: z.ZodString;
6342
+ projection_root: z.ZodString;
6343
+ worktree_root: z.ZodString;
6344
+ }, z.core.$strip>>;
6345
+ base_sha: z.ZodString;
6346
+ }, z.core.$strip>>;
6347
+ }, z.core.$strict>>;
6348
+ type NativeWslProjectionPrepareRequest = z.infer<typeof NativeWslProjectionPrepareRequestSchema>;
6349
+ type NativeWslProjectionStatusRequest = z.infer<typeof NativeWslProjectionStatusRequestSchema>;
6350
+ type NativeWslProjectionCleanupRequest = z.infer<typeof NativeWslProjectionCleanupRequestSchema>;
6351
+ type NativeWslProjectionPublicNextAction = "prepare_projection" | "retry_projection_status" | "prepare_attempt" | "inspect_quarantine" | "cleanup_projection" | "remove_active_worktrees" | "correct_projection_request";
6352
+ interface NativeWslProjectionPrepareResult {
6353
+ schemaVersion: "1.0.0";
6354
+ operation: "agent-work.projection.prepare";
6355
+ outcome: NativeWslProjectionResult["outcome"];
6356
+ state: "ready" | "rejected" | "quarantined";
6357
+ reasonCode: NativeWslProjectionReasonCode;
6358
+ projectionId: string;
6359
+ requestDigest: string;
6360
+ selectionDigest?: string;
6361
+ manifestDigest?: string;
6362
+ mappingDigest?: string;
6363
+ sourceObservationDigest?: string;
6364
+ commandEvidence: NativeWslProjectionCommandEvidence[];
6365
+ nextActions: NativeWslProjectionPublicNextAction[];
6366
+ }
6367
+ interface NativeWslProjectionStatusResult extends Omit<NativeWslProjectionInspection, "commandEvidence"> {
6368
+ schemaVersion: "1.0.0";
6369
+ operation: "agent-work.projection.status";
6370
+ commandEvidence: NativeWslProjectionCommandEvidence[];
6371
+ nextActions: NativeWslProjectionPublicNextAction[];
6372
+ }
6373
+ interface NativeWslProjectionQuarantineResult {
6374
+ schemaVersion: "1.0.0";
6375
+ operation: "agent-work.projection.quarantine.inspect";
6376
+ projectionId: string;
6377
+ requestDigest: string;
6378
+ state: NativeWslProjectionInspection["state"];
6379
+ quarantine: NativeWslProjectionInspection["quarantine"];
6380
+ nextActions: NativeWslProjectionPublicNextAction[];
6381
+ }
6382
+ interface NativeWslProjectionCleanupPublicResult extends NativeWslProjectionCleanupResult {
6383
+ schemaVersion: "1.0.0";
6384
+ operation: "agent-work.projection.cleanup";
6385
+ nextActions: NativeWslProjectionPublicNextAction[];
6386
+ }
6387
+ interface ProjectionLifecycleEngine {
6388
+ prepare(request: NativeWslProjectionPrepareRequest["request"]): Promise<NativeWslProjectionResult>;
6389
+ inspect(request: NativeWslProjectionStatusRequest["request"]): Promise<NativeWslProjectionInspection>;
6390
+ cleanup(request: NativeWslProjectionCleanupRequest["request"], includeQuarantine?: boolean): Promise<NativeWslProjectionCleanupResult>;
6391
+ }
6392
+ interface NativeWslProjectionLifecycleHandlers {
6393
+ prepare(request: unknown): Promise<AgentWorkHandlerResult<NativeWslProjectionPrepareResult>>;
6394
+ status(request: unknown): Promise<AgentWorkHandlerResult<NativeWslProjectionStatusResult>>;
6395
+ cleanup(request: unknown): Promise<AgentWorkHandlerResult<NativeWslProjectionCleanupPublicResult>>;
6396
+ quarantine(request: unknown): Promise<AgentWorkHandlerResult<NativeWslProjectionQuarantineResult>>;
6397
+ }
6398
+ /** One bounded application seam shared by the projection CLI and MCP adapters. */
6399
+ declare function createNativeWslProjectionLifecycleHandlers(engine?: ProjectionLifecycleEngine): NativeWslProjectionLifecycleHandlers;
6400
+
4485
6401
  declare const AttemptWorkerAttachRequestJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
4486
6402
  runtime: z.ZodObject<{
4487
6403
  databasePath: z.ZodString;
@@ -4525,12 +6441,97 @@ declare const AttemptWorkerAttachRequestJsonSchema: z.core.ZodStandardJSONSchema
4525
6441
  paths: z.ZodObject<{
4526
6442
  project_root: z.ZodString;
4527
6443
  execution_root: z.ZodString;
6444
+ allocation_root: z.ZodOptional<z.ZodString>;
4528
6445
  worktree_root: z.ZodString;
4529
6446
  }, z.core.$strict>;
4530
- path_mappings: z.ZodArray<z.ZodObject<{
4531
- runtime: z.ZodString;
4532
- worktree_root: z.ZodString;
4533
- }, z.core.$strict>>;
6447
+ path_mappings: z.ZodArray<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodObject<{
6448
+ mapping_digest: z.ZodString;
6449
+ schema_version: z.ZodLiteral<"1.0.0">;
6450
+ projection_id: z.ZodString;
6451
+ repository_id: z.ZodString;
6452
+ base_sha: z.ZodString;
6453
+ native_host_id: z.ZodString;
6454
+ request_digest: z.ZodString;
6455
+ projection_digest: z.ZodString;
6456
+ projection_mapping_digest: z.ZodString;
6457
+ roots: z.ZodPreprocess<z.ZodObject<{
6458
+ windows_source: z.ZodPreprocess<z.ZodObject<{
6459
+ runtime_id: z.ZodString;
6460
+ path: z.ZodString;
6461
+ verification: z.ZodLiteral<"declared">;
6462
+ }, z.core.$strip>>;
6463
+ wsl_source: z.ZodPreprocess<z.ZodObject<{
6464
+ runtime_id: z.ZodString;
6465
+ path: z.ZodString;
6466
+ verification: z.ZodLiteral<"git_observed">;
6467
+ observation_digest: z.ZodString;
6468
+ }, z.core.$strip>>;
6469
+ native_repository: z.ZodPreprocess<z.ZodObject<{
6470
+ runtime_id: z.ZodString;
6471
+ path: z.ZodString;
6472
+ verification: z.ZodLiteral<"directory_identity">;
6473
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6474
+ device: z.ZodString;
6475
+ inode: z.ZodString;
6476
+ }, z.core.$strip>>;
6477
+ }, z.core.$strip>>;
6478
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
6479
+ runtime_id: z.ZodString;
6480
+ path: z.ZodString;
6481
+ verification: z.ZodLiteral<"directory_identity">;
6482
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6483
+ device: z.ZodString;
6484
+ inode: z.ZodString;
6485
+ }, z.core.$strip>>;
6486
+ }, z.core.$strip>>;
6487
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
6488
+ runtime_id: z.ZodString;
6489
+ path: z.ZodString;
6490
+ verification: z.ZodLiteral<"directory_identity">;
6491
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6492
+ device: z.ZodString;
6493
+ inode: z.ZodString;
6494
+ }, z.core.$strip>>;
6495
+ }, z.core.$strip>>;
6496
+ }, z.core.$strip>>;
6497
+ }, z.core.$strip>>, z.ZodPreprocess<z.ZodObject<{
6498
+ mapping_digest: z.ZodString;
6499
+ schema_version: z.ZodLiteral<"1.0.0">;
6500
+ mapping_kind: z.ZodLiteral<"native_linux">;
6501
+ repository_id: z.ZodString;
6502
+ base_sha: z.ZodString;
6503
+ native_host_id: z.ZodString;
6504
+ git_runtime: z.ZodString;
6505
+ roots: z.ZodPreprocess<z.ZodObject<{
6506
+ native_repository: z.ZodPreprocess<z.ZodObject<{
6507
+ runtime_id: z.ZodString;
6508
+ path: z.ZodString;
6509
+ verification: z.ZodLiteral<"directory_identity">;
6510
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6511
+ device: z.ZodString;
6512
+ inode: z.ZodString;
6513
+ }, z.core.$strip>>;
6514
+ }, z.core.$strip>>;
6515
+ native_allocation_root: z.ZodPreprocess<z.ZodObject<{
6516
+ runtime_id: z.ZodString;
6517
+ path: z.ZodString;
6518
+ verification: z.ZodLiteral<"directory_identity">;
6519
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6520
+ device: z.ZodString;
6521
+ inode: z.ZodString;
6522
+ }, z.core.$strip>>;
6523
+ }, z.core.$strip>>;
6524
+ native_worktree: z.ZodPreprocess<z.ZodObject<{
6525
+ runtime_id: z.ZodString;
6526
+ path: z.ZodString;
6527
+ verification: z.ZodLiteral<"directory_identity">;
6528
+ directory_identity: z.ZodPreprocess<z.ZodObject<{
6529
+ device: z.ZodString;
6530
+ inode: z.ZodString;
6531
+ }, z.core.$strip>>;
6532
+ }, z.core.$strip>>;
6533
+ }, z.core.$strip>>;
6534
+ }, z.core.$strip>>]>>;
4534
6535
  exposed_environment_keys: z.ZodArray<z.ZodString>;
4535
6536
  created_at: z.ZodString;
4536
6537
  }, z.core.$strict>;
@@ -4761,7 +6762,7 @@ interface AttemptAcceptanceStatusResult {
4761
6762
  };
4762
6763
  }
4763
6764
 
4764
- type FanoutServiceStore = AgentWorkFanoutStore & WorkspaceLifecycleStore & AttemptReceiptStore & AttemptVerificationStore;
6765
+ type FanoutServiceStore = AgentWorkFanoutStore & WorkspaceLifecycleStore & LaunchEnvelopeBindingStore & WorkerSessionStore & AttemptReceiptStore & AttemptVerificationStore;
4765
6766
  interface CreateAgentWorkFanoutInput {
4766
6767
  runId: string;
4767
6768
  expectedRunRevision: number;
@@ -5868,8 +7869,8 @@ interface GateExecutionServiceResult {
5868
7869
  executionState: ExecutionState;
5869
7870
  }
5870
7871
  declare class GateExecutionServiceError extends Error {
5871
- readonly code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED";
5872
- constructor(code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED", message: string);
7872
+ readonly code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND";
7873
+ constructor(code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND", message: string);
5873
7874
  }
5874
7875
  /** One bounded transport-neutral owner for canonical CLI and MCP gate execution. */
5875
7876
  declare class GateExecutionService {
@@ -6072,6 +8073,45 @@ declare class MergeApplicationService {
6072
8073
  }>;
6073
8074
  }
6074
8075
 
8076
+ type PlanArtifactSource = "explicit" | "repository-root" | "profile-runner";
8077
+ interface PlanArtifactIdentity {
8078
+ contract: "plan-artifact-identity-v1";
8079
+ kind: "execution-plan";
8080
+ schema: "lexrunner.execution-plan";
8081
+ schemaVersion: string;
8082
+ digest: string;
8083
+ target: string;
8084
+ itemCount: number;
8085
+ }
8086
+ interface ResolvedPlanArtifact {
8087
+ plan: Plan;
8088
+ identity: PlanArtifactIdentity;
8089
+ source: PlanArtifactSource;
8090
+ /** Adapter-only location. It is deliberately excluded from the public identity. */
8091
+ filePath: string;
8092
+ }
8093
+ type PlanArtifactFailureCode = "PLAN_REFERENCE_INVALID" | "PLAN_NOT_FOUND" | "PLAN_UNREADABLE" | "PLAN_ARTIFACT_LIMIT_EXCEEDED";
8094
+ declare class PlanArtifactServiceError extends Error {
8095
+ readonly code: PlanArtifactFailureCode;
8096
+ readonly source?: PlanArtifactSource | undefined;
8097
+ constructor(code: PlanArtifactFailureCode, message: string, source?: PlanArtifactSource | undefined);
8098
+ }
8099
+ interface ResolvePlanArtifactInput {
8100
+ planFile?: string;
8101
+ workingDir?: string;
8102
+ profileDir?: string;
8103
+ }
8104
+ /**
8105
+ * Resolve one immutable integration plan without creating mutable "active plan" state.
8106
+ *
8107
+ * Precedence is explicit reference, repository-root plan.json, then the legacy
8108
+ * profile runner plan. An explicit reference is authoritative: a bad explicit
8109
+ * path never falls through to another plan.
8110
+ */
8111
+ declare class PlanArtifactService {
8112
+ resolve(input?: ResolvePlanArtifactInput): ResolvedPlanArtifact;
8113
+ }
8114
+
6075
8115
  /**
6076
8116
  * Environmental Hostility Scoring
6077
8117
  *
@@ -6461,4 +8501,4 @@ declare function createWorkflowGuide(phase: WorkflowPhase): WorkflowGuide;
6461
8501
  declare function inspectRegisteredCliSurface(): RegisteredCliCommand[];
6462
8502
  declare function main(argv?: string[]): Promise<void>;
6463
8503
 
6464
- export { AGENT_ENGINE_VERIFICATION_V2_VERSION, AGENT_TASK_RECEIPT_PATCH_PROFILE, AGENT_TASK_RECEIPT_V2_VERSION, AGENT_WORK_CONTRACT_VERSION, AgentEngineVerification_v1, AgentEngineVerification_v2, type AgentTaskPacketHashInput, AgentTaskPacketHashInput_v1, AgentTaskPacket_v1, type AgentTaskReceiptBindingContext, AgentTaskReceiptOutcome, type AgentTaskReceiptV2BindingContext, AgentTaskReceipt_v1, AgentTaskReceipt_v2, AgentWorkFanInDecision_v1, type AgentWorkFanInResult, AgentWorkFanoutPlan_v1, AgentWorkFanoutService, type AgentWorkPreparationCommandResult, type AgentWorkPreparationCommandRunner, AgentWorkPreparationReceipt_v1, type AgentWorkPreparationResult, AttemptAcceptanceApplyRequestJsonSchema, AttemptAcceptanceStatusRequestJsonSchema, AttemptPrepareRequestJsonSchema, AttemptReceiptStatusRequestJsonSchema, AttemptReceiptSubmitRequestJsonSchema, AttemptRetryDeltaDimension_v1, AttemptRetryDelta_v1, AttemptStartRequestJsonSchema, AttemptStatus, AttemptStatusInputJsonSchema, AttemptVerificationRunRequestJsonSchema, AttemptVerificationStatusRequestJsonSchema, AttemptWorkerAttachRequestJsonSchema, AttemptWorkerEndRequestJsonSchema, AttemptWorkerHeartbeatRequestJsonSchema, AttemptWorkerStatusRequestJsonSchema, Attempt_v1, AuthorityEnvelope, type BoundedDiscoveryResult, type BoundedGateRunResult, type BoundedIntegrationStatus, type BoundedMergeApplicationResult, type BoundedMergeOrderResult, ClaimedCheckOutcome, ConfigurationQueryService, ControllerLease_v1, type CreateAgentWorkFanoutInput, type DecideAgentWorkFanInInput, DiscoveryQueryService, EngineVerificationCheckSource_v2, EngineVerificationDeterminism_v2, EngineVerificationTrustGapReason_v2, type ExecuteAgentWorkPreparationInput, ExecutionEnvelope_v1, ExecutionEnvironmentOS, ExecutionState, FanInCandidateConclusion_v1, FanoutAttemptBinding_v1, FanoutPremise_v1, FanoutRationale_v1, FanoutSelectionCriterion_v1, GATE_IMPACT_MODEL, GateExecutionService, GateExecutionServiceError, type GateExecutionServiceInput, type GateExecutionServiceResult, GateImpactService, GateImpactServiceError, GitHubAPI, GitObjectId, HumanActionPreconditions, HumanActionReceipt_v1, HumanActionRequest_v1, INTEGRATION_RECORD_REMOVAL_VERSION, INTEGRATION_RECORD_REPLACEMENTS, IntegrationQueryServiceError, IntegrationRecordCompatibilityError, IntegrationRecordCompatibilityService, IntegrationStatusQueryService, type MergeApplicationExecution, type MergeApplicationFailureCode, type MergeApplicationRuntime, MergeApplicationService, MergeApplicationServiceError, MergeEligibilityEvaluator, MergeOrderQueryService, type MultiRepoPlanOptions$1 as MultiRepoPlanOptions, PlanCreationService, type RepoTarget, RunStatus, Run_v1, STRICT_FANOUT_SELECTION_CRITERIA, VerificationOutcome, WorkItem_v1, WorkerSessionBackend, WorkerSessionStatus, WorkerSession_v1, WorkspaceAllocationStatus, WorkspaceAllocation_v1, WorkspaceCleanupDisposition, WorkspaceConfigServiceError, WorkspaceDiagnosticsService, WorkspaceInitializationService, WorkspaceLeaseStatus, WorkspaceLease_v1, applyGateImpactSelection, attemptStatusRequiresReceipt, attemptStatusRequiresVerification, bootstrapWorkspace, canonicalJSONStringify, computeAgentEngineVerificationV2Hash, computeAgentTaskPacketHash, computeFanInEvidenceSetHash, computeMergeOrder, createAgentTaskPacket, createAttemptLifecycleHandlers, createAttemptReceiptHandlers, createAttemptVerificationHandlers, createAttemptWorkerHandlers, createFileAnalyzer, createGitHubAPI, createGitHubClient, createGitOperations, createRunManager, createWorkflowGuide, detectProjectType, executeAgentWorkPreparation, executeGatesWithPolicy, generateGitHubSnapshot, generateMultiRepoPlan, generatePlan, generatePlanFromGitHub, generateSnapshot, getEnvironmentSuggestions, healthChecker, initLocalOverlay, inspectRegisteredCliSurface, isTerminalAttemptStatus, loadInputs, loadPlan, main, orderAgentWorkPreparationSteps, parseAgentEngineVerification, parseAgentEngineVerificationV2, parseAgentTaskPacket, parseAgentTaskReceipt, parseAgentTaskReceiptV2, parseAttempt, parseControllerLease, parseExecutionEnvelope, parseHumanActionReceipt, parseHumanActionRequest, parseRun, parseWorkItem, parseWorkerSession, parseWorkspaceAllocation, parseWorkspaceLease, resolveProfile, validateAgentEngineVerificationV2PacketReferences, validateAgentTaskReceiptBinding, validateAgentTaskReceiptV2Binding, validateAgentTaskReceiptV2PacketReferences, validateHumanActionReceiptBinding, writeGateImpactReceipt };
8504
+ export { AGENT_ENGINE_VERIFICATION_V2_VERSION, AGENT_TASK_RECEIPT_PATCH_PROFILE, AGENT_TASK_RECEIPT_V2_VERSION, AGENT_WORK_CONTRACT_VERSION, AgentEngineVerification_v1, AgentEngineVerification_v2, type AgentExecutionPathBindingContext, type AgentExecutionPathBindingValidation, AgentExecutionPathMapping_v1, type AgentTaskPacketHashInput, AgentTaskPacketHashInput_v1, AgentTaskPacket_v1, type AgentTaskReceiptBindingContext, AgentTaskReceiptOutcome, type AgentTaskReceiptV2BindingContext, AgentTaskReceipt_v1, AgentTaskReceipt_v2, AgentWorkContainmentPreflightRequestJsonSchema, AgentWorkFanInDecision_v1, type AgentWorkFanInResult, AgentWorkFanoutPlan_v1, AgentWorkFanoutService, type AgentWorkPreparationCommandResult, type AgentWorkPreparationCommandRunner, AgentWorkPreparationReceipt_v1, type AgentWorkPreparationResult, AttemptAcceptanceApplyRequestJsonSchema, AttemptAcceptanceStatusRequestJsonSchema, AttemptPrepareRequestJsonSchema, AttemptReceiptStatusRequestJsonSchema, AttemptReceiptSubmitRequestJsonSchema, AttemptRetryDeltaDimension_v1, AttemptRetryDelta_v1, AttemptStartRequestJsonSchema, AttemptStatus, AttemptStatusInputJsonSchema, AttemptVerificationRunRequestJsonSchema, AttemptVerificationStatusRequestJsonSchema, AttemptWorkerAttachRequestJsonSchema, AttemptWorkerEndRequestJsonSchema, AttemptWorkerHeartbeatRequestJsonSchema, AttemptWorkerStatusRequestJsonSchema, Attempt_v1, AuthorityEnvelope, type BoundedDiscoveryResult, type BoundedGateRunResult, type BoundedIntegrationStatus, type BoundedMergeApplicationResult, type BoundedMergeOrderResult, ClaimedCheckOutcome, ConfigurationQueryService, ControllerLease_v1, type CreateAgentWorkFanoutInput, type DecideAgentWorkFanInInput, DiscoveryQueryService, EngineVerificationCheckSource_v2, EngineVerificationDeterminism_v2, EngineVerificationTrustGapReason_v2, type ExecuteAgentWorkPreparationInput, ExecutionEnvelope_v1, ExecutionEnvironmentOS, ExecutionState, FanInCandidateConclusion_v1, FanoutAttemptBinding_v1, FanoutPremise_v1, FanoutRationale_v1, FanoutSelectionCriterion_v1, GATE_IMPACT_MODEL, GateExecutionService, GateExecutionServiceError, type GateExecutionServiceInput, type GateExecutionServiceResult, GateImpactService, GateImpactServiceError, GitHubAPI, GitObjectId, HumanActionPreconditions, HumanActionReceipt_v1, HumanActionRequest_v1, INTEGRATION_RECORD_REMOVAL_VERSION, INTEGRATION_RECORD_REPLACEMENTS, IntegrationQueryServiceError, IntegrationRecordCompatibilityError, IntegrationRecordCompatibilityService, IntegrationStatusQueryService, type MergeApplicationExecution, type MergeApplicationFailureCode, type MergeApplicationRuntime, MergeApplicationService, MergeApplicationServiceError, MergeEligibilityEvaluator, MergeOrderQueryService, type MultiRepoPlanOptions$1 as MultiRepoPlanOptions, NATIVE_WSL_PROJECTION_CONTRACT_VERSION, NATIVE_WSL_PROJECTION_HASH_PROFILE, NativeDirectoryIdentityClaim_v1, NativeExecutionPathMapping_v1, NativeWslExecutionPathMapping_v1, NativeWslProjectionCleanupRequestJsonSchema, NativeWslProjectionInventoryObservation_v1, NativeWslProjectionInventoryState, NativeWslProjectionManifest_v1, NativeWslProjectionNextAction, NativeWslProjectionOutcome, NativeWslProjectionPathMapping_v1, NativeWslProjectionPlanAction, NativeWslProjectionPlanReason, NativeWslProjectionPlan_v1, NativeWslProjectionPrepareRequestJsonSchema, NativeWslProjectionQuarantineRequestJsonSchema, NativeWslProjectionReasonCode, NativeWslProjectionReceipt_v1, NativeWslProjectionRequestJsonSchema, NativeWslProjectionRequest_v1, NativeWslProjectionSelection_v1, NativeWslProjectionStatusRequestJsonSchema, NativeWslSourceObservation_v1, type PlanArtifactFailureCode, type PlanArtifactIdentity, PlanArtifactService, PlanArtifactServiceError, type PlanArtifactSource, PlanCreationService, type RepoTarget, type ResolvePlanArtifactInput, type ResolvedPlanArtifact, RunStatus, Run_v1, STRICT_FANOUT_SELECTION_CRITERIA, VerificationOutcome, WorkItem_v1, WorkerSessionBackend, WorkerSessionStatus, WorkerSession_v1, WorkspaceAllocationStatus, WorkspaceAllocation_v1, WorkspaceCleanupDisposition, WorkspaceConfigServiceError, WorkspaceDiagnosticsService, WorkspaceInitializationService, WorkspaceLeaseStatus, WorkspaceLease_v1, applyGateImpactSelection, asPlanValidationFailure, attemptStatusRequiresReceipt, attemptStatusRequiresVerification, bootstrapWorkspace, canonicalJSONStringify, computeAgentEngineVerificationV2Hash, computeAgentTaskPacketHash, computeFanInEvidenceSetHash, computeMergeOrder, createAgentTaskPacket, createAgentWorkContainmentPreflightHandler, createAttemptLifecycleHandlers, createAttemptReceiptHandlers, createAttemptVerificationHandlers, createAttemptWorkerHandlers, createFileAnalyzer, createGitHubAPI, createGitHubClient, createGitOperations, createNativeExecutionPathMapping, createNativeWslExecutionPathMapping, createNativeWslProjectionLifecycleHandlers, createNativeWslProjectionManifest, createNativeWslProjectionPathMapping, createNativeWslProjectionReceipt, createNativeWslProjectionRequest, createNativeWslProjectionSelection, createNativeWslSourceObservation, createRunManager, createWorkflowGuide, detectProjectType, executeAgentWorkPreparation, executeGatesWithPolicy, formatPlanValidationFailure, formatPlanValidationFailureText, generateGitHubSnapshot, generateMultiRepoPlan, generatePlan, generatePlanFromGitHub, generateSnapshot, getEnvironmentSuggestions, healthChecker, initLocalOverlay, inspectRegisteredCliSurface, isTerminalAttemptStatus, loadInputs, loadPlan, main, nativeWslProjectionId, orderAgentWorkPreparationSteps, parseAgentEngineVerification, parseAgentEngineVerificationV2, parseAgentTaskPacket, parseAgentTaskReceipt, parseAgentTaskReceiptV2, parseAttempt, parseControllerLease, parseExecutionEnvelope, parseHumanActionReceipt, parseHumanActionRequest, parseRun, parseWorkItem, parseWorkerSession, parseWorkspaceAllocation, parseWorkspaceLease, planNativeWslProjection, resolveProfile, validateAgentEngineVerificationV2PacketReferences, validateAgentExecutionPathBinding, validateAgentTaskReceiptBinding, validateAgentTaskReceiptV2Binding, validateAgentTaskReceiptV2PacketReferences, validateHumanActionReceiptBinding, writeGateImpactReceipt };