@thebackstoryis/engineering-with-ai 0.2.9

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 (334) hide show
  1. package/Docs/README.md +50 -0
  2. package/Docs/adoption/consultancy-and-multi-project-rollout.md +135 -0
  3. package/Docs/adoption/non-technical-team-guide.md +126 -0
  4. package/Docs/archaeology-technology-and-hosting-discovery.md +212 -0
  5. package/Docs/blast-radius-and-impact-routing-guide.md +325 -0
  6. package/Docs/blueprints/internal-blueprint-catalogue.md +146 -0
  7. package/Docs/blueprints/maintaining-organisation-blueprints.md +154 -0
  8. package/Docs/blueprints/validation-and-troubleshooting.md +168 -0
  9. package/Docs/cli-reference.md +113 -0
  10. package/Docs/completed-phase-evidence-amendments.md +74 -0
  11. package/Docs/consultancy-network-rollout-control-plane-guide.md +202 -0
  12. package/Docs/context-aware-delivery-companion-guide.md +198 -0
  13. package/Docs/context-aware-delivery-companion-user-guide.md +184 -0
  14. package/Docs/context-management-and-token-efficiency.md +113 -0
  15. package/Docs/design-systems/design-system-implementation-guide.md +85 -0
  16. package/Docs/design-systems/design-system-pack-authoring-guide.md +95 -0
  17. package/Docs/design-systems/design-system-review-guide.md +51 -0
  18. package/Docs/design-systems/design-system-user-guide.md +96 -0
  19. package/Docs/design-systems/product-owner-guide.md +49 -0
  20. package/Docs/designing-organisation-blueprint-packs.md +384 -0
  21. package/Docs/developer-delivery-guide.md +224 -0
  22. package/Docs/error-reporting-guide.md +110 -0
  23. package/Docs/error-reporting-provider-guide.md +49 -0
  24. package/Docs/examples/error-report-adapter.md +70 -0
  25. package/Docs/examples/meeting-review.md +76 -0
  26. package/Docs/examples/minimal-design-system.md +67 -0
  27. package/Docs/examples/prototype-review-inputs.md +175 -0
  28. package/Docs/examples/reproducible-archaeology-depth-example.md +144 -0
  29. package/Docs/examples/test-scenario-input.md +68 -0
  30. package/Docs/examples/worked-examples.md +147 -0
  31. package/Docs/existing-project-onboarding-guide.md +214 -0
  32. package/Docs/explanation/core-concepts.md +26 -0
  33. package/Docs/explanation/delivery-workflow.md +48 -0
  34. package/Docs/governance/governance-team-guide.md +139 -0
  35. package/Docs/governed-starter-project-materialisation-guide.md +284 -0
  36. package/Docs/guide-catalogue.md +117 -0
  37. package/Docs/guided-discovery-facilitator-guide.md +172 -0
  38. package/Docs/guided-intent-workspace-guide.md +109 -0
  39. package/Docs/guided-phase-evidence-drafting-guide.md +119 -0
  40. package/Docs/human-approval-and-assurance-guide.md +146 -0
  41. package/Docs/knowledge-proposals-implementer-guide.md +106 -0
  42. package/Docs/knowledge-proposals-user-guide.md +247 -0
  43. package/Docs/maintainers/context-benchmarks.md +29 -0
  44. package/Docs/maintainers/contributing.md +58 -0
  45. package/Docs/maintainers/evidence-depth-acceptance.md +72 -0
  46. package/Docs/maintainers/verification-walkthroughs.md +104 -0
  47. package/Docs/meeting-evidence-implementer-guide.md +132 -0
  48. package/Docs/meeting-evidence-user-guide.md +200 -0
  49. package/Docs/operations/dashboard-and-delivery-state.md +153 -0
  50. package/Docs/operations/dashboard-configuration.md +87 -0
  51. package/Docs/operations/installation-updating-and-entitlements.md +135 -0
  52. package/Docs/operations/premium-personas-setup.md +76 -0
  53. package/Docs/operations/troubleshooting-and-recovery.md +205 -0
  54. package/Docs/organisation-rollout-guide.md +142 -0
  55. package/Docs/persona-entitlement-provider-guide.md +199 -0
  56. package/Docs/persona-guided-prototype-iteration.md +129 -0
  57. package/Docs/personas/organisation-specific-personas.md +103 -0
  58. package/Docs/personas/persona-authoring-cookbook.md +176 -0
  59. package/Docs/personas/persona-engagement-ui.md +133 -0
  60. package/Docs/personas/persona-governance.md +118 -0
  61. package/Docs/platform-export-analysis-guide.md +336 -0
  62. package/Docs/policies/governance-owner-guide.md +36 -0
  63. package/Docs/policies/implementation-guide.md +42 -0
  64. package/Docs/policies/organisation-policy-design-gates.md +58 -0
  65. package/Docs/policies/policy-pack-authoring-guide.md +108 -0
  66. package/Docs/policies/product-owner-guide.md +43 -0
  67. package/Docs/policies/technical-owner-guide.md +37 -0
  68. package/Docs/product-owner-guide.md +327 -0
  69. package/Docs/project-portfolio-orchestration-guide.md +199 -0
  70. package/Docs/quality/manual-qa-and-acceptance.md +162 -0
  71. package/Docs/quality/persona-driven-test-scenarios.md +172 -0
  72. package/Docs/quality/reproducible-archaeology-depth-review-checklist.md +89 -0
  73. package/Docs/reference/capabilities-and-project-layout.md +678 -0
  74. package/Docs/reference/cli-and-configuration.md +398 -0
  75. package/Docs/reference/contributions-api.md +23 -0
  76. package/Docs/reference/security-adapter-authoring.md +81 -0
  77. package/Docs/reference/starter-adapter-authoring.md +74 -0
  78. package/Docs/repository-source-map-guide.md +381 -0
  79. package/Docs/reproducible-archaeology-and-discovery-depth.md +292 -0
  80. package/Docs/screen-prototype-creation-guide.md +324 -0
  81. package/Docs/security-validation-guide.md +353 -0
  82. package/Docs/solution-readiness-review-guide.md +123 -0
  83. package/Docs/standards/project-standards-authoring.md +157 -0
  84. package/Docs/team-hub-guide.md +162 -0
  85. package/Docs/team-hub-resource-registry-guide.md +167 -0
  86. package/Docs/tutorials/first-delivery.md +83 -0
  87. package/Docs/tutorials/first-session.md +62 -0
  88. package/Docs/using-lifecycle-hooks.md +381 -0
  89. package/Docs/working-with-personas.md +274 -0
  90. package/LICENSE +165 -0
  91. package/README.md +96 -0
  92. package/agents-src/claude/ewai-security-reviewer.md +15 -0
  93. package/bin/ewai +5 -0
  94. package/config/archaeology-record-families.yaml +59 -0
  95. package/config/delivery-artifacts.yaml +121 -0
  96. package/config/delivery-stages.yaml +77 -0
  97. package/config/design-system.schema.json +46 -0
  98. package/config/error-reporting.schema.json +79 -0
  99. package/config/evidence-depth.schema.json +53 -0
  100. package/config/intent.schema.json +90 -0
  101. package/config/knowledge-proposals-proposal.schema.json +34 -0
  102. package/config/lifecycle-event.schema.json +68 -0
  103. package/config/lifecycle-handler.schema.json +45 -0
  104. package/config/lifecycle-hook-ack.schema.json +19 -0
  105. package/config/meeting-evidence-candidate.schema.json +102 -0
  106. package/config/organisation-policy.schema.json +137 -0
  107. package/config/pack.schema.json +250 -0
  108. package/config/persona-pack.schema.json +21 -0
  109. package/config/persona.schema.json +17 -0
  110. package/config/policy-evaluation.schema.json +77 -0
  111. package/config/policy-facts.schema.json +140 -0
  112. package/config/portfolio.schema.json +68 -0
  113. package/config/project.schema.json +313 -0
  114. package/config/prototype-iteration.schema.json +128 -0
  115. package/config/rollout.schema.json +87 -0
  116. package/config/security-adapter.schema.json +31 -0
  117. package/config/security-scan-request.schema.json +64 -0
  118. package/config/security-scan-response.schema.json +52 -0
  119. package/config/security-validation-policy.schema.json +74 -0
  120. package/config/starter-source-acknowledgement.schema.json +13 -0
  121. package/config/starter-source-adapter.schema.json +38 -0
  122. package/config/starter-source-request.schema.json +61 -0
  123. package/package.json +77 -0
  124. package/packs/core/pack.yaml +7 -0
  125. package/packs/design-systems/default/experience-promise.md +9 -0
  126. package/packs/design-systems/default/intentional-review.md +10 -0
  127. package/packs/design-systems/default/interaction-and-entry.md +9 -0
  128. package/packs/design-systems/default/meaningful-content-and-states.md +9 -0
  129. package/packs/design-systems/default/pack.yaml +44 -0
  130. package/packs/design-systems/default/principles.md +10 -0
  131. package/packs/personas/core/pack.yaml +7 -0
  132. package/packs/personas/core/personas/archaeologist.md +37 -0
  133. package/packs/personas/core/personas/end-user.md +17 -0
  134. package/packs/personas/core/personas/maintainer.md +17 -0
  135. package/packs/personas/core/personas/operator.md +17 -0
  136. package/packs/personas/core/personas/specs-knowledge-curator.md +35 -0
  137. package/packs/technologies/laravel/pack.yaml +30 -0
  138. package/packs/technologies/laravel-nuxt/pack.yaml +30 -0
  139. package/packs/technologies/nuxt/pack.yaml +30 -0
  140. package/packs/technologies/power-platform/pack.yaml +31 -0
  141. package/packs/technologies/salesforce/pack.yaml +25 -0
  142. package/public/app.js +4896 -0
  143. package/public/apple-touch-icon.png +0 -0
  144. package/public/assets/backstory-icon.png +0 -0
  145. package/public/dashboard-navigation.js +98 -0
  146. package/public/favicon-16.png +0 -0
  147. package/public/favicon-32.png +0 -0
  148. package/public/favicon.ico +0 -0
  149. package/public/index.html +789 -0
  150. package/public/styles.css +2693 -0
  151. package/public/team-hub/app.js +202 -0
  152. package/public/team-hub/index.html +79 -0
  153. package/public/team-hub/styles.css +90 -0
  154. package/scripts/publication-check.mjs +140 -0
  155. package/scripts/setup.mjs +21 -0
  156. package/skills-src/ewai-archaeology/SKILL.md +334 -0
  157. package/skills-src/ewai-archaeology/agents/openai.yaml +4 -0
  158. package/skills-src/ewai-archaeology/references/archaeology-contract.md +201 -0
  159. package/skills-src/ewai-archaeology/references/lifecycle-reconstruction.md +177 -0
  160. package/skills-src/ewai-archaeology/references/maximum-detail-reconstruction.md +97 -0
  161. package/skills-src/ewai-archaeology/references/model-routing.md +26 -0
  162. package/skills-src/ewai-architecture/SKILL.md +108 -0
  163. package/skills-src/ewai-architecture/agents/openai.yaml +4 -0
  164. package/skills-src/ewai-architecture/references/architecture-contract.md +176 -0
  165. package/skills-src/ewai-context/SKILL.md +68 -0
  166. package/skills-src/ewai-context/agents/openai.yaml +4 -0
  167. package/skills-src/ewai-context-import/SKILL.md +118 -0
  168. package/skills-src/ewai-context-import/agents/openai.yaml +4 -0
  169. package/skills-src/ewai-context-import/references/context-import-contract.md +106 -0
  170. package/skills-src/ewai-dashboard-configuration/SKILL.md +20 -0
  171. package/skills-src/ewai-deliver/SKILL.md +122 -0
  172. package/skills-src/ewai-deliver/references/delivery-evidence.md +92 -0
  173. package/skills-src/ewai-deliver/references/phase-routing.md +31 -0
  174. package/skills-src/ewai-design-system-apply/SKILL.md +27 -0
  175. package/skills-src/ewai-design-system-apply/agents/openai.yaml +4 -0
  176. package/skills-src/ewai-design-system-apply/references/application-contract.md +36 -0
  177. package/skills-src/ewai-design-system-author/SKILL.md +28 -0
  178. package/skills-src/ewai-design-system-author/agents/openai.yaml +4 -0
  179. package/skills-src/ewai-design-system-author/references/authoring-contract.md +38 -0
  180. package/skills-src/ewai-design-system-review/SKILL.md +26 -0
  181. package/skills-src/ewai-design-system-review/agents/openai.yaml +4 -0
  182. package/skills-src/ewai-design-system-review/references/review-contract.md +40 -0
  183. package/skills-src/ewai-error-reporting/SKILL.md +46 -0
  184. package/skills-src/ewai-error-reporting/agents/openai.yaml +4 -0
  185. package/skills-src/ewai-error-reporting/references/provider-contract.md +74 -0
  186. package/skills-src/ewai-evidence-depth/SKILL.md +72 -0
  187. package/skills-src/ewai-evidence-depth/agents/openai.yaml +4 -0
  188. package/skills-src/ewai-evidence-depth/references/evidence-depth-contract.md +127 -0
  189. package/skills-src/ewai-intent/SKILL.md +68 -0
  190. package/skills-src/ewai-intent/agents/openai.yaml +4 -0
  191. package/skills-src/ewai-intent/references/intent-contract.md +42 -0
  192. package/skills-src/ewai-knowledge-proposals/SKILL.md +105 -0
  193. package/skills-src/ewai-knowledge-proposals/agents/openai.yaml +4 -0
  194. package/skills-src/ewai-knowledge-proposals/references/proposal-contract.md +59 -0
  195. package/skills-src/ewai-meeting-evidence/SKILL.md +106 -0
  196. package/skills-src/ewai-meeting-evidence/agents/openai.yaml +4 -0
  197. package/skills-src/ewai-meeting-evidence/references/candidate-contract.md +64 -0
  198. package/skills-src/ewai-organisation-policy/SKILL.md +62 -0
  199. package/skills-src/ewai-organisation-policy/agents/openai.yaml +4 -0
  200. package/skills-src/ewai-organisation-policy/references/policy-contract.md +94 -0
  201. package/skills-src/ewai-palace-housekeeping/SKILL.md +55 -0
  202. package/skills-src/ewai-palace-housekeeping/agents/openai.yaml +4 -0
  203. package/skills-src/ewai-persona-entitlement/SKILL.md +60 -0
  204. package/skills-src/ewai-persona-entitlement/agents/openai.yaml +4 -0
  205. package/skills-src/ewai-phase-evidence/SKILL.md +79 -0
  206. package/skills-src/ewai-phase-evidence/agents/openai.yaml +4 -0
  207. package/skills-src/ewai-pipeline/SKILL.md +130 -0
  208. package/skills-src/ewai-pipeline/agents/openai.yaml +4 -0
  209. package/skills-src/ewai-pipeline/references/cli.md +86 -0
  210. package/skills-src/ewai-pipeline/references/specs-contract.md +16 -0
  211. package/skills-src/ewai-portfolio/SKILL.md +70 -0
  212. package/skills-src/ewai-portfolio/agents/openai.yaml +4 -0
  213. package/skills-src/ewai-portfolio/references/portfolio-contract.md +67 -0
  214. package/skills-src/ewai-project-discovery/SKILL.md +95 -0
  215. package/skills-src/ewai-project-discovery/agents/openai.yaml +4 -0
  216. package/skills-src/ewai-project-discovery/references/discovery-contract.md +34 -0
  217. package/skills-src/ewai-prototype-iteration/SKILL.md +30 -0
  218. package/skills-src/ewai-prototype-iteration/agents/openai.yaml +4 -0
  219. package/skills-src/ewai-prototype-iteration/references/review-contract.md +49 -0
  220. package/skills-src/ewai-retro/SKILL.md +48 -0
  221. package/skills-src/ewai-retro/agents/openai.yaml +4 -0
  222. package/skills-src/ewai-retro/references/asset-routing.md +14 -0
  223. package/skills-src/ewai-rollout/SKILL.md +74 -0
  224. package/skills-src/ewai-rollout/agents/openai.yaml +4 -0
  225. package/skills-src/ewai-rollout/references/rollout-contract.md +74 -0
  226. package/skills-src/ewai-shape-intents/SKILL.md +84 -0
  227. package/skills-src/ewai-shape-intents/agents/openai.yaml +4 -0
  228. package/skills-src/ewai-shape-intents/references/intent-mapping-contract.md +109 -0
  229. package/skills-src/ewai-solution-readiness/SKILL.md +55 -0
  230. package/skills-src/ewai-solution-readiness/agents/openai.yaml +4 -0
  231. package/skills-src/ewai-standards-check/SKILL.md +93 -0
  232. package/skills-src/ewai-standards-check/agents/openai.yaml +4 -0
  233. package/skills-src/ewai-standards-check/references/report-contract.md +116 -0
  234. package/skills-src/ewai-test-scenarios/SKILL.md +94 -0
  235. package/skills-src/ewai-test-scenarios/agents/openai.yaml +4 -0
  236. package/skills-src/ewai-test-scenarios/references/scenario-contract.md +88 -0
  237. package/src/afk-worker.mjs +16 -0
  238. package/src/archaeology.mjs +1333 -0
  239. package/src/checkin.mjs +261 -0
  240. package/src/cli.mjs +2427 -0
  241. package/src/companion-guidance.mjs +257 -0
  242. package/src/companion-opening.mjs +62 -0
  243. package/src/companion.mjs +256 -0
  244. package/src/context.mjs +210 -0
  245. package/src/dashboard-preferences.mjs +80 -0
  246. package/src/delivery-artifacts.mjs +204 -0
  247. package/src/delivery-documents.mjs +248 -0
  248. package/src/delivery-gates.mjs +317 -0
  249. package/src/delivery.mjs +1433 -0
  250. package/src/design-system-application.mjs +291 -0
  251. package/src/design-system-authoring.mjs +101 -0
  252. package/src/design-systems.mjs +466 -0
  253. package/src/discovery.mjs +1314 -0
  254. package/src/error-reporting.mjs +323 -0
  255. package/src/evidence-depth.mjs +543 -0
  256. package/src/execution-state.mjs +243 -0
  257. package/src/install.mjs +166 -0
  258. package/src/intent-dependencies.mjs +117 -0
  259. package/src/intent-maps.mjs +402 -0
  260. package/src/intents.mjs +747 -0
  261. package/src/knowledge-proposals.mjs +717 -0
  262. package/src/launcher.mjs +51 -0
  263. package/src/meeting-evidence.mjs +703 -0
  264. package/src/network-rollout.mjs +386 -0
  265. package/src/organisation-blueprints.mjs +438 -0
  266. package/src/organisation-policies.mjs +448 -0
  267. package/src/packs.mjs +44 -0
  268. package/src/paths.mjs +62 -0
  269. package/src/persona-entitlements.mjs +438 -0
  270. package/src/persona-licence-config.mjs +98 -0
  271. package/src/persona-website-provider.mjs +134 -0
  272. package/src/persona-zip.mjs +87 -0
  273. package/src/personas.mjs +159 -0
  274. package/src/platform-metadata-analysis.mjs +314 -0
  275. package/src/policy-design-gates.mjs +623 -0
  276. package/src/policy-gate-integration.mjs +318 -0
  277. package/src/portfolio.mjs +509 -0
  278. package/src/power-platform-source-map.mjs +190 -0
  279. package/src/project.mjs +449 -0
  280. package/src/prototype-iterations.mjs +730 -0
  281. package/src/repository-source-map.mjs +603 -0
  282. package/src/runtime/afk-conductor.mjs +973 -0
  283. package/src/runtime/context-assembly.mjs +457 -0
  284. package/src/runtime/context-benchmarks.mjs +115 -0
  285. package/src/runtime/dashboard-actions.mjs +109 -0
  286. package/src/runtime/dashboard-handoffs.mjs +149 -0
  287. package/src/runtime/dashboard-server.mjs +1272 -0
  288. package/src/runtime/dashboard.mjs +197 -0
  289. package/src/runtime/database.mjs +789 -0
  290. package/src/runtime/error-reporting.mjs +581 -0
  291. package/src/runtime/evidence-depth-workspace.mjs +412 -0
  292. package/src/runtime/execution-leases.mjs +299 -0
  293. package/src/runtime/guided-discovery.mjs +350 -0
  294. package/src/runtime/guided-intents.mjs +517 -0
  295. package/src/runtime/impact-analysis.mjs +535 -0
  296. package/src/runtime/intents.mjs +222 -0
  297. package/src/runtime/knowledge.mjs +86 -0
  298. package/src/runtime/lifecycle-hooks.mjs +1239 -0
  299. package/src/runtime/mcp-config.mjs +110 -0
  300. package/src/runtime/mcp-server.mjs +1885 -0
  301. package/src/runtime/palace.mjs +362 -0
  302. package/src/runtime/paths.mjs +58 -0
  303. package/src/runtime/persona-engagement.mjs +255 -0
  304. package/src/runtime/phase-contributions.mjs +594 -0
  305. package/src/runtime/policy-workspace.mjs +170 -0
  306. package/src/runtime/prototype-iterations.mjs +235 -0
  307. package/src/runtime/provider-adapters.mjs +163 -0
  308. package/src/runtime/repository-index.mjs +838 -0
  309. package/src/runtime/runs.mjs +185 -0
  310. package/src/runtime/security-validation.mjs +1230 -0
  311. package/src/runtime/starter-materialisation.mjs +1155 -0
  312. package/src/runtime/team-hub-client.mjs +479 -0
  313. package/src/runtime/team-hub-database.mjs +288 -0
  314. package/src/runtime/team-hub-server.mjs +191 -0
  315. package/src/runtime/team-hub.mjs +110 -0
  316. package/src/runtime/tree-sitter-index.mjs +390 -0
  317. package/src/runtime/version.mjs +1 -0
  318. package/src/runtime/work.mjs +633 -0
  319. package/src/salesforce-source-map.mjs +212 -0
  320. package/src/security-validation-config.mjs +224 -0
  321. package/src/solution-readiness.mjs +620 -0
  322. package/src/starter-materialisation-contract.mjs +407 -0
  323. package/src/task-graph.mjs +544 -0
  324. package/src/team-hub-resources.mjs +239 -0
  325. package/src/team-hub.mjs +242 -0
  326. package/src/test-scenarios.mjs +622 -0
  327. package/src/validation-config.mjs +289 -0
  328. package/templates/SPECS/1.Scope/personas/registry.yaml +12 -0
  329. package/templates/SPECS/5.Strategy/patterns/context-packet.md +119 -0
  330. package/templates/SPECS/6.Build/_tracker-template.md +16 -0
  331. package/templates/SPECS/pipeline.yaml +62 -0
  332. package/templates/discovery-answers.yaml +86 -0
  333. package/templates/intent-body.md +21 -0
  334. package/tests/fixtures/context-benchmarks.json +9 -0
@@ -0,0 +1,177 @@
1
+ # SPECS lifecycle reconstruction
2
+
3
+ Use this reference during a deep whole-project dig to reconstruct the durable project knowledge EWAI would normally have captured while the system was conceived, designed, built, validated, operated, and improved.
4
+
5
+ ## Reconstruction principle
6
+
7
+ Work capability by capability, then reconcile across the whole system. For each material capability, inspect every SPECS area and every applicable delivery stage. Do not treat an empty area as implicitly complete: record it as not applicable, blocked, or a visible knowledge gap.
8
+
9
+ Reconstruct records under the archaeology bundle first:
10
+
11
+ ```text
12
+ SPECS/3.Evidence/archaeology/<date>-<slug>/
13
+ ├── specs-reconstruction-ledger.yaml
14
+ ├── capability-catalog.yaml
15
+ ├── archaeology-artifact-manifest.yaml
16
+ └── proposals/
17
+ └── SPECS/
18
+ ├── 1.Scope/
19
+ ├── 2.Purpose/
20
+ ├── 3.Evidence/
21
+ ├── 4.Constraints/
22
+ ├── 5.Strategy/
23
+ └── 6.Build/
24
+ ```
25
+
26
+ The proposals tree mirrors the canonical destination. Promote reviewed records into the project SPECS without losing the archaeology provenance link.
27
+
28
+ ## SPECS reconstruction matrix
29
+
30
+ ### 1.Scope — what the system contains and touches
31
+
32
+ Attempt to reconstruct:
33
+
34
+ - system context, boundaries, repositories, runtime surfaces, actors, external systems, and ownership;
35
+ - domain glossary, entities, relationships, bounded contexts, lifecycle states, and invariants;
36
+ - personas grounded in actual roles or research, clearly separated from inferred actors;
37
+ - API, event, command, integration, and data-contract inventories;
38
+ - research, source material, templates, and inter-team handoffs visible in the record.
39
+
40
+ Typical evidence includes routes, schemas, models, interfaces, UI labels, integration adapters, ownership files, tickets, transcripts, and recurring terminology.
41
+
42
+ ### 2.Purpose — why capabilities exist and what outcomes they serve
43
+
44
+ Attempt to reconstruct:
45
+
46
+ - project and capability intents;
47
+ - user, operator, administrator, support, and failure-recovery journeys;
48
+ - functional and non-functional requirements, including those encoded only in tests;
49
+ - acceptance criteria, success measures, non-goals, dependencies, and open decisions;
50
+ - explorations and discussions that materially changed scope or behavior.
51
+
52
+ Implementation can establish observable behavior, not business approval. Mark inferred purpose and retrospective acceptance criteria for human confirmation.
53
+
54
+ ### 3.Evidence — what supports, challenges, or explains the knowledge
55
+
56
+ Attempt to reconstruct:
57
+
58
+ - evidence ledgers, test-derived behavior, validation outcomes, and gate evidence;
59
+ - a project security review and code-quality review, with material findings split into individual risks, constraints, technical-debt entries, patterns, decisions, or remediation candidates;
60
+ - incidents, regressions, postmortem signals, risks, technical debt, and unresolved contradictions;
61
+ - iteration history, delivery evidence, manual-validation evidence, and operational observations;
62
+ - retrospectives and lessons suggested by later fixes, reversals, or repeated mistakes;
63
+ - compliance-applicability candidates awaiting qualified review.
64
+
65
+ Absence of evidence is itself a recorded gap; never convert it into a passed gate.
66
+
67
+ ### 4.Constraints — rules the project appears required to obey
68
+
69
+ Attempt to reconstruct:
70
+
71
+ - engineering, architecture, security, privacy, accessibility, data, testing, and operational constraints;
72
+ - organisation or tenant isolation, identifier, validation, response, audit, retention, and deployment rules;
73
+ - external obligations and compliance constraints only when supported by an authoritative source and qualified owner;
74
+ - exceptions, compensating controls, expiry or review dates, and observed violations.
75
+
76
+ A repeated implementation convention is a candidate constraint or pattern, not automatically a binding standard.
77
+
78
+ ### 5.Strategy — how and why the system takes its current shape
79
+
80
+ Attempt to reconstruct:
81
+
82
+ - system context, runtime topology, component boundaries, data architecture, integration architecture, and technology stack;
83
+ - architectural and implementation patterns, anti-patterns, checklists, and reusable conventions;
84
+ - ADRs for material architectural, product, security, data, delivery, and operational decisions;
85
+ - option records showing alternatives genuinely evidenced as considered, evaluation criteria, trade-offs, and the selected outcome;
86
+ - SOPs, runbooks, recovery procedures, maintenance practices, and context capsules.
87
+
88
+ For a reconstructed ADR, separate:
89
+
90
+ 1. the decision outcome observed in live code;
91
+ 2. the historical context supported by evidence;
92
+ 3. alternatives demonstrably considered in commits, PRs, issues, docs, or testimony;
93
+ 4. plausible alternatives that still need confirmation;
94
+ 5. consequences observed later;
95
+ 6. current status: active, superseded, drifted, partial, or unknown.
96
+
97
+ Never say an option was considered merely because it would have been reasonable.
98
+
99
+ ### 6.Build — how individual capabilities appear to have been delivered
100
+
101
+ Attempt to reconstruct, where evidence survives:
102
+
103
+ - intent trackers and phase history;
104
+ - design and prototype references;
105
+ - implementation and test plans;
106
+ - task graphs, dependencies, sequence, handoffs, approvals, and blockers;
107
+ - standards sweeps, test execution, external review, delivery, manual QA, and retrospective outcomes;
108
+ - links between commits, releases, migrations, incidents, and the capability they changed.
109
+
110
+ Mark reconstructed build records as historical. Do not create a false active run, claim a gate passed without evidence, or fabricate plans that never existed.
111
+
112
+ ## Fourteen-stage lifecycle pass
113
+
114
+ For each reconstructed intent, look for evidence of the configured EWAI stages:
115
+
116
+ 1. ideate;
117
+ 2. intent;
118
+ 3. reconcile;
119
+ 4. plan;
120
+ 5. pattern-validation;
121
+ 6. test-plan;
122
+ 7. validate-external-plan;
123
+ 8. validate-external-test-plan;
124
+ 9. build;
125
+ 10. standards-sweep;
126
+ 11. test-execute;
127
+ 12. validate-external-code;
128
+ 13. delivery;
129
+ 14. retro.
130
+
131
+ Also inspect conditional UI design, fit-check, and manual-QA evidence. Record each stage as evidenced, partial, absent, not applicable, or unknown. Provider-gated validation is evidenced only when a real provider result survives; never infer it from code quality or a commit message.
132
+
133
+ ## Reconstruction ledger
134
+
135
+ Give each candidate record an entry in `specs-reconstruction-ledger.yaml`:
136
+
137
+ ```yaml
138
+ - id: REC-001
139
+ capability: Alert escalation
140
+ specs_area: 5.Strategy
141
+ record_type: adr
142
+ proposed_path: SPECS/5.Strategy/decisions/ADR-REC-alert-escalation.md
143
+ lifecycle_stages: [reconcile, plan, build, delivery]
144
+ reconstruction_state: proposed-observed
145
+ temporal_window:
146
+ first_evidence: 2024-02-10
147
+ last_confirmed: 2025-11-03
148
+ evidence: [ARC-021, ARC-034]
149
+ unknowns:
150
+ - Whether polling was formally compared with event-driven delivery.
151
+ review_owner: Technical owner
152
+ review_status: pending
153
+ ```
154
+
155
+ Use these reconstruction states:
156
+
157
+ - `existing-aligned`: a canonical record exists and agrees with current evidence;
158
+ - `existing-drifted`: a canonical record exists but conflicts with current evidence;
159
+ - `proposed-observed`: the candidate record describes directly observable or corroborated facts;
160
+ - `proposed-inferred`: material purpose, rationale, chronology, or relationship still needs confirmation;
161
+ - `blocked`: evidence or a qualified reviewer is unavailable;
162
+ - `not-applicable`: the record type genuinely does not apply to this capability.
163
+
164
+ ## Completion check
165
+
166
+ A deep whole-project reconstruction is not complete until:
167
+
168
+ - every material capability has been checked against all six SPECS areas;
169
+ - every reconstructed intent has a fourteen-stage lifecycle assessment;
170
+ - architecture, patterns, ADRs, options, workflows, requirements, constraints, evidence, delivery history, and learning are present or have an explicit gap status;
171
+ - proposed records link to evidence and retain uncertainty;
172
+ - cross-capability records have been consolidated without erasing meaningful differences;
173
+ - accountable reviewers have accepted, corrected, rejected, or explicitly deferred promotion.
174
+
175
+ After curation, keep reconstructed historical records and remediation work separate from prospective work. Always make the explicit three-route prospective offer: interview the owner, ingest a roadmap/feature list/discovery folder, or generate EWAI's evidence-based recommendations. Record the choice or explicit decline in `future-work-transition.yaml`. Existing remediation intents do not satisfy this gate. Offer to turn user-supplied upcoming features, reviewed imported discovery material, or accepted AI recommendations into lightweight feature candidates. Promote a candidate to a full intent only after it meets the intent contract and the user approves it.
176
+
177
+ Completeness means maximum-detail accounting and individual record production, not invented documentation and not an arbitrary target number of files. A small set of composite drafts is not complete accounting.
@@ -0,0 +1,97 @@
1
+ # Maximum-detail SPECS reconstruction
2
+
3
+ Read this completely before producing Archaeology proposals. Its purpose is to prevent a broad analysis from being mistaken for a recreated project knowledge base.
4
+
5
+ ## Required outcome
6
+
7
+ Recreate the maximum amount of detailed SPECS knowledge reasonably discernible from the available evidence. Produce the records EWAI would have accumulated while the project was discovered, designed, built, tested, delivered, operated, corrected, and improved.
8
+
9
+ The output is not an executive summary, assessment, representative sample, awareness pack, or fixed quota. The target is every individually discernible record. More evidence should normally produce more records.
10
+
11
+ ## Enumerate capabilities first
12
+
13
+ Create `capability-catalog.yaml` with schema `ewai.archaeology-capability-catalog/v1` before reconstructing records. Discover capabilities from:
14
+
15
+ - user-visible routes, screens, navigation, commands, and APIs;
16
+ - controllers, services, use cases, jobs, events, listeners, notifications, and workflows;
17
+ - models, state machines, schemas, migrations, relationships, and lifecycle transitions;
18
+ - administrative, operational, support, reporting, billing, security, and recovery functions;
19
+ - integrations, providers, webhooks, protocols, imports, exports, scheduled work, and reconciliation;
20
+ - tests, fixtures, feature flags, hidden routes, deleted documentation, branches, incidents, and historical commits.
21
+
22
+ Do not merge capabilities merely because they share a controller, screen, service, or domain. Preserve different user outcomes, workflows, rules, risks, and decision histories.
23
+
24
+ Each capability entry requires an identifier, substantive description, actors, entry points, dependencies, evidence references, first and latest observed dates where available, and current state.
25
+
26
+ ## Build the target inventory
27
+
28
+ Create `archaeology-artifact-manifest.yaml` with:
29
+
30
+ ```yaml
31
+ schema: ewai.archaeology-artifact-manifest/v1
32
+ depth: maximum-discoverable-detail
33
+ records:
34
+ - id: ART-0001
35
+ subject: alert-delivery
36
+ family: purpose.workflows
37
+ record_type: workflow
38
+ title: Multi-channel alert dispatch
39
+ status: created
40
+ proposed_path: proposals/SPECS/2.Purpose/journeys/alert-delivery/multi-channel-dispatch.md
41
+ evidence: [ARC-001, ARC-014]
42
+ review_owner: Product owner
43
+ ```
44
+
45
+ Use `subject: project` for cross-cutting records. Use a capability identifier for capability-local records.
46
+
47
+ The packaged `config/archaeology-record-families.yaml` and `ewai archaeology validate` command define the minimum families to account for. They are a floor, not a ceiling. Add multiple manifest rows whenever the evidence reveals multiple personas, intents, workflows, journeys, risks, requirements, constraints, patterns, ADRs, options, integrations, runbooks, incidents, or build histories in the same family.
48
+
49
+ ## Preserve record granularity
50
+
51
+ Create an individual proposed file for each discernible record:
52
+
53
+ - one project persona per materially different actor perspective;
54
+ - one intent per independently valuable outcome or capability;
55
+ - one workflow or journey per distinct route through the system, including exception and recovery paths;
56
+ - one risk entry per risk with its own cause, impact, control, owner, and treatment;
57
+ - one ADR per decision with distinct context, outcome, alternatives, and consequences;
58
+ - one option record per actual decision space or trade-off;
59
+ - one pattern per reusable observed convention;
60
+ - one integration record per external system, boundary, protocol, ownership, failure, retry, reconciliation, and security contract;
61
+ - one runbook per operational procedure, failure scenario, recovery activity, or maintenance responsibility;
62
+ - one historical Build record per discernible intent or delivery episode.
63
+
64
+ Create indexes, catalogs, registers, maps, ledgers, and analysis dossiers to navigate these records. They do not replace the underlying files and do not satisfy their manifest rows.
65
+
66
+ Do not reuse one proposed path for multiple manifest rows. Do not place several unrelated ADRs, personas, workflows, risks, or runbooks into a composite draft to reduce output.
67
+
68
+ ## Account for the complete SPECS surface
69
+
70
+ For every material capability, account for:
71
+
72
+ - Scope: domain language, actors/personas, boundaries, interfaces, APIs, events, commands, data, and integrations;
73
+ - Purpose: intent, workflows, journeys, functional and non-functional requirements, acceptance criteria, outcomes, and non-goals;
74
+ - Evidence: tests, risks, incidents, operational evidence, technical debt, validation, contradictions, and learning;
75
+ - Constraints: engineering, architecture, security, privacy, data, accessibility, testing, compliance, and operational rules;
76
+ - Strategy: architecture, stack, patterns, anti-patterns, ADRs, decisions, options, SOPs, runbooks, observability, recovery, and continuity;
77
+ - Build: prototypes, plans, tasks, dependencies, gates, tests, reviews, releases, deployment, manual QA, retrospectives, and iteration history.
78
+
79
+ For the project as a whole, additionally populate the domain and system context, persona library, integration catalog, API/event/command catalog, journey and requirement indexes, risk register, test coverage, security review, code-quality review, incident catalog, technical-debt catalog, standards, architecture set, pattern library, ADR index, options register, SOP and runbook indexes, observability, recovery, deployment history, and lifecycle reconstruction.
80
+
81
+ ## Use exception states honestly
82
+
83
+ Allowed terminal states are:
84
+
85
+ - `created`: an individual detailed proposal exists and cites evidence;
86
+ - `not-applicable`: investigation evidence and a substantive rationale show the family genuinely does not apply;
87
+ - `blocked`: a named owner or unavailable evidence prevents reconstruction and a concrete next action is recorded.
88
+
89
+ Do not use `not-applicable` because evidence was not inspected, time is short, the output would be large, or a dossier mentions the subject. Do not use `blocked` for ordinary uncertainty that can be represented in a detailed draft.
90
+
91
+ ## Validate before review
92
+
93
+ Run the maximum-detail validator after all passes. It checks the required catalogs and ledgers, every capability/family combination, project-wide families, individual proposal paths, evidence references, artefact substance, and exception-state justification.
94
+
95
+ Validation passing means `Investigation ready for review`; it does not mean Archaeology is complete. After review, promote accepted records throughout canonical SPECS, retain rejected and unresolved material with provenance, update indexes, and rerun consistency checks.
96
+
97
+ Offer self-review/manual filing or an AI-guided walkthrough. Automatic curation requires explicit consent and must never overwrite a differing canonical record. After curation, prospective recommendations and feature candidates may be created from the accepted baseline, but they remain distinct from reconstructed historical records and become intents only with user approval.
@@ -0,0 +1,26 @@
1
+ # Archaeology model routing
2
+
3
+ Read this before delegating a security or trust review. Keep model selection bounded to that pass; the user may continue the main Archaeology conversation with their chosen model.
4
+
5
+ ## Claude Code
6
+
7
+ For the security and trust pass, invoke the installed `ewai-security-reviewer` subagent. Its definition sets `model: opus`, read-only tools, and `permissionMode: plan`. When invoking it dynamically, keep the per-invocation model set to `opus`; do not use `inherit`. The `opus` alias intentionally resolves through Claude Code's current model configuration, so a future EWAI release can change this policy without pinning every project to a dated model identifier.
8
+
9
+ Use a defensive, read-only task description. State that the purpose is to document observable controls, gaps, risks, and test evidence in software the user is authorised to assess. Request no credential discovery, exploitation, persistence, evasion, destructive action, or access outside the agreed repository.
10
+
11
+ If Opus is unavailable or returns a provider policy refusal:
12
+
13
+ 1. preserve its transcript and any completed evidence;
14
+ 2. retry the bounded pass once with per-invocation model `sonnet` and the same defensive scope;
15
+ 3. do not weaken safety wording, disguise the task, or repeatedly retry a refusal;
16
+ 4. if Sonnet also refuses or is unavailable, mark the security-review coverage surface and manifest records `blocked`, name the project owner as the validation owner, record the provider responses, and set the next action to an authorised manual or alternative-provider defensive review.
17
+
18
+ Do not mark the security review complete based on a partial or refused pass. Continue unrelated Archaeology passes and preserve their completed results.
19
+
20
+ ## Other providers
21
+
22
+ Use the strongest available model explicitly approved for defensive code review in that provider's project configuration. If no suitable model is configured, keep the security pass visible as blocked rather than silently substituting an unapproved external validator.
23
+
24
+ ## Evidence
25
+
26
+ Record the provider, requested model alias or identifier, resolved model when visible, pass start and finish time, outcome, refusal or fallback reason, examined boundary, and evidence IDs. Model choice is operational evidence, not proof of review quality or security assurance.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: ewai-architecture
3
+ description: Facilitate an evidence-led enterprise or solution architecture walkthrough and turn reviewed choices into project-local SPECS standards, patterns, ADRs, risks, options, diagrams, and architecture records. Use for a whole enterprise or solution, a bounded aspect, capability, or domain, one or more intents, or a cross-cutting concern such as data, integration, security, resilience, observability, identity, or deployment—especially when current state, target state, trade-offs, or technical direction need accountable human decisions before delivery.
4
+ ---
5
+
6
+ # EWAI Architecture
7
+
8
+ Shape architecture as a human-owned body of project knowledge, not as a one-off AI diagram. Separate what is **observed**, what is **proposed**, and what has been explicitly **accepted**. Architecture work changes no application code and never begins Build.
9
+
10
+ Resolve the workspace and `specsRoot` from `.ewai-pipeline/project.json`. Read [the architecture contract](references/architecture-contract.md) completely before producing, reviewing, or filing records.
11
+
12
+ ## Establish the boundary
13
+
14
+ Ask one question at a time. First establish:
15
+
16
+ - whether the boundary is the whole enterprise or solution, a bounded aspect, capability, or domain, one or more intents, or a cross-cutting concern;
17
+ - whether the user needs current-state understanding, a target state, a current-to-target transition, or a specific decision;
18
+ - the business outcome, decision horizon, accountable owner, material constraints, and what is deliberately out of scope.
19
+
20
+ For an existing system, read accepted SPECS, reviewed Archaeology or Context Import evidence, relevant code and tests, diagrams, configuration, runtime evidence, and Git history before asking the owner to repeat known facts. For a new system without confirmed purpose, hand off to `$ewai-project-discovery` first. A technology-stack choice is an architecture input, not a substitute for the architecture walkthrough.
21
+
22
+ ## Route useful personas
23
+
24
+ Run `ewai persona index --project <path> --json` and query for enterprise and solution architecture, business capability, domain and data, integration, security, operations, resilience, and governance perspectives.
25
+
26
+ - Prefer the installed premium `enterprise-architect` persona when access and installation make it available.
27
+ - Select only the additional installed personas that materially improve the bounded review.
28
+ - Explain the proposed ensemble and perspective gaps before using it.
29
+ - Ask before synchronising or updating a premium library.
30
+ - Never recreate, paraphrase, or simulate an unlicensed premium persona.
31
+ - Treat personas as advisory lenses. Repository evidence and accountable humans outrank persona opinion.
32
+
33
+ Record the selection and rationale in `persona-routing.yaml` inside the review bundle.
34
+
35
+ ## Build an evidence-led view
36
+
37
+ Create a bundle at:
38
+
39
+ ```text
40
+ SPECS/3.Evidence/architecture/<YYYY-MM-DD>-<scope-slug>/
41
+ ├── scope.yaml
42
+ ├── evidence-ledger.yaml
43
+ ├── viewpoint-matrix.yaml
44
+ ├── persona-routing.yaml
45
+ ├── current-state.md
46
+ ├── target-state.md
47
+ ├── transition-and-gaps.md
48
+ ├── open-questions.md
49
+ ├── review-ledger.yaml
50
+ └── proposals/SPECS/
51
+ ```
52
+
53
+ Tailor the work to the boundary, but explicitly assess the applicability of every contract viewpoint: business and capability, domain and information, application and service, integration, technology and deployment, security and trust, operations and resilience, and governance and evolution.
54
+
55
+ For every material claim, record its source, classification, confidence, contradiction, and owner. Code can prove current implementation but not intended business policy. Do not describe an option as historically considered unless evidence or attributed testimony says it was.
56
+
57
+ ## Develop the architecture conversationally
58
+
59
+ Explain discoveries in human language. Ask one focused question at a time, preferably one that resolves several linked records without conflating different decisions. Use the walkthrough to surface:
60
+
61
+ - capabilities, boundaries, ownership, dependencies, and quality attributes;
62
+ - domain concepts, information ownership, lifecycle, residency, and classification;
63
+ - application responsibilities, service contracts, coupling, reuse, and buy/build choices;
64
+ - integrations, protocols, trust boundaries, failure handling, and reconciliation;
65
+ - technology, environments, deployment topology, scalability, portability, and lifecycle;
66
+ - identity, authorization, privacy, threat assumptions, audit, and assurance;
67
+ - availability, recovery, observability, support, change, incident, and capacity practices;
68
+ - governance, principles, exceptions, roadmaps, deprecation, and decision review triggers.
69
+
70
+ Record alternatives and trade-offs before recommending a direction. A recommendation remains proposed until an accountable person accepts it.
71
+
72
+ ## Produce individual SPECS proposals
73
+
74
+ Mirror proposed destinations under `proposals/SPECS/`. Produce one individual record for each discernible ADR, option, standard, pattern, anti-pattern, risk, integration, architecture view, transition, runbook, or governance rule. Indexes and summaries help navigation but never replace the detailed records.
75
+
76
+ Use the project’s SPECS form inside each record: Scope, Purpose, Evidence, Constraints, and Strategy. Give every diagram a text source such as Mermaid or PlantUML plus an accessible narrative; a rendered image alone is not durable architecture knowledge.
77
+
78
+ Candidate binding rules stay proposed. Only reviewed architecture constraints and standards belong under `SPECS/4.Constraints/`; accepted architectural direction, views, patterns, options, decisions, and roadmaps belong under `SPECS/5.Strategy/architecture/` or the project’s existing more-specific Strategy folders.
79
+
80
+ ## Review and promote deliberately
81
+
82
+ Offer either self-review/manual filing or an AI-guided walkthrough. For the guided route, present small coherent groups and let the user accept, correct, reject, or defer each proposal. Do not infer approval from silence, agreement with a summary, or acceptance of a related record.
83
+
84
+ Before promotion:
85
+
86
+ 1. validate the proposal bundle against the architecture contract;
87
+ 2. show every canonical destination and conflict;
88
+ 3. require explicit approval for the records being filed;
89
+ 4. refuse to overwrite differing canonical knowledge without a resolved correction or supersession decision;
90
+ 5. copy only accepted records out of `proposals/SPECS/`;
91
+ 6. record destination, provenance, decision, owner, and timestamp in `review-ledger.yaml`;
92
+ 7. update applicable standards, decision, pattern, risk, and architecture indexes.
93
+
94
+ When accepted architecture reveals delivery work, offer `$ewai-shape-intents` or `$ewai-intent`. Obtain separate approval before creating intents, and do not start their delivery automatically.
95
+
96
+ ## Coordinate with the EWAI lifecycle
97
+
98
+ - **Discovery:** use this skill after purpose and material stack choices are understood, or to resolve them when they require a deeper architecture decision.
99
+ - **Archaeology:** consume reviewed reconstructed current-state evidence; use this skill for accountable target-state and transition decisions rather than relabelling inference as accepted design.
100
+ - **Delivery:** when an intent exposes an unresolved consequential architectural choice, pause the relevant Think phase, run this bounded walkthrough, file accepted records, then resume `$ewai-deliver` at the same phase.
101
+ - **Standards Check:** use `$ewai-standards-check` later to validate implementation against accepted standards, patterns, ADRs, and constraints.
102
+ - **Retro:** route accepted learning back into the architecture records and their review triggers.
103
+
104
+ ## Completion boundary
105
+
106
+ The walkthrough is complete when the agreed boundary and viewpoints have evidence-backed current state, explicit target decisions or owned unknowns, individually reviewable proposals, a recorded human disposition, and a visible transition path where applicable.
107
+
108
+ Do not write implementation code, silently make an architecture decision, or mark a delivery gate passed. Never begin Build.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "EWAI Architecture"
3
+ short_description: "Shape solution architecture into SPECS"
4
+ default_prompt: "Use $ewai-architecture to walk through this solution architecture and prepare reviewable SPECS records."
@@ -0,0 +1,176 @@
1
+ # EWAI Architecture Contract
2
+
3
+ Use this contract to validate an architecture walkthrough and its SPECS proposals. It applies at enterprise, solution, capability, domain, intent, and cross-cutting-concern scope. Applicability may vary; silent omission is not allowed.
4
+
5
+ ## 1. Scope record
6
+
7
+ `scope.yaml` must record:
8
+
9
+ ```yaml
10
+ schema: ewai.architecture-scope/v1
11
+ id: architecture-<date>-<slug>
12
+ title: Human-readable title
13
+ scope_type: enterprise | solution | capability | domain | intent | cross-cutting
14
+ mode: current | target | current-to-target | decision
15
+ scope_refs: []
16
+ business_outcome: ""
17
+ decision_horizon: ""
18
+ accountable_owner: ""
19
+ included: []
20
+ excluded: []
21
+ constraints_known: []
22
+ status: proposed | in-review | reviewed
23
+ ```
24
+
25
+ If the scope changes materially, update it and disclose which records need reassessment.
26
+
27
+ ## 2. Truth classifications
28
+
29
+ Every material claim in `evidence-ledger.yaml` has an ID and exactly one classification:
30
+
31
+ - `observed`: directly supported by a cited artefact, runtime observation, or attributed testimony;
32
+ - `inferred`: the best explanation of evidence, but not confirmed intent;
33
+ - `proposed`: a future choice, recommendation, standard, pattern, or target;
34
+ - `accepted`: explicitly approved by the named accountable owner;
35
+ - `rejected`: explicitly declined;
36
+ - `superseded`: once valid but replaced by a cited later decision;
37
+ - `contradicted`: credible sources disagree;
38
+ - `unknown`: evidence is not currently sufficient.
39
+
40
+ Each claim records source locations, capture date, confidence, contradictions, affected records, and validation owner. A file path without a relevant section, symbol, commit, test, or quoted human attribution is weak evidence. Repeated code is not automatically an accepted pattern.
41
+
42
+ ## 3. Architecture viewpoints
43
+
44
+ Record each viewpoint as `applicable`, `not-applicable`, `unknown`, or `deferred`, with rationale and owner in `viewpoint-matrix.yaml`.
45
+
46
+ ### Business and capability
47
+
48
+ Cover outcomes, capabilities, value streams, users and stakeholders, ownership, dependencies, organisational boundaries, service levels, and business change. Candidate outputs include capability maps, context views, principles, ownership decisions, and outcome measures.
49
+
50
+ ### Domain and information
51
+
52
+ Cover bounded contexts, ubiquitous language, information ownership, authoritative sources, data movement, lifecycle, quality, classification, residency, retention, deletion, lineage, reporting, and analytics. Candidate outputs include domain models, data architecture, classification standards, lifecycle rules, and ADRs.
53
+
54
+ ### Application and service
55
+
56
+ Cover application responsibilities, service boundaries, interfaces, shared capabilities, coupling, cohesion, state, workflows, buy/build/reuse, versioning, and retirement. Candidate outputs include system context, container/component views, service contracts, patterns, anti-patterns, and decisions.
57
+
58
+ ### Integration
59
+
60
+ Cover internal and external systems, protocols, schemas, identity propagation, trust boundaries, synchronous/asynchronous choices, ordering, idempotency, retries, timeouts, reconciliation, rate limits, ownership, observability, and failure handling. Candidate outputs include an integration catalogue, sequence/data-flow diagrams, integration standards, ADRs, and runbooks.
61
+
62
+ ### Technology and deployment
63
+
64
+ Cover languages, frameworks, runtimes, platforms, data stores, environments, topology, networking, tenancy, configuration, secrets, build and release, portability, scaling, cost, support status, licensing, end-of-life, and technology lifecycle. Candidate outputs include stack strategy, deployment views, technology standards, lifecycle risks, and options.
65
+
66
+ ### Security and trust
67
+
68
+ Cover identity, authentication, authorization, least privilege, tenancy, threat assumptions, attack surfaces, data protection, encryption, secrets, audit, supply chain, privacy, abuse, incident response, and assurance ownership. Candidate outputs include trust-boundary diagrams, risks, constraints, controls, security ADRs, and verification requirements. This is architecture analysis, not penetration testing, legal advice, certification, or a compliance attestation.
69
+
70
+ ### Operations and resilience
71
+
72
+ Cover availability, capacity, performance, failure modes, backup, recovery objectives, disaster recovery, observability, alerting, support ownership, deployments, rollback, maintenance, incidents, continuity, and operational readiness. Candidate outputs include quality-attribute scenarios, SLO proposals, runbooks, recovery architecture, observability standards, risks, and readiness criteria.
73
+
74
+ ### Governance and evolution
75
+
76
+ Cover architecture principles, decision rights, standards ownership, exceptions, fitness functions, conformance, technical debt, roadmaps, transition states, migration, deprecation, review triggers, and learning. Candidate outputs include governance records, exception processes, transition roadmaps, decision and standards indexes, and fitness functions.
77
+
78
+ ## 4. Current state, target state, and transition
79
+
80
+ Current state contains only observed facts and clearly labelled inferences. Target state contains proposed or accepted decisions, never retrospective claims about existing behaviour. `transition-and-gaps.md` maps each material gap to:
81
+
82
+ - current evidence;
83
+ - desired outcome or target decision;
84
+ - affected capability and quality attribute;
85
+ - dependency and sequencing;
86
+ - risk of change and risk of no change;
87
+ - migration, coexistence, rollback, and decommissioning considerations;
88
+ - verification evidence and accountable owner;
89
+ - related intent or explicitly unplanned work.
90
+
91
+ A target-state diagram without a transition path is incomplete when a current system exists.
92
+
93
+ ## 5. Evidence ledger and review ledger
94
+
95
+ The evidence ledger must make it possible to trace a proposal back to evidence and a canonical record back to its approval. `review-ledger.yaml` records, per individual proposal:
96
+
97
+ ```yaml
98
+ - proposal: proposals/SPECS/5.Strategy/decisions/ADR-0001-example.md
99
+ disposition: accepted | accepted-with-corrections | rejected | deferred
100
+ owner: ""
101
+ decided_at: ""
102
+ rationale: ""
103
+ canonical_destination: ""
104
+ conflicts: []
105
+ supersedes: []
106
+ ```
107
+
108
+ One answer may resolve several proposals only when the skill lists them first and confirms that the same decision genuinely applies to each. Clarification is not approval.
109
+
110
+ ## 6. Individual proposal contract
111
+
112
+ Create one individual record per material decision, standard, pattern, risk, integration, view, or runbook. Composite reports and indexes cannot satisfy this requirement.
113
+
114
+ Every proposal contains the SPECS headings:
115
+
116
+ - **Scope:** boundary, applicability, owners, related capabilities and records;
117
+ - **Purpose:** outcome, problem, or quality attribute served;
118
+ - **Evidence:** claims and citations, confidence, contradictions, validation approach;
119
+ - **Constraints:** binding inputs, limits, obligations, non-goals, and exceptions;
120
+ - **Strategy:** proposal, alternatives, trade-offs, consequences, transition, and review triggers.
121
+
122
+ ### ADR minimums
123
+
124
+ An ADR additionally records proposed/accepted/superseded status, context, decision drivers, options actually considered, decision, positive and negative consequences, validation, and revisit triggers. Do not invent historical alternatives.
125
+
126
+ ### Standard minimums
127
+
128
+ A standard additionally records normative language, applicability, rationale, examples, enforcement or fitness functions, evidence expected, exception authority, and review cadence.
129
+
130
+ ### Pattern minimums
131
+
132
+ A pattern additionally records problem/context, forces, solution, consequences, implementation guidance, known uses supported by evidence, anti-patterns, tests or conformance checks, and exceptions.
133
+
134
+ ### Integration minimums
135
+
136
+ An integration record additionally covers owners, systems, purpose, direction, protocol, schema/contract, identity and trust, data classification, availability, retries/timeouts/idempotency, reconciliation, rate limits, observability, failure modes, test strategy, change/versioning, and support runbook.
137
+
138
+ ### Risk minimums
139
+
140
+ A risk additionally records cause, event, impact, likelihood, severity, affected assets/capabilities, current controls, proposed treatment, owner, evidence, review date, and residual risk decision.
141
+
142
+ ## 7. Diagram contract
143
+
144
+ Every diagram has an editable text source, preferably Mermaid or PlantUML, stored beside or inside its record. It also has an accessible narrative explaining actors, boundaries, flows, trust transitions, and important omissions. Rendered images are derived evidence, never the sole source.
145
+
146
+ Use the smallest views that answer the decision. A single enormous system diagram is not a substitute for context, container/service, integration/data-flow, deployment, trust-boundary, and transition views when those are applicable.
147
+
148
+ ## 8. SPECS routing
149
+
150
+ Use the project’s existing taxonomy when it is more specific. Otherwise route proposals as follows:
151
+
152
+ | Record | Proposed destination |
153
+ |---|---|
154
+ | Context, capabilities, actors, domain language, system boundaries | `SPECS/1.Scope/` |
155
+ | Outcomes, journeys, workflows, requirements, intent relationships | `SPECS/2.Purpose/` |
156
+ | Evidence ledger, assessments, risk, quality-attribute evidence | `SPECS/3.Evidence/` |
157
+ | Binding architecture, security, data, integration, operational, or engineering standards | `SPECS/4.Constraints/` |
158
+ | Architecture views, stack, patterns, options, roadmaps, ADRs, governance, runbooks | `SPECS/5.Strategy/architecture/` or the established Strategy subfolder |
159
+
160
+ Update relevant standards, ADR, pattern, integration, risk, and architecture indexes when promoting accepted records. Never overwrite a differing canonical record without explicit correction or supersession.
161
+
162
+ ## 9. Completion checks
163
+
164
+ Before review, confirm:
165
+
166
+ - scope, mode, owner, and exclusions are explicit;
167
+ - every viewpoint has a status and rationale;
168
+ - current state and target state are not conflated;
169
+ - material claims have evidence classifications and owners;
170
+ - each material proposal has its own record;
171
+ - options and trade-offs precede recommendations;
172
+ - every diagram has text source and narrative;
173
+ - open questions and contradictions remain visible;
174
+ - risks, operations, security, integration, governance, and transition have not been silently skipped.
175
+
176
+ Before promotion, confirm explicit record-level decisions, canonical destination preflight, conflict handling, provenance, and index updates. Promotion does not approve an intent, pass a delivery phase, or authorize Build.