snipara-companion 3.2.31 → 3.2.33

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/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  Release notes for `snipara-companion`, newest first.
4
4
 
5
+ ## New In 3.2.33
6
+
7
+ - Turns `final-commit` into a structured closeout report with seven stable
8
+ sections: what changed, why, evidence, retained decisions, decisions proposed
9
+ for review, items not persisted, and risks plus the next step.
10
+ - Writes the same versioned, redacted report to
11
+ `.snipara/workflow/final-report.json` and includes its path and SHA-256 hash in
12
+ JSON output for automation and handoff verification.
13
+ - Retains phase commit and Why Capture receipts across a managed workflow so the
14
+ report distinguishes durable stored knowledge from pending review candidates,
15
+ duplicates, failures, and handoff-only content.
16
+ - Adds `--why`, repeatable `--evidence <status:text>`, repeatable `--risk`, and
17
+ `--next-step` to both final-commit entry points while preserving the existing
18
+ handoff-only memory policy.
19
+
20
+ ## New In 3.2.32
21
+
22
+ - Promotes a Hosted MCP `servedJudgmentId` into the first-class Project
23
+ Intelligence brief so `run` can persist Advisor Influence receipts without a
24
+ fragile nested lookup or manual flag when the hosted brief already supplies
25
+ the identity.
26
+ - Adds an explicit Advisor measurement funnel to JSON and text output:
27
+ identity linked/missing, targeted versus unscoped, acknowledged, applied,
28
+ verified, blocked, unmeasured, and receipt coverage.
29
+ - Stores a bounded measurement state with each first-party receipt so a runtime
30
+ acknowledgement is never presented as recommendation-scoped application.
31
+ - Emits one stable `project-intelligence.judgment-run-envelope.v1` per `run`
32
+ invocation. It reuses a bounded Snipara or Codex session id when available,
33
+ otherwise generates an opaque run id, and attaches the same envelope to every
34
+ first-party Advisor receipt.
35
+
5
36
  ## New In 3.2.31
6
37
 
7
38
  - Sends phase commits, final commits, and Team Sync handoffs to project-scoped
package/README.md CHANGED
@@ -262,6 +262,25 @@ receipts from `.snipara/orchestrator/executions/` with persisted supervisor
262
262
  reviews, then emits `workerReceipts` and a per-`workerId`/`workCategory`
263
263
  `workerTrust` breakdown. This is observability only: every pair remains
264
264
  `probation_supervised` and `hardGateReady=false`.
265
+
266
+ `final-commit` also prints a stable seven-section closeout report:
267
+
268
+ 1. What changed
269
+ 2. Why
270
+ 3. Evidence
271
+ 4. Decisions kept
272
+ 5. Decisions proposed for review
273
+ 6. Not persisted
274
+ 7. Risks and next step
275
+
276
+ Pass an explicit rationale with `--why`, repeatable verification receipts with
277
+ `--evidence <status:text>`, remaining risks with `--risk`, and the recommended
278
+ follow-up with `--next-step`. Supported evidence statuses are `passed`,
279
+ `failed`, `not-run`, and `unknown`; evidence without a status remains
280
+ `unknown`. The same redacted, versioned report is written to
281
+ `.snipara/workflow/final-report.json`, and `--json` includes the report plus its
282
+ artifact path and SHA-256 hash. Stored phase outcomes appear under decisions
283
+ kept, while Why Capture candidates remain explicitly pending review.
265
284
  The report also recognizes exported PR Answer Pack decision-capture artifacts
266
285
  with producer kind `pr_answer_pack_decision_capture`, so calibration can track
267
286
  more than the workflow producer once those artifacts are present locally.
@@ -364,4 +383,6 @@ When project auth is configured, `workflow phase-commit`, `final-commit`, and
364
383
  read-only preview and confirms only when the server detects durable rationale.
365
384
  Confirmed candidates enter the pending review queue; capture failures remain
366
385
  visible but do not block the primary workflow command. No documentation prompt
367
- is shown.
386
+ is shown. `final-commit` remains handoff-only: the report explains what was
387
+ stored or proposed, but it does not approve pending candidates or write final
388
+ summary text as durable memory.
package/dist/index.d.ts CHANGED
@@ -461,6 +461,34 @@ interface WhyCaptureResult {
461
461
  confirmed: boolean;
462
462
  candidateCount: number;
463
463
  capturedCount?: number;
464
+ candidates?: Array<{
465
+ content?: string;
466
+ type?: string;
467
+ category?: string;
468
+ reviewNotes?: string;
469
+ whyFields?: {
470
+ decision?: string | null;
471
+ why?: string | null;
472
+ outcome?: string | null;
473
+ };
474
+ }>;
475
+ memories?: Array<{
476
+ id?: string;
477
+ memory_id?: string;
478
+ content?: string;
479
+ type?: string;
480
+ category?: string;
481
+ reviewStatus?: string;
482
+ review_status?: string;
483
+ }>;
484
+ decisionCapture?: {
485
+ createdCount?: number;
486
+ duplicateCount?: number;
487
+ failedCount?: number;
488
+ created?: Array<Record<string, unknown>>;
489
+ duplicates?: Array<Record<string, unknown>>;
490
+ failed?: Array<Record<string, unknown>>;
491
+ };
464
492
  }
465
493
  interface JournalAppendResult {
466
494
  success?: boolean;
@@ -2086,6 +2114,7 @@ interface ProjectIntelligenceBriefOptions {
2086
2114
  interface ProjectIntelligenceBrief {
2087
2115
  version: "project-intelligence-brief-v1";
2088
2116
  generatedAt: string;
2117
+ servedJudgmentId?: string;
2089
2118
  branch?: string;
2090
2119
  task?: string;
2091
2120
  changedFiles: string[];
@@ -2616,10 +2645,27 @@ interface ProjectRunAdvisorReceiptWrite {
2616
2645
  agentDecision?: AdvisorInfluenceAgentDecision;
2617
2646
  changedBecauseOfRecommendation?: boolean;
2618
2647
  lifecycleState?: AdvisorInfluenceLifecycleState;
2648
+ measurementState?: ProjectRunAdvisorMeasurementState;
2649
+ targeted?: boolean;
2619
2650
  result?: RecordAdvisorInfluenceReceiptResult;
2620
2651
  reason?: ProjectRunAdvisorReceiptSkipReason;
2621
2652
  error?: string;
2622
2653
  }
2654
+ type ProjectRunAdvisorMeasurementState = "unmeasured" | "acknowledged_unscoped" | "acknowledged" | "applied" | "verified" | "blocked";
2655
+ interface ProjectRunAdvisorMeasurementCoverage {
2656
+ version: "project-intelligence.advisor-measurement-coverage.v1";
2657
+ identityStatus: "linked" | "missing";
2658
+ recommendationCount: number;
2659
+ recordedCount: number;
2660
+ targetedCount: number;
2661
+ unscopedCount: number;
2662
+ acknowledgedCount: number;
2663
+ appliedCount: number;
2664
+ verifiedCount: number;
2665
+ blockedCount: number;
2666
+ unmeasuredCount: number;
2667
+ receiptCoverage: number | null;
2668
+ }
2623
2669
  type ProjectRunAdvisorReceiptSkipReason = "explicitly_skipped" | "no_advisor_recommendations" | "missing_served_judgment_id" | "no_plan_adaptation" | "write_limit_exceeded";
2624
2670
  interface ProjectRunAdvisorReceiptCapture {
2625
2671
  status: "skipped" | "recorded" | "partial" | "error";
@@ -2630,11 +2676,13 @@ interface ProjectRunAdvisorReceiptCapture {
2630
2676
  recordedCount: number;
2631
2677
  skippedCount: number;
2632
2678
  writes: ProjectRunAdvisorReceiptWrite[];
2679
+ measurement: ProjectRunAdvisorMeasurementCoverage;
2633
2680
  reason?: ProjectRunAdvisorReceiptSkipReason;
2634
2681
  }
2635
2682
  interface ProjectIntelligenceRunResult {
2636
2683
  version: "project-intelligence.production-run.v1";
2637
2684
  generatedAt: string;
2685
+ runEnvelope: ProjectIntelligenceRunEnvelope;
2638
2686
  release: boolean;
2639
2687
  brief: ProjectIntelligenceBrief;
2640
2688
  guard?: ProjectRunGuardResult;
@@ -2646,6 +2694,12 @@ interface ProjectIntelligenceRunResult {
2646
2694
  judgmentCard: ProjectIntelligenceJudgmentCard;
2647
2695
  suggestedCommands: string[];
2648
2696
  }
2697
+ interface ProjectIntelligenceRunEnvelope {
2698
+ version: "project-intelligence.judgment-run-envelope.v1";
2699
+ runId: string;
2700
+ identitySource: "snipara_session" | "codex_session" | "generated";
2701
+ startedAt: string;
2702
+ }
2649
2703
  interface ProjectRunPolicyDecisionRequests {
2650
2704
  version: "project-intelligence.policy-decision-requests.v1";
2651
2705
  emitted: boolean;
@@ -3524,6 +3578,180 @@ declare function getTeamSyncStatePath(rootDir?: string): string;
3524
3578
  declare function buildAgenticHandoffMarkdown(artifact: AgenticHandoffArtifact): string;
3525
3579
  declare function teamSyncSweepCommand(options: TeamSyncCommandOptions): Promise<void>;
3526
3580
 
3581
+ interface CompanionWhyCaptureCandidate {
3582
+ text: string;
3583
+ type?: string;
3584
+ category?: string;
3585
+ decision?: string;
3586
+ rationale?: string;
3587
+ }
3588
+ interface CompanionWhyCaptureMemory {
3589
+ memoryId?: string;
3590
+ text: string;
3591
+ type?: string;
3592
+ category?: string;
3593
+ reviewStatus?: string;
3594
+ }
3595
+ interface CompanionWhyCaptureIssue {
3596
+ text: string;
3597
+ reason?: string;
3598
+ }
3599
+ interface CompanionWhyCaptureReceipt {
3600
+ status: "captured" | "no_candidates" | "skipped" | "error";
3601
+ sourceKind: WhyCaptureSourceKind;
3602
+ previewCandidateCount: number;
3603
+ capturedCount: number;
3604
+ previewCandidates: CompanionWhyCaptureCandidate[];
3605
+ pendingMemories: CompanionWhyCaptureMemory[];
3606
+ duplicates: CompanionWhyCaptureIssue[];
3607
+ failed: CompanionWhyCaptureIssue[];
3608
+ commitSha?: string;
3609
+ error?: string;
3610
+ }
3611
+
3612
+ declare const FINAL_COMMIT_REPORT_VERSION: "snipara.final_commit_report.v1";
3613
+ declare const FINAL_COMMIT_REPORT_RELATIVE_PATH: string;
3614
+ type FinalCommitOutcome = "completed" | "partial" | "blocked" | "abandoned";
3615
+ type FinalCommitEvidenceStatus = "passed" | "failed" | "not_run" | "unknown";
3616
+ interface FinalCommitMemoryItem {
3617
+ memoryId?: string;
3618
+ text: string;
3619
+ type?: string;
3620
+ category?: string;
3621
+ reason?: string;
3622
+ reviewStatus?: string;
3623
+ source: "phase_commit" | "why_capture";
3624
+ phaseId?: string;
3625
+ }
3626
+ interface WorkflowPhaseCommitReceipt {
3627
+ phaseId: string;
3628
+ capturedAt: string;
3629
+ category: string;
3630
+ outcome: FinalCommitOutcome;
3631
+ hostedStatus: "processed" | "local_fallback";
3632
+ stored: FinalCommitMemoryItem[];
3633
+ skipped: FinalCommitMemoryItem[];
3634
+ whyCapture?: CompanionWhyCaptureReceipt;
3635
+ }
3636
+ interface FinalCommitReportPhase {
3637
+ id: string;
3638
+ title: string;
3639
+ status: string;
3640
+ summary?: string;
3641
+ outcome?: string;
3642
+ files: string[];
3643
+ }
3644
+ interface FinalCommitReportWorkflowState {
3645
+ workflowId: string;
3646
+ goal: string;
3647
+ status: string;
3648
+ createdAt: string;
3649
+ phases: Array<{
3650
+ id: string;
3651
+ title: string;
3652
+ status: string;
3653
+ summary?: string;
3654
+ outcome?: string;
3655
+ files?: string[];
3656
+ }>;
3657
+ phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
3658
+ runtime?: {
3659
+ sandbox?: {
3660
+ bindings?: Array<{
3661
+ lastCheckpoint?: {
3662
+ commands?: string[];
3663
+ };
3664
+ }>;
3665
+ };
3666
+ };
3667
+ }
3668
+ interface FinalCommitEvidenceItem {
3669
+ status: FinalCommitEvidenceStatus;
3670
+ text: string;
3671
+ source: "explicit" | "runtime_checkpoint";
3672
+ }
3673
+ interface FinalCommitNotPersistedItem {
3674
+ text: string;
3675
+ reason: string;
3676
+ source: "phase_commit" | "why_capture" | "final_commit";
3677
+ }
3678
+ interface FinalCommitReportV1 {
3679
+ version: typeof FINAL_COMMIT_REPORT_VERSION;
3680
+ generatedAt: string;
3681
+ workflowId?: string;
3682
+ outcome: FinalCommitOutcome;
3683
+ changed: {
3684
+ summary: string;
3685
+ files: string[];
3686
+ phases: FinalCommitReportPhase[];
3687
+ repository: {
3688
+ branch?: string;
3689
+ head?: string;
3690
+ dirty: boolean;
3691
+ dirtyFiles: string[];
3692
+ };
3693
+ };
3694
+ rationale: {
3695
+ status: "provided" | "captured" | "missing";
3696
+ text?: string;
3697
+ source: "explicit" | "why_capture" | "none";
3698
+ };
3699
+ evidence: {
3700
+ items: FinalCommitEvidenceItem[];
3701
+ counts: Record<FinalCommitEvidenceStatus, number>;
3702
+ };
3703
+ retainedDecisions: {
3704
+ status: "confirmed" | "none" | "unavailable";
3705
+ items: FinalCommitMemoryItem[];
3706
+ note?: string;
3707
+ };
3708
+ pendingDecisions: {
3709
+ status: "pending_review" | "none" | "unavailable";
3710
+ items: FinalCommitMemoryItem[];
3711
+ note?: string;
3712
+ };
3713
+ notPersisted: {
3714
+ items: FinalCommitNotPersistedItem[];
3715
+ };
3716
+ closeout: {
3717
+ risks: string[];
3718
+ nextStep: string;
3719
+ };
3720
+ caveats: string[];
3721
+ }
3722
+ interface FinalCommitReportArtifact {
3723
+ status: "written" | "error";
3724
+ version: typeof FINAL_COMMIT_REPORT_VERSION;
3725
+ path?: string;
3726
+ relativePath: typeof FINAL_COMMIT_REPORT_RELATIVE_PATH;
3727
+ hash?: string;
3728
+ error?: string;
3729
+ }
3730
+ interface BuildFinalCommitReportInput {
3731
+ state?: FinalCommitReportWorkflowState;
3732
+ summary: string;
3733
+ why?: string;
3734
+ outcome: FinalCommitOutcome;
3735
+ files?: string[];
3736
+ evidence?: string[];
3737
+ risks?: string[];
3738
+ nextStep?: string;
3739
+ whyCapture: CompanionWhyCaptureReceipt;
3740
+ finalCommitResult: Record<string, unknown>;
3741
+ cwd?: string;
3742
+ now?: Date;
3743
+ }
3744
+ declare function buildWorkflowPhaseCommitReceipt(input: {
3745
+ phaseId: string;
3746
+ category: string;
3747
+ outcome: FinalCommitOutcome;
3748
+ result: Record<string, unknown>;
3749
+ capturedAt?: string;
3750
+ }): WorkflowPhaseCommitReceipt;
3751
+ declare function buildFinalCommitReport(input: BuildFinalCommitReportInput): FinalCommitReportV1;
3752
+ declare function writeFinalCommitReport(report: FinalCommitReportV1, cwd?: string): FinalCommitReportArtifact;
3753
+ declare function formatFinalCommitReport(report: FinalCommitReportV1): string;
3754
+
3527
3755
  type SyncDocumentKind = "DOC" | "BINARY";
3528
3756
  type WorkflowMode = "lite" | "standard" | "auto" | "full" | "orchestrate";
3529
3757
  type OnboardFolderMode = "auto" | "business_context" | "code_project" | "mixed";
@@ -3740,6 +3968,8 @@ interface ManagedWorkflowState {
3740
3968
  phases: ManagedWorkflowPhase[];
3741
3969
  runtime?: ManagedWorkflowRuntimeState;
3742
3970
  coordination?: ManagedWorkflowCoordinationState;
3971
+ phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
3972
+ finalReport?: FinalCommitReportArtifact;
3743
3973
  lastCommit?: {
3744
3974
  category: string;
3745
3975
  outcome: TaskCommitOutcome;
@@ -4579,4 +4809,4 @@ declare function installAutomationBundle(args: {
4579
4809
  }): Promise<AutomationInstallResult>;
4580
4810
  declare function getAutomationStatus(projectDir?: string): AutomationStatusResult;
4581
4811
 
4582
- export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, CODING_INTELLIGENCE_LEDGER_VERSION, COLLABORATION_STATE_RELATIVE_PATH, ENGINEERING_LEAD_EXECUTION_RECEIPT_STAGES, ENGINEERING_LEAD_EXECUTION_RECEIPT_STATUSES, ENGINEERING_LEAD_POSTURES, ENGINEERING_LEAD_PROOF_VERIFICATION_SOURCES, ENGINEERING_LEAD_PROOF_VERIFICATION_STATUSES, ENGINEERING_LEAD_ROUTING_MODES, ENGINEERING_LEAD_STATUSES, ENGINEERING_LEAD_SUPERVISION_STATUSES, ENGINEERING_LEAD_WORKER_ROLES, ENGINEERING_LEAD_WORK_PACKAGE_STATUSES, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, POLICY_LEDGER_SYNC_REPORT_VERSION, PRODUCER_LOOP_ARTIFACT_VERSION, PRODUCER_LOOP_RELATIVE_DIR, PRODUCER_LOOP_REPORT_VERSION, TEAM_SYNC_STATE_RELATIVE_PATH, WHY_OUTCOME_CAPTURE_VERSION, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, addLocalWorker, agentReadinessAuditCommand, appendActivityEvent, applyLocalContextMutationPlan, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCodingIntelligenceLedger, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildCommitResultMetadata, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextMutationPlan, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalProjectContextValidationReport, buildLocalProjectDriftReport, buildLocalProjectRealityCheck, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildPolicyLedgerSyncReport, buildProducerLoopReport, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapBrief, buildSessionBootstrapQuality, buildSessionSnapshot, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWhyOutcomeCaptureReport, buildWorkflowImpactGate, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, codingLedgerExportCommand, collaborationIdeStatusCommand, collectAgentReadinessLocalSignals, collectPolicyLedgerSyncArtifacts, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextControlApplyCommand, contextControlDriftCommand, contextControlPlanCommand, contextControlValidateCommand, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, controlledWorkerExecuteCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, formatCompanionEngineeringLeadPlanReport, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getLocalSourceSnapshotPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, leadPlanCommand, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, memoryReviewsCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, outcomeCapturePreviewCommand, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readActivityTimeline, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, readLocalWorkersConfig, readSessionSnapshot, realityCheckCommand, referencesIngestCommand, referencesScanCommand, resolveAutoWorkflowMode, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveLocalWorkerRoutingDefaults, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldFailCollaborationGuard, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, workersLocalAddCommand, workersLocalListCommand, workersLocalProbePrintCommand, workersLocalRemoveCommand, workersLocalStatusCommand, workflowSyncPolicyLedgerCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff, writeProducerLoopArtifact, writeSessionSnapshot };
4812
+ export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, CODING_INTELLIGENCE_LEDGER_VERSION, COLLABORATION_STATE_RELATIVE_PATH, ENGINEERING_LEAD_EXECUTION_RECEIPT_STAGES, ENGINEERING_LEAD_EXECUTION_RECEIPT_STATUSES, ENGINEERING_LEAD_POSTURES, ENGINEERING_LEAD_PROOF_VERIFICATION_SOURCES, ENGINEERING_LEAD_PROOF_VERIFICATION_STATUSES, ENGINEERING_LEAD_ROUTING_MODES, ENGINEERING_LEAD_STATUSES, ENGINEERING_LEAD_SUPERVISION_STATUSES, ENGINEERING_LEAD_WORKER_ROLES, ENGINEERING_LEAD_WORK_PACKAGE_STATUSES, FINAL_COMMIT_REPORT_RELATIVE_PATH, FINAL_COMMIT_REPORT_VERSION, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, POLICY_LEDGER_SYNC_REPORT_VERSION, PRODUCER_LOOP_ARTIFACT_VERSION, PRODUCER_LOOP_RELATIVE_DIR, PRODUCER_LOOP_REPORT_VERSION, TEAM_SYNC_STATE_RELATIVE_PATH, WHY_OUTCOME_CAPTURE_VERSION, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, addLocalWorker, agentReadinessAuditCommand, appendActivityEvent, applyLocalContextMutationPlan, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCodingIntelligenceLedger, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildCommitResultMetadata, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildFinalCommitReport, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextMutationPlan, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalProjectContextValidationReport, buildLocalProjectDriftReport, buildLocalProjectRealityCheck, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildPolicyLedgerSyncReport, buildProducerLoopReport, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapBrief, buildSessionBootstrapQuality, buildSessionSnapshot, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWhyOutcomeCaptureReport, buildWorkflowImpactGate, buildWorkflowPhaseCommitReceipt, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, codingLedgerExportCommand, collaborationIdeStatusCommand, collectAgentReadinessLocalSignals, collectPolicyLedgerSyncArtifacts, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextControlApplyCommand, contextControlDriftCommand, contextControlPlanCommand, contextControlValidateCommand, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, controlledWorkerExecuteCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, formatCompanionEngineeringLeadPlanReport, formatFinalCommitReport, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getLocalSourceSnapshotPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, leadPlanCommand, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, memoryReviewsCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, outcomeCapturePreviewCommand, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readActivityTimeline, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, readLocalWorkersConfig, readSessionSnapshot, realityCheckCommand, referencesIngestCommand, referencesScanCommand, resolveAutoWorkflowMode, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveLocalWorkerRoutingDefaults, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldFailCollaborationGuard, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, workersLocalAddCommand, workersLocalListCommand, workersLocalProbePrintCommand, workersLocalRemoveCommand, workersLocalStatusCommand, workflowSyncPolicyLedgerCommand, writeFinalCommitReport, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff, writeProducerLoopArtifact, writeSessionSnapshot };