@telora/daemon 0.22.144 → 0.22.160
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 +8 -3
- package/dist/audit/audit-phase.d.ts +34 -1
- package/dist/audit/audit-phase.d.ts.map +1 -1
- package/dist/audit/audit-phase.js +77 -9
- package/dist/audit/audit-phase.js.map +1 -1
- package/dist/backends/codex/codex-mcp-proxy.d.ts +4 -6
- package/dist/backends/codex/codex-mcp-proxy.d.ts.map +1 -1
- package/dist/backends/codex/codex-mcp-proxy.js.map +1 -1
- package/dist/backends/codex/mcp-preflight.d.ts +2 -2
- package/dist/backends/codex/mcp-preflight.d.ts.map +1 -1
- package/dist/backends/codex/mcp-preflight.js.map +1 -1
- package/dist/completion/completion-phase-registry.d.ts +1 -0
- package/dist/completion/completion-phase-registry.d.ts.map +1 -1
- package/dist/completion/completion-phase-registry.js +7 -5
- package/dist/completion/completion-phase-registry.js.map +1 -1
- package/dist/completion/escalation-provenance.d.ts.map +1 -1
- package/dist/completion/escalation-provenance.js +5 -2
- package/dist/completion/escalation-provenance.js.map +1 -1
- package/dist/completion/exit-classification.d.ts +1 -1
- package/dist/completion/exit-classification.d.ts.map +1 -1
- package/dist/completion/exit-classification.js +7 -1
- package/dist/completion/exit-classification.js.map +1 -1
- package/dist/completion/review-cycle-cap.d.ts +81 -35
- package/dist/completion/review-cycle-cap.d.ts.map +1 -1
- package/dist/completion/review-cycle-cap.js +60 -132
- package/dist/completion/review-cycle-cap.js.map +1 -1
- package/dist/completion/review-exit-deps.d.ts +3 -1
- package/dist/completion/review-exit-deps.d.ts.map +1 -1
- package/dist/completion/review-exit-deps.js +3 -1
- package/dist/completion/review-exit-deps.js.map +1 -1
- package/dist/completion/review-exit-phase.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.js +5 -4
- package/dist/completion/review-exit-phase.js.map +1 -1
- package/dist/completion/state-cascade.d.ts.map +1 -1
- package/dist/completion/state-cascade.js +3 -7
- package/dist/completion/state-cascade.js.map +1 -1
- package/dist/delivery/delivery-review-coverage.d.ts +16 -0
- package/dist/delivery/delivery-review-coverage.d.ts.map +1 -1
- package/dist/delivery/delivery-review-coverage.js +16 -0
- package/dist/delivery/delivery-review-coverage.js.map +1 -1
- package/dist/focus/focus-engine.d.ts +16 -0
- package/dist/focus/focus-engine.d.ts.map +1 -1
- package/dist/focus/focus-engine.js +37 -17
- 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 +7 -0
- package/dist/focus/focus-executor.js.map +1 -1
- package/dist/focus/focus-spawn-decision.d.ts +5 -3
- package/dist/focus/focus-spawn-decision.d.ts.map +1 -1
- package/dist/focus/focus-spawn-decision.js.map +1 -1
- package/dist/focus/listener-spawn.d.ts.map +1 -1
- package/dist/focus/listener-spawn.js +4 -3
- package/dist/focus/listener-spawn.js.map +1 -1
- package/dist/focus/listener.d.ts +15 -0
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +58 -9
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/review-cycle-cap-hold.d.ts +15 -94
- package/dist/focus/review-cycle-cap-hold.d.ts.map +1 -1
- package/dist/focus/review-cycle-cap-hold.js +54 -112
- package/dist/focus/review-cycle-cap-hold.js.map +1 -1
- package/dist/focus/session-health.d.ts +22 -1
- package/dist/focus/session-health.d.ts.map +1 -1
- package/dist/focus/session-health.js +28 -3
- package/dist/focus/session-health.js.map +1 -1
- package/dist/focus/session-process-reap.d.ts +3 -1
- package/dist/focus/session-process-reap.d.ts.map +1 -1
- package/dist/focus/session-process-reap.js +20 -0
- package/dist/focus/session-process-reap.js.map +1 -1
- package/dist/focus-stage-lifecycle/index.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/index.js +1 -0
- package/dist/focus-stage-lifecycle/index.js.map +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts +10 -0
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.js +27 -3
- package/dist/focus-stage-lifecycle/wedge-watchdog.js.map +1 -1
- package/dist/git/focus-integration-sync.d.ts +42 -3
- package/dist/git/focus-integration-sync.d.ts.map +1 -1
- package/dist/git/focus-integration-sync.js +38 -2
- package/dist/git/focus-integration-sync.js.map +1 -1
- package/dist/merge/abandoned-merge-recovery.d.ts.map +1 -1
- package/dist/merge/abandoned-merge-recovery.js +10 -0
- package/dist/merge/abandoned-merge-recovery.js.map +1 -1
- package/dist/merge/merge-back-loop.d.ts +1 -0
- package/dist/merge/merge-back-loop.d.ts.map +1 -1
- package/dist/merge/merge-back-loop.js +3 -3
- package/dist/merge/merge-back-loop.js.map +1 -1
- package/dist/prompt/team-prompt-base.d.ts +2 -1
- package/dist/prompt/team-prompt-base.d.ts.map +1 -1
- package/dist/prompt/team-prompt-base.js +5 -19
- package/dist/prompt/team-prompt-base.js.map +1 -1
- package/dist/prompt-sections/integration-reconcile-section.d.ts +45 -0
- package/dist/prompt-sections/integration-reconcile-section.d.ts.map +1 -0
- package/dist/prompt-sections/integration-reconcile-section.js +69 -0
- package/dist/prompt-sections/integration-reconcile-section.js.map +1 -0
- package/dist/prompt-sections/persona-sections.d.ts +0 -20
- package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
- package/dist/prompt-sections/persona-sections.js +4 -49
- package/dist/prompt-sections/persona-sections.js.map +1 -1
- package/dist/prompt-sections/testing-standard.d.ts +51 -0
- package/dist/prompt-sections/testing-standard.d.ts.map +1 -0
- package/dist/prompt-sections/testing-standard.js +132 -0
- package/dist/prompt-sections/testing-standard.js.map +1 -0
- package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.js +7 -5
- package/dist/queries/agent-resolvable-promotion.js.map +1 -1
- package/dist/queries/ended-arm.d.ts +47 -0
- package/dist/queries/ended-arm.d.ts.map +1 -0
- package/dist/queries/ended-arm.js +35 -0
- package/dist/queries/ended-arm.js.map +1 -0
- package/dist/queries/escalation-consumption.d.ts.map +1 -1
- package/dist/queries/escalation-consumption.js +0 -1
- package/dist/queries/escalation-consumption.js.map +1 -1
- package/dist/queries/focus-discovery.d.ts +14 -0
- package/dist/queries/focus-discovery.d.ts.map +1 -1
- package/dist/queries/focus-discovery.js +1 -0
- package/dist/queries/focus-discovery.js.map +1 -1
- package/dist/queries/focus-integration-conflict.d.ts +78 -0
- package/dist/queries/focus-integration-conflict.d.ts.map +1 -0
- package/dist/queries/focus-integration-conflict.js +136 -0
- package/dist/queries/focus-integration-conflict.js.map +1 -0
- package/dist/queries/focuses.d.ts +6 -3
- package/dist/queries/focuses.d.ts.map +1 -1
- package/dist/queries/focuses.js +13 -5
- package/dist/queries/focuses.js.map +1 -1
- package/dist/queries/incident-correlation.d.ts +1 -2
- package/dist/queries/incident-correlation.d.ts.map +1 -1
- package/dist/queries/incident-correlation.js +1 -3
- package/dist/queries/incident-correlation.js.map +1 -1
- package/dist/queries/local-models.js +1 -1
- package/dist/queries/local-models.js.map +1 -1
- package/dist/queries/schemas-local-model.d.ts +47 -0
- package/dist/queries/schemas-local-model.d.ts.map +1 -0
- package/dist/queries/schemas-local-model.js +57 -0
- package/dist/queries/schemas-local-model.js.map +1 -0
- package/dist/queries/schemas.d.ts +10 -32
- package/dist/queries/schemas.d.ts.map +1 -1
- package/dist/queries/schemas.js +10 -41
- package/dist/queries/schemas.js.map +1 -1
- package/dist/queries/sessions.d.ts +120 -12
- package/dist/queries/sessions.d.ts.map +1 -1
- package/dist/queries/sessions.js +104 -11
- package/dist/queries/sessions.js.map +1 -1
- package/dist/queries/shared.d.ts +1 -0
- package/dist/queries/shared.d.ts.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/queries/shared.js.map +1 -1
- package/dist/queries/system-session.d.ts.map +1 -1
- package/dist/queries/system-session.js +3 -1
- package/dist/queries/system-session.js.map +1 -1
- package/dist/resolvers/assembly-engine.d.ts +71 -1
- package/dist/resolvers/assembly-engine.d.ts.map +1 -1
- package/dist/resolvers/assembly-engine.js +82 -43
- package/dist/resolvers/assembly-engine.js.map +1 -1
- package/dist/resolvers/branch-work-arming.d.ts +133 -0
- package/dist/resolvers/branch-work-arming.d.ts.map +1 -0
- package/dist/resolvers/branch-work-arming.js +67 -0
- package/dist/resolvers/branch-work-arming.js.map +1 -0
- package/dist/resolvers/focus-review-coverage.d.ts.map +1 -1
- package/dist/resolvers/focus-review-coverage.js +31 -2
- package/dist/resolvers/focus-review-coverage.js.map +1 -1
- package/dist/resolvers/wiki-topic.d.ts +6 -5
- package/dist/resolvers/wiki-topic.d.ts.map +1 -1
- package/dist/resolvers/wiki-topic.js +43 -27
- package/dist/resolvers/wiki-topic.js.map +1 -1
- package/dist/session/session-lineage.d.ts.map +1 -1
- package/dist/session/session-lineage.js +1 -0
- package/dist/session/session-lineage.js.map +1 -1
- package/dist/shell/crash-recovery.d.ts +4 -2
- package/dist/shell/crash-recovery.d.ts.map +1 -1
- package/dist/shell/crash-recovery.js +15 -14
- package/dist/shell/crash-recovery.js.map +1 -1
- package/dist/shell/daemon-instance.d.ts +176 -0
- package/dist/shell/daemon-instance.d.ts.map +1 -0
- package/dist/shell/daemon-instance.js +281 -0
- package/dist/shell/daemon-instance.js.map +1 -0
- package/dist/shell/graceful-shutdown.d.ts +12 -1
- package/dist/shell/graceful-shutdown.d.ts.map +1 -1
- package/dist/shell/graceful-shutdown.js +7 -4
- package/dist/shell/graceful-shutdown.js.map +1 -1
- package/dist/shell/shutdown-ownership.d.ts +34 -0
- package/dist/shell/shutdown-ownership.d.ts.map +1 -0
- package/dist/shell/shutdown-ownership.js +51 -0
- package/dist/shell/shutdown-ownership.js.map +1 -0
- package/dist/shell/unified-shell.d.ts.map +1 -1
- package/dist/shell/unified-shell.js +12 -5
- package/dist/shell/unified-shell.js.map +1 -1
- package/dist/shell/worker-pidfile.d.ts +127 -11
- package/dist/shell/worker-pidfile.d.ts.map +1 -1
- package/dist/shell/worker-pidfile.js +349 -58
- package/dist/shell/worker-pidfile.js.map +1 -1
- package/dist/spawn/lead-launch.d.ts +17 -1
- package/dist/spawn/lead-launch.d.ts.map +1 -1
- package/dist/spawn/lead-launch.js +56 -7
- package/dist/spawn/lead-launch.js.map +1 -1
- package/dist/spawn/lead-process-ownership.d.ts +5 -4
- package/dist/spawn/lead-process-ownership.d.ts.map +1 -1
- package/dist/spawn/lead-process-ownership.js +7 -4
- package/dist/spawn/lead-process-ownership.js.map +1 -1
- package/dist/spawn/lifecycle.d.ts +0 -12
- package/dist/spawn/lifecycle.d.ts.map +1 -1
- package/dist/spawn/lifecycle.js +76 -19
- package/dist/spawn/lifecycle.js.map +1 -1
- package/dist/spawn/liveness.d.ts.map +1 -1
- package/dist/spawn/liveness.js +3 -1
- package/dist/spawn/liveness.js.map +1 -1
- package/dist/spawn/one-shot-process-ownership.d.ts +46 -2
- package/dist/spawn/one-shot-process-ownership.d.ts.map +1 -1
- package/dist/spawn/one-shot-process-ownership.js +78 -3
- package/dist/spawn/one-shot-process-ownership.js.map +1 -1
- package/dist/spawn/process-group-kill.d.ts.map +1 -1
- package/dist/spawn/process-group-kill.js +3 -1
- package/dist/spawn/process-group-kill.js.map +1 -1
- package/dist/spawn/process-spawn.d.ts +5 -15
- package/dist/spawn/process-spawn.d.ts.map +1 -1
- package/dist/spawn/process-spawn.js +2 -1
- package/dist/spawn/process-spawn.js.map +1 -1
- package/dist/spawn/prompt-assembly.d.ts +27 -2
- package/dist/spawn/prompt-assembly.d.ts.map +1 -1
- package/dist/spawn/prompt-assembly.js +65 -43
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts +46 -2
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +57 -4
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/testing/fixtures/conflicting-repo.d.ts +30 -0
- package/dist/testing/fixtures/conflicting-repo.d.ts.map +1 -0
- package/dist/testing/fixtures/conflicting-repo.js +89 -0
- package/dist/testing/fixtures/conflicting-repo.js.map +1 -0
- package/dist/testing/fixtures/index.d.ts.map +1 -1
- package/dist/testing/fixtures/index.js +2 -1
- package/dist/testing/fixtures/index.js.map +1 -1
- package/dist/testing/fixtures/pending-spawn-world.js +2 -2
- package/dist/testing/fixtures/pending-spawn-world.js.map +1 -1
- package/dist/types/exit-category.d.ts +59 -0
- package/dist/types/exit-category.d.ts.map +1 -0
- package/dist/types/exit-category.js +133 -0
- package/dist/types/exit-category.js.map +1 -0
- package/dist/types/index.js +1 -1
- package/dist/types/session.d.ts +5 -1
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +1 -1
- package/dist/types/session.js.map +1 -1
- package/dist/verify/stall-detector-config.d.ts +5 -1
- package/dist/verify/stall-detector-config.d.ts.map +1 -1
- package/dist/verify/stall-detector-config.js +5 -1
- package/dist/verify/stall-detector-config.js.map +1 -1
- package/dist/worktree/state.d.ts +75 -1
- package/dist/worktree/state.d.ts.map +1 -1
- package/dist/worktree/state.js +89 -17
- package/dist/worktree/state.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
+
// Pinned by: packages/daemon/src/spawn/integration-reconcile-spawn.test.ts
|
|
3
|
+
// PINNED-BY-END
|
|
4
|
+
import { buildMergeResolutionSteps } from './gate-ownership.js';
|
|
5
|
+
/** The section's heading -- the anchor callers and tests name it by. */
|
|
6
|
+
export const INTEGRATION_RECONCILE_HEADING = '# RECONCILE WITH INTEGRATION FIRST';
|
|
7
|
+
/** Render a bounded bullet list, or an explicit "could not be read" line. */
|
|
8
|
+
function bullets(items, emptyLine) {
|
|
9
|
+
return items.length > 0 ? items.map(item => `- ${item}`) : [emptyLine];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The reconcile-first work order. Returns [] when `conflict` is null, so a
|
|
13
|
+
* successful (or held) sync composes exactly the message it composes today.
|
|
14
|
+
*
|
|
15
|
+
* `focusBranchName` is the branch the team is on; '' renders as "your focus
|
|
16
|
+
* branch" rather than an empty backtick pair.
|
|
17
|
+
*/
|
|
18
|
+
export function buildIntegrationReconcileSection(conflict, focusBranchName) {
|
|
19
|
+
if (!conflict)
|
|
20
|
+
return [];
|
|
21
|
+
const { integrationBranch, conflictPaths, missingCommits, detectedAt } = conflict;
|
|
22
|
+
const branch = focusBranchName.trim() ? `\`${focusBranchName.trim()}\`` : 'your focus branch';
|
|
23
|
+
return [
|
|
24
|
+
INTEGRATION_RECONCILE_HEADING,
|
|
25
|
+
'',
|
|
26
|
+
`Before anything else in this session: ${branch} cannot be brought current with`,
|
|
27
|
+
`\`${integrationBranch}\`. The daemon's sync rebase conflicted at spawn (${detectedAt}) and was`,
|
|
28
|
+
'aborted, so this worktree is CLEAN and on the focus branch -- but its base is stale,',
|
|
29
|
+
`and every commit you add here is built on a base \`${integrationBranch}\` has already moved off.`,
|
|
30
|
+
'',
|
|
31
|
+
`Reconciling with \`${integrationBranch}\` is the FIRST task of this session. Do it before any`,
|
|
32
|
+
'delivery work, before scoping, before re-reading the diff. Nothing else you build on',
|
|
33
|
+
'this branch can reach integration until it is done.',
|
|
34
|
+
'',
|
|
35
|
+
`## Conflicting paths (${conflictPaths.length})`,
|
|
36
|
+
'',
|
|
37
|
+
...bullets(conflictPaths, '- (the unmerged-path read failed; run `git merge` below and read them from the conflict)'),
|
|
38
|
+
'',
|
|
39
|
+
`## Commits on \`${integrationBranch}\` this branch does not have (${missingCommits.length})`,
|
|
40
|
+
'',
|
|
41
|
+
...bullets(missingCommits, `- (the read failed; run \`git log HEAD..${integrationBranch}\` yourself)`),
|
|
42
|
+
'',
|
|
43
|
+
'## How to reconcile',
|
|
44
|
+
'',
|
|
45
|
+
`MERGE \`${integrationBranch}\` into the focus branch. Do NOT rebase, and do not ask the daemon`,
|
|
46
|
+
'to retry the rebase -- it will conflict again on the same paths.',
|
|
47
|
+
'',
|
|
48
|
+
` git merge ${integrationBranch}`,
|
|
49
|
+
'',
|
|
50
|
+
...buildMergeResolutionSteps(),
|
|
51
|
+
'',
|
|
52
|
+
'WHY a merge and not a rebase: a rebase rewrites every commit sha on this branch.',
|
|
53
|
+
'Those shas are load-bearing -- the `Telora-Delivery` trailer partitions each',
|
|
54
|
+
"delivery's evidence by commit sha, and every verify verdict is recorded against the",
|
|
55
|
+
'sha it judged. Rewriting them discards the attribution and the verdicts the work',
|
|
56
|
+
'already earned. A merge keeps the shas stable.',
|
|
57
|
+
'',
|
|
58
|
+
'The conflicting paths above are where the two sides disagree, but they are a symptom:',
|
|
59
|
+
'read the listed commits to find WHY the same files moved on both sides (the same',
|
|
60
|
+
'capability committed twice, a sibling focus editing the same module, two migrations',
|
|
61
|
+
'taking the same number), and resolve toward one implementation rather than merging',
|
|
62
|
+
'both. You hold the context on your own changes -- that is why this is yours and not a',
|
|
63
|
+
'resolver agent\'s.',
|
|
64
|
+
'',
|
|
65
|
+
`Until a sync succeeds, this focus is recorded as conflicting with \`${integrationBranch}\`.`,
|
|
66
|
+
'A successful merge clears that record on the next spawn.',
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=integration-reconcile-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-reconcile-section.js","sourceRoot":"","sources":["../../src/prompt-sections/integration-reconcile-section.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,2EAA2E;AAC3E,gBAAgB;AAqChB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,wEAAwE;AACxE,MAAM,CAAC,MAAM,6BAA6B,GAAG,oCAAoC,CAAC;AAElF,6EAA6E;AAC7E,SAAS,OAAO,CAAC,KAAwB,EAAE,SAAiB;IAC1D,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,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AAuF;QACvF,oBAAoB;QACpB,EAAE;QACF,uEAAuE,iBAAiB,KAAK;QAC7F,0DAA0D;KAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -19,26 +19,6 @@ import { type GateVerdictSummary } from './gate-verdict-section.js';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function buildRemediationDirectiveSection(reviewFiledOpenCount: number): string[];
|
|
21
21
|
export declare function buildReviewOutcomeStampingSection(agentSessionId?: string): string[];
|
|
22
|
-
/**
|
|
23
|
-
* Build the review-stage sensor-audit charge.
|
|
24
|
-
*
|
|
25
|
-
* Injection #8 of the weak-sensor test audit (focus "Test Quality Audit:
|
|
26
|
-
* weak-sensor population"). The review pass is the ONE independent frame in the
|
|
27
|
-
* loop: code and its covering tests are authored by the same coding session, so
|
|
28
|
-
* a weak sensor (a test that passes whether or not the covered behavior is
|
|
29
|
-
* correct) is invisible from inside that frame. The review agent, being a
|
|
30
|
-
* separate session/lineage, is where the sensor can be interrogated -- but only
|
|
31
|
-
* if its charge tells it to. This section adds that charge: for each test in the
|
|
32
|
-
* diff, name the concrete wrong behavior it would catch; if it cannot, flag it.
|
|
33
|
-
*
|
|
34
|
-
* Emitted on the review lineage ONLY (a coding pass has no review authority),
|
|
35
|
-
* so the caller includes it only for a reviewing-stage spawn. The tokens
|
|
36
|
-
* `sensor audit`, `wrong behavior`, and `weak sensor` appear verbatim so the
|
|
37
|
-
* charge is assertable in the COMPOSED prompt by the enforcement test -- the
|
|
38
|
-
* test asserts the applied effect (the charge reaches the built prompt), not a
|
|
39
|
-
* source grep of this builder in isolation.
|
|
40
|
-
*/
|
|
41
|
-
export declare function buildReviewSensorAuditSection(): string[];
|
|
42
22
|
/**
|
|
43
23
|
* The marker we look for in the assembled stage-directive context to know a
|
|
44
24
|
* review report is being rendered into the prompt. The focus.last_review_report
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persona-sections.d.ts","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[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IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE;QAAE,IAAI,EAAE,aAAa,GAAG,WAAW,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACzC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,kBAAkB,GAAG,MAAM,CAkFvE"}
|
|
@@ -230,55 +230,10 @@ export function buildReviewOutcomeStampingSection(agentSessionId) {
|
|
|
230
230
|
'',
|
|
231
231
|
];
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
* weak-sensor population"). The review pass is the ONE independent frame in the
|
|
238
|
-
* loop: code and its covering tests are authored by the same coding session, so
|
|
239
|
-
* a weak sensor (a test that passes whether or not the covered behavior is
|
|
240
|
-
* correct) is invisible from inside that frame. The review agent, being a
|
|
241
|
-
* separate session/lineage, is where the sensor can be interrogated -- but only
|
|
242
|
-
* if its charge tells it to. This section adds that charge: for each test in the
|
|
243
|
-
* diff, name the concrete wrong behavior it would catch; if it cannot, flag it.
|
|
244
|
-
*
|
|
245
|
-
* Emitted on the review lineage ONLY (a coding pass has no review authority),
|
|
246
|
-
* so the caller includes it only for a reviewing-stage spawn. The tokens
|
|
247
|
-
* `sensor audit`, `wrong behavior`, and `weak sensor` appear verbatim so the
|
|
248
|
-
* charge is assertable in the COMPOSED prompt by the enforcement test -- the
|
|
249
|
-
* test asserts the applied effect (the charge reaches the built prompt), not a
|
|
250
|
-
* source grep of this builder in isolation.
|
|
251
|
-
*/
|
|
252
|
-
export function buildReviewSensorAuditSection() {
|
|
253
|
-
return [
|
|
254
|
-
'## REQUIRED: Sensor Audit -- Interrogate the Tests in This Diff',
|
|
255
|
-
'',
|
|
256
|
-
'Tests are the sensors the verify gate trusts. Because the coding session',
|
|
257
|
-
'authored the code AND its covering tests in one frame, a weak sensor -- a',
|
|
258
|
-
'test that stays green whether or not the covered behavior is correct -- is',
|
|
259
|
-
'invisible from inside that frame. You are the independent frame. As part of',
|
|
260
|
-
'this review you MUST audit the tests, not just the code:',
|
|
261
|
-
'',
|
|
262
|
-
'- For each test touched or added in this diff, name the CONCRETE wrong',
|
|
263
|
-
' behavior it would catch -- the specific bug or regression that would turn',
|
|
264
|
-
' it red. State it explicitly in your review.',
|
|
265
|
-
'- If you CANNOT name a wrong behavior the test would catch, flag the test as',
|
|
266
|
-
' a weak sensor and file it as a gap. Common weak shapes to reject:',
|
|
267
|
-
' - greps an artifact\'s own source text (SQL / prompt / config literal)',
|
|
268
|
-
' instead of applying the change and observing the effect;',
|
|
269
|
-
' - asserts a mock returns what it was told (the code logic is never run);',
|
|
270
|
-
' - asserts only that a write happened (call count), not what was written;',
|
|
271
|
-
' - an effect-bearing change whose test asserts only that it ran;',
|
|
272
|
-
' - a test named for a rejection/error that never triggers that path.',
|
|
273
|
-
'- A diff that adds effect-bearing code with no test that would fail if the',
|
|
274
|
-
' effect were wrong is a blocking gap (`gaps_found`), not an approval.',
|
|
275
|
-
'',
|
|
276
|
-
'See the testing standard (wiki: "Testing standard: sensors, not source',
|
|
277
|
-
'text") for the full rule. The mechanical `lint:test-quality` gate catches a',
|
|
278
|
-
'subset; this charge is the judgment layer it cannot mechanize.',
|
|
279
|
-
'',
|
|
280
|
-
];
|
|
281
|
-
}
|
|
233
|
+
// The review-stage sensor-audit charge now lives with the standard it enforces:
|
|
234
|
+
// prompt-sections/testing-standard.ts (buildReviewSensorAuditSection). Both the
|
|
235
|
+
// coding section and the review charge are built from TESTING_STANDARD_RULES
|
|
236
|
+
// there, so the coder is handed the same text its reviewer applies.
|
|
282
237
|
/**
|
|
283
238
|
* The marker we look for in the assembled stage-directive context to know a
|
|
284
239
|
* review report is being rendered into the prompt. The focus.last_review_report
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persona-sections.js","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sFAAsF;AACtF,gBAAgB;AAUhB,OAAO,EAAE,qBAAqB,EAA2B,MAAM,2BAA2B,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gCAAgC,CAC9C,oBAA4B;IAE5B,IAAI,oBAAoB,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,OAAO;QACL,+BAA+B;QAC/B,EAAE;QACF,4BAA4B,oBAAoB,6BAA6B;QAC7E,wEAAwE;QACxE,6CAA6C;QAC7C,EAAE;QACF,yEAAyE;QACzE,mBAAmB;QACnB,0EAA0E;QAC1E,8EAA8E;QAC9E,2DAA2D;QAC3D,wEAAwE;QACxE,+DAA+D;QAC/D,EAAE;QACF,uEAAuE;QACvE,qEAAqE;QACrE,EAAE;KACH,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;;;;;GAKG;AACH,MAAM,6BAA6B,GAAa;IAC9C,yDAAyD;IACzD,8EAA8E;IAC9E,2EAA2E;IAC3E,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,mBAAmB;IACnB,yEAAyE;IACzE,yEAAyE;IACzE,gEAAgE;IAChE,8EAA8E;IAC9E,UAAU;IACV,4EAA4E;IAC5E,+EAA+E;IAC/E,0EAA0E;IAC1E,+EAA+E;IAC/E,gFAAgF;IAChF,gFAAgF;IAChF,gFAAgF;IAChF,gFAAgF;IAChF,gFAAgF;IAChF,gFAAgF;CACjF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,gCAAgC,GAAsB;IAC1D,6EAA6E;IAC7E,+EAA+E;IAC/E,kEAAkE;IAClE,+EAA+E;IAC/E,8EAA8E;IAC9E,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E;QAC9E,+EAA+E;QAC/E,0EAA0E;QAC1E,+EAA+E;QAC/E,iEAAiE;QACjE,EAAE;QACF,+BAA+B;QAC/B,EAAE;QACF,2EAA2E;QAC3E,2EAA2E;QAC3E,2EAA2E;QAC3E,6EAA6E;QAC7E,0EAA0E;QAC1E,0EAA0E;QAC1E,4BAA4B;QAC5B,+EAA+E;QAC/E,6EAA6E;QAC7E,qEAAqE;QACrE,2EAA2E;QAC3E,6EAA6E;QAC7E,+DAA+D;QAC/D,EAAE;QACF,4EAA4E;QAC5E,6EAA6E;QAC7E,uEAAuE;QACvE,cAAc;QACd,EAAE;QACF,2EAA2E;QAC3E,4EAA4E;QAC5E,6EAA6E;QAC7E,6EAA6E;QAC7E,8EAA8E;QAC9E,EAAE;QACF,iDAAiD;QACjD,EAAE;QACF,2EAA2E;QAC3E,qEAAqE;QACrE,sEAAsE;QACtE,yDAAyD;QACzD,EAAE;QACF,8CAA8C;QAC9C,2EAA2E;QAC3E,yEAAyE;QACzE,yDAAyD;QACzD,6EAA6E;QAC7E,6EAA6E;QAC7E,8EAA8E;QAC9E,8EAA8E;QAC9E,8EAA8E;QAC9E,6BAA6B;QAC7B,EAAE;QACF,yEAAyE;QACzE,uEAAuE;QACvE,6EAA6E;QAC7E,iCAAiC;QACjC,EAAE;KACH,CAAC;AACJ,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"persona-sections.js","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sFAAsF;AACtF,gBAAgB;AAUhB,OAAO,EAAE,qBAAqB,EAA2B,MAAM,2BAA2B,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gCAAgC,CAC9C,oBAA4B;IAE5B,IAAI,oBAAoB,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,OAAO;QACL,+BAA+B;QAC/B,EAAE;QACF,4BAA4B,oBAAoB,6BAA6B;QAC7E,wEAAwE;QACxE,6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G,YAAY,EAAE,EAAE,CAAC,CAAC;IAE7D,2EAA2E;IAC3E,0EAA0E;IAC1E,8EAA8E;IAC9E,4EAA4E;IAC5E,2EAA2E;IAC3E,IAAI,QAAQ,EAAE,CAAC;QACb,KAAK,CAAC,IAAI,CAAC,GAAG,iCAAiC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The testing standard, as ONE source text, and the two pass-shaped sections
|
|
3
|
+
* built from it.
|
|
4
|
+
*
|
|
5
|
+
* WHY THIS IS A CONSTANT AND NOT A WIKI PAGE. The standard was pinned into the
|
|
6
|
+
* coding-stage directive on 2026-07-04 as `wiki.topic(slug=
|
|
7
|
+
* "testing-standard-sensors")`, so it reached a coding team only where that page
|
|
8
|
+
* exists -- one product. The review pass's charge, meanwhile, is compiled into
|
|
9
|
+
* the daemon and always arrives. The result was a coder judged against a
|
|
10
|
+
* standard it was never handed, learning it one review bounce at a time. A
|
|
11
|
+
* prompt section shipped inside the daemon package reaches EVERY product and
|
|
12
|
+
* reaches production when the daemon is published; a wiki page reaches one
|
|
13
|
+
* product's database. So the rules live here, and BOTH passes are built from
|
|
14
|
+
* them -- the coding section and the review's sensor-audit charge cannot drift
|
|
15
|
+
* apart, because there is only one text.
|
|
16
|
+
*
|
|
17
|
+
* The Telora wiki page survives as the agent-editable LONG FORM (the 2026-07-04
|
|
18
|
+
* decision "Sensors, not source text" in docs/DECISIONS.md made it a page so
|
|
19
|
+
* agents could revise it without a code change). WHERE THE TWO DIFFER, THIS
|
|
20
|
+
* TEXT WINS -- every prompt built from here says so, so an agent reading both
|
|
21
|
+
* is never left to guess.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* The standard itself: the rules, stated once. Consumed by
|
|
25
|
+
* `buildCodingTestingStandardSection` (the pass that writes the tests) and
|
|
26
|
+
* `buildReviewSensorAuditSection` (the pass that judges them). Editing these
|
|
27
|
+
* lines changes what BOTH passes are handed.
|
|
28
|
+
*/
|
|
29
|
+
export declare const TESTING_STANDARD_RULES: readonly string[];
|
|
30
|
+
/**
|
|
31
|
+
* Which copy of the standard wins. Emitted with every section built here so the
|
|
32
|
+
* answer travels with the rules rather than living in a decision log the agent
|
|
33
|
+
* reading the prompt has not opened.
|
|
34
|
+
*/
|
|
35
|
+
export declare const TESTING_STANDARD_AUTHORITY: readonly string[];
|
|
36
|
+
/**
|
|
37
|
+
* The CODING pass's section: the same rules, framed as the standard the work
|
|
38
|
+
* will be judged against. Emitted on every non-review spawn.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildCodingTestingStandardSection(): string[];
|
|
41
|
+
/**
|
|
42
|
+
* The REVIEW pass's charge: the same rules, plus the obligations that only the
|
|
43
|
+
* independent frame can discharge (naming the wrong behavior out loud, filing a
|
|
44
|
+
* weak sensor as a gap).
|
|
45
|
+
*
|
|
46
|
+
* The rules themselves are NOT restated here -- they are spread in from
|
|
47
|
+
* TESTING_STANDARD_RULES, which is what makes "the coder is handed the standard
|
|
48
|
+
* its review enforces" true by construction rather than by upkeep.
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildReviewSensorAuditSection(): string[];
|
|
51
|
+
//# sourceMappingURL=testing-standard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing-standard.d.ts","sourceRoot":"","sources":["../../src/prompt-sections/testing-standard.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAgCnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAMvD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iCAAiC,IAAI,MAAM,EAAE,CAa5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,EAAE,CA0BxD"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
+
// Pinned by: packages/daemon/src/prompt-sections/testing-standard.test.ts,
|
|
3
|
+
// packages/daemon/src/spawn/build-spawn-prompt.test.ts
|
|
4
|
+
// PINNED-BY-END
|
|
5
|
+
/**
|
|
6
|
+
* The testing standard, as ONE source text, and the two pass-shaped sections
|
|
7
|
+
* built from it.
|
|
8
|
+
*
|
|
9
|
+
* WHY THIS IS A CONSTANT AND NOT A WIKI PAGE. The standard was pinned into the
|
|
10
|
+
* coding-stage directive on 2026-07-04 as `wiki.topic(slug=
|
|
11
|
+
* "testing-standard-sensors")`, so it reached a coding team only where that page
|
|
12
|
+
* exists -- one product. The review pass's charge, meanwhile, is compiled into
|
|
13
|
+
* the daemon and always arrives. The result was a coder judged against a
|
|
14
|
+
* standard it was never handed, learning it one review bounce at a time. A
|
|
15
|
+
* prompt section shipped inside the daemon package reaches EVERY product and
|
|
16
|
+
* reaches production when the daemon is published; a wiki page reaches one
|
|
17
|
+
* product's database. So the rules live here, and BOTH passes are built from
|
|
18
|
+
* them -- the coding section and the review's sensor-audit charge cannot drift
|
|
19
|
+
* apart, because there is only one text.
|
|
20
|
+
*
|
|
21
|
+
* The Telora wiki page survives as the agent-editable LONG FORM (the 2026-07-04
|
|
22
|
+
* decision "Sensors, not source text" in docs/DECISIONS.md made it a page so
|
|
23
|
+
* agents could revise it without a code change). WHERE THE TWO DIFFER, THIS
|
|
24
|
+
* TEXT WINS -- every prompt built from here says so, so an agent reading both
|
|
25
|
+
* is never left to guess.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The standard itself: the rules, stated once. Consumed by
|
|
29
|
+
* `buildCodingTestingStandardSection` (the pass that writes the tests) and
|
|
30
|
+
* `buildReviewSensorAuditSection` (the pass that judges them). Editing these
|
|
31
|
+
* lines changes what BOTH passes are handed.
|
|
32
|
+
*/
|
|
33
|
+
export const TESTING_STANDARD_RULES = [
|
|
34
|
+
'Tests are the sensors the verify gate trusts. Code and its covering tests are',
|
|
35
|
+
'authored by the same session in one mental frame, and nothing else in the loop',
|
|
36
|
+
'verifies the tests themselves -- so a test can confirm the author\'s own belief',
|
|
37
|
+
'(the artifact\'s source text) rather than its applied effect, and stay green',
|
|
38
|
+
'whether or not the behavior is correct. A green gate built on such a sensor',
|
|
39
|
+
'certifies a no-op.',
|
|
40
|
+
'',
|
|
41
|
+
'THE RULE: a green gate must measure the APPLIED EFFECT of a change -- the rows,',
|
|
42
|
+
'values or output it actually produces -- never the artifact\'s own source text.',
|
|
43
|
+
'',
|
|
44
|
+
'- Every test must be able to name the CONCRETE wrong behavior it would catch:',
|
|
45
|
+
' the specific bug or regression that would turn it red. A test whose wrong',
|
|
46
|
+
' behavior you cannot name is a weak sensor.',
|
|
47
|
+
'- Assert on the COMPOSED, OBSERVED result wherever the production path composes',
|
|
48
|
+
' one (the prompt text, the written row, the returned state) -- not on a',
|
|
49
|
+
' builder\'s return value in isolation.',
|
|
50
|
+
'- Row-changing migrations are applied and their row effect observed, or they',
|
|
51
|
+
' RAISE on 0 rows at source.',
|
|
52
|
+
'- Write-path mocks assert the written PAYLOAD, not the call count.',
|
|
53
|
+
'- If you can revert your effect-bearing change and every test still passes,',
|
|
54
|
+
' your tests are not sensors.',
|
|
55
|
+
'',
|
|
56
|
+
'Weak shapes, all rejected:',
|
|
57
|
+
'',
|
|
58
|
+
'- greps an artifact\'s own source text (SQL / prompt / config literal) instead',
|
|
59
|
+
' of applying the change and observing the effect;',
|
|
60
|
+
'- asserts a mock returns what it was told (the code logic is never run);',
|
|
61
|
+
'- asserts only that a write happened (call count), not what was written;',
|
|
62
|
+
'- an effect-bearing change whose test asserts only that it ran;',
|
|
63
|
+
'- a test named for a rejection/error that never triggers that path;',
|
|
64
|
+
'- asserts that something "changed" rather than WHAT it now says.',
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* Which copy of the standard wins. Emitted with every section built here so the
|
|
68
|
+
* answer travels with the rules rather than living in a decision log the agent
|
|
69
|
+
* reading the prompt has not opened.
|
|
70
|
+
*/
|
|
71
|
+
export const TESTING_STANDARD_AUTHORITY = [
|
|
72
|
+
'Provenance: this text ships inside the daemon, so it reaches this prompt in',
|
|
73
|
+
'every product whether or not that product has a wiki. The wiki page "Testing',
|
|
74
|
+
'standard: sensors, not source text" is the agent-editable LONG FORM (examples',
|
|
75
|
+
'and commentary) and exists in one product only.',
|
|
76
|
+
'Where the two differ, the text above wins.',
|
|
77
|
+
];
|
|
78
|
+
/**
|
|
79
|
+
* The CODING pass's section: the same rules, framed as the standard the work
|
|
80
|
+
* will be judged against. Emitted on every non-review spawn.
|
|
81
|
+
*/
|
|
82
|
+
export function buildCodingTestingStandardSection() {
|
|
83
|
+
return [
|
|
84
|
+
'## REQUIRED: Testing Standard -- Sensors, Not Source Text',
|
|
85
|
+
'',
|
|
86
|
+
'This is the standard your work is reviewed against, handed to you before you',
|
|
87
|
+
'write the tests rather than after they are rejected. The review pass is',
|
|
88
|
+
'charged with auditing the tests in your diff against exactly these rules.',
|
|
89
|
+
'',
|
|
90
|
+
...TESTING_STANDARD_RULES,
|
|
91
|
+
'',
|
|
92
|
+
...TESTING_STANDARD_AUTHORITY,
|
|
93
|
+
'',
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The REVIEW pass's charge: the same rules, plus the obligations that only the
|
|
98
|
+
* independent frame can discharge (naming the wrong behavior out loud, filing a
|
|
99
|
+
* weak sensor as a gap).
|
|
100
|
+
*
|
|
101
|
+
* The rules themselves are NOT restated here -- they are spread in from
|
|
102
|
+
* TESTING_STANDARD_RULES, which is what makes "the coder is handed the standard
|
|
103
|
+
* its review enforces" true by construction rather than by upkeep.
|
|
104
|
+
*/
|
|
105
|
+
export function buildReviewSensorAuditSection() {
|
|
106
|
+
return [
|
|
107
|
+
'## REQUIRED: Sensor Audit -- Interrogate the Tests in This Diff',
|
|
108
|
+
'',
|
|
109
|
+
'Because the coding session authored the code AND its covering tests in one',
|
|
110
|
+
'frame, a weak sensor -- a test that stays green whether or not the covered',
|
|
111
|
+
'behavior is correct -- is invisible from inside that frame. You are the',
|
|
112
|
+
'independent frame. The coding pass was handed exactly the standard below;',
|
|
113
|
+
'audit its tests against it, not just its code.',
|
|
114
|
+
'',
|
|
115
|
+
...TESTING_STANDARD_RULES,
|
|
116
|
+
'',
|
|
117
|
+
'What the independent frame owes on top of the rules:',
|
|
118
|
+
'',
|
|
119
|
+
'- For each test touched or added in this diff, state in your review the',
|
|
120
|
+
' wrong behavior it would catch. If you cannot state one, flag the test as a',
|
|
121
|
+
' weak sensor and file it as a gap.',
|
|
122
|
+
'- A diff that adds effect-bearing code with no test that would fail if the',
|
|
123
|
+
' effect were wrong is a blocking gap (`gaps_found`), not an approval.',
|
|
124
|
+
'',
|
|
125
|
+
'The mechanical `lint:test-quality` gate catches a subset of the weak shapes;',
|
|
126
|
+
'this charge is the judgment layer it cannot mechanize.',
|
|
127
|
+
'',
|
|
128
|
+
...TESTING_STANDARD_AUTHORITY,
|
|
129
|
+
'',
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=testing-standard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing-standard.js","sourceRoot":"","sources":["../../src/prompt-sections/testing-standard.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,2EAA2E;AAC3E,yDAAyD;AACzD,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,+EAA+E;IAC/E,gFAAgF;IAChF,iFAAiF;IACjF,8EAA8E;IAC9E,6EAA6E;IAC7E,oBAAoB;IACpB,EAAE;IACF,iFAAiF;IACjF,iFAAiF;IACjF,EAAE;IACF,+EAA+E;IAC/E,6EAA6E;IAC7E,8CAA8C;IAC9C,iFAAiF;IACjF,0EAA0E;IAC1E,yCAAyC;IACzC,8EAA8E;IAC9E,8BAA8B;IAC9B,oEAAoE;IACpE,6EAA6E;IAC7E,+BAA+B;IAC/B,EAAE;IACF,4BAA4B;IAC5B,EAAE;IACF,gFAAgF;IAChF,oDAAoD;IACpD,0EAA0E;IAC1E,0EAA0E;IAC1E,iEAAiE;IACjE,qEAAqE;IACrE,kEAAkE;CACnE,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAsB;IAC3D,6EAA6E;IAC7E,8EAA8E;IAC9E,+EAA+E;IAC/E,iDAAiD;IACjD,4CAA4C;CAC7C,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,iCAAiC;IAC/C,OAAO;QACL,2DAA2D;QAC3D,EAAE;QACF,8EAA8E;QAC9E,yEAAyE;QACzE,2EAA2E;QAC3E,EAAE;QACF,GAAG,sBAAsB;QACzB,EAAE;QACF,GAAG,0BAA0B;QAC7B,EAAE;KACH,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO;QACL,iEAAiE;QACjE,EAAE;QACF,4EAA4E;QAC5E,4EAA4E;QAC5E,yEAAyE;QACzE,2EAA2E;QAC3E,gDAAgD;QAChD,EAAE;QACF,GAAG,sBAAsB;QACzB,EAAE;QACF,sDAAsD;QACtD,EAAE;QACF,yEAAyE;QACzE,8EAA8E;QAC9E,qCAAqC;QACrC,4EAA4E;QAC5E,wEAAwE;QACxE,EAAE;QACF,8EAA8E;QAC9E,wDAAwD;QACxD,EAAE;QACF,GAAG,0BAA0B;QAC7B,EAAE;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-resolvable-promotion.d.ts","sourceRoot":"","sources":["../../src/queries/agent-resolvable-promotion.ts"],"names":[],"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AAI,CAAC,CAAC;IAChF,qFAAqF;IACrF,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxE,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,WAAW,EAAE,MAAM,CAAC;IACpB,oGAAoG;IACpG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAkBD;;;;;;GAMG;AACH,wBAAsB,8BAA8B,CAClD,IAAI,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC3C,OAAO,CAAC,0BAA0B,CAAC,CAkBrC"}
|
|
@@ -150,13 +150,15 @@ export function partitionAgentResolvableByAge(items, nowMs, thresholdMs) {
|
|
|
150
150
|
* and whatever their disposition:
|
|
151
151
|
* review_coverage_incomplete -- queries/escalations.ts
|
|
152
152
|
* REVIEW_COVERAGE_INCOMPLETE_ESCALATION_KIND, parked by the respawn guard.
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
153
|
+
* review_cycle_cap_exceeded USED to be here: the review-cycle budget filed that
|
|
154
|
+
* observation, held every spawn gate on it, and this set handed it to a routing
|
|
155
|
+
* decider -- which answered the stop from inside the loop it stopped (three foci
|
|
156
|
+
* granted eight more cycles each, 2026-09-19/20). The budget now ends the armed
|
|
157
|
+
* run instead (completion/review-cycle-cap.ts), files no observation, and an
|
|
158
|
+
* un-armed focus is already an unreached basis, so the kind holds nothing here.
|
|
157
159
|
* Daemon-local literals: importing the focus module here would close an import cycle.
|
|
158
160
|
*/
|
|
159
|
-
const KIND_KEYED_STOP_HOLD_KINDS = new Set(['review_coverage_incomplete'
|
|
161
|
+
const KIND_KEYED_STOP_HOLD_KINDS = new Set(['review_coverage_incomplete']);
|
|
160
162
|
/**
|
|
161
163
|
* Pure: whether an open filing is a STOP-kind hold observation -- one whose presence
|
|
162
164
|
* blocks the focus's respawn, so no coding team will reach that focus's observations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-resolvable-promotion.js","sourceRoot":"","sources":["../../src/queries/agent-resolvable-promotion.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,iFAAiF;AACjF,6DAA6D;AAC7D,2EAA2E;AAC3E,0EAA0E;AAC1E,oEAAoE;AACpE,wEAAwE;AACxE,6DAA6D;AAC7D,iEAAiE;AACjE,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,aAAa,EAAkC,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,sBAAsB,IAAI,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GAGpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,IAAI,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACL,+BAA+B,IAAI,sCAAsC,EACzE,6BAA6B,IAAI,oCAAoC,EACrE,6BAA6B,IAAI,oCAAoC,GAItE,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAoB,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AAEpD,uGAAuG;AACvG,MAAM,CAAC,MAAM,sCAAsC,GAAG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QACf,IAAI,CAAC;YACH,MAAM,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE;gBACpC,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,eAAe,GAAG,CAAC;gBACnD,CAAC,mBAAmB,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE;gBACpE,CAAC,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM;aAC1C,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,GAAG,CAAC,IAAI,CAAC,qDAAqD,IAAI,CAAC,EAAE,KAAM,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACtG,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,GAAG,CAAC,IAAI,CAAC,yDAAyD,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CACN,4CAA4C,IAAI,CAAC,EAAE,WAAW,KAAK,WAAW,IAAI,CAAC,OAAO,IAAI,QAAQ,KAAK;YACzG,GAAG,MAAM,CAAC,MAAM,kEAAkE,CACrF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"agent-resolvable-promotion.js","sourceRoot":"","sources":["../../src/queries/agent-resolvable-promotion.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,iFAAiF;AACjF,6DAA6D;AAC7D,2EAA2E;AAC3E,0EAA0E;AAC1E,oEAAoE;AACpE,wEAAwE;AACxE,6DAA6D;AAC7D,iEAAiE;AACjE,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;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DAAqD,IAAI,CAAC,EAAE,KAAM,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACtG,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,GAAG,CAAC,IAAI,CAAC,yDAAyD,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CACN,4CAA4C,IAAI,CAAC,EAAE,WAAW,KAAK,WAAW,IAAI,CAAC,OAAO,IAAI,QAAQ,KAAK;YACzG,GAAG,MAAM,CAAC,MAAM,kEAAkE,CACrF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ENDED-ARM record: the shape the daemon sends with a release to state WHY
|
|
3
|
+
* it ended a focus's armed run.
|
|
4
|
+
*
|
|
5
|
+
* Its own module, not a member of queries/focuses.ts, because it is a wire
|
|
6
|
+
* SHAPE with two readers on different sides of the release -- the writer
|
|
7
|
+
* (focuses.ts releaseFocusArm) and the crossing that composes it
|
|
8
|
+
* (completion/review-cycle-cap.ts) -- and focuses.ts sits at the file-size
|
|
9
|
+
* ceiling.
|
|
10
|
+
*
|
|
11
|
+
* @module queries/ended-arm
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* The ended-arm record that rides a release, stating WHY the daemon ended the
|
|
15
|
+
* arm and what was still outstanding.
|
|
16
|
+
*
|
|
17
|
+
* ONE reason exists: 'review_budget_spent'. It is sent in the SAME call as the
|
|
18
|
+
* release (the edge refuses it otherwise, handlers/focus/arm-ended.ts) so the
|
|
19
|
+
* role-less focus is never readable without its reason, and so the record can
|
|
20
|
+
* never be mistaken for the operator stop (operator_stopped_at, which this path
|
|
21
|
+
* does not write) or the trigger's lifecycle clear (which writes neither).
|
|
22
|
+
*
|
|
23
|
+
* `detail` carries only what the DAEMON measured. The edge adds the acceptance
|
|
24
|
+
* criteria the last verdict-bearing review called not_met -- it owns the shape
|
|
25
|
+
* that record lives in -- so this daemon never parses a review summary.
|
|
26
|
+
*
|
|
27
|
+
* ARM_ENDED_REVIEW_BUDGET_SPENT is the value the DB CHECK constraint on
|
|
28
|
+
* product_focuses.arm_ended_reason allows and the wedge diagnosis reads back.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ARM_ENDED_REVIEW_BUDGET_SPENT = "review_budget_spent";
|
|
31
|
+
export interface EndedArmRecord {
|
|
32
|
+
reason: typeof ARM_ENDED_REVIEW_BUDGET_SPENT;
|
|
33
|
+
detail: {
|
|
34
|
+
/** The consecutive unconverged review cycles the count reached. */
|
|
35
|
+
reviewCycleCount: number;
|
|
36
|
+
/** TELORA_REVIEW_CYCLE_CAP, the budget it reached. */
|
|
37
|
+
cap: number;
|
|
38
|
+
/** The open blocking review-filed findings on the focus at the exit; none are closed. */
|
|
39
|
+
openBlockingFindings: Array<{
|
|
40
|
+
id: string;
|
|
41
|
+
key: string;
|
|
42
|
+
title: string;
|
|
43
|
+
deliveryId: string | null;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ended-arm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ended-arm.d.ts","sourceRoot":"","sources":["../../src/queries/ended-arm.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,6BAA6B,CAAC;IAC7C,MAAM,EAAE;QACN,mEAAmE;QACnE,gBAAgB,EAAE,MAAM,CAAC;QACzB,sDAAsD;QACtD,GAAG,EAAE,MAAM,CAAC;QACZ,yFAAyF;QACzF,oBAAoB,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC,CAAC;KACpG,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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/review-cycle-cap-regression.test.ts,
|
|
3
|
+
// packages/daemon/src/completion/review-cycle-churn-meter.test.ts
|
|
4
|
+
// PINNED-BY-END
|
|
5
|
+
/**
|
|
6
|
+
* The ENDED-ARM record: the shape the daemon sends with a release to state WHY
|
|
7
|
+
* it ended a focus's armed run.
|
|
8
|
+
*
|
|
9
|
+
* Its own module, not a member of queries/focuses.ts, because it is a wire
|
|
10
|
+
* SHAPE with two readers on different sides of the release -- the writer
|
|
11
|
+
* (focuses.ts releaseFocusArm) and the crossing that composes it
|
|
12
|
+
* (completion/review-cycle-cap.ts) -- and focuses.ts sits at the file-size
|
|
13
|
+
* ceiling.
|
|
14
|
+
*
|
|
15
|
+
* @module queries/ended-arm
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The ended-arm record that rides a release, stating WHY the daemon ended the
|
|
19
|
+
* arm and what was still outstanding.
|
|
20
|
+
*
|
|
21
|
+
* ONE reason exists: 'review_budget_spent'. It is sent in the SAME call as the
|
|
22
|
+
* release (the edge refuses it otherwise, handlers/focus/arm-ended.ts) so the
|
|
23
|
+
* role-less focus is never readable without its reason, and so the record can
|
|
24
|
+
* never be mistaken for the operator stop (operator_stopped_at, which this path
|
|
25
|
+
* does not write) or the trigger's lifecycle clear (which writes neither).
|
|
26
|
+
*
|
|
27
|
+
* `detail` carries only what the DAEMON measured. The edge adds the acceptance
|
|
28
|
+
* criteria the last verdict-bearing review called not_met -- it owns the shape
|
|
29
|
+
* that record lives in -- so this daemon never parses a review summary.
|
|
30
|
+
*
|
|
31
|
+
* ARM_ENDED_REVIEW_BUDGET_SPENT is the value the DB CHECK constraint on
|
|
32
|
+
* product_focuses.arm_ended_reason allows and the wedge diagnosis reads back.
|
|
33
|
+
*/
|
|
34
|
+
export const ARM_ENDED_REVIEW_BUDGET_SPENT = 'review_budget_spent';
|
|
35
|
+
//# sourceMappingURL=ended-arm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ended-arm.js","sourceRoot":"","sources":["../../src/queries/ended-arm.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,iFAAiF;AACjF,oEAAoE;AACpE,gBAAgB;AAEhB;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC"}
|