thoth-agents 0.1.13 → 0.1.16
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/README.md +7 -0
- package/dist/{chunk-SCM2O4TP.js → chunk-HFKZF2ZB.js} +2 -2
- package/dist/{chunk-WGFDTUZI.js → chunk-XTLXC2CM.js} +225 -4
- package/dist/cli/index.js +2 -2
- package/dist/cli/tui/index.js +2 -2
- package/dist/harness/core/agent-pack.d.ts +1 -1
- package/dist/harness/core/sdd.d.ts +58 -16
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/skills/_shared/persistence-contract.md +69 -97
- package/src/skills/_shared/thoth-mem-convention.md +40 -61
- package/src/skills/executing-plans/SKILL.md +9 -3
- package/src/skills/plan-reviewer/SKILL.md +8 -0
- package/src/skills/requirements-interview/SKILL.md +21 -8
- package/src/skills/sdd-propose/SKILL.md +16 -4
- package/src/skills/sdd-tasks/SKILL.md +6 -0
- package/src/skills/thoth-mem-agents/SKILL.md +112 -300
package/README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
<img src="img/team.png" alt="thoth-agents agents" width="420">
|
|
3
3
|
<p><i>Seven specialized agents, one delegate-first workflow across supported harnesses.</i></p>
|
|
4
4
|
<p><b>thoth-agents</b> - Multi-harness orchestration - Thoth-mem persistence - Bundled SDD pipeline</p>
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://github.com/EremesNG/thoth-agents/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/EremesNG/thoth-agents/ci.yml?branch=master&label=CI" alt="CI status"></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/thoth-agents"><img src="https://img.shields.io/npm/v/thoth-agents?label=npm" alt="npm version"></a>
|
|
8
|
+
<a href="https://github.com/EremesNG/thoth-agents/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/thoth-agents" alt="MIT license"></a>
|
|
9
|
+
<img src="https://img.shields.io/node/v/thoth-agents" alt="Node.js version">
|
|
10
|
+
<img src="https://img.shields.io/badge/pnpm-11.2.2-F69220?logo=pnpm&logoColor=white" alt="pnpm 11.2.2">
|
|
11
|
+
</p>
|
|
5
12
|
</div>
|
|
6
13
|
|
|
7
14
|
---
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
renderRolePrompt,
|
|
32
32
|
writeConfig,
|
|
33
33
|
writeLiteConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XTLXC2CM.js";
|
|
35
35
|
|
|
36
36
|
// src/harness/adapters/codex.ts
|
|
37
37
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -94,7 +94,7 @@ var AGENT_ROLES = [
|
|
|
94
94
|
responsibility: "Provide strategic technical guidance anchored to evidence and review SDD plans.",
|
|
95
95
|
toolGovernance: [
|
|
96
96
|
"read-only analysis and review",
|
|
97
|
-
"no implementation
|
|
97
|
+
"no implementation; may perform read-only SDD plan review and verification review, but does not persist artifacts",
|
|
98
98
|
"no task delegation"
|
|
99
99
|
],
|
|
100
100
|
verification: ["separates observations, risks, and recommendations"]
|
|
@@ -746,6 +746,186 @@ var CODEX_PROMPT_DIALECT = {
|
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
|
|
749
|
+
// src/harness/core/sdd.ts
|
|
750
|
+
var SDD_PHASES = [
|
|
751
|
+
{
|
|
752
|
+
id: "requirements-interview",
|
|
753
|
+
order: 0,
|
|
754
|
+
requiredFor: ["direct", "accelerated", "full"],
|
|
755
|
+
prerequisites: [],
|
|
756
|
+
producesArtifact: false,
|
|
757
|
+
owner: "orchestrator",
|
|
758
|
+
delegationReason: "Root-owned requirements discovery, scope calibration, and route approval."
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
id: "init",
|
|
762
|
+
order: 1,
|
|
763
|
+
requiredFor: [],
|
|
764
|
+
prerequisites: ["requirements-interview"],
|
|
765
|
+
producesArtifact: true,
|
|
766
|
+
owner: "write-capable-agent",
|
|
767
|
+
artifactSkill: "sdd-init",
|
|
768
|
+
condition: "Only when OpenSpec persistence is selected and openspec/ is missing.",
|
|
769
|
+
defaultAgentRole: "quick",
|
|
770
|
+
supportingAgentRoles: ["explorer"],
|
|
771
|
+
delegationReason: "Fast mechanical bootstrap, with explorer supplying repository facts when needed."
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
id: "explore",
|
|
775
|
+
order: 2,
|
|
776
|
+
requiredFor: ["accelerated", "full"],
|
|
777
|
+
prerequisites: ["requirements-interview"],
|
|
778
|
+
producesArtifact: false,
|
|
779
|
+
owner: "read-only-agent",
|
|
780
|
+
defaultAgentRole: "explorer",
|
|
781
|
+
supportingAgentRoles: ["librarian"],
|
|
782
|
+
delegationReason: "Read-only repository discovery before artifact-producing SDD phases."
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
id: "proposal",
|
|
786
|
+
order: 3,
|
|
787
|
+
requiredFor: ["accelerated", "full"],
|
|
788
|
+
prerequisites: ["requirements-interview", "explore"],
|
|
789
|
+
producesArtifact: true,
|
|
790
|
+
owner: "write-capable-agent",
|
|
791
|
+
artifactSkill: "sdd-propose",
|
|
792
|
+
defaultAgentRole: "deep",
|
|
793
|
+
supportingAgentRoles: ["oracle"],
|
|
794
|
+
delegationReason: "Structured technical reasoning and trade-off synthesis before implementation."
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
id: "spec",
|
|
798
|
+
order: 4,
|
|
799
|
+
requiredFor: ["full"],
|
|
800
|
+
prerequisites: ["proposal"],
|
|
801
|
+
producesArtifact: true,
|
|
802
|
+
owner: "write-capable-agent",
|
|
803
|
+
artifactSkill: "sdd-spec",
|
|
804
|
+
defaultAgentRole: "deep",
|
|
805
|
+
supportingAgentRoles: ["oracle"],
|
|
806
|
+
delegationReason: "High-quality requirement contract work where ambiguity propagates downstream."
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
id: "design",
|
|
810
|
+
order: 5,
|
|
811
|
+
requiredFor: ["full"],
|
|
812
|
+
prerequisites: ["proposal", "spec"],
|
|
813
|
+
producesArtifact: true,
|
|
814
|
+
owner: "write-capable-agent",
|
|
815
|
+
artifactSkill: "sdd-design",
|
|
816
|
+
artifactMeaning: "technical-solution-design",
|
|
817
|
+
defaultAgentRole: "deep",
|
|
818
|
+
supportingAgentRoles: ["designer"],
|
|
819
|
+
delegationReason: "Technical architecture and file-change design; designer only supports UI/UX concerns."
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
id: "tasks",
|
|
823
|
+
order: 6,
|
|
824
|
+
requiredFor: ["accelerated", "full"],
|
|
825
|
+
prerequisites: ["proposal", "spec", "design"],
|
|
826
|
+
producesArtifact: true,
|
|
827
|
+
owner: "write-capable-agent",
|
|
828
|
+
artifactSkill: "sdd-tasks",
|
|
829
|
+
defaultAgentRole: "quick",
|
|
830
|
+
alternateAgentRoles: ["deep"],
|
|
831
|
+
delegationReason: "Mechanical conversion of settled design into dependency-ordered execution tasks."
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
id: "plan-review",
|
|
835
|
+
order: 7,
|
|
836
|
+
requiredFor: ["accelerated", "full"],
|
|
837
|
+
prerequisites: ["tasks"],
|
|
838
|
+
producesArtifact: false,
|
|
839
|
+
gate: "oracle-review",
|
|
840
|
+
owner: "oracle",
|
|
841
|
+
defaultAgentRole: "oracle",
|
|
842
|
+
delegationReason: "Independent read-only executability review of tasks before implementation."
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
id: "implementation-confirmation",
|
|
846
|
+
order: 8,
|
|
847
|
+
requiredFor: ["accelerated", "full"],
|
|
848
|
+
prerequisites: ["plan-review"],
|
|
849
|
+
producesArtifact: false,
|
|
850
|
+
gate: "user-confirmation",
|
|
851
|
+
owner: "user",
|
|
852
|
+
delegationReason: "Human approval gate after reviewed tasks and before workspace implementation."
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
id: "apply",
|
|
856
|
+
order: 9,
|
|
857
|
+
requiredFor: ["direct", "accelerated", "full"],
|
|
858
|
+
prerequisites: ["implementation-confirmation"],
|
|
859
|
+
producesArtifact: false,
|
|
860
|
+
owner: "write-capable-agent",
|
|
861
|
+
defaultAgentRole: "deep",
|
|
862
|
+
alternateAgentRoles: ["quick", "designer"],
|
|
863
|
+
delegationReason: "Correctness-heavy implementation by default; quick handles mechanical batches and designer owns UI/visual work."
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
id: "verify",
|
|
867
|
+
order: 10,
|
|
868
|
+
requiredFor: ["accelerated", "full"],
|
|
869
|
+
prerequisites: ["apply"],
|
|
870
|
+
producesArtifact: true,
|
|
871
|
+
owner: "oracle",
|
|
872
|
+
artifactSkill: "sdd-verify",
|
|
873
|
+
defaultAgentRole: "oracle",
|
|
874
|
+
persistenceAgentRole: "quick",
|
|
875
|
+
delegationReason: "Independent verification review; quick persists the report when the selected store requires writes."
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
id: "archive",
|
|
879
|
+
order: 11,
|
|
880
|
+
requiredFor: ["accelerated", "full"],
|
|
881
|
+
prerequisites: ["verify"],
|
|
882
|
+
producesArtifact: true,
|
|
883
|
+
owner: "write-capable-agent",
|
|
884
|
+
artifactSkill: "sdd-archive",
|
|
885
|
+
defaultAgentRole: "quick",
|
|
886
|
+
delegationReason: "Mechanical closeout, summary, and archive movement after verification passes."
|
|
887
|
+
}
|
|
888
|
+
];
|
|
889
|
+
var SDD_WORKFLOW_CONTRACT = {
|
|
890
|
+
phases: [...SDD_PHASES],
|
|
891
|
+
routingRules: [
|
|
892
|
+
"Requirements interview is step zero for all non-trivial work.",
|
|
893
|
+
"Scope-faithful invariant: accepted user intent/scope is preserved; unresolved affected areas remain explicit as deferred/discovery follow-up.",
|
|
894
|
+
"Direct implementation is reserved for low-complexity work.",
|
|
895
|
+
"Accelerated SDD follows explore -> proposal -> tasks before execution.",
|
|
896
|
+
"Full SDD follows explore -> proposal -> spec -> design -> tasks before execution."
|
|
897
|
+
],
|
|
898
|
+
artifactRules: [
|
|
899
|
+
"SDD delegation defaults are phase-specific: sdd-propose, sdd-spec, and sdd-design default to deep.",
|
|
900
|
+
"sdd-tasks defaults to quick with deep as fallback when the task plan is complex.",
|
|
901
|
+
"sdd-verify defaults to oracle for independent review; quick persists the report when repository or memory writes are required.",
|
|
902
|
+
"sdd-archive defaults to quick for mechanical closeout.",
|
|
903
|
+
"OpenSpec design.md is technical solution design, not UI/UX design; sdd-design itself never routes to designer.",
|
|
904
|
+
"Designer participates during apply only for user-facing UI, visual work, screenshots, or visual QA.",
|
|
905
|
+
"Full-pipeline tasks require proposal, spec, and design artifacts.",
|
|
906
|
+
"Oracle is read-only and performs plan review plus independent verification review; it does not persist artifacts."
|
|
907
|
+
],
|
|
908
|
+
verificationRules: [
|
|
909
|
+
"Plan review must complete before implementation confirmation.",
|
|
910
|
+
"User confirmation is required after plan-review approval and before apply.",
|
|
911
|
+
"Apply is followed by verify and archive for SDD pipelines."
|
|
912
|
+
]
|
|
913
|
+
};
|
|
914
|
+
function getSddWorkflowContract() {
|
|
915
|
+
return {
|
|
916
|
+
phases: SDD_WORKFLOW_CONTRACT.phases.map((phase) => ({
|
|
917
|
+
...phase,
|
|
918
|
+
requiredFor: [...phase.requiredFor],
|
|
919
|
+
prerequisites: [...phase.prerequisites],
|
|
920
|
+
alternateAgentRoles: phase.alternateAgentRoles ? [...phase.alternateAgentRoles] : void 0,
|
|
921
|
+
supportingAgentRoles: phase.supportingAgentRoles ? [...phase.supportingAgentRoles] : void 0
|
|
922
|
+
})),
|
|
923
|
+
routingRules: [...SDD_WORKFLOW_CONTRACT.routingRules],
|
|
924
|
+
artifactRules: [...SDD_WORKFLOW_CONTRACT.artifactRules],
|
|
925
|
+
verificationRules: [...SDD_WORKFLOW_CONTRACT.verificationRules]
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
|
|
749
929
|
// src/agents/prompt-sections.ts
|
|
750
930
|
function createQuestionProtocolSection() {
|
|
751
931
|
return {
|
|
@@ -802,6 +982,43 @@ function createModelFamilySection(role, model) {
|
|
|
802
982
|
function roleText(template) {
|
|
803
983
|
return { kind: "role-text", template };
|
|
804
984
|
}
|
|
985
|
+
function roleTemplate(role) {
|
|
986
|
+
return `{{role.${role}}}`;
|
|
987
|
+
}
|
|
988
|
+
function renderRoleList(roles) {
|
|
989
|
+
return roles.map(roleTemplate).join(", ");
|
|
990
|
+
}
|
|
991
|
+
function getDelegatedSddPhase(id) {
|
|
992
|
+
const phase = getSddWorkflowContract().phases.find(
|
|
993
|
+
(candidate) => candidate.id === id
|
|
994
|
+
);
|
|
995
|
+
if (!phase?.defaultAgentRole) {
|
|
996
|
+
throw new Error(`Missing SDD delegation role for ${id}`);
|
|
997
|
+
}
|
|
998
|
+
return phase;
|
|
999
|
+
}
|
|
1000
|
+
function primarySddRole(id) {
|
|
1001
|
+
return roleTemplate(getDelegatedSddPhase(id).defaultAgentRole);
|
|
1002
|
+
}
|
|
1003
|
+
function alternateSddRoles(id) {
|
|
1004
|
+
const phase = getDelegatedSddPhase(id);
|
|
1005
|
+
return phase.alternateAgentRoles?.length ? renderRoleList(phase.alternateAgentRoles) : "";
|
|
1006
|
+
}
|
|
1007
|
+
function supportSddRoles(id) {
|
|
1008
|
+
const phase = getDelegatedSddPhase(id);
|
|
1009
|
+
return phase.supportingAgentRoles?.length ? renderRoleList(phase.supportingAgentRoles) : "";
|
|
1010
|
+
}
|
|
1011
|
+
function persistenceSddRole(id) {
|
|
1012
|
+
const phase = getDelegatedSddPhase(id);
|
|
1013
|
+
return phase.persistenceAgentRole ? roleTemplate(phase.persistenceAgentRole) : "";
|
|
1014
|
+
}
|
|
1015
|
+
function renderSddDelegationMatrix() {
|
|
1016
|
+
return `<sdd-delegation-matrix>
|
|
1017
|
+
- sdd-init -> ${primarySddRole("init")} (+${supportSddRoles("init")}, if openspec/ missing); sdd-explore -> ${primarySddRole("explore")} (+${supportSddRoles("explore")})
|
|
1018
|
+
- sdd-propose/sdd-spec/sdd-design -> ${primarySddRole("proposal")}; sdd-tasks -> ${primarySddRole("tasks")} (fallback: ${alternateSddRoles("tasks")})
|
|
1019
|
+
- plan-reviewer -> ${primarySddRole("plan-review")}; sdd-apply -> ${primarySddRole("apply")} (fallback: ${alternateSddRoles("apply")}); sdd-verify -> ${primarySddRole("verify")} (persistence: ${persistenceSddRole("verify")}); sdd-archive -> ${primarySddRole("archive")}
|
|
1020
|
+
</sdd-delegation-matrix>`;
|
|
1021
|
+
}
|
|
805
1022
|
function specialistSections({
|
|
806
1023
|
role,
|
|
807
1024
|
mode,
|
|
@@ -942,15 +1159,19 @@ For {{role.explorer}}/{{role.librarian}}, ask narrow fact-finding questions for
|
|
|
942
1159
|
|
|
943
1160
|
<sdd>
|
|
944
1161
|
All work always starts with requirements-interview skill.
|
|
1162
|
+
Scope-faithful invariant: accepted user intent and scope must not be silently narrowed; unresolved affected areas stay visible as deferred/discovery follow-up, not hidden as out-of-scope.
|
|
945
1163
|
|
|
946
1164
|
Routes:
|
|
947
1165
|
- Direct implementation for low-complexity work.
|
|
948
|
-
- Accelerated SDD: propose -> tasks.
|
|
949
|
-
- Full SDD: propose -> spec -> design -> tasks.
|
|
1166
|
+
- Accelerated SDD: explore -> propose -> tasks.
|
|
1167
|
+
- Full SDD: explore -> propose -> spec -> design -> tasks.
|
|
1168
|
+
|
|
1169
|
+
${renderSddDelegationMatrix()}
|
|
950
1170
|
|
|
951
1171
|
Hard gates:
|
|
952
|
-
-
|
|
953
|
-
-
|
|
1172
|
+
- Use the SDD delegation matrix as canonical phase routing.
|
|
1173
|
+
- Load the matching skill when a phase has one.
|
|
1174
|
+
- {{role.oracle}} is read-only for plan-reviewer and sdd-verify review; {{role.quick}} persists verify reports when writes are required.
|
|
954
1175
|
- Never skip artifacts or jump from requirements-interview to implementation when SDD is selected.
|
|
955
1176
|
- Before SDD execution, load \`executing-plans\`; then track progress in {{progressTool}} plus the persistent artifact.
|
|
956
1177
|
- If openspec persistence is selected and openspec/ is missing, dispatch sdd-init first.
|
package/dist/cli/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getOperationHarness,
|
|
26
26
|
installRecommendedSkill,
|
|
27
27
|
listOperationHarnesses
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-HFKZF2ZB.js";
|
|
29
29
|
import {
|
|
30
30
|
ALL_AGENT_NAMES,
|
|
31
31
|
CUSTOM_SKILLS,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getExistingLiteConfigPath,
|
|
38
38
|
installCustomSkills,
|
|
39
39
|
writeLiteConfig
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-XTLXC2CM.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/index.ts
|
|
43
43
|
import { pathToFileURL } from "url";
|
package/dist/cli/tui/index.js
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
getOpenCodeStatus,
|
|
16
16
|
listOperationHarnesses,
|
|
17
17
|
parseRoleTomlModel
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-HFKZF2ZB.js";
|
|
19
19
|
import {
|
|
20
20
|
ALL_AGENT_NAMES,
|
|
21
21
|
DEFAULT_MODELS,
|
|
22
22
|
getExistingLiteConfigPath,
|
|
23
23
|
parseConfig
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-XTLXC2CM.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/tui/index.tsx
|
|
27
27
|
import { render } from "ink";
|
|
@@ -51,7 +51,7 @@ export declare const AGENT_ROLES: readonly [{
|
|
|
51
51
|
readonly canMutateWorkspace: false;
|
|
52
52
|
readonly scope: "advice, diagnosis, architecture, code review, and plan review";
|
|
53
53
|
readonly responsibility: "Provide strategic technical guidance anchored to evidence and review SDD plans.";
|
|
54
|
-
readonly toolGovernance: ["read-only analysis and review", "no implementation
|
|
54
|
+
readonly toolGovernance: ["read-only analysis and review", "no implementation; may perform read-only SDD plan review and verification review, but does not persist artifacts", "no task delegation"];
|
|
55
55
|
readonly verification: ["separates observations, risks, and recommendations"];
|
|
56
56
|
}, {
|
|
57
57
|
readonly name: "designer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentRoleName } from './agent-pack';
|
|
2
2
|
export type SddPipelineType = 'direct' | 'accelerated' | 'full';
|
|
3
|
-
export type SddPhaseId = 'requirements-interview' | 'proposal' | 'spec' | 'design' | 'tasks' | 'plan-review' | 'implementation-confirmation' | 'apply' | 'verify' | 'archive';
|
|
3
|
+
export type SddPhaseId = 'requirements-interview' | 'init' | 'explore' | 'proposal' | 'spec' | 'design' | 'tasks' | 'plan-review' | 'implementation-confirmation' | 'apply' | 'verify' | 'archive';
|
|
4
4
|
export interface SddPhaseContract {
|
|
5
5
|
id: SddPhaseId;
|
|
6
6
|
order: number;
|
|
@@ -8,11 +8,15 @@ export interface SddPhaseContract {
|
|
|
8
8
|
prerequisites: SddPhaseId[];
|
|
9
9
|
producesArtifact: boolean;
|
|
10
10
|
gate?: 'oracle-review' | 'user-confirmation';
|
|
11
|
-
owner: 'orchestrator' | 'write-capable-agent' | 'oracle' | 'user';
|
|
11
|
+
owner: 'orchestrator' | 'read-only-agent' | 'write-capable-agent' | 'oracle' | 'user';
|
|
12
12
|
artifactSkill?: string;
|
|
13
13
|
artifactMeaning?: string;
|
|
14
|
+
condition?: string;
|
|
14
15
|
defaultAgentRole?: AgentRoleName;
|
|
15
16
|
alternateAgentRoles?: AgentRoleName[];
|
|
17
|
+
supportingAgentRoles?: AgentRoleName[];
|
|
18
|
+
persistenceAgentRole?: AgentRoleName;
|
|
19
|
+
delegationReason?: string;
|
|
16
20
|
}
|
|
17
21
|
export interface SddWorkflowContract {
|
|
18
22
|
phases: SddPhaseContract[];
|
|
@@ -20,7 +24,7 @@ export interface SddWorkflowContract {
|
|
|
20
24
|
artifactRules: string[];
|
|
21
25
|
verificationRules: string[];
|
|
22
26
|
}
|
|
23
|
-
export declare const FULL_SDD_PHASE_ORDER: readonly ["requirements-interview", "proposal", "spec", "design", "tasks", "plan-review", "implementation-confirmation", "apply", "verify", "archive"];
|
|
27
|
+
export declare const FULL_SDD_PHASE_ORDER: readonly ["requirements-interview", "explore", "proposal", "spec", "design", "tasks", "plan-review", "implementation-confirmation", "apply", "verify", "archive"];
|
|
24
28
|
export declare const SDD_PHASES: readonly [{
|
|
25
29
|
readonly id: "requirements-interview";
|
|
26
30
|
readonly order: 0;
|
|
@@ -28,27 +32,54 @@ export declare const SDD_PHASES: readonly [{
|
|
|
28
32
|
readonly prerequisites: [];
|
|
29
33
|
readonly producesArtifact: false;
|
|
30
34
|
readonly owner: "orchestrator";
|
|
35
|
+
readonly delegationReason: "Root-owned requirements discovery, scope calibration, and route approval.";
|
|
31
36
|
}, {
|
|
32
|
-
readonly id: "
|
|
37
|
+
readonly id: "init";
|
|
33
38
|
readonly order: 1;
|
|
39
|
+
readonly requiredFor: [];
|
|
40
|
+
readonly prerequisites: ["requirements-interview"];
|
|
41
|
+
readonly producesArtifact: true;
|
|
42
|
+
readonly owner: "write-capable-agent";
|
|
43
|
+
readonly artifactSkill: "sdd-init";
|
|
44
|
+
readonly condition: "Only when OpenSpec persistence is selected and openspec/ is missing.";
|
|
45
|
+
readonly defaultAgentRole: "quick";
|
|
46
|
+
readonly supportingAgentRoles: ["explorer"];
|
|
47
|
+
readonly delegationReason: "Fast mechanical bootstrap, with explorer supplying repository facts when needed.";
|
|
48
|
+
}, {
|
|
49
|
+
readonly id: "explore";
|
|
50
|
+
readonly order: 2;
|
|
34
51
|
readonly requiredFor: ["accelerated", "full"];
|
|
35
52
|
readonly prerequisites: ["requirements-interview"];
|
|
53
|
+
readonly producesArtifact: false;
|
|
54
|
+
readonly owner: "read-only-agent";
|
|
55
|
+
readonly defaultAgentRole: "explorer";
|
|
56
|
+
readonly supportingAgentRoles: ["librarian"];
|
|
57
|
+
readonly delegationReason: "Read-only repository discovery before artifact-producing SDD phases.";
|
|
58
|
+
}, {
|
|
59
|
+
readonly id: "proposal";
|
|
60
|
+
readonly order: 3;
|
|
61
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
62
|
+
readonly prerequisites: ["requirements-interview", "explore"];
|
|
36
63
|
readonly producesArtifact: true;
|
|
37
64
|
readonly owner: "write-capable-agent";
|
|
38
65
|
readonly artifactSkill: "sdd-propose";
|
|
39
66
|
readonly defaultAgentRole: "deep";
|
|
67
|
+
readonly supportingAgentRoles: ["oracle"];
|
|
68
|
+
readonly delegationReason: "Structured technical reasoning and trade-off synthesis before implementation.";
|
|
40
69
|
}, {
|
|
41
70
|
readonly id: "spec";
|
|
42
|
-
readonly order:
|
|
71
|
+
readonly order: 4;
|
|
43
72
|
readonly requiredFor: ["full"];
|
|
44
73
|
readonly prerequisites: ["proposal"];
|
|
45
74
|
readonly producesArtifact: true;
|
|
46
75
|
readonly owner: "write-capable-agent";
|
|
47
76
|
readonly artifactSkill: "sdd-spec";
|
|
48
77
|
readonly defaultAgentRole: "deep";
|
|
78
|
+
readonly supportingAgentRoles: ["oracle"];
|
|
79
|
+
readonly delegationReason: "High-quality requirement contract work where ambiguity propagates downstream.";
|
|
49
80
|
}, {
|
|
50
81
|
readonly id: "design";
|
|
51
|
-
readonly order:
|
|
82
|
+
readonly order: 5;
|
|
52
83
|
readonly requiredFor: ["full"];
|
|
53
84
|
readonly prerequisites: ["proposal", "spec"];
|
|
54
85
|
readonly producesArtifact: true;
|
|
@@ -56,58 +87,69 @@ export declare const SDD_PHASES: readonly [{
|
|
|
56
87
|
readonly artifactSkill: "sdd-design";
|
|
57
88
|
readonly artifactMeaning: "technical-solution-design";
|
|
58
89
|
readonly defaultAgentRole: "deep";
|
|
90
|
+
readonly supportingAgentRoles: ["designer"];
|
|
91
|
+
readonly delegationReason: "Technical architecture and file-change design; designer only supports UI/UX concerns.";
|
|
59
92
|
}, {
|
|
60
93
|
readonly id: "tasks";
|
|
61
|
-
readonly order:
|
|
94
|
+
readonly order: 6;
|
|
62
95
|
readonly requiredFor: ["accelerated", "full"];
|
|
63
96
|
readonly prerequisites: ["proposal", "spec", "design"];
|
|
64
97
|
readonly producesArtifact: true;
|
|
65
98
|
readonly owner: "write-capable-agent";
|
|
66
99
|
readonly artifactSkill: "sdd-tasks";
|
|
67
|
-
readonly defaultAgentRole: "
|
|
100
|
+
readonly defaultAgentRole: "quick";
|
|
101
|
+
readonly alternateAgentRoles: ["deep"];
|
|
102
|
+
readonly delegationReason: "Mechanical conversion of settled design into dependency-ordered execution tasks.";
|
|
68
103
|
}, {
|
|
69
104
|
readonly id: "plan-review";
|
|
70
|
-
readonly order:
|
|
105
|
+
readonly order: 7;
|
|
71
106
|
readonly requiredFor: ["accelerated", "full"];
|
|
72
107
|
readonly prerequisites: ["tasks"];
|
|
73
108
|
readonly producesArtifact: false;
|
|
74
109
|
readonly gate: "oracle-review";
|
|
75
110
|
readonly owner: "oracle";
|
|
111
|
+
readonly defaultAgentRole: "oracle";
|
|
112
|
+
readonly delegationReason: "Independent read-only executability review of tasks before implementation.";
|
|
76
113
|
}, {
|
|
77
114
|
readonly id: "implementation-confirmation";
|
|
78
|
-
readonly order:
|
|
115
|
+
readonly order: 8;
|
|
79
116
|
readonly requiredFor: ["accelerated", "full"];
|
|
80
117
|
readonly prerequisites: ["plan-review"];
|
|
81
118
|
readonly producesArtifact: false;
|
|
82
119
|
readonly gate: "user-confirmation";
|
|
83
120
|
readonly owner: "user";
|
|
121
|
+
readonly delegationReason: "Human approval gate after reviewed tasks and before workspace implementation.";
|
|
84
122
|
}, {
|
|
85
123
|
readonly id: "apply";
|
|
86
|
-
readonly order:
|
|
124
|
+
readonly order: 9;
|
|
87
125
|
readonly requiredFor: ["direct", "accelerated", "full"];
|
|
88
126
|
readonly prerequisites: ["implementation-confirmation"];
|
|
89
127
|
readonly producesArtifact: false;
|
|
90
128
|
readonly owner: "write-capable-agent";
|
|
91
129
|
readonly defaultAgentRole: "deep";
|
|
92
130
|
readonly alternateAgentRoles: ["quick", "designer"];
|
|
131
|
+
readonly delegationReason: "Correctness-heavy implementation by default; quick handles mechanical batches and designer owns UI/visual work.";
|
|
93
132
|
}, {
|
|
94
133
|
readonly id: "verify";
|
|
95
|
-
readonly order:
|
|
134
|
+
readonly order: 10;
|
|
96
135
|
readonly requiredFor: ["accelerated", "full"];
|
|
97
136
|
readonly prerequisites: ["apply"];
|
|
98
137
|
readonly producesArtifact: true;
|
|
99
|
-
readonly owner: "
|
|
138
|
+
readonly owner: "oracle";
|
|
100
139
|
readonly artifactSkill: "sdd-verify";
|
|
101
|
-
readonly defaultAgentRole: "
|
|
140
|
+
readonly defaultAgentRole: "oracle";
|
|
141
|
+
readonly persistenceAgentRole: "quick";
|
|
142
|
+
readonly delegationReason: "Independent verification review; quick persists the report when the selected store requires writes.";
|
|
102
143
|
}, {
|
|
103
144
|
readonly id: "archive";
|
|
104
|
-
readonly order:
|
|
145
|
+
readonly order: 11;
|
|
105
146
|
readonly requiredFor: ["accelerated", "full"];
|
|
106
147
|
readonly prerequisites: ["verify"];
|
|
107
148
|
readonly producesArtifact: true;
|
|
108
149
|
readonly owner: "write-capable-agent";
|
|
109
150
|
readonly artifactSkill: "sdd-archive";
|
|
110
|
-
readonly defaultAgentRole: "
|
|
151
|
+
readonly defaultAgentRole: "quick";
|
|
152
|
+
readonly delegationReason: "Mechanical closeout, summary, and archive movement after verification passes.";
|
|
111
153
|
}];
|
|
112
154
|
export declare const SDD_WORKFLOW_CONTRACT: SddWorkflowContract;
|
|
113
155
|
export declare function getSddWorkflowContract(): SddWorkflowContract;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED