@telora/daemon 0.22.189 → 0.22.208
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 +6 -3
- package/dist/backends/index.d.ts.map +1 -1
- package/dist/backends/index.js +2 -0
- package/dist/backends/index.js.map +1 -1
- package/dist/completion/completion-fact-readers.d.ts +35 -0
- package/dist/completion/completion-fact-readers.d.ts.map +1 -0
- package/dist/completion/completion-fact-readers.js +70 -0
- package/dist/completion/completion-fact-readers.js.map +1 -0
- package/dist/completion/event-dep-defaults.d.ts +27 -0
- package/dist/completion/event-dep-defaults.d.ts.map +1 -0
- package/dist/completion/event-dep-defaults.js +30 -0
- package/dist/completion/event-dep-defaults.js.map +1 -0
- package/dist/completion/event-phases.d.ts.map +1 -1
- package/dist/completion/event-phases.js +5 -13
- package/dist/completion/event-phases.js.map +1 -1
- package/dist/completion/event.d.ts +32 -0
- package/dist/completion/event.d.ts.map +1 -1
- package/dist/completion/event.js +31 -25
- package/dist/completion/event.js.map +1 -1
- package/dist/completion/session-hold.d.ts +13 -1
- package/dist/completion/session-hold.d.ts.map +1 -1
- package/dist/completion/session-hold.js +18 -0
- package/dist/completion/session-hold.js.map +1 -1
- package/dist/completion/team-phase.d.ts.map +1 -1
- package/dist/completion/team-phase.js +1 -0
- package/dist/completion/team-phase.js.map +1 -1
- package/dist/completion/unclaimed-migration-notice-phase.d.ts +97 -0
- package/dist/completion/unclaimed-migration-notice-phase.d.ts.map +1 -0
- package/dist/completion/unclaimed-migration-notice-phase.js +270 -0
- package/dist/completion/unclaimed-migration-notice-phase.js.map +1 -0
- package/dist/directive/directive-executor.d.ts.map +1 -1
- package/dist/directive/directive-executor.js +1 -20
- package/dist/directive/directive-executor.js.map +1 -1
- package/dist/focus/focus-executor.d.ts +1 -0
- package/dist/focus/focus-executor.d.ts.map +1 -1
- package/dist/focus/focus-executor.js +18 -17
- package/dist/focus/focus-executor.js.map +1 -1
- package/dist/focus/focus-team-state.js +1 -1
- package/dist/focus/listener-spawn.d.ts.map +1 -1
- package/dist/focus/listener-spawn.js +5 -20
- package/dist/focus/listener-spawn.js.map +1 -1
- package/dist/focus/listener-state.d.ts.map +1 -1
- package/dist/focus/listener-state.js +1 -0
- package/dist/focus/listener-state.js.map +1 -1
- package/dist/focus/listener.d.ts +1 -0
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +9 -0
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/migration-claim-pass.d.ts +50 -0
- package/dist/focus/migration-claim-pass.d.ts.map +1 -0
- package/dist/focus/migration-claim-pass.js +234 -0
- package/dist/focus/migration-claim-pass.js.map +1 -0
- package/dist/focus/pending-spawn-pass-deps.d.ts.map +1 -1
- package/dist/focus/pending-spawn-pass-deps.js +2 -1
- package/dist/focus/pending-spawn-pass-deps.js.map +1 -1
- package/dist/focus/team-actionable-work.d.ts +21 -0
- package/dist/focus/team-actionable-work.d.ts.map +1 -1
- package/dist/focus/team-actionable-work.js +3 -0
- package/dist/focus/team-actionable-work.js.map +1 -1
- package/dist/git/types.d.ts.map +1 -1
- package/dist/git/types.js +2 -1
- package/dist/git/types.js.map +1 -1
- package/dist/loops/llm-client.d.ts.map +1 -1
- package/dist/loops/llm-client.js +11 -1
- package/dist/loops/llm-client.js.map +1 -1
- package/dist/migrations/migration-claim-lifecycle.d.ts +166 -0
- package/dist/migrations/migration-claim-lifecycle.d.ts.map +1 -0
- package/dist/migrations/migration-claim-lifecycle.js +198 -0
- package/dist/migrations/migration-claim-lifecycle.js.map +1 -0
- package/dist/migrations/migration-held-set.d.ts +171 -0
- package/dist/migrations/migration-held-set.d.ts.map +1 -0
- package/dist/migrations/migration-held-set.js +295 -0
- package/dist/migrations/migration-held-set.js.map +1 -0
- package/dist/migrations/migration-inventory.d.ts +187 -0
- package/dist/migrations/migration-inventory.d.ts.map +1 -0
- package/dist/migrations/migration-inventory.js +253 -0
- package/dist/migrations/migration-inventory.js.map +1 -0
- package/dist/migrations/migration-manifest.d.ts +114 -0
- package/dist/migrations/migration-manifest.d.ts.map +1 -0
- package/dist/migrations/migration-manifest.js +295 -0
- package/dist/migrations/migration-manifest.js.map +1 -0
- package/dist/prompt/team-prompt-base.js +1 -1
- package/dist/prompt-sections/migration-numbering-section.d.ts +58 -0
- package/dist/prompt-sections/migration-numbering-section.d.ts.map +1 -0
- package/dist/prompt-sections/migration-numbering-section.js +70 -0
- package/dist/prompt-sections/migration-numbering-section.js.map +1 -0
- package/dist/prompt-sections/migration-numbering-state.d.ts +30 -0
- package/dist/prompt-sections/migration-numbering-state.d.ts.map +1 -0
- package/dist/prompt-sections/migration-numbering-state.js +24 -0
- package/dist/prompt-sections/migration-numbering-state.js.map +1 -0
- package/dist/prompt-sections/unclaimed-migration-section.d.ts +38 -0
- package/dist/prompt-sections/unclaimed-migration-section.d.ts.map +1 -0
- package/dist/prompt-sections/unclaimed-migration-section.js +57 -0
- package/dist/prompt-sections/unclaimed-migration-section.js.map +1 -0
- package/dist/queries/claim-pass-focuses.d.ts +19 -0
- package/dist/queries/claim-pass-focuses.d.ts.map +1 -0
- package/dist/queries/claim-pass-focuses.js +72 -0
- package/dist/queries/claim-pass-focuses.js.map +1 -0
- package/dist/queries/daemon-connection.d.ts.map +1 -1
- package/dist/queries/daemon-connection.js +1 -0
- package/dist/queries/daemon-connection.js.map +1 -1
- package/dist/queries/focus-discovery.d.ts +25 -2
- package/dist/queries/focus-discovery.d.ts.map +1 -1
- package/dist/queries/focus-discovery.js +16 -9
- package/dist/queries/focus-discovery.js.map +1 -1
- package/dist/queries/focus-unclaimed-migration.d.ts +146 -0
- package/dist/queries/focus-unclaimed-migration.d.ts.map +1 -0
- package/dist/queries/focus-unclaimed-migration.js +266 -0
- package/dist/queries/focus-unclaimed-migration.js.map +1 -0
- package/dist/queries/live-focus-branches.d.ts +32 -0
- package/dist/queries/live-focus-branches.d.ts.map +1 -0
- package/dist/queries/live-focus-branches.js +66 -0
- package/dist/queries/live-focus-branches.js.map +1 -0
- package/dist/queries/migration-claims.d.ts +25 -0
- package/dist/queries/migration-claims.d.ts.map +1 -0
- package/dist/queries/migration-claims.js +79 -0
- package/dist/queries/migration-claims.js.map +1 -0
- package/dist/queries/schemas.d.ts +2 -0
- package/dist/queries/schemas.d.ts.map +1 -1
- package/dist/queries/schemas.js +6 -0
- package/dist/queries/schemas.js.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/session/session-lineage.d.ts.map +1 -1
- package/dist/session/session-lineage.js +3 -0
- package/dist/session/session-lineage.js.map +1 -1
- package/dist/shell/heartbeat-metadata.d.ts +48 -2
- package/dist/shell/heartbeat-metadata.d.ts.map +1 -1
- package/dist/shell/heartbeat-metadata.js +80 -3
- package/dist/shell/heartbeat-metadata.js.map +1 -1
- package/dist/shell/heartbeat.d.ts +13 -0
- package/dist/shell/heartbeat.d.ts.map +1 -1
- package/dist/shell/heartbeat.js +31 -10
- package/dist/shell/heartbeat.js.map +1 -1
- package/dist/shell/mcp-resolution.js +1 -1
- package/dist/shell/mcp-resolution.js.map +1 -1
- package/dist/shell/migration-held-set-publish.d.ts +170 -0
- package/dist/shell/migration-held-set-publish.d.ts.map +1 -0
- package/dist/shell/migration-held-set-publish.js +172 -0
- package/dist/shell/migration-held-set-publish.js.map +1 -0
- package/dist/shell/worker-pidfile.d.ts.map +1 -1
- package/dist/shell/worker-pidfile.js +1 -0
- package/dist/shell/worker-pidfile.js.map +1 -1
- package/dist/spawn/helpers.d.ts.map +1 -1
- package/dist/spawn/helpers.js +1 -0
- package/dist/spawn/helpers.js.map +1 -1
- package/dist/spawn/lead-launch.d.ts.map +1 -1
- package/dist/spawn/lead-launch.js +1 -0
- package/dist/spawn/lead-launch.js.map +1 -1
- package/dist/spawn/lead-process-ownership.d.ts.map +1 -1
- package/dist/spawn/lead-process-ownership.js +1 -0
- package/dist/spawn/lead-process-ownership.js.map +1 -1
- package/dist/spawn/process-group-kill.d.ts.map +1 -1
- package/dist/spawn/process-group-kill.js +1 -0
- package/dist/spawn/process-group-kill.js.map +1 -1
- package/dist/spawn/process-spawn.d.ts +18 -1
- package/dist/spawn/process-spawn.d.ts.map +1 -1
- package/dist/spawn/process-spawn.js +11 -6
- package/dist/spawn/process-spawn.js.map +1 -1
- package/dist/spawn/prompt-assembly.d.ts +115 -18
- package/dist/spawn/prompt-assembly.d.ts.map +1 -1
- package/dist/spawn/prompt-assembly.js +121 -2
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/spawn-and-acknowledge.d.ts +61 -0
- package/dist/spawn/spawn-and-acknowledge.d.ts.map +1 -0
- package/dist/spawn/spawn-and-acknowledge.js +117 -0
- package/dist/spawn/spawn-and-acknowledge.js.map +1 -0
- package/dist/spawn/spawn-cooldown.js +1 -1
- package/dist/spawn/spawn-decision.d.ts +10 -10
- package/dist/spawn/spawn-decision.d.ts.map +1 -1
- package/dist/spawn/spawn-decision.js +33 -5
- package/dist/spawn/spawn-decision.js.map +1 -1
- package/dist/templates/claude-md.d.ts +1 -1
- package/dist/templates/claude-md.d.ts.map +1 -1
- package/dist/templates/claude-md.js +24 -0
- package/dist/templates/claude-md.js.map +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/fixtures/migration-namespace-repo.d.ts +63 -0
- package/dist/testing/fixtures/migration-namespace-repo.d.ts.map +1 -0
- package/dist/testing/fixtures/migration-namespace-repo.js +164 -0
- package/dist/testing/fixtures/migration-namespace-repo.js.map +1 -0
- package/dist/testing/fixtures/stubborn-lead-process.d.ts.map +1 -1
- package/dist/testing/fixtures/stubborn-lead-process.js +1 -0
- package/dist/testing/fixtures/stubborn-lead-process.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/verify/no-own-delta-verdict.d.ts +16 -2
- package/dist/verify/no-own-delta-verdict.d.ts.map +1 -1
- package/dist/verify/no-own-delta-verdict.js +18 -2
- package/dist/verify/no-own-delta-verdict.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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8DAA8D;AAC9D,eAAuB;AACvB,+EAA+E;AAC/E,MAAyC;AACzC,+EAA+E;AAC/E,YAAqB;AACrB,6EAA6E;AAC7E,OAAe;AACf,0DAA0D;AAC1D,gBAA6D,4BAA4B;AACzF,4EAA4E;AAC5E,YAA4D,2BAA2B;IAEvF,2EAA2E;IAC3E,6DAA6D;IAC7D,MAAM,wBAAwB,GAAG,YAAY,IAAI,CAAC,OAAO;QACvD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO;QACL,mBAAmB,EAAE,QAAQ,CAAC,eAAe,EAAE,QAAQ,IAAI,IAAI;QAC/D,eAAe;QACf,kBAAkB,EAAE,8BAA8B,CAAC,MAAM,CAAC,QAAQ,CAAC;QACnE,8BAA8B,EAAE,YAAY;QAC5C,wBAAwB;QACxB,0EAA0E;QAC1E,uEAAuE;QACvE,2EAA2E;QAC3E,qEAAqE;QACrE,+BAA+B,EAAE,wBAAwB,KAAK,IAAI;YAChE,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The spawn, the registration hand-off, and the notice acknowledgement -- as
|
|
3
|
+
* ONE sequence, because the order between them is the thing that was wrong.
|
|
4
|
+
*
|
|
5
|
+
* WHAT WENT WRONG. The unclaimed-migration record was marked NAMED while the
|
|
6
|
+
* spawn's section inputs were being gathered -- before the session existed. A
|
|
7
|
+
* spawn that then failed left the record named with nobody having read
|
|
8
|
+
* anything: the completion hold lifted, the next spawn saw an already-delivered
|
|
9
|
+
* record, and the team that wrote the file was never told.
|
|
10
|
+
*
|
|
11
|
+
* Moving the mark after the spawn was necessary and not sufficient.
|
|
12
|
+
* `spawnTeamProcess` returns NORMALLY on four refusals -- an unavailable
|
|
13
|
+
* backend, a governor denial, an unavailable sandbox, and a previous lead that
|
|
14
|
+
* would not end -- and on each of them no process exists to have read the
|
|
15
|
+
* message. Acknowledging on a refusal is the same defect with a later
|
|
16
|
+
* timestamp, which is why the outcome is a discriminated union rather than
|
|
17
|
+
* void: "did a process actually start?" has to be a question the caller can
|
|
18
|
+
* ask.
|
|
19
|
+
*
|
|
20
|
+
* WHY THIS IS A MODULE AND NOT THREE LINES IN spawnFocusTeam. Those three lines
|
|
21
|
+
* ARE the fix, and inside the orchestrator nothing could observe them: driving
|
|
22
|
+
* `spawnFocusTeam` needs a worktree rebase, a session create and a backend
|
|
23
|
+
* probe before it reaches them. Here the sequence is importable, so a test can
|
|
24
|
+
* drive a REAL spawn (and a real refusal) through it and watch what the
|
|
25
|
+
* acknowledgement does -- which is what turns "the guard is written down" into
|
|
26
|
+
* "the guard is applied".
|
|
27
|
+
*
|
|
28
|
+
* @module spawn/spawn-and-acknowledge
|
|
29
|
+
*/
|
|
30
|
+
import { type SpawnTeamProcessArgs, type SpawnTeamProcessResult } from './process-spawn.js';
|
|
31
|
+
/**
|
|
32
|
+
* Record that the unclaimed-migration notice reached the team -- ONLY once the
|
|
33
|
+
* session exists and its message (which carries the notice) has been written.
|
|
34
|
+
*
|
|
35
|
+
* NEVER THROWS. The caller runs this between the spawn and its own error
|
|
36
|
+
* handling, and a throw here would unwind a spawn that actually succeeded,
|
|
37
|
+
* releasing a registration the live child process owns. A failure to record
|
|
38
|
+
* leaves the record unnamed, which is the safe direction: the next spawn, or
|
|
39
|
+
* the completion-event notice phase, tells the team again.
|
|
40
|
+
*/
|
|
41
|
+
export declare function acknowledgeUnclaimedNotice(focusName: string, confirm: (() => Promise<void>) | null, outcome: SpawnTeamProcessResult): Promise<void>;
|
|
42
|
+
/** What the acknowledgement needs to know about the notice it is confirming. */
|
|
43
|
+
export interface UnclaimedNoticeAcknowledgement {
|
|
44
|
+
focusName: string;
|
|
45
|
+
/**
|
|
46
|
+
* The confirmation the section assembly handed back, or null when this focus
|
|
47
|
+
* had no unclaimed record to deliver in the first place.
|
|
48
|
+
*/
|
|
49
|
+
confirm: (() => Promise<void>) | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Spawn the team lead, hand the registration off, then acknowledge the notice.
|
|
53
|
+
*
|
|
54
|
+
* `onSpawned` is the caller's registration hand-off (spawnFocusTeam's
|
|
55
|
+
* `teamCommitted` flag). It runs BETWEEN the spawn and the acknowledgement, in
|
|
56
|
+
* that order, because the child process owns the team lifecycle from the moment
|
|
57
|
+
* `spawnTeamProcess` returns -- the flag must be set before anything that could
|
|
58
|
+
* unwind, and the acknowledgement is deliberately the thing that cannot.
|
|
59
|
+
*/
|
|
60
|
+
export declare function spawnTeamAndAcknowledgeNotice(spec: SpawnTeamProcessArgs, notice: UnclaimedNoticeAcknowledgement, onSpawned: () => void): Promise<SpawnTeamProcessResult>;
|
|
61
|
+
//# sourceMappingURL=spawn-and-acknowledge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-and-acknowledge.d.ts","sourceRoot":"","sources":["../../src/spawn/spawn-and-acknowledge.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAoB,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAO9G;;;;;;;;;GASG;AACH,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,EACrC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAkBf;AA0CD,gFAAgF;AAChF,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;CACvC;AAED;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,oBAAoB,EAC1B,MAAM,EAAE,8BAA8B,EACtC,SAAS,EAAE,MAAM,IAAI,GACpB,OAAO,CAAC,sBAAsB,CAAC,CAMjC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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/spawn-and-acknowledge.test.ts
|
|
3
|
+
// PINNED-BY-END
|
|
4
|
+
/**
|
|
5
|
+
* The spawn, the registration hand-off, and the notice acknowledgement -- as
|
|
6
|
+
* ONE sequence, because the order between them is the thing that was wrong.
|
|
7
|
+
*
|
|
8
|
+
* WHAT WENT WRONG. The unclaimed-migration record was marked NAMED while the
|
|
9
|
+
* spawn's section inputs were being gathered -- before the session existed. A
|
|
10
|
+
* spawn that then failed left the record named with nobody having read
|
|
11
|
+
* anything: the completion hold lifted, the next spawn saw an already-delivered
|
|
12
|
+
* record, and the team that wrote the file was never told.
|
|
13
|
+
*
|
|
14
|
+
* Moving the mark after the spawn was necessary and not sufficient.
|
|
15
|
+
* `spawnTeamProcess` returns NORMALLY on four refusals -- an unavailable
|
|
16
|
+
* backend, a governor denial, an unavailable sandbox, and a previous lead that
|
|
17
|
+
* would not end -- and on each of them no process exists to have read the
|
|
18
|
+
* message. Acknowledging on a refusal is the same defect with a later
|
|
19
|
+
* timestamp, which is why the outcome is a discriminated union rather than
|
|
20
|
+
* void: "did a process actually start?" has to be a question the caller can
|
|
21
|
+
* ask.
|
|
22
|
+
*
|
|
23
|
+
* WHY THIS IS A MODULE AND NOT THREE LINES IN spawnFocusTeam. Those three lines
|
|
24
|
+
* ARE the fix, and inside the orchestrator nothing could observe them: driving
|
|
25
|
+
* `spawnFocusTeam` needs a worktree rebase, a session create and a backend
|
|
26
|
+
* probe before it reaches them. Here the sequence is importable, so a test can
|
|
27
|
+
* drive a REAL spawn (and a real refusal) through it and watch what the
|
|
28
|
+
* acknowledgement does -- which is what turns "the guard is written down" into
|
|
29
|
+
* "the guard is applied".
|
|
30
|
+
*
|
|
31
|
+
* @module spawn/spawn-and-acknowledge
|
|
32
|
+
*/
|
|
33
|
+
import { spawnTeamProcess } from './process-spawn.js';
|
|
34
|
+
import { MIGRATION_NUMBERING_HEADING } from '../prompt-sections/migration-numbering-section.js';
|
|
35
|
+
import { resolveMigrationNumberingState } from '../prompt-sections/migration-numbering-state.js';
|
|
36
|
+
import { createLogger } from '../shell/log.js';
|
|
37
|
+
const log = createLogger({ module: 'focus-executor' });
|
|
38
|
+
/**
|
|
39
|
+
* Record that the unclaimed-migration notice reached the team -- ONLY once the
|
|
40
|
+
* session exists and its message (which carries the notice) has been written.
|
|
41
|
+
*
|
|
42
|
+
* NEVER THROWS. The caller runs this between the spawn and its own error
|
|
43
|
+
* handling, and a throw here would unwind a spawn that actually succeeded,
|
|
44
|
+
* releasing a registration the live child process owns. A failure to record
|
|
45
|
+
* leaves the record unnamed, which is the safe direction: the next spawn, or
|
|
46
|
+
* the completion-event notice phase, tells the team again.
|
|
47
|
+
*/
|
|
48
|
+
export async function acknowledgeUnclaimedNotice(focusName, confirm, outcome) {
|
|
49
|
+
if (!confirm)
|
|
50
|
+
return;
|
|
51
|
+
// ONLY a spawn that actually happened may acknowledge the notice.
|
|
52
|
+
if (!outcome.spawned) {
|
|
53
|
+
log.info(`[focus-executor] "${focusName}": spawn refused (${outcome.reason}) -- the `
|
|
54
|
+
+ 'unclaimed-migration record stays unnamed so the next spawn delivers it');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
await confirm();
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
log.warn(`[focus-executor] "${focusName}": could not record that the unclaimed-migration `
|
|
62
|
+
+ `notice was delivered (${err.message}); it will be re-delivered`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* THE LAST GATE BEFORE THE PROCESS: the message actually being written to the
|
|
67
|
+
* lead carries the numbering rule.
|
|
68
|
+
*
|
|
69
|
+
* WHY HERE AND NOT ONLY IN THE COMPOSER. `buildSpawnMessage` checks what IT
|
|
70
|
+
* returns, which makes a blanked section a loud failure inside the composition.
|
|
71
|
+
* It says nothing about whether the caller then SENDS that return value. The
|
|
72
|
+
* executor holds two strings -- the composed `prompt` and the composed
|
|
73
|
+
* `messageToSend` -- and handing the wrong one to the spawn drops the rule from
|
|
74
|
+
* the resume-delta and forced-fresh-scoping shapes entirely while every
|
|
75
|
+
* composer-level test stays green, because the composer was never wrong.
|
|
76
|
+
*
|
|
77
|
+
* This is the one place every shape, every backend and every composition choice
|
|
78
|
+
* converges: whatever produced it, this is the text the team will read. So the
|
|
79
|
+
* fact is re-derived from `telora.migrations.json` one last time, below all of
|
|
80
|
+
* it.
|
|
81
|
+
*
|
|
82
|
+
* It throws, for the same reason the composer's check does: the executor's
|
|
83
|
+
* catch abandons THIS spawn and the next tick re-attempts, so a transient cause
|
|
84
|
+
* costs one cycle -- while the alternative is a coding team quietly numbering
|
|
85
|
+
* from its own worktree, which is invisible until two migrations share a number.
|
|
86
|
+
*/
|
|
87
|
+
function assertSpawnMessageCarriesNumberingRule(spec) {
|
|
88
|
+
const { config, teamState, messageToSend } = spec;
|
|
89
|
+
if (teamState?.sessionType === 'review')
|
|
90
|
+
return;
|
|
91
|
+
if (resolveMigrationNumberingState(config?.repoPath) === null)
|
|
92
|
+
return;
|
|
93
|
+
if (typeof messageToSend === 'string' && messageToSend.includes(MIGRATION_NUMBERING_HEADING))
|
|
94
|
+
return;
|
|
95
|
+
throw new Error('The message about to be written to the team lead does not carry the migration-numbering '
|
|
96
|
+
+ 'rule, but this product declares numbering (telora.migrations.json) and this is a coding '
|
|
97
|
+
+ 'pass. A team spawned without the rule numbers from its own worktree, which is the '
|
|
98
|
+
+ 'collision the declaration exists to prevent. Refusing the spawn rather than starting a '
|
|
99
|
+
+ 'session that was never told.');
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Spawn the team lead, hand the registration off, then acknowledge the notice.
|
|
103
|
+
*
|
|
104
|
+
* `onSpawned` is the caller's registration hand-off (spawnFocusTeam's
|
|
105
|
+
* `teamCommitted` flag). It runs BETWEEN the spawn and the acknowledgement, in
|
|
106
|
+
* that order, because the child process owns the team lifecycle from the moment
|
|
107
|
+
* `spawnTeamProcess` returns -- the flag must be set before anything that could
|
|
108
|
+
* unwind, and the acknowledgement is deliberately the thing that cannot.
|
|
109
|
+
*/
|
|
110
|
+
export async function spawnTeamAndAcknowledgeNotice(spec, notice, onSpawned) {
|
|
111
|
+
assertSpawnMessageCarriesNumberingRule(spec);
|
|
112
|
+
const outcome = await spawnTeamProcess(spec);
|
|
113
|
+
onSpawned();
|
|
114
|
+
await acknowledgeUnclaimedNotice(notice.focusName, notice.confirm, outcome);
|
|
115
|
+
return outcome;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=spawn-and-acknowledge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-and-acknowledge.js","sourceRoot":"","sources":["../../src/spawn/spawn-and-acknowledge.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,qEAAqE;AACrE,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,gBAAgB,EAA0D,MAAM,oBAAoB,CAAC;AAC9G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,SAAiB,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,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -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: 23 tests -- run: npm run gen:pinned-by -- --list packages/daemon/src/spawn/spawn-cooldown.ts
|
|
3
3
|
// PINNED-BY-END
|
|
4
4
|
import { createLogger } from '../shell/log.js';
|
|
5
5
|
import { resolveRespawnCycleMaxHours, resolveRespawnCycleMaxCount, } from '../verify/stall-detector-config.js';
|
|
@@ -155,6 +155,14 @@ export interface SpawnFocusTeamParams {
|
|
|
155
155
|
* pending-spawn-directive bypass, which likewise spawns past a 'skip'.
|
|
156
156
|
*/
|
|
157
157
|
forceSpawn?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* This focus OWES its team an unclaimed-migration notice, and the spawn's
|
|
160
|
+
* purpose is to carry it -- which only a CODING pass can do.
|
|
161
|
+
*
|
|
162
|
+
* See resolveActionableDeliveries for why it must override a queued review
|
|
163
|
+
* directive rather than sit behind one.
|
|
164
|
+
*/
|
|
165
|
+
requireCodingPass?: boolean;
|
|
158
166
|
}
|
|
159
167
|
/**
|
|
160
168
|
* Phase 1: fetch all spawn context (deliveries / issues / product-context /
|
|
@@ -195,22 +203,14 @@ export type ActionableResolution = {
|
|
|
195
203
|
actionableDeliveries: Awaited<ReturnType<typeof getFocusDeliveries>>;
|
|
196
204
|
isPlanningSpawn: boolean;
|
|
197
205
|
};
|
|
198
|
-
/**
|
|
199
|
-
* Phase 2: reserve any pending spawn directive, enforce the rank-ordered
|
|
200
|
-
* pre-spawn guard, and record known-delivery bookkeeping on the team state.
|
|
201
|
-
*
|
|
202
|
-
* Mutates `teamState` with the directive reservation, session type, planning
|
|
203
|
-
* phase, and known-delivery bookkeeping. Returns
|
|
204
|
-
* 'skip' for the findActionableDeliveries skip case (the caller owns the
|
|
205
|
-
* activeTeams.delete + return so the team-state map stays the orchestrator's
|
|
206
|
-
* responsibility). Behavior byte-identical.
|
|
207
|
-
*/
|
|
208
206
|
export declare function resolveActionableDeliveries(args: {
|
|
209
207
|
focusId: string;
|
|
210
208
|
focusName: string;
|
|
211
209
|
deliveries: Awaited<ReturnType<typeof getFocusDeliveries>>;
|
|
212
210
|
issues: Awaited<ReturnType<typeof getFocusIssues>>;
|
|
213
211
|
forceSpawn: boolean;
|
|
212
|
+
/** See SpawnFocusTeamParams.requireCodingPass. */
|
|
213
|
+
requireCodingPass?: boolean;
|
|
214
214
|
teamState: FocusTeamState;
|
|
215
215
|
/**
|
|
216
216
|
* The spawning focus's arm facts, so the pre-spawn walk can tell a delivery
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn-decision.d.ts","sourceRoot":"","sources":["../../src/spawn/spawn-decision.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spawn-decision.d.ts","sourceRoot":"","sources":["../../src/spawn/spawn-decision.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,kBAAkB,EAClB,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,wBAAwB,EAIzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAA2D,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMtI,OAAO,EAAuB,KAAK,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAuC,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC5G,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAA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AE,qBAAqB,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC9C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAC3D,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;IACnD,QAAQ,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAkK/B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
2
|
// Pinned by: packages/daemon/src/focus/awaiting-slot.test.ts,
|
|
3
|
+
// packages/daemon/src/focus/unclaimed-notice-coding-precedence.test.ts,
|
|
3
4
|
// packages/daemon/src/spawn/directive-body-skip.test.ts,
|
|
4
5
|
// packages/daemon/src/spawn/terminal-focus-quiet-spawn.test.ts
|
|
5
6
|
// PINNED-BY-END
|
|
@@ -220,16 +221,43 @@ export async function resolveLegacyLoopContext(config, focusId) {
|
|
|
220
221
|
* activeTeams.delete + return so the team-state map stays the orchestrator's
|
|
221
222
|
* responsibility). Behavior byte-identical.
|
|
222
223
|
*/
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
/**
|
|
225
|
+
* Which directive, if any, this spawn adopts -- and the session type that
|
|
226
|
+
* follows from it.
|
|
227
|
+
*
|
|
228
|
+
* A SPAWN THAT OWES A NOTICE TAKES PRECEDENCE OVER A QUEUED REVIEW. Adopting
|
|
229
|
+
* the directive's session type is what made the owed-notice force-spawn
|
|
230
|
+
* useless: the pass became a REVIEW, whose prompt omits the unclaimed record on
|
|
231
|
+
* purpose and whose completion phase correctly refuses to let a reviewer
|
|
232
|
+
* consume it. So the spawn happened, the record stayed owed, and an approved
|
|
233
|
+
* review was then free to complete or un-arm the focus with a migration on the
|
|
234
|
+
* branch that no claim accounts for. On Codex, whose stdin closes right after
|
|
235
|
+
* the kickoff message, that coding prompt was the only carrier there ever was.
|
|
236
|
+
*
|
|
237
|
+
* The directive is left PENDING -- not read, not reserved, not acknowledged --
|
|
238
|
+
* so the review still runs, on the spawn after the one carrying the notice.
|
|
239
|
+
*/
|
|
240
|
+
function adoptSpawnDirective(focusId, focusName, teamState, codingPassRequired) {
|
|
241
|
+
if (codingPassRequired) {
|
|
242
|
+
teamState.sessionType = 'coding';
|
|
243
|
+
teamState.lineage = 'coding';
|
|
244
|
+
log.info(`[focus-executor] Focus "${focusName}" spawning a CODING pass to deliver its `
|
|
245
|
+
+ 'unclaimed-migration notice -- a review pass can neither claim the number nor remove '
|
|
246
|
+
+ 'the file, and any queued review directive stays pending for the next spawn');
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
226
249
|
// Reserve its content hash on team state. lastConsumedDirectiveHash is set
|
|
227
250
|
// only when the two-signal delivery handshake acknowledges this reservation.
|
|
228
|
-
const pendingDirective = getPendingSpawnDirective(focusId);
|
|
251
|
+
const pendingDirective = getPendingSpawnDirective(focusId) ?? null;
|
|
229
252
|
if (pendingDirective) {
|
|
230
253
|
teamState.reservedDirectiveHash = pendingDirective.contentHash;
|
|
231
254
|
teamState.sessionType = pendingDirective.sessionType;
|
|
232
255
|
}
|
|
256
|
+
return pendingDirective;
|
|
257
|
+
}
|
|
258
|
+
export function resolveActionableDeliveries(args) {
|
|
259
|
+
const { focusId, focusName, deliveries, issues, forceSpawn, teamState, armFacts } = args;
|
|
260
|
+
const pendingDirective = adoptSpawnDirective(focusId, focusName, teamState, args.requireCodingPass === true);
|
|
233
261
|
// TEL (delivery 5): a focus whose deliveries are ALL terminal (done/cancelled)
|
|
234
262
|
// has nothing to act on -- no coding work, no review to run (a review focus
|
|
235
263
|
// sits in verify, which is NOT terminal). Even a pending directive must not
|
|
@@ -298,7 +326,7 @@ export function resolveActionableDeliveries(args) {
|
|
|
298
326
|
log.info(` Deliveries: ${deliveries.length} (${actionableDeliveries.length} queued)`);
|
|
299
327
|
}
|
|
300
328
|
log.info(` Issues: ${issues.length}`);
|
|
301
|
-
return { kind: 'proceed', pendingDirective, actionableDeliveries, isPlanningSpawn };
|
|
329
|
+
return { kind: 'proceed', pendingDirective: pendingDirective ?? undefined, actionableDeliveries, isPlanningSpawn };
|
|
302
330
|
}
|
|
303
331
|
/**
|
|
304
332
|
* Phase A: resolve the team-lead directive body + spawn metadata (no prompt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn-decision.js","sourceRoot":"","sources":["../../src/spawn/spawn-decision.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,8DAA8D;AAC9D,2DAA2D;AAC3D,iEAAiE;AACjE,gBAAgB;AAuBhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,oCAAoC,EACpC,cAAc,EACd,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iCAAiC,EAAoD,MAAM,iCAAiC,CAAC;AACtI,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC9G,OAAO,EAAE,mBAAmB,EAAiB,MAAM,iCAAiC,CAAC;AAErF,OAAO,EAAE,kBAAkB,EAAE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AO,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,CAAC;AAC5L,CAAC"}
|
|
@@ -29,7 +29,7 @@ export declare const TELORA_CLAUDE_MD_END = "<!-- END TELORA SEED -->";
|
|
|
29
29
|
* For Codex: the MCP server is registered in `~/.codex/config.toml` (global).
|
|
30
30
|
*/
|
|
31
31
|
export declare const SEED_MCP_REGISTRATION_SENTENCE = "The Telora MCP server is registered in `.mcp.json`.";
|
|
32
|
-
export declare const SEED_BODY = "# Telora workstation context\n\nThis repo is connected to Telora -- a differential control plane for\nsoftware delivery. Intent and reality are paired signals; the meaningful\nwork happens at the difference.\n\n## Before you write any code (read this first)\n\nDEFAULT: on a Telora-connected workstation, a new capability starts as\n**declared intent** before any code. When the user says \"I want to build\nX\", your first move is NOT to scaffold X -- it is to declare it: create\n(or select) a Focus -> delivery -> issue and move an issue to **In\nProgress**. Code is written only after intent is anchored above it.\n\nThis polarity is deliberate and easy to get backwards. Building directly\nin the working tree -- scaffolding, installing dependencies, starting a\ndev server, writing application files -- is the **exception**, taken ONLY\nwhen the user explicitly asks for it. Recognized bypass phrases:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\". Absent an explicit signal like these, treat any build\nrequest as a request to declare intent in Telora first.\n\nAsking good clarifying questions about stack, scope, or dependencies is\nNOT a substitute for this step -- that is execution-layer scoping, and it\ncomes *after* the capability is declared, not instead of it. Scoping is\nagent work; declaring that a capability matters is the part that must\nland in Telora first.\n\n**Surface the fork; do not silently pick it.** The common failure is\nresolving an ambiguous request toward the path of least resistance --\ne.g. reading \"a web app I run locally on my LAN\" (a deployment target) as\n\"build locally\" (skip Telora). When intent is not already explicit, your\nFIRST response to a build request names the choice rather than assuming\nit: \"I'll scope this in Telora unless you want it built locally -- which?\"\nOne question, once, at the start. Let the user pick; never pick for them\nby starting to type code.\n\n**First action rule.** On a build / new-capability request, your first\ntool call is a Telora planning call (telora_product_focus / _delivery /\n_issue) OR the fork question above -- never Write, Edit, or a code-running\nBash command. If the first move cannot be code, building-before-intent\ncannot happen.\n\nWhy: an artifact with no declared intent above it is reality moving with\nnothing to measure it against -- pure noise to the differential loop. The\nwhole system is built to compute intent-minus-reality; code that skips\nthe intent half defeats the instrument.\n\n## Execution polarity (which path executes this?)\n\nOnce intent is declared, a second polarity governs HOW it executes -- and it\nhas the same default-and-exception shape as the intent polarity above. A\ndeclared focus is handed to the **daemon team + review loop** by default.\nTeam execution IS THE DEFAULT; building it inline yourself in this interactive\nsession is the **explicit, named bypass**, taken ONLY when the user says so.\n\nThree execution forks recur. On each, the left side is the default and the\nright side is the effortful, must-be-named bypass:\n\n- **Daemon team + review vs. inline coding.** Default: hand the focus to the\n daemon team, which executes and runs it through the review gate. Bypass:\n build it inline in this session -- only on an explicit signal.\n- **Tree-anchored delivery vs. unanchored delivery.** Default: anchor each\n delivery to a reality-tree injection. Bypass: an unanchored delivery\n (`allowUnanchored`) -- a deliberate, reason-bearing act, not a silent flag.\n- **Review-gated Done vs. self-marked Done.** Default: work is confirmed Done\n by the review gate. Bypass: marking your own work Done without review.\n\nThe recognized signal that switches execution to inline is an explicit\n\"build it now\" (and the same throwaway phrases that bypass the intent step:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\"). Absent such a signal, hand off to the team -- do not fill the\nchoice with the lowest-resistance path (typing code yourself).\n\n**Surface the fork; do not silently pick it.** When the execution path is not\nalready explicit, your response NAMES the choice rather than assuming it:\n\"I'll hand this to the daemon team + review unless you want it built inline\nnow -- which?\" One question, once. Let the user pick; never default to inline\nby starting to type code.\n\n**Routing is not activation.** \"Hand off to the daemon team\" answers WHICH\npath executes -- it is NOT a signal to arm the focus now. Arming (setting the\nfocus's `assignedAgentRoleId`, which spends real budget spawning a team) is a\nseparate, human-owned go-signal. Scoping ends at a named **scoped, un-armed**\nstate: you decompose the focus into deliveries and issues and then STOP. Do\nNOT arm a focus at the tail of scoping -- a human arms it (or has durably\ndelegated that go-signal). Choosing team-over-inline routing the moment\nscoping ends is NOT the same as deciding it is time to spend; keep the two\ndecisions separate. Activation is a third decision, owned by the human\nalongside intent and completion (see Human-vs-agent boundaries below).\n\n## Planning hierarchy\n\n- **Focus** = the context that defines an area of work -- not \"one\n capability.\" All phases of building within that area belong in one\n focus; if a \"focus\" is really just one phase, fold it back in.\n- **Delivery** = a shippable phase or major component of a capability.\n- **Context Group** = optional grouping of related issues that share\n meaningful context (relevant files, architectural notes). A CG earns its\n existence by carrying context, not by being a folder.\n- **Task** = one discrete implementable unit. Bounded files, focused\n session. Multiple \"and\" clauses across different concerns means split.\n\nScope by purpose, not count. The right number of deliveries is however\nmany phases the work naturally has.\n\n**Scoping reads open intent.** When you place a new unit of work, the first\nquestion -- \"does this belong in a focus that already exists?\" -- is asked\nagainst the OPEN set only: the active and proposed foci. A completed or\ncancelled focus is settled intent. It can no longer absorb new work, and\nconsulting one only re-litigates a decision already closed -- so a terminal\nfocus is neither a placement candidate nor a precedent to reason from. When\nno open focus fits, the answer is a new focus, never a closed one reopened\nin spirit.\n\n## PRD: \"build a working app in one run\"\n\nA **PRD** sits one altitude above Focus (Product -> PRD -> Focus): a\nbounded, verifiable, retire-able milestone carrying a **Prerequisite Tree**\nof `goal` / `obstacle` / `overcome` nodes. Each `overcome` materializes\nas a focus; the daemon progressively arms the **frontier** of foci as\nupstream obstacles clear. This is the entry point a user means by \"build a\nfully working app in one go.\"\n\nIt is NOT big-bang generation: you author the tree once, commit a path,\nand the differential loop walks the frontier to completion -- the execution\nunderneath is still the normal focus -> delivery -> issue + review loop.\n\nThe PRD tools are **lazy-loaded** -- they do not exist until you load the\ndomain. If you don't see `telora_prd` / `telora_prd_tree`, run:\n\n```\ntelora_discover { action: \"load\", domain: \"prd\" }\n```\n\nThen: `telora_prd` create (referencing a Vision) -> `telora_prd_tree`\nauthor nodes (an obstacle's `clearancePredicate` is OPTIONAL and advisory --\nthe frontier advances as upstream obstacles clear via focus-completion, i.e.\neach overcome's focus finishing its deliveries' verify gates, not via a\nper-obstacle predicate) + edges -> commit a pathway -> `materialize_overcome`\neach into a focus. Authoring STOPS there, at **scoped, un-armed** -- arming\nthe daemon PRD loop is a human go-signal (the activation decision above),\nnot the tail of authoring, unless that go-signal is durably delegated. All\nauthoring is harness+MCP; there is no Telora authoring UI.\n\n## Issue workflow\n\n`To Do` -> `In Progress` -> `In Review` / `Blocked` -> `Done`.\n\nIssue types: **Context Group**, **Task**, **Bug**.\n\nMovement rules:\n\n- An issue MUST be set to `In Progress` before any work begins on it.\n- Never skip `In Progress`. Never move directly from `To Do` to `Done`.\n- Set status with `telora_product_issue` action=update.\n\nDelivery and focus stages advance automatically based on issue\nactivity. Agents never set delivery executionStatus directly.\n\n## Commit attribution (MANDATORY: one trailer per commit)\n\nEvery delivery on a focus shares ONE branch, so their commits interleave.\nThe only way the verify gate can judge a delivery against ITS OWN work is a\nper-commit marker. On EVERY commit you make for a delivery, add a git trailer\nnaming the delivery the work belongs to:\n\n```\nTelora-Delivery: <deliveryId>\n```\n\nStamp it with git's own trailer machinery so an appended `Co-Authored-By`\ncannot void it:\n\n```\ngit commit --trailer \"Telora-Delivery: <deliveryId>\" -m \"<subject>\"\n```\n\nDo NOT pass it as its own `-m` paragraph (`-m \"Telora-Delivery: ...\"`): git\nparses only the last paragraph as trailers, so an appended `Co-Authored-By`\nsilently voids it. A `commit-msg` git hook in this worktree ENFORCES this --\na commit whose message lacks a well-formed `Telora-Delivery: <uuid>` trailer\nis REFUSED, with the exact line to add printed. Fix it and re-commit; do not\nescalate.\n\nA commit that genuinely belongs to NO delivery declares that explicitly: merge\ncommits are exempt by shape (git sets `MERGE_HEAD`), and any other\ndelivery-less housekeeping commit carries the non-delivery sentinel:\n\n```\ngit commit --trailer \"Telora-Delivery: none\" -m \"<subject>\"\n```\n\nNever borrow a real delivery id for a commit that is not that delivery's work.\nThat is false attribution -- it folds a commit that is not its own into the\nborrowed delivery's verify evidence. The sentinel is the sanctioned escape.\n\n## MCP tool surface (what's available in this session)\n\nThe Telora MCP server is registered in `.mcp.json`. Core tool families:\n\n- `telora_product` -- list/get/create/update products\n- `telora_product_focus` -- focuses under a product\n- `telora_product_delivery` -- deliveries under a focus\n- `telora_product_issue` -- issues (Context Groups, Tasks, Bugs) under a delivery\n- `telora_agent` -- agent roles, escalation requests\n- `telora_loop_*` -- loop documents, questions, answers\n- `telora_discover` -- on-demand registration of deferred tool domains\n\nResolve the live tool list at runtime via `telora_discover` rather than\nhard-coding a list that drifts.\n\n## Human-vs-agent boundaries\n\n- Humans own **intent**, **activation**, and **completion**.\n - Intent: what capability matters, what changes when. Pre-handoff.\n - Activation (arming): the go/no-go spend decision -- setting the focus's\n `assignedAgentRoleId` to hand it to the daemon team. Scoping ends\n **scoped, un-armed**; arming is a human go-signal unless durably\n delegated. Sits between intent and completion.\n - Completion: closing the loop on whether a focus is done. Post-handoff.\n- Agents own **scoping** and **execution**.\n - Scoping: decomposing a focus into deliveries, deliveries into\n issues, restructuring mid-flight as the agent learns more. Scoping\n ENDS at **scoped, un-armed** -- it never arms the focus.\n - Execution: writing code, running tests, committing, reporting.\n\nDo not ask humans for operational details they expect the agent to figure\nout. Do not silently complete a focus on the human's behalf. Escalate\nwhen stuck via `telora_agent` action=escalate.\n\nWhen communicating with a human, refer to focuses, deliveries, and issues\nby their **title**, never their UUID. UUIDs are for tool calls only and must\nnot be surfaced in chat. MCP tool results carry both, so this is a\ncommunication choice, not a data-availability problem: keep the id in the\ntool call, name the work by its title in the conversation.\n\n## Differential signaling\n\nTelora is asymmetric: it moves reality toward intent, never the reverse.\nAgents do not lower the bar to make signals look better -- they escalate.\nEvery artifact (commit, work summary, gate result) is signal toward the\ndeclared intent; raw activity without intent reduction is noise.\n\nA short corrective comment from the user is high-signal -- treat brief\npushback as the most important input in the session.\n\n## Provenance: record what informed your intent\n\nWhen you and the human set Telora intent after looking at an external\ntracker (e.g. a client's Linear workspace), record WHERE that intent came\nfrom. A connected tracker is a **source for determining intent, not intent\nitself**: Telora owns intent, it is read strictly one-way, and Telora's\nintent is never written back to the tracker.\n\n- To read the tracker in-session, use the integrations tools\n (`telora_external_data_source` resolve, then `telora_linear`). Pull the\n issue(s) the human points at, discuss them together, then set intent in\n Telora (a focus, delivery, issue, reality-tree node, loop question, or\n PRD node).\n- Whenever tracker content SHAPED one of those entities, record an\n `informed_by` reference with `telora_external_reference` create, naming\n the entity + the external identifier (e.g. TIN-5) + a one-line note on\n HOW it informed the entity. The reference is a POINTER, never a copy --\n so a later reader can trace agreed intent back to its source, and a\n change to the source can be surfaced to the intent that leaned on it.\n\n## Workflows and policies\n\n- **Workflow**: stage directives shape agent behavior at discrete\n transitions. What context the agent sees (assembly recipes), what tools\n it can use, how it thinks (prompt + model). Live in Telora's\n `workflow_stages.agent_directive` JSONB.\n- **Policy** (organizational, deferred): cross-cutting constraints that\n feed into stage directives.\n\nWhen you cross a stage transition, the daemon may inject context or spawn\na fresh sub-agent per the directive. Don't override that flow without a\nclear reason.\n";
|
|
32
|
+
export declare const SEED_BODY = "# Telora workstation context\n\nThis repo is connected to Telora -- a differential control plane for\nsoftware delivery. Intent and reality are paired signals; the meaningful\nwork happens at the difference.\n\n## Before you write any code (read this first)\n\nDEFAULT: on a Telora-connected workstation, a new capability starts as\n**declared intent** before any code. When the user says \"I want to build\nX\", your first move is NOT to scaffold X -- it is to declare it: create\n(or select) a Focus -> delivery -> issue and move an issue to **In\nProgress**. Code is written only after intent is anchored above it.\n\nThis polarity is deliberate and easy to get backwards. Building directly\nin the working tree -- scaffolding, installing dependencies, starting a\ndev server, writing application files -- is the **exception**, taken ONLY\nwhen the user explicitly asks for it. Recognized bypass phrases:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\". Absent an explicit signal like these, treat any build\nrequest as a request to declare intent in Telora first.\n\nAsking good clarifying questions about stack, scope, or dependencies is\nNOT a substitute for this step -- that is execution-layer scoping, and it\ncomes *after* the capability is declared, not instead of it. Scoping is\nagent work; declaring that a capability matters is the part that must\nland in Telora first.\n\n**Surface the fork; do not silently pick it.** The common failure is\nresolving an ambiguous request toward the path of least resistance --\ne.g. reading \"a web app I run locally on my LAN\" (a deployment target) as\n\"build locally\" (skip Telora). When intent is not already explicit, your\nFIRST response to a build request names the choice rather than assuming\nit: \"I'll scope this in Telora unless you want it built locally -- which?\"\nOne question, once, at the start. Let the user pick; never pick for them\nby starting to type code.\n\n**First action rule.** On a build / new-capability request, your first\ntool call is a Telora planning call (telora_product_focus / _delivery /\n_issue) OR the fork question above -- never Write, Edit, or a code-running\nBash command. If the first move cannot be code, building-before-intent\ncannot happen.\n\nWhy: an artifact with no declared intent above it is reality moving with\nnothing to measure it against -- pure noise to the differential loop. The\nwhole system is built to compute intent-minus-reality; code that skips\nthe intent half defeats the instrument.\n\n## Execution polarity (which path executes this?)\n\nOnce intent is declared, a second polarity governs HOW it executes -- and it\nhas the same default-and-exception shape as the intent polarity above. A\ndeclared focus is handed to the **daemon team + review loop** by default.\nTeam execution IS THE DEFAULT; building it inline yourself in this interactive\nsession is the **explicit, named bypass**, taken ONLY when the user says so.\n\nThree execution forks recur. On each, the left side is the default and the\nright side is the effortful, must-be-named bypass:\n\n- **Daemon team + review vs. inline coding.** Default: hand the focus to the\n daemon team, which executes and runs it through the review gate. Bypass:\n build it inline in this session -- only on an explicit signal.\n- **Tree-anchored delivery vs. unanchored delivery.** Default: anchor each\n delivery to a reality-tree injection. Bypass: an unanchored delivery\n (`allowUnanchored`) -- a deliberate, reason-bearing act, not a silent flag.\n- **Review-gated Done vs. self-marked Done.** Default: work is confirmed Done\n by the review gate. Bypass: marking your own work Done without review.\n\nThe recognized signal that switches execution to inline is an explicit\n\"build it now\" (and the same throwaway phrases that bypass the intent step:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\"). Absent such a signal, hand off to the team -- do not fill the\nchoice with the lowest-resistance path (typing code yourself).\n\n**Surface the fork; do not silently pick it.** When the execution path is not\nalready explicit, your response NAMES the choice rather than assuming it:\n\"I'll hand this to the daemon team + review unless you want it built inline\nnow -- which?\" One question, once. Let the user pick; never default to inline\nby starting to type code.\n\n**Routing is not activation.** \"Hand off to the daemon team\" answers WHICH\npath executes -- it is NOT a signal to arm the focus now. Arming (setting the\nfocus's `assignedAgentRoleId`, which spends real budget spawning a team) is a\nseparate, human-owned go-signal. Scoping ends at a named **scoped, un-armed**\nstate: you decompose the focus into deliveries and issues and then STOP. Do\nNOT arm a focus at the tail of scoping -- a human arms it (or has durably\ndelegated that go-signal). Choosing team-over-inline routing the moment\nscoping ends is NOT the same as deciding it is time to spend; keep the two\ndecisions separate. Activation is a third decision, owned by the human\nalongside intent and completion (see Human-vs-agent boundaries below).\n\n## Planning hierarchy\n\n- **Focus** = the context that defines an area of work -- not \"one\n capability.\" All phases of building within that area belong in one\n focus; if a \"focus\" is really just one phase, fold it back in.\n- **Delivery** = a shippable phase or major component of a capability.\n- **Context Group** = optional grouping of related issues that share\n meaningful context (relevant files, architectural notes). A CG earns its\n existence by carrying context, not by being a folder.\n- **Task** = one discrete implementable unit. Bounded files, focused\n session. Multiple \"and\" clauses across different concerns means split.\n\nScope by purpose, not count. The right number of deliveries is however\nmany phases the work naturally has.\n\n**Scoping reads open intent.** When you place a new unit of work, the first\nquestion -- \"does this belong in a focus that already exists?\" -- is asked\nagainst the OPEN set only: the active and proposed foci. A completed or\ncancelled focus is settled intent. It can no longer absorb new work, and\nconsulting one only re-litigates a decision already closed -- so a terminal\nfocus is neither a placement candidate nor a precedent to reason from. When\nno open focus fits, the answer is a new focus, never a closed one reopened\nin spirit.\n\n## PRD: \"build a working app in one run\"\n\nA **PRD** sits one altitude above Focus (Product -> PRD -> Focus): a\nbounded, verifiable, retire-able milestone carrying a **Prerequisite Tree**\nof `goal` / `obstacle` / `overcome` nodes. Each `overcome` materializes\nas a focus; the daemon progressively arms the **frontier** of foci as\nupstream obstacles clear. This is the entry point a user means by \"build a\nfully working app in one go.\"\n\nIt is NOT big-bang generation: you author the tree once, commit a path,\nand the differential loop walks the frontier to completion -- the execution\nunderneath is still the normal focus -> delivery -> issue + review loop.\n\nThe PRD tools are **lazy-loaded** -- they do not exist until you load the\ndomain. If you don't see `telora_prd` / `telora_prd_tree`, run:\n\n```\ntelora_discover { action: \"load\", domain: \"prd\" }\n```\n\nThen: `telora_prd` create (referencing a Vision) -> `telora_prd_tree`\nauthor nodes (an obstacle's `clearancePredicate` is OPTIONAL and advisory --\nthe frontier advances as upstream obstacles clear via focus-completion, i.e.\neach overcome's focus finishing its deliveries' verify gates, not via a\nper-obstacle predicate) + edges -> commit a pathway -> `materialize_overcome`\neach into a focus. Authoring STOPS there, at **scoped, un-armed** -- arming\nthe daemon PRD loop is a human go-signal (the activation decision above),\nnot the tail of authoring, unless that go-signal is durably delegated. All\nauthoring is harness+MCP; there is no Telora authoring UI.\n\n## Issue workflow\n\n`To Do` -> `In Progress` -> `In Review` / `Blocked` -> `Done`.\n\nIssue types: **Context Group**, **Task**, **Bug**.\n\nMovement rules:\n\n- An issue MUST be set to `In Progress` before any work begins on it.\n- Never skip `In Progress`. Never move directly from `To Do` to `Done`.\n- Set status with `telora_product_issue` action=update.\n\nDelivery and focus stages advance automatically based on issue\nactivity. Agents never set delivery executionStatus directly.\n\n## Migration numbers (claim, never compute)\n\nIf this product declares its migration numbering\n(`telora.migrations.json`), a migration number is CLAIMED ONCE through\nTelora before the file is named -- never read from the worktree you are\nstanding in:\n\n```\ntelora_discover { action: \"load\", domain: \"migrations\" }\ntelora_product_migration { action: \"claim\", productId, focusId, tag: \"<name>\" }\n```\n\nTwo focuses armed at once on one product work in separate worktrees cut\nfrom the same base, so \"the next free number\" computed locally is the same\nnumber the sibling just computed. Git sees no conflict -- the filenames\ndiffer -- and it surfaces only when the migrations run in order. This\napplies to a human or an inline session numbering by hand exactly as it\napplies to an agent team: the rule is about the base you are reading from,\nnot about who is reading it.\n\nA refusal is deliberate, never a cue to number by hand: fix the declaration\nor the reported cause.\n\n## Commit attribution (MANDATORY: one trailer per commit)\n\nEvery delivery on a focus shares ONE branch, so their commits interleave.\nThe only way the verify gate can judge a delivery against ITS OWN work is a\nper-commit marker. On EVERY commit you make for a delivery, add a git trailer\nnaming the delivery the work belongs to:\n\n```\nTelora-Delivery: <deliveryId>\n```\n\nStamp it with git's own trailer machinery so an appended `Co-Authored-By`\ncannot void it:\n\n```\ngit commit --trailer \"Telora-Delivery: <deliveryId>\" -m \"<subject>\"\n```\n\nDo NOT pass it as its own `-m` paragraph (`-m \"Telora-Delivery: ...\"`): git\nparses only the last paragraph as trailers, so an appended `Co-Authored-By`\nsilently voids it. A `commit-msg` git hook in this worktree ENFORCES this --\na commit whose message lacks a well-formed `Telora-Delivery: <uuid>` trailer\nis REFUSED, with the exact line to add printed. Fix it and re-commit; do not\nescalate.\n\nA commit that genuinely belongs to NO delivery declares that explicitly: merge\ncommits are exempt by shape (git sets `MERGE_HEAD`), and any other\ndelivery-less housekeeping commit carries the non-delivery sentinel:\n\n```\ngit commit --trailer \"Telora-Delivery: none\" -m \"<subject>\"\n```\n\nNever borrow a real delivery id for a commit that is not that delivery's work.\nThat is false attribution -- it folds a commit that is not its own into the\nborrowed delivery's verify evidence. The sentinel is the sanctioned escape.\n\n## MCP tool surface (what's available in this session)\n\nThe Telora MCP server is registered in `.mcp.json`. Core tool families:\n\n- `telora_product` -- list/get/create/update products\n- `telora_product_focus` -- focuses under a product\n- `telora_product_delivery` -- deliveries under a focus\n- `telora_product_issue` -- issues (Context Groups, Tasks, Bugs) under a delivery\n- `telora_agent` -- agent roles, escalation requests\n- `telora_loop_*` -- loop documents, questions, answers\n- `telora_discover` -- on-demand registration of deferred tool domains\n\nResolve the live tool list at runtime via `telora_discover` rather than\nhard-coding a list that drifts.\n\n## Human-vs-agent boundaries\n\n- Humans own **intent**, **activation**, and **completion**.\n - Intent: what capability matters, what changes when. Pre-handoff.\n - Activation (arming): the go/no-go spend decision -- setting the focus's\n `assignedAgentRoleId` to hand it to the daemon team. Scoping ends\n **scoped, un-armed**; arming is a human go-signal unless durably\n delegated. Sits between intent and completion.\n - Completion: closing the loop on whether a focus is done. Post-handoff.\n- Agents own **scoping** and **execution**.\n - Scoping: decomposing a focus into deliveries, deliveries into\n issues, restructuring mid-flight as the agent learns more. Scoping\n ENDS at **scoped, un-armed** -- it never arms the focus.\n - Execution: writing code, running tests, committing, reporting.\n\nDo not ask humans for operational details they expect the agent to figure\nout. Do not silently complete a focus on the human's behalf. Escalate\nwhen stuck via `telora_agent` action=escalate.\n\nWhen communicating with a human, refer to focuses, deliveries, and issues\nby their **title**, never their UUID. UUIDs are for tool calls only and must\nnot be surfaced in chat. MCP tool results carry both, so this is a\ncommunication choice, not a data-availability problem: keep the id in the\ntool call, name the work by its title in the conversation.\n\n## Differential signaling\n\nTelora is asymmetric: it moves reality toward intent, never the reverse.\nAgents do not lower the bar to make signals look better -- they escalate.\nEvery artifact (commit, work summary, gate result) is signal toward the\ndeclared intent; raw activity without intent reduction is noise.\n\nA short corrective comment from the user is high-signal -- treat brief\npushback as the most important input in the session.\n\n## Provenance: record what informed your intent\n\nWhen you and the human set Telora intent after looking at an external\ntracker (e.g. a client's Linear workspace), record WHERE that intent came\nfrom. A connected tracker is a **source for determining intent, not intent\nitself**: Telora owns intent, it is read strictly one-way, and Telora's\nintent is never written back to the tracker.\n\n- To read the tracker in-session, use the integrations tools\n (`telora_external_data_source` resolve, then `telora_linear`). Pull the\n issue(s) the human points at, discuss them together, then set intent in\n Telora (a focus, delivery, issue, reality-tree node, loop question, or\n PRD node).\n- Whenever tracker content SHAPED one of those entities, record an\n `informed_by` reference with `telora_external_reference` create, naming\n the entity + the external identifier (e.g. TIN-5) + a one-line note on\n HOW it informed the entity. The reference is a POINTER, never a copy --\n so a later reader can trace agreed intent back to its source, and a\n change to the source can be surfaced to the intent that leaned on it.\n\n## Workflows and policies\n\n- **Workflow**: stage directives shape agent behavior at discrete\n transitions. What context the agent sees (assembly recipes), what tools\n it can use, how it thinks (prompt + model). Live in Telora's\n `workflow_stages.agent_directive` JSONB.\n- **Policy** (organizational, deferred): cross-cutting constraints that\n feed into stage directives.\n\nWhen you cross a stage transition, the daemon may inject context or spawn\na fresh sub-agent per the directive. Don't override that flow without a\nclear reason.\n";
|
|
33
33
|
/**
|
|
34
34
|
* Render a fresh-repo CLAUDE.md.
|
|
35
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,wDACY,CAAC;AAExD,eAAO,MAAM,SAAS,s4dA8SrB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CASjE"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// packages/daemon/src/prompt/prompt-contradictions.test.ts,
|
|
4
4
|
// packages/daemon/src/shell/product-scaffold.test.ts,
|
|
5
5
|
// packages/daemon/src/shell/unified-shell-claude-md-refresh.test.ts,
|
|
6
|
+
// packages/daemon/src/spawn/migration-numbering-wiring.test.ts,
|
|
6
7
|
// packages/daemon/src/templates/seed-execution-polarity.test.ts,
|
|
7
8
|
// packages/daemon/src/templates/seed-open-intent-scoping.test.ts,
|
|
8
9
|
// packages/daemon/src/templates/session-start-seed-hook.test.ts
|
|
@@ -198,6 +199,29 @@ Movement rules:
|
|
|
198
199
|
Delivery and focus stages advance automatically based on issue
|
|
199
200
|
activity. Agents never set delivery executionStatus directly.
|
|
200
201
|
|
|
202
|
+
## Migration numbers (claim, never compute)
|
|
203
|
+
|
|
204
|
+
If this product declares its migration numbering
|
|
205
|
+
(\`telora.migrations.json\`), a migration number is CLAIMED ONCE through
|
|
206
|
+
Telora before the file is named -- never read from the worktree you are
|
|
207
|
+
standing in:
|
|
208
|
+
|
|
209
|
+
\`\`\`
|
|
210
|
+
telora_discover { action: "load", domain: "migrations" }
|
|
211
|
+
telora_product_migration { action: "claim", productId, focusId, tag: "<name>" }
|
|
212
|
+
\`\`\`
|
|
213
|
+
|
|
214
|
+
Two focuses armed at once on one product work in separate worktrees cut
|
|
215
|
+
from the same base, so "the next free number" computed locally is the same
|
|
216
|
+
number the sibling just computed. Git sees no conflict -- the filenames
|
|
217
|
+
differ -- and it surfaces only when the migrations run in order. This
|
|
218
|
+
applies to a human or an inline session numbering by hand exactly as it
|
|
219
|
+
applies to an agent team: the rule is about the base you are reading from,
|
|
220
|
+
not about who is reading it.
|
|
221
|
+
|
|
222
|
+
A refusal is deliberate, never a cue to number by hand: fix the declaration
|
|
223
|
+
or the reported cause.
|
|
224
|
+
|
|
201
225
|
## Commit attribution (MANDATORY: one trailer per commit)
|
|
202
226
|
|
|
203
227
|
Every delivery on a focus shares ONE branch, so their commits interleave.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,uGAAuG;AACvG,8DAA8D;AAC9D,wDAAwD;AACxD,uEAAuE;AACvE,mEAAmE;AACnE,oEAAoE;AACpE,kEAAkE;AAClE,gBAAgB;AAEhB;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;AACnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,qDAAqD,CAAC;AAEx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
1
|
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
-
// Pinned by:
|
|
2
|
+
// Pinned by: 223 tests -- run: npm run gen:pinned-by -- --list packages/daemon/src/testing/fixtures/index.ts
|
|
3
3
|
// PINNED-BY-END
|
|
4
4
|
/**
|
|
5
5
|
* Build an ActiveFocusRow (a getActiveFocuses row): an active, armed focus with
|