@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,214 @@
1
+ # Existing-project onboarding guide
2
+
3
+ Use this guide when EWAI is joining a codebase whose behaviour, history, or purpose is not already represented by reliable project knowledge.
4
+
5
+ Ask EWAI: “Help me set up this existing project. I'll explain what it's for, then we can decide whether to investigate the code and recover missing documentation.” You don't need to prepare an Archaeology bundle yourself. EWAI guides the setup and investigation; you supply the purpose, agree source permissions and review its conclusions. The commands below are available if you want to inspect or repeat individual steps.
6
+
7
+ ## Set up the workspace first
8
+
9
+ If this project doesn't yet have EWAI configuration, EWAI asks where to keep its SPECS knowledge and initialises that structure after you agree. Check-in follows initialization. If it is already configured, EWAI uses the existing locator; you don't need a second knowledge tree.
10
+
11
+ You provide a briefing and agree source permissions and context-import choices before an investigation. Those decisions apply whether or not you later choose Archaeology.
12
+
13
+ If premium personas will be part of the investigation, [finish licence setup and installation](operations/premium-personas-setup.md) before starting it. Core personas remain available without a premium licence.
14
+
15
+ ## The governing principle
16
+
17
+ Archaeology reconstructs what can be observed. It does not decide why the project ought to exist.
18
+
19
+ Explain what the project is meant to achieve and check EWAI's summary before deep repository analysis. Current code, abandoned experiments and accidental behaviour aren't automatically evidence of what you want the project to do.
20
+
21
+ ## Agree the briefing and permissions
22
+
23
+ EWAI asks you about:
24
+
25
+ - purpose and business context;
26
+ - primary users and desired outcomes;
27
+ - important journeys and operational responsibilities;
28
+ - known constraints and non-goals;
29
+ - what is believed to be wrong, incomplete, or obsolete;
30
+ - source material that may be examined;
31
+ - confidentiality and cloud-processing constraints;
32
+ - who can resolve disagreements between evidence and intent.
33
+
34
+ For an initialized project, you can also run check-in directly:
35
+
36
+ ```bash
37
+ ewai checkin --project .
38
+ ```
39
+
40
+ Check-in reports the dashboard link, framework version, state integrity, standards policy, validators and persona-library status. Resolve any reported blocker before beginning the investigation.
41
+
42
+ ## Register supporting context safely
43
+
44
+ If you have transcripts, emails, requirements or research, ask EWAI to register the folder with an explicit classification and processing decision. For direct registration, use:
45
+
46
+ ```bash
47
+ ewai context register /path/to/source \
48
+ --project . \
49
+ --yes \
50
+ --label "Project discovery evidence" \
51
+ --classification confidential \
52
+ --cloud-processing denied
53
+ ```
54
+
55
+ Registration does not make every statement true. When reviewing the findings, check that EWAI retains the source and distinguishes stated, proposed, agreed, implemented, superseded, contradicted, inferred and unknown material.
56
+
57
+ ## Choose whether to run Archaeology
58
+
59
+ After you've explained the project and agreed which sources can be used, EWAI offers to investigate the existing code and reconstruct missing documentation. You decide whether that would help now. Archaeology doesn't start without your acceptance.
60
+
61
+ If you decline, your briefing and permission decisions remain available. You can continue with [Guided Discovery](guided-discovery-facilitator-guide.md) and Doctor without reconstruction; the uninvestigated areas remain recorded as knowledge gaps. Context import is a separate choice, not a requirement to accept Archaeology. You can return to reconstruction later.
62
+
63
+ The reconnaissance and reconstruction sections below describe what happens if you accept Archaeology. They don't replace the briefing or privacy checks above.
64
+
65
+ ## Run bounded reconnaissance
66
+
67
+ EWAI first builds a broad map of:
68
+
69
+ - repositories, languages, frameworks, and deployable units;
70
+ - entry points, external integrations, data stores, and queues;
71
+ - high-value user and operational workflows;
72
+ - tests, schemas, documentation, and decision records;
73
+ - ownership boundaries and likely knowledge gaps;
74
+ - recent changes and historical seams worth deeper inspection.
75
+
76
+ This first pass isn't an exhaustive file-by-file summary. Review the map with EWAI to choose where deeper investigation would be useful.
77
+
78
+ EWAI uses the [Repository Source Map](repository-source-map-guide.md) during reconnaissance. To refresh it and inspect its coverage directly:
79
+
80
+ ```bash
81
+ ewai index refresh --project . --json
82
+ ewai index coverage --project . --json
83
+ ewai index files --outcome analysis_failed --project . --json
84
+ ```
85
+
86
+ Every non-excluded regular file remains visible even when EWAI has no deep parser for it. Treat `inventory_only`, `skipped_sensitive`, `skipped_oversized`, and `analysis_failed` as explicit limits on subsequent inference. Technology, stack, organisation, and project profiles may refine analysis, but they do not turn repository evidence into stakeholder truth.
87
+
88
+ For already-extracted Power Platform or Salesforce projects, review the
89
+ [platform export analysis guide](platform-export-analysis-guide.md), confirm the
90
+ appropriate technology pack rather than relying on detection alone, and inspect
91
+ the partial-platform count before drawing conclusions from Archaeology or Blast
92
+ Radius. EWAI does not extract archives or connect to vendor environments.
93
+
94
+ ## Confirm purpose alignment
95
+
96
+ Before deep reconstruction, EWAI shows how its inferred understanding compares with your briefing. Review each material difference using these classifications:
97
+
98
+ | Classification | Meaning |
99
+ | --- | --- |
100
+ | Present | The repository supports the briefing. |
101
+ | Partial | Some evidence exists, but the intended outcome is incomplete. |
102
+ | Missing | The briefing expects behaviour with no supporting evidence. |
103
+ | Conflicting | Current behaviour or history contradicts the briefing. |
104
+ | Unknown | Available evidence cannot resolve the question. |
105
+
106
+ If the code materially conflicts with the intended purpose, decide which interpretation is correct or explicitly bound what remains uncertain before continuing.
107
+
108
+ ## Select personas for investigation
109
+
110
+ After reconnaissance, EWAI proposes a small group of relevant installed personas for the next investigation passes. You review the selection and reasons before proceeding. Useful perspectives may include product, user, architecture, operations, security, data, accessibility or assurance.
111
+
112
+ Relevant project and premium personas can participate when available. EWAI shows the choice and reason; you can challenge a missing perspective. An installed persona is an analysis aid, not evidence about a real actor.
113
+
114
+ The Archaeology workflow retains a persona-routing checkpoint. Its supporting validation commands include:
115
+
116
+ ```bash
117
+ ewai archaeology prepare-personas SPECS/3.Evidence/archaeology/<bundle> --project .
118
+ ewai archaeology validate-personas SPECS/3.Evidence/archaeology/<bundle> --project .
119
+ ```
120
+
121
+ These commands operate on a prepared Archaeology bundle; they do not replace the conversational briefing and reconnaissance.
122
+
123
+ ## Deep reconstruction
124
+
125
+ The investigation uses separate, bounded passes for:
126
+
127
+ 1. observable user and business behaviour;
128
+ 2. technology and deployment topology;
129
+ 3. domain language and data relationships;
130
+ 4. decisions, constraints, and historical change;
131
+ 5. standards and recurring implementation patterns;
132
+ 6. security, privacy, operations, and failure behaviour;
133
+ 7. risks, contradictions, and unresolved questions.
134
+
135
+ Check the source paths, tests, commits, documents or human testimony cited for important conclusions. A missing source is a gap to investigate, not proof that the behaviour doesn't exist.
136
+
137
+ ## Review and curate
138
+
139
+ EWAI validates the investigation bundle and prepares findings for your review before they can become canonical SPECS knowledge. To inspect those steps directly:
140
+
141
+ ```bash
142
+ ewai archaeology validate SPECS/3.Evidence/archaeology/<bundle> --project .
143
+ ewai archaeology prepare-review SPECS/3.Evidence/archaeology/<bundle> --project .
144
+ ```
145
+
146
+ Review the proposed findings and reject, correct or narrow weak inferences. EWAI offers a guided filing walkthrough or you can review and file the material yourself. After the review, an explicit curation approval allows the following operation:
147
+
148
+ ```bash
149
+ ewai archaeology curate SPECS/3.Evidence/archaeology/<bundle> \
150
+ --project . \
151
+ --yes \
152
+ --approved-by "Project Owner"
153
+
154
+ ewai archaeology validate-completion SPECS/3.Evidence/archaeology/<bundle> --project .
155
+ ```
156
+
157
+ Approved curation puts reviewed knowledge in its canonical home. Source evidence and investigation history remain under `SPECS/3.Evidence/archaeology/`. Check the proposed destinations before approving; curation isn't permission to overwrite an existing approved record without a separate change decision.
158
+
159
+ ## Decide what happens next
160
+
161
+ Archaeology may reveal:
162
+
163
+ - an intent ready for formalisation;
164
+ - missing or stale standards;
165
+ - architecture decisions that need confirmation;
166
+ - project personas grounded in real evidence;
167
+ - technical debt with a bounded blast radius;
168
+ - an incident or risk requiring separate treatment;
169
+ - contradictions that block delivery.
170
+
171
+ After curation, EWAI offers to discuss upcoming features, interpret a roadmap you supply, or suggest changes grounded in the findings. You choose which ideas to develop. Materially different outcomes belong in separate intents; a large investigation report isn't automatically a single approved build.
172
+
173
+ When Archaeology identifies a concrete change boundary, use [Blast Radius and Impact Routing](blast-radius-and-impact-routing-guide.md) to examine its bounded repository reach, possible consequences, relevant personas, and human review routes. Keep archaeology findings and the impact assessment distinct: Archaeology reconstructs broader project knowledge, while Blast Radius evaluates a specific proposed change against the current repository map.
174
+
175
+ ## When to pause the investigation
176
+
177
+ Pause and resolve the issue with the appropriate owner if:
178
+
179
+ - source material exceeds its approved processing classification;
180
+ - credentials, secrets, or personal data appear unexpectedly;
181
+ - repository evidence and owner purpose materially disagree;
182
+ - generated findings lack traceable evidence;
183
+ - a proposed persona is based on stereotype rather than observed actors;
184
+ - curation would overwrite an existing approved record without a change decision.
185
+
186
+ ## Onboarding checklist
187
+
188
+ - [ ] Owner briefing captured before deep analysis.
189
+ - [ ] Context classification and processing permission recorded.
190
+ - [ ] Archaeology was explicitly accepted or declined.
191
+ - [ ] If accepted, the reconnaissance map was reviewed. If declined, known gaps were recorded and Discovery continued without claiming reconstruction.
192
+ - [ ] Purpose discrepancies resolved or explicitly bounded.
193
+ - [ ] Persona ensemble shown and confirmed.
194
+ - [ ] If Archaeology ran, findings cite evidence and retain uncertainty.
195
+ - [ ] If reconstruction is being curated, human review completed before that curation.
196
+ - [ ] Follow-on work split into reviewable intents.
197
+
198
+ ## Related guides
199
+
200
+ - [Guided Discovery facilitator guide](guided-discovery-facilitator-guide.md)
201
+ - [Working with personas](working-with-personas.md)
202
+ - [Repository Source Map](repository-source-map-guide.md)
203
+ - [Blast Radius and Impact Routing](blast-radius-and-impact-routing-guide.md)
204
+ - [Developer delivery guide](developer-delivery-guide.md)
205
+ - [Troubleshooting and recovery](operations/troubleshooting-and-recovery.md)
206
+
207
+ ## Current contract sources
208
+
209
+ - `README.md`
210
+ - `src/context.mjs`
211
+ - `src/archaeology.mjs`
212
+ - `src/personas.mjs`
213
+ - `tests/context.test.mjs`
214
+ - `tests/archaeology.test.mjs`
@@ -0,0 +1,26 @@
1
+ # The parts you'll use in EWAI
2
+
3
+ These terms turn up while you're working. You don't need to learn them all before [starting a project](../tutorials/first-session.md).
4
+
5
+ | Term | What it means in your work |
6
+ | --- | --- |
7
+ | Host | The AI tool you're talking to, such as Codex or Claude Code. It runs the guided conversation and supporting tools. |
8
+ | Skill | Instructions that help the host perform a particular job. You can ask naturally; you don't need to invoke every skill by name. |
9
+ | ewai-deliver | The coordinating skill for feature delivery. It brings other skills into the fourteen-stage workflow. |
10
+ | Runtime | The CLI and shared domain code that read project state, validate inputs and record permitted operations. It doesn't make a human decision for you. |
11
+ | Dashboard | A local interface to your project's work. Its loopback URL isn't a remote team workspace. |
12
+ | SPECS | Scope, Purpose, Evidence, Constraints and Strategy: readable files for project knowledge and delivery evidence. |
13
+ | Intent | One proposed outcome, with its context, boundaries and acceptance criteria. `support/export-filtered-tickets` is an example identifier, not a universal command argument. |
14
+ | Persona | An advisory perspective used to challenge a decision or find gaps. It isn't evidence of a real user's opinion or approval. |
15
+ | Source Map | A derived index of repository files and relationships. Check its coverage and the underlying source before relying on a finding. |
16
+ | Blueprint | Reviewed organisational guidance packaged for adoption by a project. It isn't required for every project. |
17
+ | Gate | A check that the required evidence and approvals exist before work progresses. A failed gate calls for a correction or decision, not a manual status edit. |
18
+ | Digest | A content fingerprint. A changed digest means the content differs; it doesn't tell you whether the change is good. |
19
+ | Receipt | A saved record of an operation, such as selecting a particular pack version. It proves what was recorded, not that a person accepted every resulting change. |
20
+ | Pack installation, selection and application | Installation makes a pack available. Selection records which approved pack the project uses. Application prepares its relevant guidance for particular work. These aren't interchangeable. |
21
+
22
+ ## Where to make a change
23
+
24
+ Change requirements and decisions through their reviewed workflows. Rebuild an index when it is stale. Don't edit a derived database to manufacture an approval or change canonical project knowledge.
25
+
26
+ The [dashboard and delivery state guide](../operations/dashboard-and-delivery-state.md) explains inspection and queued work. [Human approval and assurance](../human-approval-and-assurance-guide.md) explains who can accept which outcomes.
@@ -0,0 +1,48 @@
1
+ # How delivery moves through fourteen stages
2
+
3
+ Ask EWAI to work through a feature with you. The **ewai-deliver** skill coordinates specialist skills and follows the saved project state. The runtime checks whether the required evidence and approvals exist; people remain responsible for requirements, trade-offs, Build approval and acceptance.
4
+
5
+ The CLI command `delivery continue` tells you what can happen next. It doesn't execute an entire stage. The host uses that result to continue the conversation and work.
6
+
7
+ ## One feature through the workflow
8
+
9
+ This fictional example is a CSV export of a filtered support-ticket list. It illustrates the stages; it isn't evidence that any implementation or review has happened.
10
+
11
+ | Stage | What it means for this feature |
12
+ | --- | --- |
13
+ | 1. Ideate — conditional | Establish who needs an export and what they'll do with it, if the initial idea needs shaping. |
14
+ | 2. Intent | Agree columns, filters, permissions, excluded data and acceptance criteria. A draft can begin; the intent must be ready before this stage finishes. |
15
+ | 3. Reconcile — conditional | Check existing filtering and permissions so the export doesn't invent different rules. |
16
+ | 4. Plan | Agree implementation slices, interfaces, dependencies, test approach and stop conditions. |
17
+ | 5. Pattern Validation | Check the proposal against the application's existing patterns and accepted standards. |
18
+ | 6. Test Plan | Specify evidence for correct rows, denied access, empty data and applicable CSV safety cases. |
19
+ | 7. External Plan Validation — provider-gated | Have an eligible, configured independent reviewer challenge the plan. |
20
+ | 8. External Test Validation — provider-gated | Have an independent reviewer challenge the proposed tests. |
21
+ | 9. Build — explicit approval | Implement the approved export slices and preserve unrelated work. |
22
+ | 10. Standards Sweep | Check the completed change against the project's accepted standards. This is required even without an external reviewer. |
23
+ | 11. Test Execute | Run the planned checks and record their actual results. Preparing a test isn't passing it. |
24
+ | 12. External Code Validation — provider-gated | Obtain independent implementation review where a configured provider is available. |
25
+ | 13. Delivery | Prepare the handoff, limitations, release evidence and a walkthrough a person can perform. |
26
+ | 14. Retro — after Manual QA | Capture learning after human acceptance and route reviewed improvements into reusable knowledge. |
27
+
28
+ Ideate and Reconcile depend on the work. External-review stages are recorded as `not-supported` when no eligible independent provider is configured; that isn't a pass. The active orchestrator isn't its own independent reviewer.
29
+
30
+ ## Decisions around the numbered stages
31
+
32
+ **UI Design**, after Reconcile when interface work is in scope, lets you explore and select an interaction before Build. Prototype selection isn't acceptance of the implementation.
33
+
34
+ **Build approval**, before stage 9, authorises a defined scope. Agreeing the idea or selecting a prototype doesn't grant it.
35
+
36
+ **Fit Check**, before Build when resuming a shelved plan, tests whether the earlier plan still fits current requirements, code and constraints. If it doesn't, revise the affected work.
37
+
38
+ **Manual QA**, after Delivery and before Retro, records a named person's observations and acceptance. Automated checks don't substitute for this.
39
+
40
+ **Release** requires its own appropriate authority and evidence. A successful command or completed delivery record doesn't grant deployment permission.
41
+
42
+ ## Pause, resume or change direction
43
+
44
+ EWAI saves the intent and phase evidence in SPECS. Ask it to show what's complete, what's blocked and what decision it needs. Use the guarded resume route for shelved work; don't change a status file or database row to skip a check.
45
+
46
+ If the outcome changes materially, revisit the intent and plan. A new Build approval may be needed. If only an evidence reference needs a correction, follow the [amendment guide](../completed-phase-evidence-amendments.md), which explains the narrow permitted operations.
47
+
48
+ Try the [first-delivery tutorial](../tutorials/first-delivery.md). For exact commands and evidence contracts, use the [developer delivery guide](../developer-delivery-guide.md).
@@ -0,0 +1,139 @@
1
+ # Governance team guide
2
+
3
+ Use this guide to govern EWAI-enabled work through explicit policy, evidence, exceptions, and human accountability without becoming the delivery bottleneck for every project.
4
+
5
+ ## Govern decisions, not AI activity volume
6
+
7
+ Focus on:
8
+
9
+ - what outcomes and risks the organisation is accepting;
10
+ - which data and systems AI may access;
11
+ - how reusable standards and personas are owned;
12
+ - which delivery evidence is mandatory at each risk level;
13
+ - who can approve Build, exceptions, Manual QA, and production release;
14
+ - how incidents, changes, and learning alter the baseline.
15
+
16
+ Token counts, prompt counts, or the number of generated artefacts are weak governance measures on their own.
17
+
18
+ ## Define a minimum control model
19
+
20
+ At minimum, specify:
21
+
22
+ | Control | Governance question |
23
+ | --- | --- |
24
+ | Purpose and ownership | Is a named person accountable for the outcome? |
25
+ | Data boundary | Which classifications and sources may each AI host process? |
26
+ | Project truth | Are approved decisions and evidence retained under canonical SPECS? |
27
+ | Reusable content | Who owns Blueprints, standards, and organisation personas? |
28
+ | Validation | Which deterministic, independent, and human checks apply? |
29
+ | Exceptions | Who may approve, what controls compensate, and when does it expire? |
30
+ | Acceptance | Who performs Manual QA and what evidence is required? |
31
+ | Operations | How are changes observed, recovered, and supported? |
32
+ | Learning | How do incidents and retrospectives update the control model? |
33
+
34
+ ## Use risk tiers proportionately
35
+
36
+ Recommended practice is to scale evidence according to data sensitivity, external exposure, decision impact, reversibility, operational criticality, novelty, and regulatory context.
37
+
38
+ For each tier, define:
39
+
40
+ - mandatory standards and Blueprint modules;
41
+ - required human roles;
42
+ - independent-review expectations;
43
+ - security, privacy, accessibility, and resilience evidence;
44
+ - Manual QA depth;
45
+ - release and rollback authority;
46
+ - retention and audit periods.
47
+
48
+ Avoid treating one heavy process as appropriate for both a small reversible internal tool and a sensitive public service.
49
+
50
+ ## Review the evidence chain
51
+
52
+ For a delivery, trace:
53
+
54
+ ```text
55
+ human purpose and evidence
56
+ → approved intent and constraints
57
+ → implementation and test plan
58
+ → explicit Build approval
59
+ → task evidence and standards sweep
60
+ → configured independent review
61
+ → Delivery and Manual QA evidence
62
+ → acceptance, operation, and learning
63
+ ```
64
+
65
+ Every arrow should have a durable record or an explicit not-applicable/not-supported reason.
66
+
67
+ ## Distinguish validation types
68
+
69
+ - **Deterministic checks:** schemas, tests, static analysis, hashes, and gate contracts.
70
+ - **Independent review:** a configured provider or reviewer other than the producing orchestrator.
71
+ - **Human judgement:** applicability, trade-offs, exceptions, user acceptance, and production readiness.
72
+
73
+ One cannot silently substitute for another. In particular, unavailable independent validation is not a pass, and a persona is not an approver.
74
+
75
+ ## Govern Blueprints and personas
76
+
77
+ For shared Blueprints, require publisher ownership, versioning, compatibility, immutable releases, provenance, release notes, and deprecation. Projects must review before adoption; upstream changes must not overwrite local truth automatically.
78
+
79
+ For personas, require ownership, evidence grounding, visible provenance, advisory boundaries, review triggers, and safe retirement. Managed premium definitions remain within their entitled library and must not be copied into public governance packs.
80
+
81
+ ## Review exceptions
82
+
83
+ An exception record should identify:
84
+
85
+ - rule and exact scope;
86
+ - reason and alternatives considered;
87
+ - risk and affected people;
88
+ - compensating controls;
89
+ - approver and owner;
90
+ - start, expiry, and review dates;
91
+ - closure evidence.
92
+
93
+ Look for recurring exceptions. They may indicate an unrealistic standard, missing platform capability, inadequate training, or a genuine risk concentration.
94
+
95
+ ## Audit without relying on the dashboard alone
96
+
97
+ The dashboard is a rebuildable projection. Audit durable records:
98
+
99
+ - intent Markdown and adjacent structured state;
100
+ - delivery-state and hashed gate ledgers;
101
+ - approvals and evidence paths;
102
+ - task reports and command evidence;
103
+ - standards and external validation reports;
104
+ - Blueprint receipts and pins;
105
+ - Manual QA evidence;
106
+ - retrospectives, risks, incidents, and exceptions.
107
+
108
+ Use the operational projection to navigate, then verify the canonical files.
109
+
110
+ ## Useful governance measures
111
+
112
+ - material decisions with identified evidence and owner;
113
+ - unresolved high-risk questions at Build approval;
114
+ - exception volume, age, and recurrence;
115
+ - validation unavailability by risk tier;
116
+ - failures found in automated review, Manual QA, and production;
117
+ - time to detect and recover from incidents;
118
+ - Blueprint and persona review currency;
119
+ - learning adopted into standards or operating practice.
120
+
121
+ ## Governance review checklist
122
+
123
+ - [ ] Outcome, users, and accountable owner are clear.
124
+ - [ ] Data and AI-processing boundaries are explicit.
125
+ - [ ] Applicable standards and risk tier are recorded.
126
+ - [ ] Personas are visible, attributable, and advisory.
127
+ - [ ] Build scope has named approval.
128
+ - [ ] Tests, standards, independent review, and human QA are distinct.
129
+ - [ ] Exceptions and unavailable checks are visible.
130
+ - [ ] Operational ownership and recovery are adequate.
131
+ - [ ] Durable evidence supports the dashboard view.
132
+ - [ ] Learning has an owner and destination.
133
+
134
+ ## Related guides
135
+
136
+ - [Human approval and assurance](../human-approval-and-assurance-guide.md)
137
+ - [Organisation rollout](../organisation-rollout-guide.md)
138
+ - [Project standards authoring](../standards/project-standards-authoring.md)
139
+ - [Persona governance](../personas/persona-governance.md)