@telora/daemon 0.22.160 → 0.22.181
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/build-info.json +10 -3
- package/dist/audit/audit-phase.d.ts +11 -1
- package/dist/audit/audit-phase.d.ts.map +1 -1
- package/dist/audit/audit-phase.js +2 -14
- package/dist/audit/audit-phase.js.map +1 -1
- package/dist/audit/audit-prompt.d.ts +7 -4
- package/dist/audit/audit-prompt.d.ts.map +1 -1
- package/dist/audit/audit-prompt.js +34 -23
- package/dist/audit/audit-prompt.js.map +1 -1
- package/dist/completion/advancement-stall-watchdog.d.ts +12 -0
- package/dist/completion/advancement-stall-watchdog.d.ts.map +1 -0
- package/dist/completion/advancement-stall-watchdog.js +79 -0
- package/dist/completion/advancement-stall-watchdog.js.map +1 -0
- package/dist/completion/arm-visible-progress-inputs.d.ts +51 -0
- package/dist/completion/arm-visible-progress-inputs.d.ts.map +1 -0
- package/dist/completion/arm-visible-progress-inputs.js +19 -0
- package/dist/completion/arm-visible-progress-inputs.js.map +1 -0
- package/dist/completion/commit-verdict-release.d.ts +37 -1
- package/dist/completion/commit-verdict-release.d.ts.map +1 -1
- package/dist/completion/commit-verdict-release.js +90 -15
- package/dist/completion/commit-verdict-release.js.map +1 -1
- package/dist/completion/delivery-advancement-guard.d.ts.map +1 -1
- package/dist/completion/delivery-advancement-guard.js +1 -0
- package/dist/completion/delivery-advancement-guard.js.map +1 -1
- package/dist/completion/event-entry-phases.d.ts.map +1 -1
- package/dist/completion/event-entry-phases.js +9 -2
- package/dist/completion/event-entry-phases.js.map +1 -1
- package/dist/completion/event-phases.d.ts +15 -8
- package/dist/completion/event-phases.d.ts.map +1 -1
- package/dist/completion/event-phases.js +26 -64
- package/dist/completion/event-phases.js.map +1 -1
- package/dist/completion/event.d.ts.map +1 -1
- package/dist/completion/event.js +7 -1
- package/dist/completion/event.js.map +1 -1
- package/dist/completion/review-exit-verdict-gate.d.ts +11 -5
- package/dist/completion/review-exit-verdict-gate.d.ts.map +1 -1
- package/dist/completion/review-exit-verdict-gate.js +6 -3
- package/dist/completion/review-exit-verdict-gate.js.map +1 -1
- package/dist/completion/shutdown-attribution.d.ts +107 -0
- package/dist/completion/shutdown-attribution.d.ts.map +1 -0
- package/dist/completion/shutdown-attribution.js +106 -0
- package/dist/completion/shutdown-attribution.js.map +1 -0
- package/dist/completion/team-lifecycle.d.ts.map +1 -1
- package/dist/completion/team-lifecycle.js +16 -0
- package/dist/completion/team-lifecycle.js.map +1 -1
- package/dist/delivery/commit-verdict-hold.d.ts.map +1 -1
- package/dist/delivery/commit-verdict-hold.js +2 -1
- package/dist/delivery/commit-verdict-hold.js.map +1 -1
- package/dist/delivery/delivery-lifecycle.d.ts.map +1 -1
- package/dist/delivery/delivery-lifecycle.js +1 -0
- package/dist/delivery/delivery-lifecycle.js.map +1 -1
- package/dist/directive/directive-assembly.d.ts +19 -1
- package/dist/directive/directive-assembly.d.ts.map +1 -1
- package/dist/directive/directive-assembly.js +15 -3
- package/dist/directive/directive-assembly.js.map +1 -1
- package/dist/directive/directive-dispatch.d.ts +67 -2
- package/dist/directive/directive-dispatch.d.ts.map +1 -1
- package/dist/directive/directive-dispatch.js +188 -45
- package/dist/directive/directive-dispatch.js.map +1 -1
- package/dist/directive/directive-executor.d.ts +2 -2
- package/dist/directive/directive-executor.d.ts.map +1 -1
- package/dist/directive/directive-executor.js +49 -12
- package/dist/directive/directive-executor.js.map +1 -1
- package/dist/directive/directive-queue.d.ts.map +1 -1
- package/dist/directive/directive-queue.js +1 -0
- package/dist/directive/directive-queue.js.map +1 -1
- package/dist/directive/stage-tracker.d.ts +20 -0
- package/dist/directive/stage-tracker.d.ts.map +1 -1
- package/dist/directive/stage-tracker.js +29 -1
- package/dist/directive/stage-tracker.js.map +1 -1
- package/dist/directive/stranded-review-reroute.js +1 -1
- package/dist/directive/stranded-review-reroute.js.map +1 -1
- package/dist/focus/focus-engine.d.ts.map +1 -1
- package/dist/focus/focus-engine.js +5 -1
- package/dist/focus/focus-engine.js.map +1 -1
- package/dist/focus/focus-executor.d.ts.map +1 -1
- package/dist/focus/focus-executor.js +14 -3
- package/dist/focus/focus-executor.js.map +1 -1
- package/dist/focus/focus-phase.d.ts +11 -1
- package/dist/focus/focus-phase.d.ts.map +1 -1
- package/dist/focus/focus-phase.js +12 -2
- package/dist/focus/focus-phase.js.map +1 -1
- package/dist/focus/focus-team-state.js +1 -1
- package/dist/focus/listener-auto-advance.d.ts.map +1 -1
- package/dist/focus/listener-auto-advance.js +1 -0
- package/dist/focus/listener-auto-advance.js.map +1 -1
- package/dist/focus/listener-spawn.d.ts.map +1 -1
- package/dist/focus/listener-spawn.js +33 -10
- package/dist/focus/listener-spawn.js.map +1 -1
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +21 -8
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/live-arm-facts.d.ts +10 -0
- package/dist/focus/live-arm-facts.d.ts.map +1 -0
- package/dist/focus/live-arm-facts.js +47 -0
- package/dist/focus/live-arm-facts.js.map +1 -0
- package/dist/focus/pending-review-approved-head.d.ts +1 -1
- package/dist/focus/pending-review-approved-head.d.ts.map +1 -1
- package/dist/focus/pending-review-approved-head.js +4 -3
- package/dist/focus/pending-review-approved-head.js.map +1 -1
- package/dist/focus/recorded-new-intent.d.ts +81 -0
- package/dist/focus/recorded-new-intent.d.ts.map +1 -0
- package/dist/focus/recorded-new-intent.js +147 -0
- package/dist/focus/recorded-new-intent.js.map +1 -0
- package/dist/focus/stage-watermark-seeding.d.ts +39 -0
- package/dist/focus/stage-watermark-seeding.d.ts.map +1 -0
- package/dist/focus/stage-watermark-seeding.js +60 -0
- package/dist/focus/stage-watermark-seeding.js.map +1 -0
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts +19 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.js +19 -3
- package/dist/focus-stage-lifecycle/wedge-watchdog.js.map +1 -1
- package/dist/prompt/focus-prompt-builder.d.ts +2 -1
- package/dist/prompt/focus-prompt-builder.d.ts.map +1 -1
- package/dist/prompt/focus-prompt-builder.js +10 -1
- package/dist/prompt/focus-prompt-builder.js.map +1 -1
- package/dist/prompt/team-prompt-base.d.ts.map +1 -1
- package/dist/prompt/team-prompt-base.js +4 -2
- package/dist/prompt/team-prompt-base.js.map +1 -1
- package/dist/prompt-sections/execution-sections.d.ts +22 -1
- package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
- package/dist/prompt-sections/execution-sections.js +23 -2
- package/dist/prompt-sections/execution-sections.js.map +1 -1
- package/dist/prompt-sections/shared.d.ts +9 -0
- package/dist/prompt-sections/shared.d.ts.map +1 -1
- package/dist/prompt-sections/shared.js +2 -1
- package/dist/prompt-sections/shared.js.map +1 -1
- package/dist/queries/arm-covered-targets.d.ts +84 -0
- package/dist/queries/arm-covered-targets.d.ts.map +1 -0
- package/dist/queries/arm-covered-targets.js +129 -0
- package/dist/queries/arm-covered-targets.js.map +1 -0
- package/dist/queries/deliveries.d.ts +3 -0
- package/dist/queries/deliveries.d.ts.map +1 -1
- package/dist/queries/deliveries.js +10 -3
- package/dist/queries/deliveries.js.map +1 -1
- package/dist/queries/delivery-gate-state.d.ts +10 -0
- package/dist/queries/delivery-gate-state.d.ts.map +1 -1
- package/dist/queries/delivery-gate-state.js +2 -2
- package/dist/queries/delivery-gate-state.js.map +1 -1
- package/dist/queries/delivery-write-discipline.d.ts.map +1 -1
- package/dist/queries/delivery-write-discipline.js +2 -1
- package/dist/queries/delivery-write-discipline.js.map +1 -1
- package/dist/queries/directive-undelivered.d.ts +104 -0
- package/dist/queries/directive-undelivered.d.ts.map +1 -0
- package/dist/queries/directive-undelivered.js +162 -0
- package/dist/queries/directive-undelivered.js.map +1 -0
- package/dist/queries/focus-discovery.d.ts +16 -0
- package/dist/queries/focus-discovery.d.ts.map +1 -1
- package/dist/queries/focus-discovery.js +3 -0
- package/dist/queries/focus-discovery.js.map +1 -1
- package/dist/queries/focuses.d.ts.map +1 -1
- package/dist/queries/focuses.js +3 -1
- package/dist/queries/focuses.js.map +1 -1
- package/dist/queries/issues.d.ts.map +1 -1
- package/dist/queries/issues.js +1 -0
- package/dist/queries/issues.js.map +1 -1
- package/dist/queries/recorded-targets-record.d.ts +46 -0
- package/dist/queries/recorded-targets-record.d.ts.map +1 -0
- package/dist/queries/recorded-targets-record.js +29 -0
- package/dist/queries/recorded-targets-record.js.map +1 -0
- package/dist/queries/schemas.d.ts +4 -0
- package/dist/queries/schemas.d.ts.map +1 -1
- package/dist/queries/schemas.js +14 -0
- package/dist/queries/schemas.js.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/queries/verification.js +1 -1
- package/dist/queries/workflows.d.ts.map +1 -1
- package/dist/queries/workflows.js +1 -0
- package/dist/queries/workflows.js.map +1 -1
- package/dist/resolvers/assembly-engine.d.ts +13 -0
- package/dist/resolvers/assembly-engine.d.ts.map +1 -1
- package/dist/resolvers/assembly-engine.js +1 -1
- package/dist/resolvers/assembly-engine.js.map +1 -1
- package/dist/resolvers/compose/loop-delivery-index-compose.d.ts +23 -3
- package/dist/resolvers/compose/loop-delivery-index-compose.d.ts.map +1 -1
- package/dist/resolvers/compose/loop-delivery-index-compose.js +90 -43
- package/dist/resolvers/compose/loop-delivery-index-compose.js.map +1 -1
- package/dist/resolvers/delivery-listing.d.ts +27 -0
- package/dist/resolvers/delivery-listing.d.ts.map +1 -1
- package/dist/resolvers/delivery-listing.js +52 -36
- package/dist/resolvers/delivery-listing.js.map +1 -1
- package/dist/resolvers/loop-delivery-index.d.ts +8 -0
- package/dist/resolvers/loop-delivery-index.d.ts.map +1 -1
- package/dist/resolvers/loop-delivery-index.js +68 -7
- package/dist/resolvers/loop-delivery-index.js.map +1 -1
- package/dist/resolvers/shared/loop.d.ts +7 -0
- package/dist/resolvers/shared/loop.d.ts.map +1 -1
- package/dist/resolvers/shared/loop.js.map +1 -1
- package/dist/resolvers/shared/review-window-commits.d.ts.map +1 -1
- package/dist/resolvers/shared/review-window-commits.js +2 -1
- package/dist/resolvers/shared/review-window-commits.js.map +1 -1
- package/dist/spawn/helpers.d.ts.map +1 -1
- package/dist/spawn/helpers.js +4 -2
- package/dist/spawn/helpers.js.map +1 -1
- package/dist/spawn/lead-continuation.d.ts.map +1 -1
- package/dist/spawn/lead-continuation.js +8 -2
- package/dist/spawn/lead-continuation.js.map +1 -1
- package/dist/spawn/lead-send.d.ts +97 -0
- package/dist/spawn/lead-send.d.ts.map +1 -0
- package/dist/spawn/lead-send.js +80 -0
- package/dist/spawn/lead-send.js.map +1 -0
- package/dist/spawn/process-group-kill.d.ts.map +1 -1
- package/dist/spawn/process-group-kill.js +12 -1
- package/dist/spawn/process-group-kill.js.map +1 -1
- package/dist/spawn/process-spawn.d.ts.map +1 -1
- package/dist/spawn/process-spawn.js +6 -0
- package/dist/spawn/process-spawn.js.map +1 -1
- package/dist/spawn/prompt-assembly.d.ts +8 -0
- package/dist/spawn/prompt-assembly.d.ts.map +1 -1
- package/dist/spawn/prompt-assembly.js +2 -1
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/spawn-decision.d.ts +25 -1
- package/dist/spawn/spawn-decision.d.ts.map +1 -1
- package/dist/spawn/spawn-decision.js +19 -3
- package/dist/spawn/spawn-decision.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts +3 -0
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +2 -1
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/types/focus.d.ts +19 -0
- package/dist/types/focus.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/verify/commit-gate-configured.d.ts.map +1 -1
- package/dist/verify/commit-gate-configured.js +1 -1
- package/dist/verify/commit-gate-configured.js.map +1 -1
- package/dist/verify/commit-verdict-pull.d.ts +48 -0
- package/dist/verify/commit-verdict-pull.d.ts.map +1 -0
- package/dist/verify/commit-verdict-pull.js +148 -0
- package/dist/verify/commit-verdict-pull.js.map +1 -0
- package/dist/verify/commit-verdict-record.js +1 -1
- package/dist/verify/credit-rearm.js +1 -1
- package/dist/verify/credit-rearm.js.map +1 -1
- package/dist/verify/default-on-guards.d.ts +74 -0
- package/dist/verify/default-on-guards.d.ts.map +1 -0
- package/dist/verify/default-on-guards.js +305 -0
- package/dist/verify/default-on-guards.js.map +1 -0
- package/dist/verify/explicit-rearm.d.ts.map +1 -1
- package/dist/verify/explicit-rearm.js +1 -0
- package/dist/verify/explicit-rearm.js.map +1 -1
- package/dist/verify/gate-run-registry.d.ts.map +1 -1
- package/dist/verify/gate-run-registry.js +1 -0
- package/dist/verify/gate-run-registry.js.map +1 -1
- package/dist/verify/injection-stamp.d.ts +30 -0
- package/dist/verify/injection-stamp.d.ts.map +1 -1
- package/dist/verify/injection-stamp.js +37 -1
- package/dist/verify/injection-stamp.js.map +1 -1
- package/dist/verify/judged-ancestor.d.ts +41 -0
- package/dist/verify/judged-ancestor.d.ts.map +1 -0
- package/dist/verify/judged-ancestor.js +101 -0
- package/dist/verify/judged-ancestor.js.map +1 -0
- package/dist/verify/no-own-delta-verdict.d.ts +7 -2
- package/dist/verify/no-own-delta-verdict.d.ts.map +1 -1
- package/dist/verify/no-own-delta-verdict.js +14 -17
- package/dist/verify/no-own-delta-verdict.js.map +1 -1
- package/dist/verify/recorded-targets.d.ts +103 -0
- package/dist/verify/recorded-targets.d.ts.map +1 -0
- package/dist/verify/recorded-targets.js +159 -0
- package/dist/verify/recorded-targets.js.map +1 -0
- package/dist/verify/rework-attribution.d.ts +71 -0
- package/dist/verify/rework-attribution.d.ts.map +1 -0
- package/dist/verify/rework-attribution.js +263 -0
- package/dist/verify/rework-attribution.js.map +1 -0
- package/dist/verify/shortfall-rulings.d.ts.map +1 -1
- package/dist/verify/shortfall-rulings.js +3 -2
- package/dist/verify/shortfall-rulings.js.map +1 -1
- package/dist/verify/verification-boundary-env.d.ts +63 -15
- package/dist/verify/verification-boundary-env.d.ts.map +1 -1
- package/dist/verify/verification-boundary-env.js +81 -12
- package/dist/verify/verification-boundary-env.js.map +1 -1
- package/dist/verify/verification-commit-sharing.d.ts.map +1 -1
- package/dist/verify/verification-commit-sharing.js +2 -1
- package/dist/verify/verification-commit-sharing.js.map +1 -1
- package/dist/verify/verification-config.d.ts.map +1 -1
- package/dist/verify/verification-config.js +1 -0
- package/dist/verify/verification-config.js.map +1 -1
- package/dist/verify/verification-default-on.d.ts +0 -32
- package/dist/verify/verification-default-on.d.ts.map +1 -1
- package/dist/verify/verification-default-on.js +10 -234
- package/dist/verify/verification-default-on.js.map +1 -1
- package/dist/verify/verification-deps-default.d.ts.map +1 -1
- package/dist/verify/verification-deps-default.js +24 -2
- package/dist/verify/verification-deps-default.js.map +1 -1
- package/dist/verify/verification-deps.d.ts +17 -1
- package/dist/verify/verification-deps.d.ts.map +1 -1
- package/dist/verify/verification-engine.d.ts +2 -1
- package/dist/verify/verification-engine.d.ts.map +1 -1
- package/dist/verify/verification-engine.js +62 -50
- package/dist/verify/verification-engine.js.map +1 -1
- package/dist/verify/verification-feedback.d.ts +1 -1
- package/dist/verify/verification-feedback.d.ts.map +1 -1
- package/dist/verify/verification-feedback.js +5 -0
- package/dist/verify/verification-feedback.js.map +1 -1
- package/dist/verify/verification-rework-issue.d.ts +48 -7
- package/dist/verify/verification-rework-issue.d.ts.map +1 -1
- package/dist/verify/verification-rework-issue.js +111 -9
- package/dist/verify/verification-rework-issue.js.map +1 -1
- package/dist/verify/verify-restatement.d.ts +27 -33
- package/dist/verify/verify-restatement.d.ts.map +1 -1
- package/dist/verify/verify-restatement.js +74 -1
- package/dist/verify/verify-restatement.js.map +1 -1
- package/package.json +2 -2
package/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commitSha": "
|
|
3
|
-
"builtAt": "2026-09-
|
|
2
|
+
"commitSha": "95e96fd64",
|
|
3
|
+
"builtAt": "2026-09-22T00:40:56.533Z",
|
|
4
4
|
"expectedMigrations": [
|
|
5
5
|
"20250829113330_create_org_nodes_table.sql",
|
|
6
6
|
"20250829113402_fix_function_security_search_path.sql",
|
|
@@ -812,6 +812,13 @@
|
|
|
812
812
|
"20260919162704_agent_sessions_daemon_hostname.sql",
|
|
813
813
|
"20260919175607_agent_sessions_daemon_instance_id.sql",
|
|
814
814
|
"20260920140801_add_focus_arm_ended_attribution.sql",
|
|
815
|
-
"20260920152723_focus_debug_integration_sync_section.sql"
|
|
815
|
+
"20260920152723_focus_debug_integration_sync_section.sql",
|
|
816
|
+
"20260920185952_arm_clear_ignores_recorded_new_intent.sql",
|
|
817
|
+
"20260920192321_insert_trigger_records_new_intent.sql",
|
|
818
|
+
"20260920202553_focus_debug_directive_undelivered_section.sql",
|
|
819
|
+
"20260920213405_arm_covered_targets_are_fixed_at_the_arm.sql",
|
|
820
|
+
"20260920220952_playbooks_organization_id_nullable.sql",
|
|
821
|
+
"20260920225339_builtin_workflow_child_policies_authorize_on_entity.sql",
|
|
822
|
+
"20260921000043_stamp_arm_covered_target_nodes.sql"
|
|
816
823
|
]
|
|
817
824
|
}
|
|
@@ -9,7 +9,14 @@
|
|
|
9
9
|
* Failure modes never throw -- each path returns outcome='continue' with
|
|
10
10
|
* an explanatory rationale and metadata.errors entries. This keeps the
|
|
11
11
|
* focus loop running so a transient audit failure does not stall execution.
|
|
12
|
+
*
|
|
13
|
+
* `armFacts` (runAuditPhase's 4th argument): the focus's arm facts, so the
|
|
14
|
+
* scoping-entry gate can tell a delivery RECORDED as new intent under the live
|
|
15
|
+
* arm from real pre-coding work. Without it the audit's OWN recorded output
|
|
16
|
+
* would make the focus look like it is entering scoping again on the next tick,
|
|
17
|
+
* and the pass would re-fire forever, authoring more recorded intent each time.
|
|
12
18
|
*/
|
|
19
|
+
import type { ArmFacts } from '../focus/recorded-new-intent.js';
|
|
13
20
|
import { type AssemblySignals } from '../resolvers/assembly-engine.js';
|
|
14
21
|
import { type FocusPhaseOutcome } from '../queries/focus-cycle-evaluations.js';
|
|
15
22
|
import { type AuditRunRow, type AuditRunStatus, type RecentAuditRun } from '../queries/audit-runs.js';
|
|
@@ -69,6 +76,9 @@ export interface AuditPhaseResult {
|
|
|
69
76
|
* change-detection gate reads `updatedAt`.
|
|
70
77
|
*/
|
|
71
78
|
export interface AuditGateDelivery {
|
|
79
|
+
/** Needed by the scoping-entry gate to check the delivery against the focus's
|
|
80
|
+
* arm baseline (focus/recorded-new-intent.ts). */
|
|
81
|
+
id: string;
|
|
72
82
|
executionStatus: string | null;
|
|
73
83
|
updatedAt?: string | null;
|
|
74
84
|
}
|
|
@@ -187,5 +197,5 @@ export declare const defaultAuditDeps: AuditPhaseDeps;
|
|
|
187
197
|
* returns 'continue' so the focus loop advances regardless of audit
|
|
188
198
|
* outcome -- the row + metadata.errors describe what happened.
|
|
189
199
|
*/
|
|
190
|
-
export declare function runAuditPhase(focusId: string, deps?: AuditPhaseDeps, posture?: AuditPosture): Promise<AuditPhaseResult>;
|
|
200
|
+
export declare function runAuditPhase(focusId: string, deps?: AuditPhaseDeps, posture?: AuditPosture, armFacts?: ArmFacts | null): Promise<AuditPhaseResult>;
|
|
191
201
|
//# sourceMappingURL=audit-phase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-phase.d.ts","sourceRoot":"","sources":["../../src/audit/audit-phase.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"audit-phase.d.ts","sourceRoot":"","sources":["../../src/audit/audit-phase.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAIL,KAAK,WAAW,EAChB,KA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AC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClF,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1F;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC/D,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnF;AAMD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CA4C9D;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,SAAS,iBAAiB,EAAE,EACxC,OAAO,EAAE,cAAc,GAAG,IAAI,GAC7B,OAAO,CAaT;AAwCD,eAAO,MAAM,gBAAgB,EAAE,cA6B9B,CAAC;AA6EF;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,cAAiC,EACvC,OAAO,GAAE,YAAqB,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GACzD,OAAO,CAAC,gBAAgB,CAAC,CAsQ3B"}
|
|
@@ -5,18 +5,6 @@
|
|
|
5
5
|
// packages/daemon/src/spawn/audit-spawn-stream-json.test.ts,
|
|
6
6
|
// packages/daemon/src/spawn/audit-spawn-telemetry-config.test.ts
|
|
7
7
|
// PINNED-BY-END
|
|
8
|
-
/**
|
|
9
|
-
* Autonomous reality-tree audit phase.
|
|
10
|
-
*
|
|
11
|
-
* Replaces the runAuditPhase scaffold with a one-shot LLM assessor session
|
|
12
|
-
* that compares the focus's observable state against the CRT/FRT and mutates
|
|
13
|
-
* the graph via reality_tree_* MCP tools. The session's narrated summary
|
|
14
|
-
* is captured to an `audit_runs` row for human review.
|
|
15
|
-
*
|
|
16
|
-
* Failure modes never throw -- each path returns outcome='continue' with
|
|
17
|
-
* an explanatory rationale and metadata.errors entries. This keeps the
|
|
18
|
-
* focus loop running so a transient audit failure does not stall execution.
|
|
19
|
-
*/
|
|
20
8
|
import { resolveAssemblyRecipeWithManifest, } from '../resolvers/assembly-engine.js';
|
|
21
9
|
import { readUnrecordedBranchWorkHold, } from '../resolvers/branch-work-arming.js';
|
|
22
10
|
// Register resolvers used by the audit recipe at module load (side effect).
|
|
@@ -324,7 +312,7 @@ function gateUnrecordedBranchWorkHold(cycleNumber, hold, metadata, errors) {
|
|
|
324
312
|
* returns 'continue' so the focus loop advances regardless of audit
|
|
325
313
|
* outcome -- the row + metadata.errors describe what happened.
|
|
326
314
|
*/
|
|
327
|
-
export async function runAuditPhase(focusId, deps = defaultAuditDeps, posture = 'live') {
|
|
315
|
+
export async function runAuditPhase(focusId, deps = defaultAuditDeps, posture = 'live', armFacts) {
|
|
328
316
|
const errors = [];
|
|
329
317
|
const metadata = { posture };
|
|
330
318
|
let cycleNumber = 1;
|
|
@@ -366,7 +354,7 @@ export async function runAuditPhase(focusId, deps = defaultAuditDeps, posture =
|
|
|
366
354
|
};
|
|
367
355
|
}
|
|
368
356
|
metadata.deliveryCount = deliveries.length;
|
|
369
|
-
if (!isFocusEnteringScoping(deliveries)) {
|
|
357
|
+
if (!isFocusEnteringScoping(deliveries, armFacts)) {
|
|
370
358
|
const reason = deliveries.length === 0 ? 'no_deliveries' : 'not_entering_scoping';
|
|
371
359
|
metadata.gated = true;
|
|
372
360
|
metadata.gateReason = reason;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-phase.js","s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S,GACb,CAAC,CAAC,WAAW,CAAC,YAAY;QAC1B,CAAC,WAAW,CAAC,QAAQ,KAAK,IAAI,IAAI,WAAW,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC;IAChE,MAAM,SAAS,GAAmB,SAAS;QACzC,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,IAAI;YAC1B,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,WAAW,CAAC;IAClB,QAAQ,CAAC,cAAc,GAAG,SAAS,CAAC;IAEpC,IAAI,UAAU,EAAE,CAAC;QACf,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,cAAc,CAAC;gBACxB,UAAU;gBACV,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,MAAM,EAAE,SAAS;aAClB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,CAAC,IAAI,CAAC,qBAAsB,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;QACzB,OAAO;YACL,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,eAAe,WAAW,mBAAmB,MAAM,CAAC,MAAM,WAAW;YAChF,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,EAAE,UAAU;QACnB,SAAS,EAAE,eAAe,WAAW,OAAO,OAAO,CAAC,YAAY,mBAAmB,OAAO,CAAC,YAAY,gBAAgB;QACvH,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -17,10 +17,13 @@
|
|
|
17
17
|
* Audit posture: what actually happens to the remediation deliveries the
|
|
18
18
|
* assessor anchors. `read_only` is the audit/ratify posture -- deliveries rest
|
|
19
19
|
* at `planning` behind the human ratify gate. `live` is a past-planning,
|
|
20
|
-
* non-read-only focus
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* non-read-only focus, where the RECORD/QUEUE rule decides per delivery: one
|
|
21
|
+
* serving an effect the current arm covers is created `queued` and runs
|
|
22
|
+
* autonomously, and one serving none is created and RECORDED at `planning` for
|
|
23
|
+
* the next arm. Neither is a refusal (AUDIT_LIVE_POSTURE_SHARED below is the
|
|
24
|
+
* text the assessor reads). The prompt tells the assessor the TRUTH for its
|
|
25
|
+
* posture so it never manufactures a human-review hold that does not exist
|
|
26
|
+
* (Bell CSN 2026-07-27).
|
|
24
27
|
*/
|
|
25
28
|
export type AuditPosture = 'read_only' | 'live';
|
|
26
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-prompt.d.ts","sourceRoot":"","sources":["../../src/audit/audit-prompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"audit-prompt.d.ts","sourceRoot":"","sources":["../../src/audit/audit-prompt.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC;AA4LhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,gBAAgB,CAAC;AAE1E,4CAA4C;AAC5C,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,iBAAiB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B;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,WAAgC,GAAG,SAAS,UAAU,EAAE,CAkBhG;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,GAAE,WAAgC,GACvC,SAAS,mBAAmB,EAAE,CAwBhC;AA2ED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,WAAgC,GAAG,SAAS,MAAM,EAAE,CAS7F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,WAAgC,GAAG,SAAS,MAAM,EAAE,CAS9F;AAmCD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAU9D;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,QAAgC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
-
// Pinned by: packages/daemon/src/audit/audit-
|
|
2
|
+
// Pinned by: packages/daemon/src/audit/audit-guide-sync.test.ts,
|
|
3
|
+
// packages/daemon/src/audit/audit-phase.test.ts,
|
|
3
4
|
// packages/daemon/src/prompt/decision-rule-replaces-escalation.test.ts
|
|
4
5
|
// PINNED-BY-END
|
|
5
6
|
/**
|
|
@@ -13,6 +14,16 @@ const AUDIT_INTRO = [
|
|
|
13
14
|
'',
|
|
14
15
|
'A safe audit emits a TREE and a PLAN, never a task checklist. You are READ-ONLY with respect to code: discovery only. You author the intent structure -- the current reality, its root causes, and the leverage points -- and you anchor a plan of injection-anchored remediation deliveries. You do NOT fix anything, and you do NOT file remediation Task or Bug issues. Remediation is scoped LATER, one root cause at a time, from the injections you anchor here -- so there is no flat checklist to complete with completion-vigor and churn stays bounded to the real defects.',
|
|
15
16
|
];
|
|
17
|
+
// The LIVE-POSTURE rule, kept BYTE-IDENTICAL to AUDIT_LIVE_POSTURE_SHARED in
|
|
18
|
+
// mcp/telora-products/src/handlers/auditTreeAuthoringGuide.ts and gated by
|
|
19
|
+
// audit-guide-sync.test.ts, which reads BOTH sentinel pairs in this file. Its
|
|
20
|
+
// own pair, because only the rule is shared: the daemon knows the posture and
|
|
21
|
+
// says so, while telora_discover does not and must present both. The MCP copy
|
|
22
|
+
// sat OUTSIDE every sentinel until 2026-09-20 and went stale unnoticed; the
|
|
23
|
+
// sync test's header records what that cost.
|
|
24
|
+
// SHARED-AUDIT-LIVE-POSTURE:BEGIN
|
|
25
|
+
const AUDIT_LIVE_POSTURE_SHARED = 'What happens to a delivery you anchor depends on whether the focus is ARMED and whether your delivery serves an effect the arm already covers. MEANS -- its injection targets an effect the arm covers, or reaches one along a causal (sufficient/and) edge -- is created `queued` and executes AUTONOMOUSLY through the normal review gate, with NO human review step before it runs. NEW INTENT -- anything else -- is created and RECORDED: it rests at `planning`, is invisible to the running team, and executes when a human next arms this focus. Nothing you anchor is refused and nothing is frozen, so author everything you find. What this means for you: if you want work to run under the CURRENT arm, earn it structurally by drawing the causal edge from your injection\'s target to an effect the arm already covers -- a reviewer can check that edge. Do NOT try to buy it with words: there is no reason field, no override and no flag that makes new intent run now, and the response will tell you which way each create landed.';
|
|
26
|
+
// SHARED-AUDIT-LIVE-POSTURE:END
|
|
16
27
|
/**
|
|
17
28
|
* Posture-aware section: the truth about what happens to the deliveries the
|
|
18
29
|
* assessor anchors, in THIS focus's posture. This is the fix at the source for
|
|
@@ -29,7 +40,7 @@ function auditPostureSection(posture) {
|
|
|
29
40
|
}
|
|
30
41
|
return [
|
|
31
42
|
'',
|
|
32
|
-
'POSTURE -- live focus. This focus is live (past planning)
|
|
43
|
+
'POSTURE -- live focus. This focus is live (past planning). ' + AUDIT_LIVE_POSTURE_SHARED + ' Do not author anything -- least of all acceptance criteria -- expecting a human to read it before execution; if you believe work must not run, DECIDE it under the decision rule below -- take the reversible option that preserves both futures and record it for the focus review -- never write a hold into the plan.',
|
|
33
44
|
];
|
|
34
45
|
}
|
|
35
46
|
/**
|
|
@@ -201,7 +212,7 @@ export const AUDIT_FLOOR_POLICY = {
|
|
|
201
212
|
},
|
|
202
213
|
],
|
|
203
214
|
universalClosing: [
|
|
204
|
-
'Anchoring past a reached floor is a DECLARED act, never a silent one
|
|
215
|
+
'Anchoring past a reached floor is a DECLARED act, never a silent one -- but it is declared by what you DRAW, not by what you write. On an armed focus a delivery that serves no effect the arm covers is recorded and waits for the next arm; to have it run now, draw the causal edge that makes it means. There is no reason field that substitutes for the edge.',
|
|
205
216
|
],
|
|
206
217
|
bases: [
|
|
207
218
|
{
|
|
@@ -504,34 +515,34 @@ export function renderFloorSection(policy = AUDIT_FLOOR_POLICY) {
|
|
|
504
515
|
}
|
|
505
516
|
const AUDIT_CRITERIA_FLOOR = renderFloorSection();
|
|
506
517
|
/**
|
|
507
|
-
* Round-5 pre-condition: the
|
|
518
|
+
* Round-5 pre-condition: attribute the fact, then let the structure decide.
|
|
508
519
|
*
|
|
509
|
-
* Deliberately OUTSIDE the SHARED-AUDIT-GUIDE sentinels
|
|
510
|
-
* the
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
* it, the MCP guide's readers have no such section), so putting it in the
|
|
514
|
-
* shared block would state a precondition its other reader cannot satisfy.
|
|
520
|
+
* Deliberately OUTSIDE the SHARED-AUDIT-GUIDE sentinels: it is specific to a
|
|
521
|
+
* pass holding the daemon's `focus.review_coverage` section, which the MCP
|
|
522
|
+
* guide's readers do not have, so sharing it would state a precondition its
|
|
523
|
+
* other reader cannot satisfy.
|
|
515
524
|
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
525
|
+
* WHAT CHANGED. This section used to carry the unreviewed-residue HOLD, which
|
|
526
|
+
* refused a create unless the pass declared `allowUnreviewedResidue` with a
|
|
527
|
+
* reason. Retired (see `_shared/delivery-structural-validity.ts`): it was a
|
|
528
|
+
* norm any caller could release by writing a sentence, and it REFUSED, which
|
|
529
|
+
* the record/queue rule never does. What is left is the half that was always
|
|
530
|
+
* real work -- ATTRIBUTION -- because "does this serve an effect the arm
|
|
531
|
+
* covers?" is unanswerable from a guess about which delivery produced a fact.
|
|
532
|
+
* The disposition follows from the causal edges the pass draws, and the create
|
|
533
|
+
* path reports which way it went.
|
|
523
534
|
*/
|
|
524
535
|
const AUDIT_UNREVIEWED_RESIDUE = [
|
|
525
536
|
'',
|
|
526
|
-
'## Before you anchor (round 5): is this
|
|
537
|
+
'## Before you anchor (round 5): whose work is this fact, and does the arm cover it?',
|
|
527
538
|
'',
|
|
528
539
|
'The "Delivery review coverage" section of your context partitions this focus\'s deliveries by review state -- reviewed, unreviewed, no work yet -- and states the basis it partitioned on. READ IT BEFORE YOU CREATE ANY DELIVERY. It is how you tell a fact produced by work a reviewer has judged from a fact produced by work no reviewer has seen.',
|
|
529
540
|
'',
|
|
530
|
-
'- **Attribute the fact before you judge it.** That section\'s "Fact provenance" sub-section maps each commit on the focus branch -- and each file those commits touched -- to the delivery that produced it and that delivery\'s review state. Use it to decide which
|
|
531
|
-
'- **Residue of
|
|
532
|
-
'- **A genuinely NEW root cause is
|
|
533
|
-
'- **
|
|
534
|
-
'- **If that section says READ FAILED, the review state is UNKNOWN.**
|
|
541
|
+
'- **Attribute the fact before you judge it.** That section\'s "Fact provenance" sub-section maps each commit on the focus branch -- and each file those commits touched -- to the delivery that produced it and that delivery\'s review state. Use it to decide which delivery an observed fact belongs to. Do NOT infer the producing delivery from a file path, a commit subject, or which delivery sounds related: the mapping is read from each commit\'s `Telora-Delivery` trailer, and a guess is exactly the inference this section exists to remove. A file the mapping shows was touched by MORE THAN ONE delivery belongs to all of them -- do not pick one. A fact the mapping reports as UNATTRIBUTED has no known producing delivery; if the mapping says NOT AVAILABLE, no fact on the branch is attributable at all.',
|
|
542
|
+
'- **Residue of work still in flight belongs ON that work, not beside it.** A defect or gap in what an unreviewed delivery produced is not new information: it is the not-yet-judged tail of work already in flight, and the review that has not happened yet is exactly where it gets judged. Put it on that delivery -- new issues on it (`telora_product_issue` create with its deliveryId) or an update to it -- rather than anchoring a sibling. Anchoring a sibling splits the evidence for one desired effect across two deliveries, which is a real cost whatever the arm says.',
|
|
543
|
+
'- **A genuinely NEW root cause is ALWAYS anchored. Nothing is refused.** Author it. On an armed focus the create then lands one of two ways, and the response tells you which: MEANS (its injection targets an effect the arm covers, or reaches one along a sufficient/and edge) runs now under the existing arm; NEW INTENT rests at `planning` and runs when a human next arms the focus. Neither is a rejection, and neither needs a flag, a reason or an override -- those are gone. If you believe the cause must be worked NOW, the way to say so is to draw the causal edge that makes it means, which a reviewer can check. Writing a justification does nothing.',
|
|
544
|
+
'- **Do not restate a cause under a new name.** Not because a hold would catch you -- none will -- but because two names for one cause put two deliveries on one effect and split its evidence.',
|
|
545
|
+
'- **If that section says READ FAILED, the review state is UNKNOWN.** Say so in your audit summary and attribute nothing on guesswork. An unreadable review state is not evidence that everything is reviewed.',
|
|
535
546
|
];
|
|
536
547
|
/**
|
|
537
548
|
* Compose the audit assessor prompt for a given posture. The read-only and live
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-prompt.js","sourceRoot":"","sources":["../../src/audit/audit-prompt.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"audit-prompt.js","sourceRoot":"","sources":["../../src/audit/audit-prompt.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,iEAAiE;AACjE,mDAAmD;AACnD,yEAAyE;AACzE,gBAAgB;AAgChB;;;;;GAKG;AACH,MAAM,WAAW,GAAsB;IACrC,uEAAuE;IACvE,EAAE;IACF,ujBAAujB;CACxjB,CAAC;AA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AM,oBAAoB,GAAsB,kBAAkB,EAAE,CAAC;AAErE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,wBAAwB,GAAsB;IAClD,EAAE;IACF,qFAAqF;IACrF,EAAE;IACF,wVAAwV;IACxV,EAAE;IACF,qyBAAqyB;IACryB,wjBAAwjB;IACxjB,4oBAA4oB;IAC5oB,gMAAgM;IAChM,+MAA+M;CAChN,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAqB;IACpD,OAAO;QACL,GAAG,WAAW;QACd,GAAG,mBAAmB,CAAC,OAAO,CAAC;QAC/B,EAAE;QACF,kBAAkB;QAClB,GAAG,oBAAoB;QACvB,GAAG,wBAAwB;QAC3B,GAAG,kBAAkB;KACtB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CompletionEventContext, CompletionEventDeps } from './event.js';
|
|
2
|
+
import { type CompletionFacts } from './event-phases.js';
|
|
3
|
+
import type { CompletionAction } from './completion-decision.js';
|
|
4
|
+
/**
|
|
5
|
+
* Records this cycle on the persistent delivery-advancement guard and, when
|
|
6
|
+
* the threshold is reached, files ONE delivery-advancement-stalled escalation
|
|
7
|
+
* (idempotent against an open team_failure) and terminates.
|
|
8
|
+
*
|
|
9
|
+
* Returns true when the team was terminated.
|
|
10
|
+
*/
|
|
11
|
+
export declare function checkDeliveryAdvancementStall(ctx: CompletionEventContext, deps: CompletionEventDeps, facts: CompletionFacts, action: CompletionAction, noProgressLimit: number): Promise<boolean>;
|
|
12
|
+
//# sourceMappingURL=advancement-stall-watchdog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancement-stall-watchdog.d.ts","sourceRoot":"","sources":["../../src/completion/advancement-stall-watchdog.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAA8B,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKjE;;;;;;GAMG;AACH,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,sBAAsB,EAC3B,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,gBAAgB,EACxB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,OAAO,CAAC,CA2DlB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
+
// Pinned by: packages/daemon/src/completion/progress-guards-recorded-intent.test.ts
|
|
3
|
+
// PINNED-BY-END
|
|
4
|
+
/**
|
|
5
|
+
* The cross-respawn delivery-advancement stall watchdog.
|
|
6
|
+
*
|
|
7
|
+
* Extracted from event-phases.ts verbatim (behaviour-preserving) when that file
|
|
8
|
+
* crossed the 800-line gate. It is a self-contained phase: it reads the facts
|
|
9
|
+
* the previous phase computed, records this cycle on the persistent
|
|
10
|
+
* delivery-advancement guard, and terminates with ONE escalation at the
|
|
11
|
+
* threshold. Nothing else in the completion path calls into it and it calls
|
|
12
|
+
* nothing back -- which is why it is the clean seam, rather than the facts
|
|
13
|
+
* computation above it that every other phase reads.
|
|
14
|
+
*
|
|
15
|
+
* @module completion/advancement-stall-watchdog
|
|
16
|
+
*/
|
|
17
|
+
import { recordDeliveryAdvancementCycle } from './delivery-advancement-guard.js';
|
|
18
|
+
import { escalateDeliveryAdvancementStalled } from './event-escalations.js';
|
|
19
|
+
import { NO_PROGRESS_CYCLE_FLOOR_MS } from './event-phases.js';
|
|
20
|
+
import { createLogger } from '../shell/log.js';
|
|
21
|
+
const log = createLogger({ module: 'focus-executor' });
|
|
22
|
+
/**
|
|
23
|
+
* Records this cycle on the persistent delivery-advancement guard and, when
|
|
24
|
+
* the threshold is reached, files ONE delivery-advancement-stalled escalation
|
|
25
|
+
* (idempotent against an open team_failure) and terminates.
|
|
26
|
+
*
|
|
27
|
+
* Returns true when the team was terminated.
|
|
28
|
+
*/
|
|
29
|
+
export async function checkDeliveryAdvancementStall(ctx, deps, facts, action, noProgressLimit) {
|
|
30
|
+
const { focusId, focusName, teamState } = ctx;
|
|
31
|
+
const shouldRecord = facts.teamHasActionableWork &&
|
|
32
|
+
action.kind !== 'escalate_no_progress_and_terminate' &&
|
|
33
|
+
(facts.priorSnapshot === null || !facts.madeProgress);
|
|
34
|
+
const deliveryAdvancement = shouldRecord
|
|
35
|
+
? recordDeliveryAdvancementCycle(focusId, facts.armVisibleDeliveries,
|
|
36
|
+
// Reuse the SAME issue + head-sha values computeCompletionFacts already
|
|
37
|
+
// derived for the madeProgress snapshot -- passed through, never
|
|
38
|
+
// re-derived -- so the guard's cross-respawn progress axes stay
|
|
39
|
+
// consistent with madeProgress without a second issue fetch or git read.
|
|
40
|
+
// ARM-VISIBLE, matching the delivery list above it: an issue on a
|
|
41
|
+
// delivery RECORDED as new intent is invisible to the running team, so
|
|
42
|
+
// counting it in the issue fingerprint would let intent the arm never
|
|
43
|
+
// covered decide this team's team_failure.
|
|
44
|
+
facts.armVisibleIssues, facts.focusHeadSha, noProgressLimit,
|
|
45
|
+
// Same real-time floor as the scope-coverage counter: this cross-respawn
|
|
46
|
+
// watchdog is a cycle-counter too, so a burst of completion events must
|
|
47
|
+
// not be able to trip it either (without this the scope-coverage floor
|
|
48
|
+
// just moves the false team_failure from one guard to its twin).
|
|
49
|
+
facts.nowMs, NO_PROGRESS_CYCLE_FLOOR_MS)
|
|
50
|
+
: null;
|
|
51
|
+
if (!deliveryAdvancement?.thresholdReached)
|
|
52
|
+
return false;
|
|
53
|
+
let alreadyEscalated = false;
|
|
54
|
+
try {
|
|
55
|
+
alreadyEscalated = await deps.hasOpenTeamFailureEscalation(focusId);
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
log.warn(`Open-escalation check failed for "${focusName}", proceeding to escalate delivery-advancement stall: ${err.message}`);
|
|
59
|
+
}
|
|
60
|
+
if (!alreadyEscalated) {
|
|
61
|
+
await escalateDeliveryAdvancementStalled({
|
|
62
|
+
organizationId: teamState.organizationId,
|
|
63
|
+
sessionId: teamState.leadSessionId ?? '',
|
|
64
|
+
focusId,
|
|
65
|
+
focusName,
|
|
66
|
+
agentRoleId: teamState.roleId,
|
|
67
|
+
cycles: deliveryAdvancement.noAdvancementCycles,
|
|
68
|
+
deliveries: facts.armVisibleDeliveries,
|
|
69
|
+
}, deps);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
log.info(`Delivery-advancement stall for "${focusName}" but an open ` +
|
|
73
|
+
`team_failure escalation already exists -- terminating without filing a duplicate`);
|
|
74
|
+
}
|
|
75
|
+
teamState.shutdownReason = 'work_complete';
|
|
76
|
+
deps.terminateTeam(focusId);
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=advancement-stall-watchdog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancement-stall-watchdog.js","sourceRoot":"","sources":["../../src/completion/advancement-stall-watchdog.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,oFAAoF;AACpF,gBAAgB;AAEhB;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,0BAA0B,EAAwB,MAAM,mBAAmB,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvD;;;;;;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AAI,EAAE;YACxC,OAAO;YACP,SAAS;YACT,WAAW,EAAE,SAAS,CAAC,MAAM;YAC7B,MAAM,EAAE,mBAAmB,CAAC,mBAAmB;YAC/C,UAAU,EAAE,KAAK,CAAC,oBAAoB;SACvC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CACN,mCAAmC,SAAS,gBAAgB;YAC5D,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,SAAS,CAAC,cAAc,GAAG,eAAe,CAAC;IAC3C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the progress guards are allowed to MEASURE: the deliveries the running
|
|
3
|
+
* arm covers, and the issues that belong to them.
|
|
4
|
+
*
|
|
5
|
+
* WHY BOTH HALVES, AND WHY IN ONE PLACE. The completion path already narrowed
|
|
6
|
+
* its DELIVERY list to the arm (`deliveriesVisibleToArm`), but kept feeding the
|
|
7
|
+
* whole focus's ISSUE list into the two no-progress watchdogs:
|
|
8
|
+
*
|
|
9
|
+
* - `takeProgressSnapshot` (completion/progress-snapshot.ts) counts
|
|
10
|
+
* `issues.length` as a progress axis, and
|
|
11
|
+
* - `recordDeliveryAdvancementCycle` (completion/delivery-advancement-guard.ts)
|
|
12
|
+
* fingerprints `{issueId -> status}` as its cross-respawn progress axis.
|
|
13
|
+
*
|
|
14
|
+
* A half-narrowed input is worse than an un-narrowed one, because the two
|
|
15
|
+
* halves then disagree about what the arm owes. The issues of a RECORDED
|
|
16
|
+
* delivery are work the running team cannot see, cannot start and cannot
|
|
17
|
+
* advance -- it is invisible to it by construction -- yet they sat inside both
|
|
18
|
+
* measurements: a frozen block that never moves on the one hand, and, whenever
|
|
19
|
+
* an agent files or edits an issue on that recorded delivery, a change on a
|
|
20
|
+
* dimension the team did not move on the other. Either way the guard is reading
|
|
21
|
+
* a signal that does not answer its own question ("did the team advance the
|
|
22
|
+
* work the arm gave it?"), and the worse direction files a `team_failure`
|
|
23
|
+
* against a team that was never shown the work -- the exact wedge the
|
|
24
|
+
* record/queue rule exists to prevent.
|
|
25
|
+
*
|
|
26
|
+
* So the narrowing is done ONCE, here, over the ONE predicate
|
|
27
|
+
* (`focus/recorded-new-intent.ts`), and both guards read the result. A delivery
|
|
28
|
+
* and its issues enter or leave the measurement together.
|
|
29
|
+
*
|
|
30
|
+
* FAIL-CLOSED DEFAULT, inherited unchanged: unknown/absent arm facts yield an
|
|
31
|
+
* empty recorded set, so both lists pass through untouched and every guard
|
|
32
|
+
* behaves exactly as it did before this module existed. An issue whose
|
|
33
|
+
* `deliveryId` matches no delivery in the list is KEPT for the same reason --
|
|
34
|
+
* nothing proves it belongs to recorded intent.
|
|
35
|
+
*/
|
|
36
|
+
import type { FocusDeliveryInfo, FocusIssueInfo } from '../types/index.js';
|
|
37
|
+
import { type ArmFacts } from '../focus/recorded-new-intent.js';
|
|
38
|
+
/** The delivery + issue pair every no-progress measurement is taken over. */
|
|
39
|
+
export interface ArmVisibleProgressInputs {
|
|
40
|
+
/** `deliveries` minus anything recorded as new intent under the live arm. */
|
|
41
|
+
deliveries: FocusDeliveryInfo[];
|
|
42
|
+
/** `issues` minus every issue belonging to one of those recorded deliveries. */
|
|
43
|
+
issues: FocusIssueInfo[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Narrow a focus's deliveries AND its issues to what the running arm covers.
|
|
47
|
+
*
|
|
48
|
+
* `armFacts` null/undefined => both lists are returned unchanged.
|
|
49
|
+
*/
|
|
50
|
+
export declare function armVisibleProgressInputs(deliveries: FocusDeliveryInfo[], issues: FocusIssueInfo[], armFacts: ArmFacts | null | undefined): ArmVisibleProgressInputs;
|
|
51
|
+
//# sourceMappingURL=arm-visible-progress-inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arm-visible-progress-inputs.d.ts","sourceRoot":"","sources":["../../src/completion/arm-visible-progress-inputs.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,iCAAiC,CAAC;AAEzC,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,gFAAgF;IAChF,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,iBAAiB,EAAE,EAC/B,MAAM,EAAE,cAAc,EAAE,EACxB,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GACpC,wBAAwB,CAO1B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
+
// Pinned by: packages/daemon/src/completion/progress-guards-recorded-intent.test.ts
|
|
3
|
+
// PINNED-BY-END
|
|
4
|
+
import { recordedNewIntentDeliveryIds, } from '../focus/recorded-new-intent.js';
|
|
5
|
+
/**
|
|
6
|
+
* Narrow a focus's deliveries AND its issues to what the running arm covers.
|
|
7
|
+
*
|
|
8
|
+
* `armFacts` null/undefined => both lists are returned unchanged.
|
|
9
|
+
*/
|
|
10
|
+
export function armVisibleProgressInputs(deliveries, issues, armFacts) {
|
|
11
|
+
const recordedIds = recordedNewIntentDeliveryIds(deliveries, armFacts);
|
|
12
|
+
if (recordedIds.size === 0)
|
|
13
|
+
return { deliveries, issues };
|
|
14
|
+
return {
|
|
15
|
+
deliveries: deliveries.filter(d => !recordedIds.has(d.id)),
|
|
16
|
+
issues: issues.filter(i => !recordedIds.has(i.deliveryId)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=arm-visible-progress-inputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arm-visible-progress-inputs.js","sourceRoot":"","sources":["../../src/completion/arm-visible-progress-inputs.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,oFAAoF;AACpF,gBAAgB;AAuChB,OAAO,EACL,4BAA4B,GAE7B,MAAM,iCAAiC,CAAC;AAUzC;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAA+B,EAC/B,MAAwB,EACxB,QAAqC;IAErC,MAAM,WAAW,GAAG,4BAA4B,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACvE,IAAI,WAAW,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAC1D,OAAO;QACL,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC1D,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|