agentera 3.0.0-dev.4 → 3.0.0-dev.6

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 (321) hide show
  1. package/README.md +4 -3
  2. package/bundle/.agentera-npx-bundle.json +1 -1
  3. package/bundle/references/adapters/opencode.md +1 -1
  4. package/bundle/references/adapters/package-registry.yaml +0 -1
  5. package/bundle/references/adapters/package-surface-characterization.md +1 -2
  6. package/bundle/references/analysis/startup-measurement-contract.yaml +11 -11
  7. package/bundle/references/cli/agent-ready-state-contract.yaml +5 -5
  8. package/bundle/references/cli/audience-namespace-cli-migration.yaml +40 -26
  9. package/bundle/references/cli/bundle-skill-vocabulary.yaml +2 -30
  10. package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
  11. package/bundle/references/cli/coexistence-probe.yaml +9 -0
  12. package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
  13. package/bundle/references/cli/single-name-protocol.yaml +42 -0
  14. package/bundle/references/cli/update-channels.yaml +18 -2
  15. package/bundle/references/cli/upgrade-repair-wording.md +31 -0
  16. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +98 -0
  17. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  18. package/bundle/references/cli/vocabulary.md +34 -26
  19. package/bundle/references/meta/documentation-inventory.md +9 -3
  20. package/bundle/registry.json +1 -1
  21. package/bundle/skills/agentera/SKILL.md +50 -33
  22. package/bundle/skills/agentera/agents/dokumentera.toml +1 -1
  23. package/bundle/skills/agentera/agents/hej.toml +1 -1
  24. package/bundle/skills/agentera/agents/inspektera.toml +1 -1
  25. package/bundle/skills/agentera/agents/inspirera.toml +1 -1
  26. package/bundle/skills/agentera/agents/optimera.toml +1 -1
  27. package/bundle/skills/agentera/agents/orkestrera.toml +1 -1
  28. package/bundle/skills/agentera/agents/planera.toml +1 -1
  29. package/bundle/skills/agentera/agents/profilera.toml +1 -1
  30. package/bundle/skills/agentera/agents/realisera.toml +1 -1
  31. package/bundle/skills/agentera/agents/resonera.toml +1 -1
  32. package/bundle/skills/agentera/agents/visionera.toml +1 -1
  33. package/bundle/skills/agentera/agents/visualisera.toml +1 -1
  34. package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +26 -13
  35. package/bundle/skills/agentera/capability_schema_contract.yaml +33 -14
  36. package/bundle/skills/agentera/references/contract.md +2 -2
  37. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
  38. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -36
  39. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +14 -0
  40. package/dist/analytics/extractCorpus/cli.js +101 -0
  41. package/dist/analytics/extractCorpus/cli.js.map +1 -0
  42. package/dist/analytics/extractCorpus/copilotSessions.js +231 -0
  43. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -0
  44. package/dist/analytics/extractCorpus/core.js +357 -0
  45. package/dist/analytics/extractCorpus/core.js.map +1 -0
  46. package/dist/analytics/extractCorpus/corpus.js +132 -0
  47. package/dist/analytics/extractCorpus/corpus.js.map +1 -0
  48. package/dist/analytics/extractCorpus/cursorSessions.js +420 -0
  49. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -0
  50. package/dist/analytics/extractCorpus/filesystemSources.js +122 -0
  51. package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -0
  52. package/dist/analytics/extractCorpus/index.js +9 -0
  53. package/dist/analytics/extractCorpus/index.js.map +1 -0
  54. package/dist/analytics/extractCorpus/jsonlSessions.js +185 -0
  55. package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -0
  56. package/dist/analytics/extractCorpus/sqliteSessions.js +275 -0
  57. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -0
  58. package/dist/analytics/extractCorpus.js +2 -1790
  59. package/dist/analytics/extractCorpus.js.map +1 -1
  60. package/dist/analytics/usageStats.js +1 -1
  61. package/dist/analytics/usageStats.js.map +1 -1
  62. package/dist/capabilities/dokumentera/instructions.js +6 -0
  63. package/dist/capabilities/dokumentera/instructions.js.map +1 -0
  64. package/dist/capabilities/hej/instructions.js +6 -0
  65. package/dist/capabilities/hej/instructions.js.map +1 -0
  66. package/dist/capabilities/index.js +38 -0
  67. package/dist/capabilities/index.js.map +1 -0
  68. package/dist/capabilities/inspektera/instructions.js +6 -0
  69. package/dist/capabilities/inspektera/instructions.js.map +1 -0
  70. package/dist/capabilities/inspirera/instructions.js +6 -0
  71. package/dist/capabilities/inspirera/instructions.js.map +1 -0
  72. package/dist/capabilities/optimera/instructions.js +6 -0
  73. package/dist/capabilities/optimera/instructions.js.map +1 -0
  74. package/dist/capabilities/orkestrera/instructions.js +6 -0
  75. package/dist/capabilities/orkestrera/instructions.js.map +1 -0
  76. package/dist/capabilities/planera/instructions.js +6 -0
  77. package/dist/capabilities/planera/instructions.js.map +1 -0
  78. package/dist/capabilities/profilera/instructions.js +6 -0
  79. package/dist/capabilities/profilera/instructions.js.map +1 -0
  80. package/dist/capabilities/realisera/instructions.js +6 -0
  81. package/dist/capabilities/realisera/instructions.js.map +1 -0
  82. package/dist/capabilities/resonera/instructions.js +6 -0
  83. package/dist/capabilities/resonera/instructions.js.map +1 -0
  84. package/dist/capabilities/visionera/instructions.js +6 -0
  85. package/dist/capabilities/visionera/instructions.js.map +1 -0
  86. package/dist/capabilities/visualisera/instructions.js +6 -0
  87. package/dist/capabilities/visualisera/instructions.js.map +1 -0
  88. package/dist/cli/capabilityContext/benchmark.js +557 -0
  89. package/dist/cli/capabilityContext/benchmark.js.map +1 -0
  90. package/dist/cli/capabilityContext/bespoke.js +25 -0
  91. package/dist/cli/capabilityContext/bespoke.js.map +1 -0
  92. package/dist/cli/capabilityContext/closeout.js +230 -0
  93. package/dist/cli/capabilityContext/closeout.js.map +1 -0
  94. package/dist/cli/capabilityContext/contract.js +186 -0
  95. package/dist/cli/capabilityContext/contract.js.map +1 -0
  96. package/dist/cli/capabilityContext/evidence.js +446 -0
  97. package/dist/cli/capabilityContext/evidence.js.map +1 -0
  98. package/dist/cli/capabilityContext/index.js +4 -0
  99. package/dist/cli/capabilityContext/index.js.map +1 -0
  100. package/dist/cli/capabilityContext/orchestration.js +107 -0
  101. package/dist/cli/capabilityContext/orchestration.js.map +1 -0
  102. package/dist/cli/capabilityContext/planState.js +271 -0
  103. package/dist/cli/capabilityContext/planState.js.map +1 -0
  104. package/dist/cli/capabilityContext/progress.js +96 -0
  105. package/dist/cli/capabilityContext/progress.js.map +1 -0
  106. package/dist/cli/capabilityContext/realisera.js +174 -0
  107. package/dist/cli/capabilityContext/realisera.js.map +1 -0
  108. package/dist/cli/capabilityContext/shared.js +94 -0
  109. package/dist/cli/capabilityContext/shared.js.map +1 -0
  110. package/dist/cli/capabilityContext/slim.js +106 -0
  111. package/dist/cli/capabilityContext/slim.js.map +1 -0
  112. package/dist/cli/capabilityContext/startup.js +208 -0
  113. package/dist/cli/capabilityContext/startup.js.map +1 -0
  114. package/dist/cli/capabilityContext/types.js +43 -0
  115. package/dist/cli/capabilityContext/types.js.map +1 -0
  116. package/dist/cli/capabilityContext.js +1 -2420
  117. package/dist/cli/capabilityContext.js.map +1 -1
  118. package/dist/cli/commands/capability.js +1 -8
  119. package/dist/cli/commands/capability.js.map +1 -1
  120. package/dist/cli/commands/compact.js +1 -1
  121. package/dist/cli/commands/compact.js.map +1 -1
  122. package/dist/cli/commands/doctor.js +35 -6
  123. package/dist/cli/commands/doctor.js.map +1 -1
  124. package/dist/cli/commands/lint.js +4 -36
  125. package/dist/cli/commands/lint.js.map +1 -1
  126. package/dist/cli/commands/query.js +1 -1
  127. package/dist/cli/commands/query.js.map +1 -1
  128. package/dist/cli/commands/report.js +11 -2
  129. package/dist/cli/commands/report.js.map +1 -1
  130. package/dist/cli/commands/schema.js +1 -2
  131. package/dist/cli/commands/schema.js.map +1 -1
  132. package/dist/cli/commands/state/decisions.js +397 -0
  133. package/dist/cli/commands/state/decisions.js.map +1 -0
  134. package/dist/cli/commands/state/docs.js +93 -0
  135. package/dist/cli/commands/state/docs.js.map +1 -0
  136. package/dist/cli/commands/state/experiments.js +67 -0
  137. package/dist/cli/commands/state/experiments.js.map +1 -0
  138. package/dist/cli/commands/state/health.js +114 -0
  139. package/dist/cli/commands/state/health.js.map +1 -0
  140. package/dist/cli/commands/state/index.js +51 -0
  141. package/dist/cli/commands/state/index.js.map +1 -0
  142. package/dist/cli/commands/state/objective.js +68 -0
  143. package/dist/cli/commands/state/objective.js.map +1 -0
  144. package/dist/cli/commands/state/plan.js +172 -0
  145. package/dist/cli/commands/state/plan.js.map +1 -0
  146. package/dist/cli/commands/state/progress.js +47 -0
  147. package/dist/cli/commands/state/progress.js.map +1 -0
  148. package/dist/cli/commands/state/shared.js +15 -0
  149. package/dist/cli/commands/state/shared.js.map +1 -0
  150. package/dist/cli/commands/state/todo.js +121 -0
  151. package/dist/cli/commands/state/todo.js.map +1 -0
  152. package/dist/cli/commands/state.js +29 -18
  153. package/dist/cli/commands/state.js.map +1 -1
  154. package/dist/cli/commands/validate.js +44 -20
  155. package/dist/cli/commands/validate.js.map +1 -1
  156. package/dist/cli/dispatch/check.js +328 -0
  157. package/dist/cli/dispatch/check.js.map +1 -0
  158. package/dist/cli/dispatch/index.js +177 -0
  159. package/dist/cli/dispatch/index.js.map +1 -0
  160. package/dist/cli/dispatch/lifecycle.js +492 -0
  161. package/dist/cli/dispatch/lifecycle.js.map +1 -0
  162. package/dist/cli/dispatch/prime.js +100 -0
  163. package/dist/cli/dispatch/prime.js.map +1 -0
  164. package/dist/cli/dispatch/shared.js +64 -0
  165. package/dist/cli/dispatch/shared.js.map +1 -0
  166. package/dist/cli/dispatch/state.js +149 -0
  167. package/dist/cli/dispatch/state.js.map +1 -0
  168. package/dist/cli/dispatch.js +1 -995
  169. package/dist/cli/dispatch.js.map +1 -1
  170. package/dist/cli/errors.js +53 -0
  171. package/dist/cli/errors.js.map +1 -0
  172. package/dist/cli/help.js +1 -3
  173. package/dist/cli/help.js.map +1 -1
  174. package/dist/cli/orientation.js +10 -7
  175. package/dist/cli/orientation.js.map +1 -1
  176. package/dist/cli/stateQuery.js +7 -0
  177. package/dist/cli/stateQuery.js.map +1 -1
  178. package/dist/cli/todoMarkdown.js +33 -0
  179. package/dist/cli/todoMarkdown.js.map +1 -0
  180. package/dist/hooks/common.js +8 -25
  181. package/dist/hooks/common.js.map +1 -1
  182. package/dist/hooks/compaction/apply.js +244 -0
  183. package/dist/hooks/compaction/apply.js.map +1 -0
  184. package/dist/hooks/compaction/dryRun.js +181 -0
  185. package/dist/hooks/compaction/dryRun.js.map +1 -0
  186. package/dist/hooks/compaction/index.js +23 -0
  187. package/dist/hooks/compaction/index.js.map +1 -0
  188. package/dist/hooks/compaction/parse.js +129 -0
  189. package/dist/hooks/compaction/parse.js.map +1 -0
  190. package/dist/hooks/compaction/retention.js +197 -0
  191. package/dist/hooks/compaction/retention.js.map +1 -0
  192. package/dist/hooks/compaction/status.js +243 -0
  193. package/dist/hooks/compaction/status.js.map +1 -0
  194. package/dist/hooks/compaction/types.js +6 -0
  195. package/dist/hooks/compaction/types.js.map +1 -0
  196. package/dist/hooks/compaction.js +20 -20
  197. package/dist/hooks/compaction.js.map +1 -1
  198. package/dist/hooks/cursorPreToolUse.js +1 -1
  199. package/dist/hooks/cursorPreToolUse.js.map +1 -1
  200. package/dist/hooks/sessionStart.js +4 -4
  201. package/dist/hooks/sessionStart.js.map +1 -1
  202. package/dist/hooks/sessionStop.js +3 -12
  203. package/dist/hooks/sessionStop.js.map +1 -1
  204. package/dist/hooks/validateArtifact/agentFacing.js +10 -0
  205. package/dist/hooks/validateArtifact/agentFacing.js.map +1 -0
  206. package/dist/hooks/validateArtifact/index.js +149 -0
  207. package/dist/hooks/validateArtifact/index.js.map +1 -0
  208. package/dist/hooks/validateArtifact/markdown.js +95 -0
  209. package/dist/hooks/validateArtifact/markdown.js.map +1 -0
  210. package/dist/hooks/validateArtifact/runtime.js +83 -0
  211. package/dist/hooks/validateArtifact/runtime.js.map +1 -0
  212. package/dist/hooks/validateArtifact/schema.js +455 -0
  213. package/dist/hooks/validateArtifact/schema.js.map +1 -0
  214. package/dist/hooks/validateArtifact/traversal.js +105 -0
  215. package/dist/hooks/validateArtifact/traversal.js.map +1 -0
  216. package/dist/hooks/validateArtifact/violations.js +105 -0
  217. package/dist/hooks/validateArtifact/violations.js.map +1 -0
  218. package/dist/hooks/validateArtifact.js +40 -49
  219. package/dist/hooks/validateArtifact.js.map +1 -1
  220. package/dist/migrate/v2HandoffManifest.js +333 -0
  221. package/dist/migrate/v2HandoffManifest.js.map +1 -0
  222. package/dist/registries/artifactProtocolIds.js +77 -0
  223. package/dist/registries/artifactProtocolIds.js.map +1 -0
  224. package/dist/registries/capabilityContract.js +12 -11
  225. package/dist/registries/capabilityContract.js.map +1 -1
  226. package/dist/registries/evaluatorHandoffContract.js +171 -0
  227. package/dist/registries/evaluatorHandoffContract.js.map +1 -0
  228. package/dist/release/releaseMetadata.js +235 -0
  229. package/dist/release/releaseMetadata.js.map +1 -0
  230. package/dist/setup/codex/agents.js +96 -0
  231. package/dist/setup/codex/agents.js.map +1 -0
  232. package/dist/setup/codex/cli.js +161 -0
  233. package/dist/setup/codex/cli.js.map +1 -0
  234. package/dist/setup/codex/configToml.js +644 -0
  235. package/dist/setup/codex/configToml.js.map +1 -0
  236. package/dist/setup/codex/constants.js +29 -0
  237. package/dist/setup/codex/constants.js.map +1 -0
  238. package/dist/setup/codex/installRoot.js +64 -0
  239. package/dist/setup/codex/installRoot.js.map +1 -0
  240. package/dist/setup/codex/state.js +270 -0
  241. package/dist/setup/codex/state.js.map +1 -0
  242. package/dist/setup/codex.js +11 -1055
  243. package/dist/setup/codex.js.map +1 -1
  244. package/dist/setup/doctor/core.js +300 -0
  245. package/dist/setup/doctor/core.js.map +1 -0
  246. package/dist/setup/doctor/diagnostics.js +247 -0
  247. package/dist/setup/doctor/diagnostics.js.map +1 -0
  248. package/dist/setup/doctor/opencode.js +281 -0
  249. package/dist/setup/doctor/opencode.js.map +1 -0
  250. package/dist/setup/doctor/report.js +474 -0
  251. package/dist/setup/doctor/report.js.map +1 -0
  252. package/dist/setup/doctor.js +9 -1296
  253. package/dist/setup/doctor.js.map +1 -1
  254. package/dist/setup/opencode.js +13 -0
  255. package/dist/setup/opencode.js.map +1 -0
  256. package/dist/setup/smokeChecks.js +1 -1
  257. package/dist/setup/smokeChecks.js.map +1 -1
  258. package/dist/state/progressCommit.js +1 -1
  259. package/dist/state/progressCommit.js.map +1 -1
  260. package/dist/state/startupAnalysis/benchmark.js +367 -0
  261. package/dist/state/startupAnalysis/benchmark.js.map +1 -0
  262. package/dist/state/startupAnalysis/contract.js +122 -0
  263. package/dist/state/startupAnalysis/contract.js.map +1 -0
  264. package/dist/state/startupAnalysis/helpers.js +332 -0
  265. package/dist/state/startupAnalysis/helpers.js.map +1 -0
  266. package/dist/state/startupAnalysis/index.js +7 -0
  267. package/dist/state/startupAnalysis/index.js.map +1 -0
  268. package/dist/state/startupAnalysis/metrics.js +334 -0
  269. package/dist/state/startupAnalysis/metrics.js.map +1 -0
  270. package/dist/state/startupAnalysis/records.js +195 -0
  271. package/dist/state/startupAnalysis/records.js.map +1 -0
  272. package/dist/state/startupAnalysis/report.js +123 -0
  273. package/dist/state/startupAnalysis/report.js.map +1 -0
  274. package/dist/state/startupAnalysis/threshold.js +500 -0
  275. package/dist/state/startupAnalysis/threshold.js.map +1 -0
  276. package/dist/state/startupAnalysis.js +2 -1952
  277. package/dist/state/startupAnalysis.js.map +1 -1
  278. package/dist/upgrade/coexistenceProbe.js +83 -0
  279. package/dist/upgrade/coexistenceProbe.js.map +1 -0
  280. package/dist/upgrade/doctor.js +41 -2
  281. package/dist/upgrade/doctor.js.map +1 -1
  282. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -1
  283. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -1
  284. package/dist/upgrade/migrateArtifactsV2ToV3.js +5 -83
  285. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  286. package/dist/upgrade/nextMajorDoctor.js +136 -0
  287. package/dist/upgrade/nextMajorDoctor.js.map +1 -0
  288. package/dist/upgrade/projectIntegration.js +3 -1
  289. package/dist/upgrade/projectIntegration.js.map +1 -1
  290. package/dist/upgrade/runtimeMigration.js +32 -5
  291. package/dist/upgrade/runtimeMigration.js.map +1 -1
  292. package/dist/upgrade/v3CapabilitySurface.js +15 -0
  293. package/dist/upgrade/v3CapabilitySurface.js.map +1 -0
  294. package/dist/upgrade/versionResolution.js +12 -4
  295. package/dist/upgrade/versionResolution.js.map +1 -1
  296. package/dist/validate/appHomeContract.js +4 -4
  297. package/dist/validate/appHomeContract.js.map +1 -1
  298. package/dist/validate/capability.js +11 -3
  299. package/dist/validate/capability.js.map +1 -1
  300. package/dist/validate/selfAudit.js +62 -20
  301. package/dist/validate/selfAudit.js.map +1 -1
  302. package/dist/validate/vocabularyAuthority.js +298 -0
  303. package/dist/validate/vocabularyAuthority.js.map +1 -0
  304. package/package.json +4 -4
  305. package/bundle/references/v1-section-mapping.md +0 -47
  306. package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
  307. package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
  308. package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
  309. package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
  310. package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
  311. package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
  312. package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
  313. package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
  314. package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
  315. package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
  316. package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
  317. package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
  318. package/bundle/skills/hej/.claude-plugin/plugin.json +0 -6
  319. package/bundle/skills/hej/SKILL.md +0 -69
  320. package/bundle/skills/hej/agents/hej.toml +0 -11
  321. package/bundle/skills/hej/agents/openai.yaml +0 -8
@@ -1,403 +0,0 @@
1
- # REALISERA
2
-
3
- **Relentless Execution: Autonomous Loops Iterating Software. Evolve, Refine, Adapt**
4
-
5
- An autonomous development loop that evolves any software project one cycle at a time. Decisions grounded in the user's decision profile. Continuity lives in files, not memory.
6
-
7
- Each invocation = one cycle. `/loop` handles recurrence.
8
-
9
- ---
10
-
11
- ## Visual identity
12
-
13
- Glyph: **⧉** (protocol ref: SG2). Used in the mandatory exit marker.
14
-
15
- ---
16
-
17
- ## State artifacts
18
-
19
- Four artifacts, bootstrapped if absent. TODO.md and CHANGELOG.md stay at project root; canonical VISION.md and PROGRESS.md are stored as `.agentera/vision.yaml` and `.agentera/progress.yaml` unless mapped otherwise.
20
-
21
- | File | Purpose | Bootstrap |
22
- |------|---------|-----------|
23
- | `VISION.md` | Canonical vision artifact. North star, direction, principles, aspirations. | Via inline brainstorm session (see below), written to `.agentera/vision.yaml` by default. |
24
- | `TODO.md` | Tech debt, bugs, discrepancies. | `# TODO\n\n## ⇶ Critical\n\n## ⇉ Degraded\n\n## → Normal\n\n## ⇢ Annoying\n\n## Resolved\n` |
25
- | `CHANGELOG.md` | Public change history. | `# Changelog\n\n## [Unreleased]\n` |
26
- | `PROGRESS.md` | Canonical progress artifact. Operational cycle log. | First cycle entry in `.agentera/progress.yaml` by default. |
27
-
28
- Use `agentera schema --format json` and its `artifact_schemas` entries for `vision` and `progress` to locate the active installed schemas; do not search Agentera directories manually. Top-level `agentera describe` is a migration alias.
29
-
30
- ### Artifact path resolution
31
-
32
- Before reading or writing any artifact, check if `.agentera/docs.yaml` exists. If it has an Artifact Mapping section, use the path specified for each canonical filename (VISION.md, TODO.md, .agentera/progress.yaml, etc.). If `.agentera/docs.yaml` doesn't exist or has no mapping for a given artifact, use the default layout: TODO.md, CHANGELOG.md, and DESIGN.md at the project root; canonical VISION.md at `.agentera/vision.yaml`; other agent-facing artifacts at `.agentera/*.yaml`.
33
-
34
- ### Contract values
35
-
36
- Contract values are inlined where referenced. Visual tokens from protocol: severity arrows VT5-VT8 (⇶/⇉/→/⇢), status tokens VT1-VT4 (■/▣/□/▨), list item VT15 (▸), inline separator VT16 (·), section divider VT14, flow/target VT17 (→). Skill glyphs SG1-SG12 for cross-capability references. Exit signals EX1-EX4 for the exit marker. Severity issue levels SI1-SI4 for TODO classification. Decision labels DL1-DL3 for DECISIONS.md entries. Confidence scale CS1-CS5 with thresholds for profile consumption.
37
-
38
- `references/contract.md` (at the v2 skill location `skills/agentera/references/contract.md`) remains available as a full-spec reference for ambiguous cases or cross-checking.
39
-
40
- ### vision.yaml
41
-
42
- Evergreen. Created via brainstorm on first run, refined only when the user explicitly asks. Outside those two cases, the agent reads it but never writes it. A constitution, not a backlog.
43
-
44
- ```yaml
45
- project_name: Project Name
46
- north_star: The dream. What this software makes possible.
47
- personas:
48
- - name: Specific persona
49
- description: Their day, frustrations, and workflow.
50
- principles:
51
- - name: Principle name
52
- description: What it means and what it resists.
53
- direction: Where this project is heading.
54
- identity:
55
- personality: Product personality.
56
- voice: Communication style.
57
- emotional_register: How it should feel to use.
58
- naming: Naming conventions.
59
- tension: The hardest strategic tension.
60
- ```
61
-
62
- ### progress.yaml
63
-
64
- ```yaml
65
- cycles:
66
- - number: N
67
- timestamp: YYYY-MM-DD HH:MM
68
- type: feat
69
- phase: build
70
- what: One-line summary of what shipped.
71
- commit: pending
72
- inspiration: External source, if any.
73
- discovered: Issues or ideas found.
74
- verified: Observed output, N/A tag, or rationale.
75
- next: Most valuable next work.
76
- context:
77
- intent: Why this cycle happened.
78
- constraints: What had to stay true.
79
- unknowns: What remains uncertain.
80
- scope: What changed.
81
- archive: []
82
- ```
83
-
84
- The `verified` field is mandatory for every cycle entry.
85
-
86
- The `commit` field names the git commit that contains the product change. Write
87
- `commit: pending` in the implementation commit when the hash is not known yet; backfill
88
- the product commit hash later in a forward commit if needed. Never amend solely to
89
- set this field to HEAD.
90
-
91
- ### CHANGELOG.md
92
-
93
- Public-facing change history. Keep-a-changelog format. Realisera appends entries under `## [Unreleased]` based on commit type: `feat` → Added, `refactor/chore` → Changed, `fix` → Fixed. On version bumps, promote the Unreleased section to a versioned heading.
94
-
95
- ---
96
-
97
- ## Brainstorm: bootstrapping or refining the vision artifact
98
-
99
- This runs in two situations:
100
-
101
- 1. **The vision artifact doesn't exist**: the first time realisera runs on a project
102
- 2. **User explicitly asks** to refine the vision
103
-
104
- In all other cases, skip straight to the cycle.
105
-
106
- The sharp colleague, here to build. Brief, focused conversation. One question at a time. Push for ambition.
107
-
108
- 1. **Understand the dream**: "Not what the software does, but what does it make possible?"
109
- 2. **Find the people**: "Who reaches for this? Describe a person: their day, their frustrations."
110
- 3. **Find the principles**: "What principles guide every decision?" If a decision profile exists, propose principles from it.
111
- 4. **Set the direction**: "Where is this heading? Not features, but capabilities."
112
- 5. **Write the vision artifact**: synthesize into an aspirational north star. Present for approval.
113
-
114
- Artifact writing follows contract Section 24 conventions: banned verbosity patterns, 25-word sentence cap, preferred vocabulary, and lead-with-conclusion structure.
115
-
116
- ---
117
-
118
- ## The cycle
119
-
120
- Skill introduction: `─── ⧉ realisera · cycle N ───`
121
-
122
- Step markers: display `── step N/9: verb` before each step.
123
- Steps: orient, select, research, plan, spawn, verify, commit, audit, log.
124
-
125
- ### Step 1: Orient
126
-
127
- Start from the supported Realisera execution-context seam:
128
-
129
- ```bash
130
- agentera prime --context realisera --format json
131
- ```
132
-
133
- If `execution_context.source_contract.complete_for_execution_context` is true,
134
- use `execution_context` and included `capability_context.state` as normal startup context. Do
135
- not read raw PLAN, PROGRESS, TODO, DOCS, HEALTH, DECISIONS, CHANGELOG, VISION,
136
- PROFILE, or DESIGN artifacts just to re-check selected work, acceptance
137
- criteria, constraints, verification expectations, artifact update requirements,
138
- progress logging requirements, changelog boundary, or scope caveats.
139
-
140
- If `execution_context` is incomplete or caveated, preserve every caveat in the
141
- cycle report and run the listed `execution_context.fallback_commands` before any
142
- last-resort raw artifact diagnostic. Raw artifact reads are last-resort
143
- diagnostics, not normal Realisera startup behavior.
144
-
145
- For progress fallback specifically, use `npx -y agentera state progress --format json`
146
- or the installed app equivalent from the returned fallback command; the routine
147
- progress command owns startup progress state.
148
-
149
- ### Decision satisfaction authority
150
-
151
- When a cycle touches decision satisfaction, agents may mark provisional
152
- satisfaction with evidence only. Realisera must not mark or imply
153
- user-confirmed satisfaction; only the user confirms final satisfaction. If
154
- decisions are compacted, missing satisfaction state, open, provisional, or
155
- review-needed, preserve the caveat and review pressure in the cycle report
156
- instead of reconstructing hidden outcomes or claiming automation proved intent.
157
-
158
- 1. **execution_context.work_selection**: selected task or no-plan/completed-plan mode
159
- 2. **execution_context.acceptance_criteria**: exact criteria for this cycle
160
- 3. **execution_context.constraints**: plan constraints and protected-action boundaries
161
- 4. **execution_context.verification_expectations**: expected validation and latest progress evidence
162
- 5. **execution_context.artifact_update_requirements**: plan, TODO, changelog, and progress update obligations
163
- 6. **execution_context.changelog_boundary**: current public-history boundary or fallback
164
- 7. **execution_context.scope_boundary**: artifact-family scope and conservative source-file scope
165
- 8. **source_contract.capability_context**: missing state families and CLI fallback commands
166
- 9. **profile summary**: use `hej.profile`; stale or missing profile is a caveat, not approval to refresh profile state.
167
-
168
- 10. **Project discovery** (cycle 1 or when unfamiliar):
169
- - Map the directory structure
170
- - Read dependency manifests
171
- - Read README.md, CLAUDE.md, AGENTS.md if they exist
172
- - Identify build/test/lint commands
173
- - Read key source files to understand architecture
174
-
175
- 11. `git log --oneline -20` for recent changes
176
-
177
- Before proceeding, list the 3-5 facts that determine this cycle.
178
-
179
- **Exit-early stop condition (plan-driven mode only)**: If PLAN.md has `header.status: complete` and every task is complete, perform a **plan-completion sweep** before archiving. A plan with blocked, skipped, or otherwise incomplete tasks is not a successfully completed plan and must remain visible for replanning or follow-up. This stop condition does NOT apply in vision-driven mode.
180
-
181
- Sweep checklist:
182
-
183
- 1. **PROGRESS.md aggregate cycle entry**: insert a newest-first cycle entry summarizing the whole plan.
184
- 2. **CHANGELOG.md plan-level entries**: verify `## [Unreleased]` covers each completed task's user-facing impact.
185
- 3. **TODO.md milestone advance**: mark each plan task as Resolved.
186
- 4. **HEALTH.md cross-reference**: mention any resolved findings.
187
-
188
- After the sweep, archive PLAN.md to `.agentera/archive/PLAN-{date}-{slug}.yaml`, preserve lineage/evidence in the archive or next plan's `previous_plan_archived`, remove the active `.agentera/plan.yaml`, and report exit signal `complete: plan finished`.
189
-
190
- ### Step 2: Pick work
191
-
192
- Choose **one** focused increment. No backlog; decide by reasoning about the gap between vision and codebase, weighted against known issues.
193
-
194
- Each cycle: **build toward the vision, or fix something broken?** Consult the decision profile. A critical bug trumps a new feature; a minor nit doesn't block progress.
195
-
196
- **Building toward vision:** Read codebase + VISION.md, identify the gap, pick the smallest increment closing the most valuable part.
197
-
198
- **Fixing issues:** Pick from TODO.md by severity (critical > degraded > annoying).
199
-
200
- **Optimization-shaped work:** suggest ⎘ optimera for measurable metrics and
201
- wait for confirmation instead of silently delegating.
202
-
203
- Write a 1-2 sentence rationale. Scope down aggressively.
204
-
205
- Compose a Context block for this cycle: intent, constraints, unknowns, and scope. Keep it ≤80 words.
206
-
207
- **Decision gate**: After selecting work, use `agentera decisions --format json` and check whether any `exploratory` (DL3) entries in DECISIONS.md relate to the selected work area. Preserve returned `missing_fields`, `compacted`, `caveats`, and `satisfaction.review_needed` pressure in the cycle context instead of raw-reading missing historical context. If an exploratory decision is found: flag the uncertain foundation, suggest ❈ resonera to firm up the decision, and wait for confirmation before invoking it. In autonomous mode, proceed with the work but log the risk instead of silently delegating to resonera.
208
-
209
- ### Step 3: Seek inspiration
210
-
211
- Search for relevant external approaches before planning.
212
-
213
- 1. **Assess**: bug fixes rarely benefit from inspiration. New features, architecture decisions, and unfamiliar domains do.
214
- 2. **Search**: 2-3 targeted web queries for libraries, articles, repos, or patterns.
215
- 3. **Analyze**: read promising finds deeply.
216
- 4. **Integrate**: fold applicable patterns into the plan.
217
-
218
- ### Step 4: Plan
219
-
220
- Write a concrete plan: what changes in which files, expected behavior, verification approach.
221
-
222
- Read files you plan to modify before committing to the plan. If the docs-first workflow should update intent docs before tests and code, include that.
223
-
224
- Keep small enough for one agent session. Too large? Split and save the rest.
225
-
226
- ### Step 5: Dispatch
227
-
228
- **Pre-spawn Git commit**: before creating the worktree, commit any pending artifact changes so the subagent branches from current state.
229
-
230
- 1. Run `git status --porcelain`. If empty, skip to spawn.
231
- 2. Stage only the artifact files this session wrote.
232
- 3. Commit with `chore(realisera): checkpoint before worktree dispatch`.
233
- 4. If pre-commit hooks reject: fix, re-stage, retry. If retry fails, abort spawn.
234
-
235
- **Stale-base awareness**: Before spawning, run `git rev-list --count origin/main..HEAD`. If count > 0, do not merge the worktree branch. Fetch the sub-agent's diff and apply it to the main checkout.
236
-
237
- Runtime subagent mechanisms:
238
-
239
- | Runtime | Substrate | Limitation |
240
- |---------|-----------|------------|
241
- | Claude Code | Task tool with worktree-aware prompt | Native in-session spawn. |
242
- | OpenCode | `@<capability>` descriptors from `~/.config/opencode/agents/*.md` or a host Task subagent | Same working tree unless this step explicitly creates and targets a manual git worktree. |
243
- | Codex CLI | `~/.codex/agents/*.toml` descriptors plus `[agents]` limits | Agentera setup installs descriptor files; do not write legacy `[agents.<name>]` config blocks. |
244
- | Copilot CLI | User-driven `/fleet` or equivalent host action | No guaranteed programmatic in-session spawn. |
245
-
246
- Never spawn workers by running unsupported capability-name CLI commands such as `agentera realisera`; use the runtime-native subagent surface with the implementation prompt below.
247
-
248
- Spawn an implementation sub-agent in a worktree with:
249
-
250
- - The plan from step 4
251
- - Relevant context files
252
- - Clear constraint: implement the plan and nothing else
253
-
254
- ```
255
- You are implementing a focused change for [project].
256
-
257
- ## Task
258
- [The plan]
259
-
260
- ## Constraints
261
- - Implement ONLY what the plan describes. No scope creep.
262
- - Follow existing code patterns and conventions.
263
- - Read the files you are modifying before changing them.
264
- - Verify the change works as described, then run the project's test/build suite.
265
- - If you encounter a bug unrelated to your task, note it but do not fix it.
266
- ```
267
-
268
- ### Step 6: Verify
269
-
270
- Verification has two phases: structural and behavioral. Both must pass before commit.
271
-
272
- **Phase A, structural verification**: After implementation:
273
-
274
- 1. **Check the diff**: does it match the plan?
275
- 2. **Functional check**: does the changed behavior work end-to-end?
276
- 3. **Run the project's verification suite** (test/build/lint).
277
-
278
- **Phase B, behavioral verification gate**: observe the new behavior by running the project's primary entrypoint against real project state:
279
-
280
- - CLI tool: invoke with realistic arguments
281
- - Library/SDK: run a smoke driver
282
- - Web service: send a request to a production-shaped endpoint
283
- - Skill repo: `npx -y agentera verify eval skills --skill <name>`
284
-
285
- If verification fails: diagnose, spawn a fix agent, re-verify.
286
-
287
- **N/A path**: If the cycle has no runnable behavior change, use `N/A: <tag>` from the allowlist: `docs-only`, `refactor-no-behavior-change`, `chore-dep-bump`, `chore-build-config`, `test-only`.
288
-
289
- ### Step 7: Commit
290
-
291
- Once verified, commit with a conventional commit message: `type(scope): summary`.
292
-
293
- Types: `feat`, `fix`, `docs`, `refactor`, `chore`, `test`. Include all related files. Never commit partial or broken work. Never push to remote.
294
-
295
- When logging progress in the same commit, set `commit: pending` unless the product
296
- commit hash is already known. Do not amend afterward only to replace `pending` with
297
- that hash.
298
-
299
- If the current task is a version bump: read DOCS.md for the `versioning` section. Update every file in `version_files`.
300
-
301
- ### Step 8: Pre-write self-audit
302
-
303
- Pre-write self-audit: run `agentera lint --artifact <ARTIFACT> --text "<DRAFT>"` (or `--file <PATH>`; schema names such as `decisions` auto-resolve the artifact file when no input is given) on the draft entry to check verbosity overruns, abstraction creep, and filler accumulation.
304
- Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
305
-
306
- ### Step 9: Log
307
-
308
- **Dual-write**: realisera maintains the resolved PROGRESS.md YAML artifact and root CHANGELOG.md.
309
-
310
- - **TODO.md**: add newly discovered issues, mark resolved ones. Classify by severity (SI1-SI4).
311
- - **PROGRESS.md**: insert the newest cycle entry before older active cycles. The `verified` field is mandatory.
312
- - **CHANGELOG.md**: append a one-line entry under `## [Unreleased]`.
313
-
314
- After writing PROGRESS.md, apply the schema COMPACTION rules if thresholds are exceeded: keep 10 full entries, keep up to 40 one-line archive entries, and drop beyond 50 total.
315
-
316
- Artifact writing follows contract Section 24 conventions.
317
-
318
- Then stop. One cycle complete.
319
-
320
- ---
321
-
322
- ## Safety rails
323
-
324
- <critical>
325
-
326
- - NEVER push to any remote. Local commits only.
327
- - NEVER bypass the project's test/lint/build suite.
328
- - NEVER modify git config or skip git hooks.
329
- - NEVER force push, amend published commits, or run destructive git operations.
330
- - NEVER add placeholder data or functionality.
331
- - NEVER modify files outside the project directory.
332
- - NEVER modify the vision artifact during a cycle. Only touch it during a brainstorm.
333
- - One cycle per invocation. Do not attempt multiple cycles.
334
-
335
- </critical>
336
-
337
- ---
338
-
339
- ## Handling blocked work
340
-
341
- If blocked:
342
-
343
- 1. Log blocker in TODO.md with context and decision needed
344
- 2. Log skipped attempt in PROGRESS.md
345
- 3. Pick different work and complete a full cycle on that instead
346
-
347
- ---
348
-
349
- ## Exit signals
350
-
351
- Report one of these statuses at workflow completion (protocol refs: EX1-EX4).
352
-
353
- Format: `─── ⧉ realisera · <status> ───` followed by a summary sentence.
354
- For flagged, stuck, and waiting: add `▸` (VT15) bullet details below the summary.
355
-
356
- - **complete** (EX1): One full cycle completed. Work selected, implemented, verified, committed, artifacts updated.
357
- - **flagged** (EX2): Cycle completed but with notable issues: verification warnings, scope reduction, or discoveries suggesting next cycle may face blockers.
358
- - **stuck** (EX3): Cannot complete: the vision artifact is missing and brainstorm can't proceed, all work blocked, or verification suite broken.
359
- - **waiting** (EX4): No vision artifact and no codebase to infer direction, or user instruction too ambiguous.
360
-
361
- Before reporting any status, inspect the last 3 entries in PROGRESS.md. If all 3 record failed cycles, stop, log the failure pattern to TODO.md, and surface to the user. Do not attempt a 4th consecutive cycle on the same failing problem.
362
-
363
- ---
364
-
365
- ## Cross-capability integration
366
-
367
- Realisera is part of a twelve-capability suite.
368
-
369
- ### Delegates to ⛥ visionera
370
-
371
- When visionera is installed and the vision artifact doesn't exist, suggest ⛥ visionera for deep vision creation. If visionera is NOT installed, the built-in brainstorm works as a standalone fallback.
372
-
373
- ### Delegates to ⎘ optimera
374
-
375
- When picked work is optimization-shaped (improving a measurable metric), delegate to optimera.
376
-
377
- ### Uses ⬚ inspirera
378
-
379
- In Step 3 (Seek inspiration), search for external approaches. For deeper analysis, use `/agentera research <url>`.
380
-
381
- ### Reads ♾ profilera output
382
-
383
- Every cycle runs the effective profile script. Confidence thresholds (CS1-CS5) determine which entries are strong constraints vs suggestions.
384
-
385
- ### Uses ❈ resonera for complex decisions
386
-
387
- When the brainstorm or work selection surfaces a decision too complex for inline resolution, suggest ❈ resonera.
388
-
389
- ### Consumes ≡ planera plans
390
-
391
- When PLAN.md exists with pending tasks, Step 2 reads the plan instead of reasoning from vision. Pick next pending task with satisfied dependencies. Update task status. When `header.status: complete` and every task is complete, run the plan-completion sweep, archive PLAN.md before removing active state, and preserve lineage/evidence.
392
-
393
- ### Reads ▤ dokumentera output
394
-
395
- DOCS.md provides artifact path resolution. In the docs-first workflow, dokumentera writes intent docs that feed planera, which feeds realisera.
396
-
397
- ### Reads ◰ visualisera output
398
-
399
- DESIGN.md provides visual identity context respected when building user-facing features.
400
-
401
- ### Audited by ⛶ inspektera
402
-
403
- HEALTH.md findings become candidates for work selection. Run ⛶ inspektera every 5-10 cycles.