agentera 3.0.0-dev.27 → 3.0.0-dev.29

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.
Files changed (196) hide show
  1. package/README.md +7 -5
  2. package/bundle/CHANGELOG.md +17 -2
  3. package/bundle/DESIGN.md +3 -7
  4. package/bundle/README.md +8 -10
  5. package/bundle/UPGRADE.md +60 -16
  6. package/bundle/fixtures/routing/hybrid-corpus.yaml +154 -0
  7. package/bundle/references/adapters/package-registry.yaml +2 -0
  8. package/bundle/references/adapters/package-surface-characterization.md +2 -3
  9. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -3
  10. package/bundle/references/adapters/runtime-retired-resources.yaml +78 -14
  11. package/bundle/references/analysis/benchmark.md +2 -9
  12. package/bundle/references/artifacts/state-storage-authority.yaml +308 -14
  13. package/bundle/references/cli/audience-namespace-cli-migration.yaml +1 -1
  14. package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
  15. package/bundle/references/cli/capability-instruction-contract.yaml +0 -3
  16. package/bundle/references/cli/capability-instruction-structure.md +2 -2
  17. package/bundle/references/cli/hybrid-route-contract.yaml +416 -0
  18. package/bundle/references/cli/prime-consumer-compatibility.yaml +12 -11
  19. package/bundle/references/cli/routing-execution-vocabulary.yaml +0 -4
  20. package/bundle/references/cli/routing-model.md +136 -91
  21. package/bundle/references/cli/trigger-schema-enrichment.md +50 -46
  22. package/bundle/references/cli/vocabulary.md +8 -11
  23. package/bundle/references/meta/documentation-inventory.md +1 -3
  24. package/bundle/skills/agentera/SKILL.md +50 -18
  25. package/bundle/skills/agentera/capabilities/audit/schemas/triggers.yaml +13 -35
  26. package/bundle/skills/agentera/capabilities/build/schemas/triggers.yaml +14 -36
  27. package/bundle/skills/agentera/capabilities/design/schemas/triggers.yaml +5 -34
  28. package/bundle/skills/agentera/capabilities/discuss/schemas/triggers.yaml +6 -40
  29. package/bundle/skills/agentera/capabilities/document/schemas/triggers.yaml +5 -34
  30. package/bundle/skills/agentera/capabilities/optimize/schemas/triggers.yaml +4 -35
  31. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +10 -6
  32. package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +3 -2
  33. package/bundle/skills/agentera/capabilities/orchestrate/schemas/triggers.yaml +5 -37
  34. package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +6 -5
  35. package/bundle/skills/agentera/capabilities/plan/schemas/triggers.yaml +8 -31
  36. package/bundle/skills/agentera/capabilities/profile/schemas/triggers.yaml +8 -37
  37. package/bundle/skills/agentera/capabilities/research/schemas/triggers.yaml +5 -29
  38. package/bundle/skills/agentera/capabilities/status/schemas/triggers.yaml +7 -47
  39. package/bundle/skills/agentera/capabilities/vision/schemas/triggers.yaml +7 -39
  40. package/bundle/skills/agentera/capability_schema_contract.yaml +29 -29
  41. package/bundle/skills/agentera/route-phrases.yaml +81 -0
  42. package/bundle/skills/agentera/schemas/artifacts/health.yaml +25 -7
  43. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +1 -2
  44. package/dist/capabilities/discuss/instructions.js +1 -1
  45. package/dist/capabilities/discuss/instructions.js.map +1 -1
  46. package/dist/capabilities/orchestrate/instructions.js +22 -2
  47. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  48. package/dist/capabilities/plan/instructions.js +1 -1
  49. package/dist/capabilities/plan/instructions.js.map +1 -1
  50. package/dist/cli/capabilityContext/evidence.js +1 -1
  51. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  52. package/dist/cli/capabilityContext/startup.js +2 -0
  53. package/dist/cli/capabilityContext/startup.js.map +1 -1
  54. package/dist/cli/commands/entityMigrate.js +7 -3
  55. package/dist/cli/commands/entityMigrate.js.map +1 -1
  56. package/dist/cli/commands/prime/briefOrientation.js +10 -3
  57. package/dist/cli/commands/prime/briefOrientation.js.map +1 -1
  58. package/dist/cli/commands/prime/collectEntityOrientation.js +64 -4
  59. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -1
  60. package/dist/cli/commands/prime/orientationOutput.js +41 -15
  61. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  62. package/dist/cli/commands/prime.js +4 -3
  63. package/dist/cli/commands/prime.js.map +1 -1
  64. package/dist/cli/commands/route.js +142 -0
  65. package/dist/cli/commands/route.js.map +1 -0
  66. package/dist/cli/commands/schema.js +21 -23
  67. package/dist/cli/commands/schema.js.map +1 -1
  68. package/dist/cli/commands/state/write.js +19 -0
  69. package/dist/cli/commands/state/write.js.map +1 -1
  70. package/dist/cli/commands/upgrade.js +1 -1
  71. package/dist/cli/commands/upgrade.js.map +1 -1
  72. package/dist/cli/commands/validate.js +2 -119
  73. package/dist/cli/commands/validate.js.map +1 -1
  74. package/dist/cli/commands/verify.js +17 -1
  75. package/dist/cli/commands/verify.js.map +1 -1
  76. package/dist/cli/dispatch/check.js +2 -7
  77. package/dist/cli/dispatch/check.js.map +1 -1
  78. package/dist/cli/dispatch/index.js +18 -0
  79. package/dist/cli/dispatch/index.js.map +1 -1
  80. package/dist/cli/dispatch/lifecycle.js +7 -5
  81. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  82. package/dist/cli/errors.js +2 -2
  83. package/dist/cli/errors.js.map +1 -1
  84. package/dist/cli/help.js +24 -5
  85. package/dist/cli/help.js.map +1 -1
  86. package/dist/cli/migrationRequired.js +1 -1
  87. package/dist/cli/migrationRequired.js.map +1 -1
  88. package/dist/eval/hybridRouteEvaluation.js +156 -0
  89. package/dist/eval/hybridRouteEvaluation.js.map +1 -0
  90. package/dist/registries/capabilityContract.js +5 -20
  91. package/dist/registries/capabilityContract.js.map +1 -1
  92. package/dist/registries/hybridRoute.js +203 -0
  93. package/dist/registries/hybridRoute.js.map +1 -0
  94. package/dist/registries/hybridRouteReceipt.js +221 -0
  95. package/dist/registries/hybridRouteReceipt.js.map +1 -0
  96. package/dist/registries/triggerLoader.js +7 -43
  97. package/dist/registries/triggerLoader.js.map +1 -1
  98. package/dist/release/releaseMetadata.js +2 -0
  99. package/dist/release/releaseMetadata.js.map +1 -1
  100. package/dist/runtime/lifecycleAuthority.js +10 -11
  101. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  102. package/dist/runtime/nativeResourceCleanup.js +317 -0
  103. package/dist/runtime/nativeResourceCleanup.js.map +1 -0
  104. package/dist/setup/codex/cli.js +9 -40
  105. package/dist/setup/codex/cli.js.map +1 -1
  106. package/dist/setup/codex/configToml.js +2 -83
  107. package/dist/setup/codex/configToml.js.map +1 -1
  108. package/dist/setup/codex/constants.js +0 -15
  109. package/dist/setup/codex/constants.js.map +1 -1
  110. package/dist/setup/codex/state.js +2 -20
  111. package/dist/setup/codex/state.js.map +1 -1
  112. package/dist/setup/codex.js +2 -4
  113. package/dist/setup/codex.js.map +1 -1
  114. package/dist/state/archiveDiscovery.js +24 -35
  115. package/dist/state/archiveDiscovery.js.map +1 -1
  116. package/dist/state/canonicalMigrationRecord.js +37 -0
  117. package/dist/state/canonicalMigrationRecord.js.map +1 -0
  118. package/dist/state/decisionEntities.js +73 -33
  119. package/dist/state/decisionEntities.js.map +1 -1
  120. package/dist/state/decisionLegacyValidation.js +31 -0
  121. package/dist/state/decisionLegacyValidation.js.map +1 -1
  122. package/dist/state/decisionMigrationProvenance.js +117 -0
  123. package/dist/state/decisionMigrationProvenance.js.map +1 -0
  124. package/dist/state/durability.js +24 -5
  125. package/dist/state/durability.js.map +1 -1
  126. package/dist/state/entityCutover.js +2 -2
  127. package/dist/state/entityCutover.js.map +1 -1
  128. package/dist/state/entityMigrationCausality.js +99 -0
  129. package/dist/state/entityMigrationCausality.js.map +1 -0
  130. package/dist/state/entityMigrationPreview.js +138 -77
  131. package/dist/state/entityMigrationPreview.js.map +1 -1
  132. package/dist/state/entityStorage.js +59 -24
  133. package/dist/state/entityStorage.js.map +1 -1
  134. package/dist/state/healthEntities.js +69 -33
  135. package/dist/state/healthEntities.js.map +1 -1
  136. package/dist/state/healthEntityValidation.js +14 -1
  137. package/dist/state/healthEntityValidation.js.map +1 -1
  138. package/dist/state/legacySummaryRecord.js +7 -0
  139. package/dist/state/legacySummaryRecord.js.map +1 -0
  140. package/dist/state/listCursor.js +43 -0
  141. package/dist/state/listCursor.js.map +1 -0
  142. package/dist/state/migrationSourceBinding.js +29 -0
  143. package/dist/state/migrationSourceBinding.js.map +1 -0
  144. package/dist/state/progressEntities.js +35 -59
  145. package/dist/state/progressEntities.js.map +1 -1
  146. package/dist/state/retrievalAuthority.js +10 -0
  147. package/dist/state/retrievalAuthority.js.map +1 -1
  148. package/dist/state/summaryEntityRead.js +26 -0
  149. package/dist/state/summaryEntityRead.js.map +1 -0
  150. package/dist/state/summaryMigrationProvenance.js +67 -0
  151. package/dist/state/summaryMigrationProvenance.js.map +1 -0
  152. package/dist/state/summarySourceRowAuthority.js +37 -0
  153. package/dist/state/summarySourceRowAuthority.js.map +1 -0
  154. package/dist/state/write/explain.js +2 -1
  155. package/dist/state/write/explain.js.map +1 -1
  156. package/dist/upgrade/lifecycleUpgrade.js +14 -14
  157. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  158. package/dist/upgrade/upgradeOrchestrator.js +12 -12
  159. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  160. package/dist/validate/capability.js +11 -2
  161. package/dist/validate/capability.js.map +1 -1
  162. package/package.json +2 -2
  163. package/bundle/references/analysis/analytics-boundary-proportional-2026-07-20.yaml +0 -74
  164. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  165. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  166. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  167. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  168. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  169. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  170. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli-route.log.gz +0 -0
  171. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli.log.gz +0 -0
  172. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-documentation.log.gz +0 -0
  173. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/recompute.mjs +0 -98
  174. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-1.json.gz +0 -0
  175. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-2.json.gz +0 -0
  176. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-3.json.gz +0 -0
  177. package/bundle/references/analysis/migration-pagination-proportional-2026-07-20.yaml +0 -64
  178. package/bundle/references/analysis/verification-baseline-2026-07-20.yaml +0 -313
  179. package/bundle/references/analysis/verification-final-proof-2026-07-21.yaml +0 -340
  180. package/bundle/references/analysis/worker-policy-2026-07-21.yaml +0 -207
  181. package/bundle/skills/agentera/agents/audit.toml +0 -6
  182. package/bundle/skills/agentera/agents/build.toml +0 -6
  183. package/bundle/skills/agentera/agents/design.toml +0 -6
  184. package/bundle/skills/agentera/agents/discuss.toml +0 -6
  185. package/bundle/skills/agentera/agents/document.toml +0 -6
  186. package/bundle/skills/agentera/agents/optimize.toml +0 -6
  187. package/bundle/skills/agentera/agents/orchestrate.toml +0 -6
  188. package/bundle/skills/agentera/agents/plan.toml +0 -6
  189. package/bundle/skills/agentera/agents/profile.toml +0 -6
  190. package/bundle/skills/agentera/agents/research.toml +0 -6
  191. package/bundle/skills/agentera/agents/status.toml +0 -6
  192. package/bundle/skills/agentera/agents/vision.toml +0 -6
  193. package/dist/runtime/retiredRuntimeCleanup.js +0 -238
  194. package/dist/runtime/retiredRuntimeCleanup.js.map +0 -1
  195. package/dist/setup/codex/agents.js +0 -96
  196. package/dist/setup/codex/agents.js.map +0 -1
@@ -1,47 +1,25 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests audit.
4
+ description: Audit local codebase health, architecture, quality, or technical debt.
7
5
  priority: high
8
- patterns:
9
- - "audit"
10
- - "/audit"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
- patterns_regex:
14
- - "\\b/audit\\b"
15
6
  2:
16
7
  id: T2
17
- description: >-
18
- Audit and codebase health requests. Matches when the user wants to
19
- assess codebase health, architecture quality, or structural integrity.
20
- priority: medium
21
- patterns:
22
- - "audit the codebase"
23
- - "check code health"
24
- - "architecture review"
25
- - "find technical debt"
26
- - "assess code quality"
27
- - "how healthy is this codebase"
28
- - "what needs fixing"
29
- - "structural review"
30
- - "pattern audit"
31
- - "dependency check"
32
- - "test coverage audit"
33
- confidence_threshold: 55
8
+ description: Review the local repository's code, architecture, dependencies, or structural health.
9
+ priority: high
10
+ disambiguates_against:
11
+ - capability: research
12
+ hint: "audit reviews this local codebase; research analyzes an external source or repository"
13
+ - capability: document
14
+ hint: "audit owns code and architecture health; document owns documentation maintenance and docs audits"
15
+ - capability: design
16
+ hint: "audit owns code and architecture health; design owns visual identity and design-system review"
17
+ - capability: optimize
18
+ hint: "audit assesses local health; optimize improves an existing system against a measurable target"
34
19
  3:
35
20
  id: T3
36
- description: >-
37
- Implicit trigger after extended build activity. Matches when
38
- build has run 5+ cycles without a health check and the system
39
- detects an overdue audit.
21
+ description: Review local health after implementation activity reveals a need for assessment.
40
22
  priority: medium
41
- patterns:
42
- - "health check overdue"
43
- - "audit after build"
44
- confidence_threshold: 50
45
23
  disambiguates_against:
46
24
  - capability: build
47
25
  hint: "audit checks codebase health after build activity; build continues development"
@@ -1,49 +1,27 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests build for autonomous development.
4
+ description: A scoped implementation task or one verified development cycle.
7
5
  priority: high
8
- patterns:
9
- - "build"
10
- - "/build"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
6
  2:
14
7
  id: T2
15
- description: >-
16
- Development cycle requests. Matches when the user wants to run an
17
- autonomous development cycle or evolve the project.
18
- priority: medium
19
- patterns:
20
- - "run a dev cycle"
21
- - "evolve the project"
22
- - "develop autonomously"
23
- - "build the next feature"
24
- confidence_threshold: 50
8
+ description: Implement one requested feature, fix, or bounded development task.
9
+ priority: high
10
+ disambiguates_against:
11
+ - capability: vision
12
+ hint: "build implements code; vision defines or refines project direction"
13
+ - capability: profile
14
+ hint: "build implements a software task; profile builds a reusable decision profile"
15
+ - capability: orchestrate
16
+ hint: "build completes one task or cycle; orchestrate runs an entire plan or multiple tasks"
25
17
  3:
26
18
  id: T3
27
- description: >-
28
- Continuous development signals. Matches when the user wants ongoing
29
- building or to start working on the project.
19
+ description: Start or continue a single concrete implementation task.
30
20
  priority: medium
31
- patterns:
32
- - "keep building"
33
- - "start building"
34
- - "work on the project"
35
- confidence_threshold: 50
36
21
  4:
37
22
  id: T4
38
- description: >-
39
- Vision refinement within a development context. Matches when the user
40
- wants to refine the project vision as part of a development session.
23
+ description: Implement a scoped task after its plan or requirements are established.
41
24
  priority: medium
42
- patterns:
43
- - "refine the vision"
44
- confidence_threshold: 50
45
25
  disambiguates_against:
46
- - capability: vision
47
- hint: "build implements code after vision work; vision defines direction"
48
- patterns_regex:
49
- - "\\brefine\\s+the\\s+vision\\b"
26
+ - capability: plan
27
+ hint: "build implements an established task; plan structures work before implementation"
@@ -1,45 +1,16 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests design.
4
+ description: Define, maintain, or assess visual identity and a design system.
7
5
  priority: high
8
- patterns:
9
- - "design"
10
- - "/design"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
- patterns_regex:
14
- - "\\b/design\\b"
15
6
  2:
16
7
  id: T2
17
- description: >-
18
- Design system creation requests. Matches when the user wants to
19
- create or set up a visual identity system or design tokens.
20
- priority: medium
21
- patterns:
22
- - "create design system"
23
- - "write DESIGN.md"
24
- - "design tokens"
25
- - "visual identity"
26
- - "define the aesthetic"
27
- - "set up design system"
28
- confidence_threshold: 50
8
+ description: Create a visual identity, design system, design tokens, or aesthetic direction.
9
+ priority: high
29
10
  3:
30
11
  id: T3
31
- description: >-
32
- Design system refinement and audit requests. Matches when the user
33
- wants to evolve, check, or update an existing design system.
34
- priority: medium
35
- patterns:
36
- - "audit design"
37
- - "refine design system"
38
- - "update DESIGN.md"
39
- confidence_threshold: 50
12
+ description: Refine, update, or audit a visual design system, including “audit the design system”.
13
+ priority: high
40
14
  disambiguates_against:
41
15
  - capability: audit
42
16
  hint: "design here is about visual identity, not codebase auditing"
43
- patterns_regex:
44
- - "\\baudit\\s+design\\b"
45
- - "update\\s+DESIGN\\.md"
@@ -1,54 +1,20 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests discuss for structured deliberation.
4
+ description: Structured deliberation about a choice, decision, or tradeoff.
7
5
  priority: high
8
- patterns:
9
- - "discuss"
10
- - "/discuss"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
6
  2:
14
7
  id: T2
15
- description: >-
16
- Decision-oriented requests. Matches when the user wants help thinking
17
- through a decision or evaluating tradeoffs.
18
- priority: medium
19
- patterns:
20
- - "deliberate"
21
- - "help me think through"
22
- - "help me decide"
23
- - "think this through with me"
24
- - "let's deliberate"
25
- - "what are the tradeoffs"
26
- - "brainstorm"
27
- - "rubber duck"
28
- confidence_threshold: 50
8
+ description: Help decide, think through alternatives, or evaluate tradeoffs.
9
+ priority: high
29
10
  3:
30
11
  id: T3
31
- description: >-
32
- Option-comparison signals. Matches when the user is torn between
33
- choices or wants to evaluate competing approaches.
34
- priority: medium
35
- patterns:
36
- - "should I"
37
- - "I'm torn between"
38
- - "what's the right approach"
39
- - "let's reason about"
40
- confidence_threshold: 50
12
+ description: Compare competing options before committing to an approach.
13
+ priority: high
41
14
  4:
42
15
  id: T4
43
- description: >-
44
- Pre-build scoping signals. Matches when the user wants to scope or
45
- reason about work before starting implementation.
16
+ description: Explore uncertain scope or approach before committing to implementation.
46
17
  priority: medium
47
- patterns:
48
- - "scope this out"
49
- - "before I build this"
50
- - "talk me through"
51
- confidence_threshold: 50
52
18
  disambiguates_against:
53
19
  - capability: plan
54
20
  hint: "discuss explores options before committing; plan structures committed work"
@@ -1,45 +1,16 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests document.
4
+ description: Create, maintain, or assess project documentation.
7
5
  priority: high
8
- patterns:
9
- - "document"
10
- - "/document"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
- patterns_regex:
14
- - "\\b/document\\b"
15
6
  2:
16
7
  id: T2
17
- description: >-
18
- Documentation creation requests. Matches when the user wants to
19
- write or create documentation, including DTC-first workflows.
20
- priority: medium
21
- patterns:
22
- - "write docs"
23
- - "document this"
24
- - "create README"
25
- - "write AGENTS.md"
26
- - "docs first"
27
- - "document before building"
28
- confidence_threshold: 50
8
+ description: Write or create project documentation, including README and agent guidance.
9
+ priority: high
29
10
  3:
30
11
  id: T3
31
- description: >-
32
- Documentation maintenance and audit requests. Matches when the user
33
- wants to update, check, or verify existing documentation.
34
- priority: medium
35
- patterns:
36
- - "update the docs"
37
- - "audit docs"
38
- - "check documentation"
39
- - "docs out of sync"
40
- confidence_threshold: 50
12
+ description: Update, verify, or audit documentation, including “audit the docs”.
13
+ priority: high
41
14
  disambiguates_against:
42
15
  - capability: audit
43
16
  hint: "document maintains project docs; audit reviews codebase health"
44
- patterns_regex:
45
- - "\\baudit\\s+docs?\\b"
@@ -1,47 +1,16 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests optimize.
4
+ description: Improve an existing system against a measurable target.
7
5
  priority: high
8
- patterns:
9
- - "optimize"
10
- - "/optimize"
11
- confidence_threshold: 60
12
- borderline_band: 20
13
6
  disambiguates_against:
14
7
  - capability: audit
15
8
  hint: "optimize tunes existing code; audit reviews codebase health"
16
9
  2:
17
10
  id: T2
18
- description: >-
19
- Metric-driven optimization requests. Matches when the user wants to
20
- improve a concrete, quantifiable property of their codebase.
21
- priority: medium
22
- patterns:
23
- - "optimize"
24
- - "improve performance"
25
- - "reduce latency"
26
- - "increase test coverage"
27
- - "lower bundle size"
28
- - "speed up"
29
- - "make faster"
30
- - "make smaller"
31
- - "get the score up"
32
- - "hit the target"
33
- - "improve the metric"
34
- confidence_threshold: 50
35
- borderline_band: 20
11
+ description: Improve a concrete metric such as startup time, latency, coverage, or size.
12
+ priority: high
36
13
  3:
37
14
  id: T3
38
- description: >-
39
- Iterative experimentation requests. Matches when the user wants to
40
- run experiments, benchmark, or iterate on a measurable objective.
15
+ description: Benchmark, experiment, or iterate toward a measurable objective.
41
16
  priority: medium
42
- patterns:
43
- - "benchmark and iterate"
44
- - "run experiments"
45
- - "tune"
46
- - "experiment until"
47
- confidence_threshold: 50
@@ -23,13 +23,17 @@ ARTIFACTS:
23
23
  3:
24
24
  id: A3
25
25
  artifact: health
26
- local_role: consumes
26
+ local_role: produces_and_consumes
27
27
  description: >-
28
- Orchestrate consumes returned health state first after plan completion to
29
- decide whether to start a new plan cycle; bounded `agentera state health
30
- list --limit 20 --format json` and exact `state health get --id ID`
31
- are the fallback contracts. Raw reads are diagnostic-only for corruption
32
- or CLI-defect investigation.
28
+ For an active plan whose tasks are all terminal, Orchestrate consumes
29
+ returned health state and delegates a limited staleness closure check.
30
+ On PASS it publishes one typed `artifact_freshness` health record through
31
+ `agentera state health append --input PATH --format json` before setting
32
+ the still-open plan complete. WARN or FAIL leaves the plan open and
33
+ surfaces the finding. Bounded `agentera state health list --limit 20
34
+ --format json` and exact `state health get --id ID` are fallback
35
+ contracts. Raw reads are diagnostic-only for corruption or CLI-defect
36
+ investigation.
33
37
  4:
34
38
  id: A4
35
39
  artifact: todo
@@ -3,8 +3,9 @@ EXIT_CONDITIONS:
3
3
  id: E1
4
4
  condition: complete
5
5
  description: >-
6
- All plan tasks are complete or validly superseded, the health check passed, and the
7
- orchestration session concluded with all planned work finished.
6
+ All plan tasks are complete or validly superseded, the limited post-plan
7
+ health check passed, its typed health record was published, and the
8
+ still-open plan was then set complete without invoking archive.
8
9
  exit_signal: complete
9
10
  2:
10
11
  id: E2
@@ -1,55 +1,23 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests orchestrate.
4
+ description: Execute an entire plan or coordinate multiple tasks and capabilities.
7
5
  priority: high
8
- patterns:
9
- - "orchestrate"
10
- - "/orchestrate"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
- patterns_regex:
14
- - "\\b/orchestrate\\b"
15
6
  2:
16
7
  id: T2
17
- description: >-
18
- Multi-cycle execution signals. Matches when the user wants to execute
19
- an entire plan autonomously or run tasks through evaluation gating.
20
- priority: medium
21
- patterns:
22
- - "run the plan"
23
- - "execute the plan"
24
- - "run all tasks"
25
- - "keep going until done"
26
- - "run through the plan"
27
- - "build everything"
28
- confidence_threshold: 55
8
+ description: Run every task in a plan or execute a full plan autonomously.
9
+ priority: high
29
10
  disambiguates_against:
30
11
  - capability: build
31
12
  hint: "orchestrate runs the whole plan autonomously; build executes one development cycle"
32
13
  3:
33
14
  id: T3
34
- description: >-
35
- Orchestration and delegation signals. Matches when the user wants to
36
- chain multiple capabilities, delegate work, or coordinate multi-step
37
- execution.
15
+ description: Coordinate multiple tasks or capability handoffs through completion.
38
16
  priority: medium
39
- patterns:
40
- - "orchestrate"
41
- - "orchestrate skills"
42
- - "multi-cycle"
43
- confidence_threshold: 50
44
17
  4:
45
18
  id: T4
46
- description: >-
47
- Autonomous plan execution signals. Matches when the user wants
48
- evaluated, plan-driven development without manual intervention.
19
+ description: Run evaluated, plan-driven development across multiple tasks without manual sequencing.
49
20
  priority: medium
50
- patterns:
51
- - "autonomous plan execution"
52
- confidence_threshold: 50
53
21
  disambiguates_against:
54
22
  - capability: build
55
23
  hint: "orchestrate chains multi-cycle execution; build runs a single cycle"
@@ -46,14 +46,15 @@ VALIDATION:
46
46
  id: V5
47
47
  rule: orchestrator_read_only_artifacts
48
48
  description: >-
49
- The orchestrator reads artifacts and updates plan task statuses and
50
- TODO.md blocked entries. It does NOT write to progress, changelog,
51
- or any other capability-owned artifact. This rule verifies the
52
- artifacts schema reflects this constraint.
49
+ The orchestrator updates plan task statuses and TODO.md blocked entries.
50
+ During terminal-open closure only, it writes the typed limited-scope
51
+ health record before plan completion. It does NOT write progress or
52
+ changelog. This rule verifies the artifacts schema reflects this
53
+ constraint.
53
54
  severity: warning
54
55
  checks:
55
56
  - "progress is consumes only (not produces)"
56
- - "health is consumes only (not produces)"
57
+ - "health is produces_and_consumes for terminal-open closure only"
57
58
  - "decisions is consumes only (not produces)"
58
59
  - "vision is consumes only (not produces)"
59
60
  6:
@@ -1,46 +1,23 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests plan for structured planning.
4
+ description: Requests to structure work into a plan before implementation.
7
5
  priority: high
8
- patterns:
9
- - "plan"
10
- - "/plan"
11
- confidence_threshold: 60
12
- borderline_band: 10
13
- patterns_regex:
14
- - "\\b/plan\\b"
15
6
  2:
16
7
  id: T2
17
- description: >-
18
- Planning requests. Matches when the user wants to create a plan,
19
- break work down, or specify requirements before building.
20
- priority: medium
21
- patterns:
22
- - "plan this"
23
- - "write a plan"
24
- - "break this down"
25
- - "decompose this"
26
- - "spec this out"
27
- - "plan before building"
28
- confidence_threshold: 50
8
+ description: Create a plan, break work down, or specify requirements before building.
9
+ priority: high
29
10
  disambiguates_against:
30
11
  - capability: build
31
12
  hint: "plan structures work into tasks before coding; build implements the work"
13
+ - capability: discuss
14
+ hint: "plan structures committed work; discuss explores an undecided choice or tradeoff"
15
+ - capability: vision
16
+ hint: "plan structures work toward known direction; vision defines the direction itself"
32
17
  3:
33
18
  id: T3
34
- description: >-
35
- Architectural planning signals. Matches when the user is asking how
36
- to approach building something or when the work is too large for a
37
- single development cycle.
19
+ description: Plan a multi-step feature or approach too large for one development cycle.
38
20
  priority: medium
39
- patterns:
40
- - "how should we build this"
41
- - "multi-step feature"
42
- - "this is too big for one cycle"
43
- confidence_threshold: 50
44
21
  disambiguates_against:
45
22
  - capability: build
46
23
  hint: "plan sizes work before implementation; build runs the development cycle"
@@ -1,49 +1,20 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests profile.
4
+ description: Create, maintain, or analyze a reusable decision profile.
7
5
  priority: high
8
- patterns:
9
- - "profile"
10
- - "/profile"
11
- confidence_threshold: 55
12
6
  2:
13
7
  id: T2
14
- description: >-
15
- Profile generation requests. Matches when the user wants to build
16
- or regenerate their decision profile from scratch.
17
- priority: medium
18
- patterns:
19
- - "build decision profile"
20
- - "generate decision profile"
21
- - "rebuild my profile"
22
- - "regenerate profile"
23
- confidence_threshold: 45
8
+ description: Build, generate, or regenerate a decision profile.
9
+ priority: high
10
+ disambiguates_against:
11
+ - capability: build
12
+ hint: "profile builds a reusable decision profile; build implements a software task"
24
13
  3:
25
14
  id: T3
26
- description: >-
27
- Profile maintenance requests. Matches when the user wants to update,
28
- validate, or check their existing profile.
15
+ description: Update, validate, or refresh an existing decision profile.
29
16
  priority: medium
30
- patterns:
31
- - "update my profile"
32
- - "refresh my decision profile"
33
- - "validate my profile"
34
- - "check my profile"
35
- - "quick profile check"
36
- confidence_threshold: 45
37
17
  4:
38
18
  id: T4
39
- description: >-
40
- Decision analysis requests. Matches when the user wants to understand
41
- their own decision-making patterns or review past decisions.
19
+ description: Analyze personal decision patterns or review decision history.
42
20
  priority: medium
43
- patterns:
44
- - "what would I decide"
45
- - "analyze my decisions"
46
- - "mine my sessions"
47
- - "decision patterns"
48
- - "review my decision history"
49
- confidence_threshold: 45
@@ -1,40 +1,16 @@
1
1
  TRIGGERS:
2
2
  1:
3
3
  id: T1
4
- description: >-
5
- Direct invocation by name or slash command. Matches when the user
6
- explicitly requests research.
4
+ description: Research requests that analyze external sources, repositories, or approaches.
7
5
  priority: high
8
- patterns:
9
- - "research"
10
- - "/research"
11
- confidence_threshold: 55
12
6
  2:
13
7
  id: T2
14
- description: >-
15
- Applicability assessment requests. Matches when the user provides
16
- an external URL and asks how it applies to their project or whether
17
- they should adopt it.
18
- priority: medium
19
- patterns:
20
- - "could I use this in"
21
- - "how does this apply to my project"
22
- - "is this relevant to"
23
- - "what can I take from this"
24
- - "should I adopt"
25
- confidence_threshold: 45
8
+ description: Assess an external source's relevance, applicability, or adoption.
9
+ priority: high
26
10
  3:
27
11
  id: T3
28
- description: >-
29
- External resource review requests. Matches when the user wants
30
- analysis of a library, repo, or approach for ideas and patterns.
31
- priority: medium
32
- patterns:
33
- - "what do you think of this library"
34
- - "review this repo for ideas"
35
- - "anything worth stealing from"
36
- - "how does this compare to what I'm doing"
37
- confidence_threshold: 45
12
+ description: Review an external library, repository, or pattern for ideas.
13
+ priority: high
38
14
  disambiguates_against:
39
15
  - capability: audit
40
16
  hint: "research reviews external resources for ideas; audit reviews the local codebase for health"