@telora/daemon 0.22.181 → 0.22.189
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 +9 -3
- package/dist/audit/audit-floor-policy.d.ts +188 -0
- package/dist/audit/audit-floor-policy.d.ts.map +1 -0
- package/dist/audit/audit-floor-policy.js +353 -0
- package/dist/audit/audit-floor-policy.js.map +1 -0
- package/dist/audit/audit-prompt.d.ts +4 -177
- package/dist/audit/audit-prompt.d.ts.map +1 -1
- package/dist/audit/audit-prompt.js +6 -329
- package/dist/audit/audit-prompt.js.map +1 -1
- package/dist/completion/escalations.d.ts.map +1 -1
- package/dist/completion/escalations.js +4 -1
- package/dist/completion/escalations.js.map +1 -1
- package/dist/completion/review-exit-phase.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.js +11 -4
- package/dist/completion/review-exit-phase.js.map +1 -1
- package/dist/completion/standing-approval-convergence.d.ts.map +1 -1
- package/dist/completion/standing-approval-convergence.js +2 -1
- package/dist/completion/standing-approval-convergence.js.map +1 -1
- package/dist/focus/focus-executor.d.ts.map +1 -1
- package/dist/focus/focus-executor.js +2 -0
- package/dist/focus/focus-executor.js.map +1 -1
- package/dist/focus/focus-loop-registry.js +2 -2
- package/dist/focus/focus-loop-registry.js.map +1 -1
- package/dist/focus/session-health.d.ts.map +1 -1
- package/dist/focus/session-health.js +2 -1
- package/dist/focus/session-health.js.map +1 -1
- package/dist/focus-stage-lifecycle/planning-release.d.ts +52 -17
- package/dist/focus-stage-lifecycle/planning-release.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/planning-release.js +58 -70
- package/dist/focus-stage-lifecycle/planning-release.js.map +1 -1
- package/dist/focus-stage-lifecycle/ratify-bar-gate.d.ts +108 -0
- package/dist/focus-stage-lifecycle/ratify-bar-gate.d.ts.map +1 -0
- package/dist/focus-stage-lifecycle/ratify-bar-gate.js +174 -0
- package/dist/focus-stage-lifecycle/ratify-bar-gate.js.map +1 -0
- package/dist/git/merge-to-main.d.ts.map +1 -1
- package/dist/git/merge-to-main.js.map +1 -1
- package/dist/loops/llm-client.d.ts +1 -1
- package/dist/loops/llm-client.d.ts.map +1 -1
- package/dist/loops/llm-client.js +18 -105
- package/dist/loops/llm-client.js.map +1 -1
- package/dist/nexus/index.d.ts.map +1 -1
- package/dist/nexus/index.js +2 -1
- package/dist/nexus/index.js.map +1 -1
- package/dist/nexus/intake-prompt-sections.d.ts +70 -0
- package/dist/nexus/intake-prompt-sections.d.ts.map +1 -0
- package/dist/nexus/intake-prompt-sections.js +145 -0
- package/dist/nexus/intake-prompt-sections.js.map +1 -0
- package/dist/nexus/intake-spawn.d.ts +49 -13
- package/dist/nexus/intake-spawn.d.ts.map +1 -1
- package/dist/nexus/intake-spawn.js +45 -122
- package/dist/nexus/intake-spawn.js.map +1 -1
- package/dist/nexus/intake.d.ts +55 -0
- package/dist/nexus/intake.d.ts.map +1 -1
- package/dist/nexus/intake.js +62 -1
- package/dist/nexus/intake.js.map +1 -1
- package/dist/prd/arm-readiness.d.ts +93 -0
- package/dist/prd/arm-readiness.d.ts.map +1 -0
- package/dist/prd/arm-readiness.js +254 -0
- package/dist/prd/arm-readiness.js.map +1 -0
- package/dist/prd/arm-refusal.d.ts +149 -0
- package/dist/prd/arm-refusal.d.ts.map +1 -0
- package/dist/prd/arm-refusal.js +219 -0
- package/dist/prd/arm-refusal.js.map +1 -0
- package/dist/prd/controller-shared.d.ts +111 -0
- package/dist/prd/controller-shared.d.ts.map +1 -1
- package/dist/prd/controller-shared.js +3 -1
- package/dist/prd/controller-shared.js.map +1 -1
- package/dist/prd/controller.d.ts +16 -10
- package/dist/prd/controller.d.ts.map +1 -1
- package/dist/prd/controller.js +28 -35
- package/dist/prd/controller.js.map +1 -1
- package/dist/prd/frontier-arming.d.ts +151 -0
- package/dist/prd/frontier-arming.d.ts.map +1 -0
- package/dist/prd/frontier-arming.js +315 -0
- package/dist/prd/frontier-arming.js.map +1 -0
- package/dist/prd/index.d.ts +10 -1
- package/dist/prd/index.d.ts.map +1 -1
- package/dist/prd/index.js +9 -1
- package/dist/prd/index.js.map +1 -1
- package/dist/prd/scoping-prompt.d.ts +68 -0
- package/dist/prd/scoping-prompt.d.ts.map +1 -0
- package/dist/prd/scoping-prompt.js +86 -0
- package/dist/prd/scoping-prompt.js.map +1 -0
- package/dist/prompt/prompt-contradictions.d.ts +20 -1
- package/dist/prompt/prompt-contradictions.d.ts.map +1 -1
- package/dist/prompt/prompt-contradictions.js +35 -0
- package/dist/prompt/prompt-contradictions.js.map +1 -1
- package/dist/prompt/team-prompt-base.d.ts +18 -0
- package/dist/prompt/team-prompt-base.d.ts.map +1 -1
- package/dist/prompt/team-prompt-base.js +56 -11
- package/dist/prompt/team-prompt-base.js.map +1 -1
- package/dist/prompt-sections/persona-sections.d.ts +36 -13
- package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
- package/dist/prompt-sections/persona-sections.js +93 -16
- package/dist/prompt-sections/persona-sections.js.map +1 -1
- package/dist/prompt-sections/scoping-sections.d.ts +19 -5
- package/dist/prompt-sections/scoping-sections.d.ts.map +1 -1
- package/dist/prompt-sections/scoping-sections.js +45 -38
- package/dist/prompt-sections/scoping-sections.js.map +1 -1
- package/dist/prompt-sections/shared.d.ts +8 -0
- package/dist/prompt-sections/shared.d.ts.map +1 -1
- package/dist/prompt-sections/shared.js.map +1 -1
- package/dist/queries/agent-resolvable-promotion.d.ts +12 -0
- package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.js +17 -6
- package/dist/queries/agent-resolvable-promotion.js.map +1 -1
- package/dist/queries/delivery-gate-state.d.ts +3 -0
- package/dist/queries/delivery-gate-state.d.ts.map +1 -1
- package/dist/queries/delivery-gate-state.js +1 -1
- package/dist/queries/delivery-gate-state.js.map +1 -1
- package/dist/queries/focus-criteria-standing.d.ts +170 -7
- package/dist/queries/focus-criteria-standing.d.ts.map +1 -1
- package/dist/queries/focus-criteria-standing.js +143 -8
- package/dist/queries/focus-criteria-standing.js.map +1 -1
- package/dist/queries/focus-ratify-release.d.ts +43 -0
- package/dist/queries/focus-ratify-release.d.ts.map +1 -0
- package/dist/queries/focus-ratify-release.js +45 -0
- package/dist/queries/focus-ratify-release.js.map +1 -0
- package/dist/queries/focuses.d.ts +0 -10
- package/dist/queries/focuses.d.ts.map +1 -1
- package/dist/queries/focuses.js +0 -14
- package/dist/queries/focuses.js.map +1 -1
- package/dist/queries/prd.d.ts +31 -0
- package/dist/queries/prd.d.ts.map +1 -1
- package/dist/queries/prd.js +26 -1
- package/dist/queries/prd.js.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/queries/verify-own-holds.d.ts +89 -0
- package/dist/queries/verify-own-holds.d.ts.map +1 -0
- package/dist/queries/verify-own-holds.js +93 -0
- package/dist/queries/verify-own-holds.js.map +1 -0
- package/dist/resolvers/focus-criteria-standing.d.ts.map +1 -1
- package/dist/resolvers/focus-criteria-standing.js +324 -25
- package/dist/resolvers/focus-criteria-standing.js.map +1 -1
- package/dist/security/security-auto-inject.d.ts +51 -0
- package/dist/security/security-auto-inject.d.ts.map +1 -1
- package/dist/security/security-auto-inject.js +101 -11
- package/dist/security/security-auto-inject.js.map +1 -1
- package/dist/security/security-scan-engine.d.ts +4 -4
- package/dist/security/security-scan-engine.d.ts.map +1 -1
- package/dist/security/security-scan-engine.js +6 -0
- package/dist/security/security-scan-engine.js.map +1 -1
- package/dist/session/session-lineage.d.ts.map +1 -1
- package/dist/session/session-lineage.js +2 -0
- package/dist/session/session-lineage.js.map +1 -1
- package/dist/shell/constants.d.ts +5 -0
- package/dist/shell/constants.d.ts.map +1 -1
- package/dist/shell/constants.js +5 -0
- package/dist/shell/constants.js.map +1 -1
- package/dist/shell/daemon-instance.d.ts +74 -64
- package/dist/shell/daemon-instance.d.ts.map +1 -1
- package/dist/shell/daemon-instance.js +16 -121
- package/dist/shell/daemon-instance.js.map +1 -1
- package/dist/shell/health-events.js +1 -1
- package/dist/shell/health-events.js.map +1 -1
- package/dist/shell/instance-liveness.d.ts +112 -0
- package/dist/shell/instance-liveness.d.ts.map +1 -0
- package/dist/shell/instance-liveness.js +205 -0
- package/dist/shell/instance-liveness.js.map +1 -0
- package/dist/shell/schema-version-gate.d.ts +22 -0
- package/dist/shell/schema-version-gate.d.ts.map +1 -1
- package/dist/shell/schema-version-gate.js +116 -6
- package/dist/shell/schema-version-gate.js.map +1 -1
- package/dist/shell/worker-pidfile.d.ts +21 -8
- package/dist/shell/worker-pidfile.d.ts.map +1 -1
- package/dist/shell/worker-pidfile.js +38 -9
- package/dist/shell/worker-pidfile.js.map +1 -1
- package/dist/spawn/lead-launch.d.ts.map +1 -1
- package/dist/spawn/lead-launch.js +2 -1
- package/dist/spawn/lead-launch.js.map +1 -1
- package/dist/spawn/one-shot-model.d.ts +145 -0
- package/dist/spawn/one-shot-model.d.ts.map +1 -0
- package/dist/spawn/one-shot-model.js +329 -0
- package/dist/spawn/one-shot-model.js.map +1 -0
- package/dist/spawn/one-shot-scoping-spawn.d.ts +51 -0
- package/dist/spawn/one-shot-scoping-spawn.d.ts.map +1 -0
- package/dist/spawn/one-shot-scoping-spawn.js +156 -0
- package/dist/spawn/one-shot-scoping-spawn.js.map +1 -0
- package/dist/spawn/process-spawn.d.ts +12 -0
- package/dist/spawn/process-spawn.d.ts.map +1 -1
- package/dist/spawn/process-spawn.js +1 -1
- 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 +15 -3
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/review-hold-park.d.ts.map +1 -1
- package/dist/spawn/review-hold-park.js +7 -3
- package/dist/spawn/review-hold-park.js.map +1 -1
- package/dist/spawn/routing-decider-spawn.d.ts +30 -0
- package/dist/spawn/routing-decider-spawn.d.ts.map +1 -1
- package/dist/spawn/routing-decider-spawn.js +84 -2
- package/dist/spawn/routing-decider-spawn.js.map +1 -1
- package/dist/spawn/routing-decider.d.ts.map +1 -1
- package/dist/spawn/routing-decider.js +22 -0
- package/dist/spawn/routing-decider.js.map +1 -1
- package/dist/spawn/spawn-cooldown.d.ts +15 -1
- package/dist/spawn/spawn-cooldown.d.ts.map +1 -1
- package/dist/spawn/spawn-cooldown.js +67 -19
- package/dist/spawn/spawn-cooldown.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts +24 -6
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +37 -14
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/testing/arm-coverage-model.d.ts +75 -0
- package/dist/testing/arm-coverage-model.d.ts.map +1 -0
- package/dist/testing/arm-coverage-model.js +114 -0
- package/dist/testing/arm-coverage-model.js.map +1 -0
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/verify/ai-inspection-runner.d.ts.map +1 -1
- package/dist/verify/ai-inspection-runner.js +26 -7
- package/dist/verify/ai-inspection-runner.js.map +1 -1
- package/dist/verify/de-restatement.d.ts +9 -2
- package/dist/verify/de-restatement.d.ts.map +1 -1
- package/dist/verify/de-restatement.js +14 -76
- package/dist/verify/de-restatement.js.map +1 -1
- package/dist/verify/default-on-guards.d.ts +5 -2
- package/dist/verify/default-on-guards.d.ts.map +1 -1
- package/dist/verify/default-on-guards.js +5 -3
- package/dist/verify/default-on-guards.js.map +1 -1
- package/dist/verify/verification-boundary-env.d.ts +7 -2
- package/dist/verify/verification-boundary-env.d.ts.map +1 -1
- package/dist/verify/verification-boundary-env.js +9 -4
- package/dist/verify/verification-boundary-env.js.map +1 -1
- package/dist/verify/verification-deps-default.d.ts.map +1 -1
- package/dist/verify/verification-deps-default.js +6 -0
- package/dist/verify/verification-deps-default.js.map +1 -1
- package/dist/verify/verification-deps.d.ts +10 -0
- package/dist/verify/verification-deps.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.d.ts +7 -0
- package/dist/verify/verification-deterministic.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.js.map +1 -1
- package/dist/verify/verification-engine.d.ts +1 -20
- package/dist/verify/verification-engine.d.ts.map +1 -1
- package/dist/verify/verification-engine.js +24 -55
- package/dist/verify/verification-engine.js.map +1 -1
- package/dist/verify/verification-evidence-unavailable-feedback.d.ts +3 -1
- package/dist/verify/verification-evidence-unavailable-feedback.d.ts.map +1 -1
- package/dist/verify/verification-evidence-unavailable-feedback.js +3 -1
- package/dist/verify/verification-evidence-unavailable-feedback.js.map +1 -1
- package/dist/verify/verification-feedback.d.ts +4 -12
- package/dist/verify/verification-feedback.d.ts.map +1 -1
- package/dist/verify/verification-feedback.js +7 -12
- package/dist/verify/verification-feedback.js.map +1 -1
- package/dist/verify/verification-history-reset.d.ts.map +1 -1
- package/dist/verify/verification-history-reset.js +11 -3
- package/dist/verify/verification-history-reset.js.map +1 -1
- package/dist/verify/verification-model-unavailable-hold.d.ts +92 -0
- package/dist/verify/verification-model-unavailable-hold.d.ts.map +1 -0
- package/dist/verify/verification-model-unavailable-hold.js +207 -0
- package/dist/verify/verification-model-unavailable-hold.js.map +1 -0
- package/dist/verify/verification-strategies.d.ts +32 -0
- package/dist/verify/verification-strategies.d.ts.map +1 -0
- package/dist/verify/verification-strategies.js +47 -0
- package/dist/verify/verification-strategies.js.map +1 -0
- package/dist/verify/verify-reconciliation.d.ts.map +1 -1
- package/dist/verify/verify-reconciliation.js +2 -1
- package/dist/verify/verify-reconciliation.js.map +1 -1
- package/dist/verify/verify-restatement.d.ts.map +1 -1
- package/dist/verify/verify-restatement.js +21 -8
- package/dist/verify/verify-restatement.js.map +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,22 @@
|
|
|
13
13
|
export const ACTION_SUFFIXED_TOOL_RE = /\btelora_(?:product|agent|prd)(?:_[a-z]+)*_(?:get|create|update|list|delete|reorder|escalate|operationalize)\b/g;
|
|
14
14
|
/** "database trigger" as a mechanism claim. */
|
|
15
15
|
export const DATABASE_TRIGGER_RE = /\bdatabase trigger\b/gi;
|
|
16
|
+
/** The heading of the remediation framing (persona-sections.ts). */
|
|
17
|
+
export const REMEDIATION_FRAMING_HEADING = '### Review-Defect Remediation';
|
|
18
|
+
/**
|
|
19
|
+
* Scope-widening mandate phrases (prompt-sections/scoping-sections.ts): the
|
|
20
|
+
* delivery-CREATING sentences a pass with `mayCreateDeliveries: false` is not
|
|
21
|
+
* handed. Deliberately NOT the section headings ("### Scoping Mandate",
|
|
22
|
+
* "### Rescoping and Splitting Deliveries"): those sections reach every pass
|
|
23
|
+
* for their issue-creation, criteria and escalation rules. Any of these
|
|
24
|
+
* phrases in the same text as REMEDIATION_FRAMING_HEADING is class 4.
|
|
25
|
+
*/
|
|
26
|
+
export const SCOPE_WIDENING_PHRASES = [
|
|
27
|
+
'Create new deliveries via',
|
|
28
|
+
'Do not ask for permission to rescope',
|
|
29
|
+
'**Splitting a delivery:**',
|
|
30
|
+
'Declare the work-facing label',
|
|
31
|
+
];
|
|
16
32
|
/**
|
|
17
33
|
* Advancement-verb patterns aimed at moving delivery/focus stage. Evaluated per
|
|
18
34
|
* sentence, and only counted when the sentence neither attributes the action to
|
|
@@ -72,6 +88,25 @@ export function scanForContradictions(text) {
|
|
|
72
88
|
context: lineOf(text, m.index ?? 0),
|
|
73
89
|
});
|
|
74
90
|
}
|
|
91
|
+
found.push(...scanScopeWideningInRemediation(text));
|
|
92
|
+
return found;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Class 4: every scope-widening phrase present in a text that also carries the
|
|
96
|
+
* remediation framing heading. One Contradiction per phrase occurrence, naming
|
|
97
|
+
* the phrase, so the failure says which sentence to withhold.
|
|
98
|
+
*/
|
|
99
|
+
function scanScopeWideningInRemediation(text) {
|
|
100
|
+
if (!text.includes(REMEDIATION_FRAMING_HEADING))
|
|
101
|
+
return [];
|
|
102
|
+
const found = [];
|
|
103
|
+
for (const phrase of SCOPE_WIDENING_PHRASES) {
|
|
104
|
+
let idx = text.indexOf(phrase);
|
|
105
|
+
while (idx !== -1) {
|
|
106
|
+
found.push({ kind: 'scope-widening-in-remediation', match: phrase, context: lineOf(text, idx) });
|
|
107
|
+
idx = text.indexOf(phrase, idx + phrase.length);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
75
110
|
return found;
|
|
76
111
|
}
|
|
77
112
|
/** The physical line containing byte offset `idx`, trimmed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-contradictions.js","sourceRoot":"","sources":["../../src/prompt/prompt-contradictions.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,gFAAgF;AAChF,6DAA6D;AAC7D,gBAAgB;
|
|
1
|
+
{"version":3,"file":"prompt-contradictions.js","sourceRoot":"","sources":["../../src/prompt/prompt-contradictions.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,gFAAgF;AAChF,6DAA6D;AAC7D,gBAAgB;AAoDhB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAClC,iHAAiH,CAAC;AAEpH,+CAA+C;AAC/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAE5D,oEAAoE;AACpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAA+B,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,2BAA2B;IAC3B,sCAAsC;IACtC,2BAA2B;IAC3B,+BAA+B;CAChC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,uBAAuB,GAAa;IACxC,yEAAyE;IACzE,2DAA2D;IAC3D,sDAAsD;CACvD,CAAC;AAEF;;;;GAIG;AACH,MAAM,0BAA0B,GAC9B,8EAA8E,CAAC;AAEjF,SAAS,cAAc,CAAC,IAAY;IAClC,6EAA6E;IAC7E,+EAA+E;IAC/E,QAAQ;IACR,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE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Ac,EAAE,KAAsB;IACzE,OAAO;QACL,GAAG,KAAK,CAAC,MAAM,qCAAqC,MAAM,GAAG;QAC7D,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC;KAClE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -18,6 +18,24 @@ export { buildPlanningSection, buildExecutionPolaritySection, buildDeliveryListi
|
|
|
18
18
|
export { TESTING_STANDARD_RULES, TESTING_STANDARD_AUTHORITY, buildCodingTestingStandardSection, buildReviewSensorAuditSection, } from '../prompt-sections/testing-standard.js';
|
|
19
19
|
export { buildRemediationDirectiveSection, buildReviewOutcomeStampingSection, LAST_REVIEW_REPORT_HEADING, buildRemediationFramingSection, buildLoopMaintenanceSection, buildCloseLoopDriftCheckSection, buildResumeDeltaMessage, } from '../prompt-sections/persona-sections.js';
|
|
20
20
|
export type { ResumeDeltaContext } from '../prompt-sections/persona-sections.js';
|
|
21
|
+
/**
|
|
22
|
+
* The scoping mandate / rescoping / new-work-delivery sections, composed for
|
|
23
|
+
* the pass they are for.
|
|
24
|
+
*
|
|
25
|
+
* A REVIEW pass and a team answering REVIEW FINDINGS (reviewFiledOpenCount > 0)
|
|
26
|
+
* may not create deliveries: no delivery is created in answer to a review
|
|
27
|
+
* finding (operator ruling 2026-09-22; the rule itself is stated by
|
|
28
|
+
* buildRemediationDirectiveSection). So those passes are handed the sections
|
|
29
|
+
* WITHOUT the delivery-creating sentences ("Create new deliveries via
|
|
30
|
+
* telora_product_delivery", "Do not ask for permission to rescope", the
|
|
31
|
+
* workFacing declaration) and WITH everything else -- the issue-creation
|
|
32
|
+
* requirement a zero-issue queued delivery needs scoped, the criteria rules and
|
|
33
|
+
* the escalation guidance, which the ruling never forbade. The forced-fresh
|
|
34
|
+
* scoping message composes exactly the same way. An ordinary coding or scoping
|
|
35
|
+
* pass is byte-identical to before. prompt/prompt-contradictions.ts pins that
|
|
36
|
+
* the withheld sentences never return beside the remediation framing.
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildScopingSectionsForPass(context: FocusTeamPromptContext): string[];
|
|
21
39
|
/**
|
|
22
40
|
* Build the role framework prompt -- sections that apply to every stage.
|
|
23
41
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-prompt-base.d.ts","sourceRoot":"","sources":["../../src/prompt/team-prompt-base.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,YAAY,EACV,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAG3E,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAS7C,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,wCAAwC,CAAC;AAUhD,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,0CAA0C,CAAC;AAqBlD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EACL,gCAAgC,EAChC,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,+BAA+B,EAC/B,uB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sBAAsB,GAAG,MAAM,EAAE,CAQrF;AAcD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CAgCR;AAMD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CAwCR"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
-
// Pinned by:
|
|
2
|
+
// Pinned by: 24 tests -- run: npm run gen:pinned-by -- --list packages/daemon/src/prompt/team-prompt-base.ts
|
|
3
3
|
// PINNED-BY-END
|
|
4
4
|
// Role-framework sections.
|
|
5
5
|
export { buildRoleSection, buildDomainBoundariesSection, buildTeamLeadRoleSection, buildReadOnlyAuditSection, } from '../prompt-sections/role-sections.js';
|
|
@@ -19,6 +19,55 @@ import { buildRemediationDirectiveSection, buildLoopMaintenanceSection, buildClo
|
|
|
19
19
|
// ---------------------------------------------------------------------------
|
|
20
20
|
// Role framework prompt (stage-agnostic)
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
|
+
/**
|
|
23
|
+
* The planning section, or nothing on a review pass. A review pass never
|
|
24
|
+
* plans: even on a focus with no deliveries it must not be told to write
|
|
25
|
+
* deliveries via telora_product_delivery (the section renders only for an
|
|
26
|
+
* empty focus, so a coding/scoping pass is unchanged).
|
|
27
|
+
*/
|
|
28
|
+
function buildPlanningSectionForPass(context) {
|
|
29
|
+
if (context.isReviewPass === true)
|
|
30
|
+
return [];
|
|
31
|
+
return buildPlanningSection(context);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The scoping mandate / rescoping / new-work-delivery sections, composed for
|
|
35
|
+
* the pass they are for.
|
|
36
|
+
*
|
|
37
|
+
* A REVIEW pass and a team answering REVIEW FINDINGS (reviewFiledOpenCount > 0)
|
|
38
|
+
* may not create deliveries: no delivery is created in answer to a review
|
|
39
|
+
* finding (operator ruling 2026-09-22; the rule itself is stated by
|
|
40
|
+
* buildRemediationDirectiveSection). So those passes are handed the sections
|
|
41
|
+
* WITHOUT the delivery-creating sentences ("Create new deliveries via
|
|
42
|
+
* telora_product_delivery", "Do not ask for permission to rescope", the
|
|
43
|
+
* workFacing declaration) and WITH everything else -- the issue-creation
|
|
44
|
+
* requirement a zero-issue queued delivery needs scoped, the criteria rules and
|
|
45
|
+
* the escalation guidance, which the ruling never forbade. The forced-fresh
|
|
46
|
+
* scoping message composes exactly the same way. An ordinary coding or scoping
|
|
47
|
+
* pass is byte-identical to before. prompt/prompt-contradictions.ts pins that
|
|
48
|
+
* the withheld sentences never return beside the remediation framing.
|
|
49
|
+
*/
|
|
50
|
+
export function buildScopingSectionsForPass(context) {
|
|
51
|
+
const answeringReview = (context.reviewFiledOpenCount ?? 0) > 0;
|
|
52
|
+
const mayCreateDeliveries = !(context.isReviewPass === true || answeringReview);
|
|
53
|
+
return [
|
|
54
|
+
...buildScopingMandateSection({ mayCreateDeliveries }),
|
|
55
|
+
...buildRescopingSection(context.focusId, context.productId, { mayCreateDeliveries }),
|
|
56
|
+
...buildNewWorkDeliverySection(),
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The Review-Defect Remediation directive, or nothing on a review pass. The
|
|
61
|
+
* directive addresses the team that answers the findings ("address them as
|
|
62
|
+
* defects to fix"); a reviewer with open findings is the wrong audience, and
|
|
63
|
+
* with the count now derived from the focus-scoped set it would otherwise
|
|
64
|
+
* render on every review of a focus that has ever had a finding.
|
|
65
|
+
*/
|
|
66
|
+
function buildRemediationDirectiveForPass(context) {
|
|
67
|
+
if (context.isReviewPass === true)
|
|
68
|
+
return [];
|
|
69
|
+
return buildRemediationDirectiveSection(context.reviewFiledOpenCount ?? 0);
|
|
70
|
+
}
|
|
22
71
|
/**
|
|
23
72
|
* Build the role framework prompt -- sections that apply to every stage.
|
|
24
73
|
*
|
|
@@ -37,17 +86,15 @@ export function buildRoleFrameworkPrompt(role, context) {
|
|
|
37
86
|
buildTeamLeadRoleSection(context.engineId),
|
|
38
87
|
buildReadOnlyAuditSection(context.readOnly),
|
|
39
88
|
buildFocusContextSection(context),
|
|
40
|
-
|
|
41
|
-
|
|
89
|
+
buildRemediationDirectiveForPass(context),
|
|
90
|
+
buildPlanningSectionForPass(context),
|
|
42
91
|
buildExecutionConfigSection(context.executionConfig),
|
|
43
92
|
buildStatusUpdateRulesSection(),
|
|
44
93
|
buildSessionConstraintsSection(),
|
|
45
94
|
buildWorkerManagementSection(context.executionConfig.maxWorkers, context.engineId),
|
|
46
95
|
buildDeliveryStageProgressionSection(),
|
|
47
96
|
buildExecutionPolaritySection(),
|
|
48
|
-
|
|
49
|
-
buildRescopingSection(context.focusId, context.productId),
|
|
50
|
-
buildNewWorkDeliverySection(),
|
|
97
|
+
buildScopingSectionsForPass(context),
|
|
51
98
|
buildAgentResolvableInboxSection(context.agentResolvableItems ?? []),
|
|
52
99
|
buildErrorHandlingSection(),
|
|
53
100
|
buildMergeConflictSection(),
|
|
@@ -83,12 +130,12 @@ export function buildFocusTeamPrompt(role, context) {
|
|
|
83
130
|
buildTeamLeadRoleSection(context.engineId),
|
|
84
131
|
buildReadOnlyAuditSection(context.readOnly),
|
|
85
132
|
buildFocusContextSection(context),
|
|
86
|
-
|
|
133
|
+
buildRemediationDirectiveForPass(context),
|
|
87
134
|
buildProductContextSection(context.productContextDocs),
|
|
88
135
|
buildDeploymentProfileSection(context.deploymentProfileSnapshot),
|
|
89
136
|
buildLoopContextSection(context.loopContext),
|
|
90
137
|
buildExecutionConfigSection(context.executionConfig),
|
|
91
|
-
|
|
138
|
+
buildPlanningSectionForPass(context),
|
|
92
139
|
// armFacts: a delivery RECORDED as new intent under the live arm is omitted
|
|
93
140
|
// from the listing -- the legacy full prompt is a spawn-time prompt too.
|
|
94
141
|
buildDeliveryListingSection(context.deliveries, context.issues, context.armFacts),
|
|
@@ -98,9 +145,7 @@ export function buildFocusTeamPrompt(role, context) {
|
|
|
98
145
|
buildWorkerManagementSection(context.executionConfig.maxWorkers, context.engineId),
|
|
99
146
|
buildDeliveryStageProgressionSection(),
|
|
100
147
|
buildExecutionPolaritySection(),
|
|
101
|
-
|
|
102
|
-
buildRescopingSection(context.focusId, context.productId),
|
|
103
|
-
buildNewWorkDeliverySection(),
|
|
148
|
+
buildScopingSectionsForPass(context),
|
|
104
149
|
buildAgentResolvableInboxSection(context.agentResolvableItems ?? []),
|
|
105
150
|
buildErrorHandlingSection(),
|
|
106
151
|
buildMergeConflictSection(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-prompt-base.js","sourceRoot":"","sources":["../../src/prompt/team-prompt-base.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,6GAA6G;AAC7G,gBAAgB;AAuBhB,2BAA2B;AAC3B,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAE7C,oBAAoB;AACpB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,wCAAwC,CAAC;AAEhD,sBAAsB;AACtB,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EACh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kBAAkB,CAAC;QACtD,6BAA6B,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAChE,uBAAuB,CAAC,OAAO,CAAC,WAAW,CAAC;QAC5C,2BAA2B,CAAC,OAAO,CAAC,eAAe,CAAC;QACpD,2BAA2B,CAAC,OAAO,CAAC;QACpC,4EAA4E;QAC5E,yEAAyE;QACzE,2BAA2B,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;QACjF,6BAA6B,EAAE;QAC/B,iCAAiC,CAAC,OAAO,CAAC,SAAS,CAAC;QACpD,8BAA8B,EAAE;QAChC,4BAA4B,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC;QAClF,oCAAoC,EAAE;QACtC,6BAA6B,EAAE;QAC/B,2BAA2B,CAAC,OAAO,CAAC;QACpC,gCAAgC,CAAC,OAAO,CAAC,oBAAoB,IAAI,EAAE,CAAC;QACpE,yBAAyB,EAAE;QAC3B,yBAAyB,EAAE;QAC3B,2BAA2B,EAAE;QAC7B,+BAA+B,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACzD,sBAAsB,EAAE;KACzB,CAAC;IAEF,+DAA+D;IAC/D,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1,24 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Persona and framing section builders: review-defect remediation directive,
|
|
3
|
-
* remediation framing, loop-data maintenance, the close-loop bookkeeper persona
|
|
4
|
-
* + drift check, and the incremental resume-delta message. Extracted from
|
|
5
|
-
* team-prompt-base.ts.
|
|
6
|
-
*/
|
|
7
1
|
import type { FocusIssueInfo } from '../types/index.js';
|
|
8
2
|
import { type GateVerdictSummary } from './gate-verdict-section.js';
|
|
3
|
+
/**
|
|
4
|
+
* THE RULE a team answering review findings is handed, in one place, so the
|
|
5
|
+
* fresh spawn prompt (buildRemediationDirectiveSection) and the resume delta
|
|
6
|
+
* (buildResumeDeltaMessage, coding branch) state the same thing word for word.
|
|
7
|
+
*
|
|
8
|
+
* Operator ruling 2026-09-22: no delivery is created in answer to a review
|
|
9
|
+
* finding -- an invariant with no exception clause. A finding is a shortfall
|
|
10
|
+
* against intent fixed at the arm; a delivery is intent; a shortfall is never
|
|
11
|
+
* answered with new intent. The earlier wording ("unless directly required to
|
|
12
|
+
* fix a flagged defect") was an exception every team reading findings satisfied
|
|
13
|
+
* by construction, so it forbade nothing.
|
|
14
|
+
*/
|
|
15
|
+
export declare const REVIEW_FINDING_RULE_LINES: readonly string[];
|
|
9
16
|
/**
|
|
10
17
|
* Build the review-defect remediation directive.
|
|
11
18
|
*
|
|
12
|
-
* Emitted when the team is being respawned to address issues filed by a
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
19
|
+
* Emitted when the team is being respawned to address issues filed by a review
|
|
20
|
+
* pass. The count is derived from the FOCUS-SCOPED review-filed issue set
|
|
21
|
+
* (spawn/worktree-session.ts resolveReviewContext), never from the
|
|
22
|
+
* review_requested_at time window, so the directive does not vanish when the
|
|
23
|
+
* window is cleared or re-stamped. The directive orients the team to "fix
|
|
24
|
+
* defects, not expand scope" and states the rule with no exception clause
|
|
25
|
+
* (REVIEW_FINDING_RULE_LINES).
|
|
16
26
|
*
|
|
17
|
-
* Returns an empty array when no review-filed defects are
|
|
18
|
-
*
|
|
27
|
+
* Returns an empty array when no review-filed defects are open. The
|
|
28
|
+
* review-cycle bound is TELORA_REVIEW_CYCLE_CAP (a parameter so the builder
|
|
29
|
+
* stays pure in tests).
|
|
19
30
|
*/
|
|
20
|
-
export declare function buildRemediationDirectiveSection(reviewFiledOpenCount: number): string[];
|
|
31
|
+
export declare function buildRemediationDirectiveSection(reviewFiledOpenCount: number, reviewCycleCap?: number): string[];
|
|
21
32
|
export declare function buildReviewOutcomeStampingSection(agentSessionId?: string): string[];
|
|
33
|
+
/**
|
|
34
|
+
* WHERE the criteria a review must verdict come from, and what to do when the
|
|
35
|
+
* list is long enough to be dropped in transport.
|
|
36
|
+
*
|
|
37
|
+
* Extracted from buildReviewOutcomeStampingSection rather than inlined: that
|
|
38
|
+
* function is floored by lint:daemon-function-size, and this is a distinct
|
|
39
|
+
* claim (which criteria EXIST) from the one the parent makes (what a verdict
|
|
40
|
+
* MEANS). The arm's stamped tree criteria are named first because they are the
|
|
41
|
+
* ones a reviewer is most likely never to have seen -- they live on the focus,
|
|
42
|
+
* not on a delivery.
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildAcVerdictSourcesLines(): string[];
|
|
22
45
|
/**
|
|
23
46
|
* The marker we look for in the assembled stage-directive context to know a
|
|
24
47
|
* 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":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"persona-sections.d.ts","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE3F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAStD,CAAC;AAOF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gCAAgC,CAC9C,oBAAoB,EAAE,MAAM,EAC5B,cAAc,GAAE,MAAgC,GAC/C,MAAM,EAAE,CAqBV;AA+ED,wBAAgB,iCAAiC,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAuHnF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAqBrD;AAOD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8BAA8B,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAQjF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,EAAE,CA8BtD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,MAAM,EAAE,CAuDV;AAMD,uDAAuD;AACvD,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;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,CAsFvE"}
|
|
@@ -1,19 +1,58 @@
|
|
|
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/prompt-sections/review-foreign-commit-filing.test.ts
|
|
2
|
+
// Pinned by: packages/daemon/src/prompt-sections/review-foreign-commit-filing.test.ts,
|
|
3
|
+
// packages/daemon/src/prompt/prompt-contradictions.test.ts,
|
|
4
|
+
// packages/daemon/src/prompt/remediation-framing-per-pass.test.ts
|
|
3
5
|
// PINNED-BY-END
|
|
6
|
+
/**
|
|
7
|
+
* Persona and framing section builders: review-defect remediation directive,
|
|
8
|
+
* remediation framing, loop-data maintenance, the close-loop bookkeeper persona
|
|
9
|
+
* + drift check, and the incremental resume-delta message. Extracted from
|
|
10
|
+
* team-prompt-base.ts.
|
|
11
|
+
*/
|
|
12
|
+
import { loadEnvConfig } from '@telora/daemon-core';
|
|
4
13
|
import { buildGateVerdictLines } from './gate-verdict-section.js';
|
|
14
|
+
/**
|
|
15
|
+
* THE RULE a team answering review findings is handed, in one place, so the
|
|
16
|
+
* fresh spawn prompt (buildRemediationDirectiveSection) and the resume delta
|
|
17
|
+
* (buildResumeDeltaMessage, coding branch) state the same thing word for word.
|
|
18
|
+
*
|
|
19
|
+
* Operator ruling 2026-09-22: no delivery is created in answer to a review
|
|
20
|
+
* finding -- an invariant with no exception clause. A finding is a shortfall
|
|
21
|
+
* against intent fixed at the arm; a delivery is intent; a shortfall is never
|
|
22
|
+
* answered with new intent. The earlier wording ("unless directly required to
|
|
23
|
+
* fix a flagged defect") was an exception every team reading findings satisfied
|
|
24
|
+
* by construction, so it forbade nothing.
|
|
25
|
+
*/
|
|
26
|
+
export const REVIEW_FINDING_RULE_LINES = [
|
|
27
|
+
'- NEVER create a delivery in answer to a review finding. Not the review pass,',
|
|
28
|
+
' not you. There is no exception to this rule.',
|
|
29
|
+
'- A finding is closed as a Bug or Context Group ON THE DELIVERY IT WAS FILED',
|
|
30
|
+
' AGAINST. That is where the work happens and where the fix is evidenced.',
|
|
31
|
+
'- A finding that exceeds the delivery\'s declared acceptance criteria is not',
|
|
32
|
+
' answered with new intent either: judge it against the criteria it was filed',
|
|
33
|
+
' under and close it there. `telora_product_delivery` (action: "create") is',
|
|
34
|
+
' refused on this focus while review-filed findings are open.',
|
|
35
|
+
];
|
|
36
|
+
/** The review-cycle budget the remediation directive states (TELORA_REVIEW_CYCLE_CAP). */
|
|
37
|
+
function defaultReviewCycleCap() {
|
|
38
|
+
return loadEnvConfig().TELORA_REVIEW_CYCLE_CAP;
|
|
39
|
+
}
|
|
5
40
|
/**
|
|
6
41
|
* Build the review-defect remediation directive.
|
|
7
42
|
*
|
|
8
|
-
* Emitted when the team is being respawned to address issues filed by a
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
43
|
+
* Emitted when the team is being respawned to address issues filed by a review
|
|
44
|
+
* pass. The count is derived from the FOCUS-SCOPED review-filed issue set
|
|
45
|
+
* (spawn/worktree-session.ts resolveReviewContext), never from the
|
|
46
|
+
* review_requested_at time window, so the directive does not vanish when the
|
|
47
|
+
* window is cleared or re-stamped. The directive orients the team to "fix
|
|
48
|
+
* defects, not expand scope" and states the rule with no exception clause
|
|
49
|
+
* (REVIEW_FINDING_RULE_LINES).
|
|
12
50
|
*
|
|
13
|
-
* Returns an empty array when no review-filed defects are
|
|
14
|
-
*
|
|
51
|
+
* Returns an empty array when no review-filed defects are open. The
|
|
52
|
+
* review-cycle bound is TELORA_REVIEW_CYCLE_CAP (a parameter so the builder
|
|
53
|
+
* stays pure in tests).
|
|
15
54
|
*/
|
|
16
|
-
export function buildRemediationDirectiveSection(reviewFiledOpenCount) {
|
|
55
|
+
export function buildRemediationDirectiveSection(reviewFiledOpenCount, reviewCycleCap = defaultReviewCycleCap()) {
|
|
17
56
|
if (reviewFiledOpenCount <= 0)
|
|
18
57
|
return [];
|
|
19
58
|
return [
|
|
@@ -23,16 +62,16 @@ export function buildRemediationDirectiveSection(reviewFiledOpenCount) {
|
|
|
23
62
|
'review team after auditing your prior work. Address them as defects to',
|
|
24
63
|
'fix, not new scope to expand. Specifically:',
|
|
25
64
|
'',
|
|
26
|
-
|
|
27
|
-
' flagged defect.',
|
|
65
|
+
...REVIEW_FINDING_RULE_LINES,
|
|
28
66
|
'- Do NOT widen scope. The review identified specific gaps -- close them.',
|
|
29
|
-
'-
|
|
30
|
-
' treat them as the work plan for this remediation cycle.',
|
|
67
|
+
'- The review-filed issues are the work plan for this remediation cycle.',
|
|
31
68
|
'- When all review-filed issues are Done, the daemon will automatically',
|
|
32
69
|
' return the focus to verify so the next review pass can run.',
|
|
33
70
|
'',
|
|
34
|
-
|
|
35
|
-
'
|
|
71
|
+
`You are in a remediation cycle. The focus has a budget of ${reviewCycleCap}`,
|
|
72
|
+
'consecutive unconverged review cycles; when it is spent the armed run ENDS',
|
|
73
|
+
'and only a new arm resumes it -- finish the defects efficiently and',
|
|
74
|
+
'accurately.',
|
|
36
75
|
'',
|
|
37
76
|
];
|
|
38
77
|
}
|
|
@@ -209,8 +248,8 @@ export function buildReviewOutcomeStampingSection(agentSessionId) {
|
|
|
209
248
|
'',
|
|
210
249
|
'An acceptance criterion cannot be waived by prose. When you complete this',
|
|
211
250
|
'review, pass `acVerdicts` to `focus_review_complete`: one entry per',
|
|
212
|
-
|
|
213
|
-
'
|
|
251
|
+
'acceptance criterion, each naming the `criterion` verbatim and a `verdict`',
|
|
252
|
+
'of exactly one of:',
|
|
214
253
|
'',
|
|
215
254
|
'- `met` -- the work satisfies the criterion.',
|
|
216
255
|
'- `not_met` -- it is not satisfied; give a `rationale` naming the gap. An',
|
|
@@ -228,6 +267,40 @@ export function buildReviewOutcomeStampingSection(agentSessionId) {
|
|
|
228
267
|
'absorbed into the free-text summary. This is the acceptance-criteria analog',
|
|
229
268
|
'of shortfall disposition above.',
|
|
230
269
|
'',
|
|
270
|
+
...buildAcVerdictSourcesLines(),
|
|
271
|
+
];
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* WHERE the criteria a review must verdict come from, and what to do when the
|
|
275
|
+
* list is long enough to be dropped in transport.
|
|
276
|
+
*
|
|
277
|
+
* Extracted from buildReviewOutcomeStampingSection rather than inlined: that
|
|
278
|
+
* function is floored by lint:daemon-function-size, and this is a distinct
|
|
279
|
+
* claim (which criteria EXIST) from the one the parent makes (what a verdict
|
|
280
|
+
* MEANS). The arm's stamped tree criteria are named first because they are the
|
|
281
|
+
* ones a reviewer is most likely never to have seen -- they live on the focus,
|
|
282
|
+
* not on a delivery.
|
|
283
|
+
*/
|
|
284
|
+
export function buildAcVerdictSourcesLines() {
|
|
285
|
+
return [
|
|
286
|
+
'WHERE THE CRITERIA COME FROM -- three places, and the arm\'s are the ones',
|
|
287
|
+
'most often missed:',
|
|
288
|
+
'',
|
|
289
|
+
'1. The TREE criteria the arm STAMPED on the focus: one per undesired effect',
|
|
290
|
+
' the arm covers, its stated future. These are the focus\'s own bar and are',
|
|
291
|
+
' required like any other.',
|
|
292
|
+
'2. Each delivery\'s acceptance criteria.',
|
|
293
|
+
'3. The focus-level acceptanceCriteria.',
|
|
294
|
+
'',
|
|
295
|
+
'Call `focus_criteria_standing` BEFORE you review and verdict what it lists.',
|
|
296
|
+
'A criterion nobody showed you is still refused on approval.',
|
|
297
|
+
'',
|
|
298
|
+
'IF THE LIST IS LONG, the whole `acVerdicts` array can be dropped in',
|
|
299
|
+
'transport and the server will report every criterion as uncovered. Copy the',
|
|
300
|
+
'criteria VERBATIM out of the refusal, keep `summary` to a sentence or two',
|
|
301
|
+
'and `references` to a single small group, and send the full array in that',
|
|
302
|
+
'same call.',
|
|
303
|
+
'',
|
|
231
304
|
];
|
|
232
305
|
}
|
|
233
306
|
// The review-stage sensor-audit charge now lives with the standard it enforces:
|
|
@@ -422,6 +495,10 @@ export function buildResumeDeltaMessage(ctx) {
|
|
|
422
495
|
lines.push('');
|
|
423
496
|
lines.push('Review filed the issues below against your prior work. Address each as a');
|
|
424
497
|
lines.push('defect to fix and confirm the fix in the diff. Do not widen scope.');
|
|
498
|
+
lines.push('');
|
|
499
|
+
// The same rule the fresh spawn prompt carries: a resumed session never
|
|
500
|
+
// recomposes its role framework, so the rule must ride the delta itself.
|
|
501
|
+
lines.push(...REVIEW_FINDING_RULE_LINES);
|
|
425
502
|
}
|
|
426
503
|
lines.push('');
|
|
427
504
|
for (const f of ctx.priorFindings) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persona-sections.js","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"persona-sections.js","sourceRoot":"","sources":["../../src/prompt-sections/persona-sections.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,uFAAuF;AACvF,8DAA8D;AAC9D,oEAAoE;AACpE,gBAAgB;AAEhB;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAA2B,MAAM,2BAA2B,CAAC;AAE3F;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAsB;IAC1D,+EAA+E;IAC/E,gDAAgD;IAChD,8EAA8E;IAC9E,2EAA2E;IAC3E,8EAA8E;IAC9E,+EAA+E;IAC/E,6EAA6E;IAC7E,+DAA+D;CAChE,CAAC;AAEF,0FAA0F;AAC1F,SAAS,qBAAqB;IAC5B,OAAO,aAAa,EAAE,CAAC,uBAAuB,CAAC;AACjD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,gCAAgC,CAC9C,oBAA4B,EAC5B,iBAAyB,qBAAqB,EAAE;IAEhD,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,GAAG,yBAAyB;QAC5B,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,+DAA+D;QAC/D,EAAE;QACF,6DAA6D,cAAc,EAAE;QAC7E,4EAA4E;QAC5E,qEAAqE;QACrE,aAAa;QACb,EAAE;KACH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CAAC;IACrF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,gFAAgF;IAChF,mCAAmC;IACnC,MAAM,YAAY,GAAG,qBAAqB,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5F,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,GAAG,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"}
|
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Re-exported from execution-sections.ts, so existing importers are unaffected.
|
|
12
12
|
*/
|
|
13
|
+
/**
|
|
14
|
+
* Which sentences of the scoping sections a pass may be handed.
|
|
15
|
+
*
|
|
16
|
+
* `mayCreateDeliveries: false` withholds ONLY the delivery-creating text --
|
|
17
|
+
* "Splitting a delivery: 1. Create new deliveries via telora_product_delivery",
|
|
18
|
+
* "Do not ask for permission to rescope", and the workFacing declaration
|
|
19
|
+
* (which presupposes creating deliveries). Everything else -- the issue-creation
|
|
20
|
+
* requirement, the prose-hold / future-state rules, the agent-satisfiable
|
|
21
|
+
* criteria rules, the relocate-to-focus rule, descoping and adding issues, and
|
|
22
|
+
* the no-manufactured-hold escalation guidance -- reaches EVERY pass. A review
|
|
23
|
+
* pass and a team answering review findings are the passes that may not create
|
|
24
|
+
* deliveries (operator ruling 2026-09-22; prompt/team-prompt-base.ts decides).
|
|
25
|
+
* Default true: every existing caller is byte-identical.
|
|
26
|
+
*/
|
|
27
|
+
export interface ScopingSectionOptions {
|
|
28
|
+
mayCreateDeliveries?: boolean;
|
|
29
|
+
}
|
|
13
30
|
/**
|
|
14
31
|
* Build the scoping mandate section.
|
|
15
32
|
*
|
|
@@ -18,11 +35,8 @@
|
|
|
18
35
|
* section makes the requirement visible to the team lead so it does not waste
|
|
19
36
|
* a turn discovering it through a 400 response.
|
|
20
37
|
*/
|
|
21
|
-
export declare function buildScopingMandateSection(): string[];
|
|
22
|
-
|
|
23
|
-
* Build the rescoping and splitting deliveries section.
|
|
24
|
-
*/
|
|
25
|
-
export declare function buildRescopingSection(focusId: string, productId: string): string[];
|
|
38
|
+
export declare function buildScopingMandateSection(options?: ScopingSectionOptions): string[];
|
|
39
|
+
export declare function buildRescopingSection(focusId: string, productId: string, options?: ScopingSectionOptions): string[];
|
|
26
40
|
/**
|
|
27
41
|
* Build the new work delivery section (Phase 5 -- daemon-push model).
|
|
28
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoping-sections.d.ts","sourceRoot":"","sources":["../../src/prompt-sections/scoping-sections.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"scoping-sections.d.ts","sourceRoot":"","sources":["../../src/prompt-sections/scoping-sections.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CA4DxF;AA4BD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,qBAA0B,GAClC,MAAM,EAAE,CAmGV;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,EAAE,CAiBtD"}
|