mirai-graph 1.4.0 → 2.1.0

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 (561) hide show
  1. package/cli.js +6 -0
  2. package/index.js +1 -0
  3. package/package.json +9 -122
  4. package/.github/workflows/ci.yml +0 -48
  5. package/.github/workflows/mirai-graph-validate.yml +0 -30
  6. package/CHANGELOG.md +0 -724
  7. package/CITATION.cff +0 -21
  8. package/LICENSE +0 -21
  9. package/LICENSE-DOCS +0 -26
  10. package/README.md +0 -368
  11. package/ROADMAP.md +0 -241
  12. package/benchmarks/protocols/measure-convert-optimize.md +0 -131
  13. package/benchmarks/synthetic-context-reduction-v0/README.md +0 -70
  14. package/benchmarks/synthetic-context-reduction-v0/RESULT.md +0 -52
  15. package/benchmarks/synthetic-context-reduction-v0/expected/context-pack-compact.md +0 -31
  16. package/benchmarks/synthetic-context-reduction-v0/gates/results.json +0 -12
  17. package/benchmarks/synthetic-context-reduction-v0/graph/objects.json +0 -114
  18. package/benchmarks/synthetic-context-reduction-v0/graph/relations.json +0 -74
  19. package/benchmarks/synthetic-context-reduction-v0/graph.json +0 -37
  20. package/benchmarks/synthetic-context-reduction-v0/metrics/example-metrics.json +0 -22
  21. package/benchmarks/synthetic-context-reduction-v0/results/baseline-comparison-result.json +0 -42
  22. package/benchmarks/synthetic-context-reduction-v0/results/context-pack.json +0 -181
  23. package/benchmarks/synthetic-context-reduction-v0/results/context-reduction-result.json +0 -8
  24. package/benchmarks/synthetic-context-reduction-v0/results/profile-conformance-result.json +0 -28
  25. package/benchmarks/synthetic-context-reduction-v0/results/readiness-score.json +0 -24
  26. package/benchmarks/synthetic-context-reduction-v0/reviews/semantic-completeness-review.json +0 -78
  27. package/benchmarks/synthetic-context-reduction-v0/scripts/calculate-context-reduction.js +0 -42
  28. package/benchmarks/synthetic-context-reduction-v0/source-corpus/audit-events.md +0 -8
  29. package/benchmarks/synthetic-context-reduction-v0/source-corpus/content-workflow.md +0 -8
  30. package/benchmarks/synthetic-context-reduction-v0/source-corpus/identity-access.md +0 -8
  31. package/benchmarks/synthetic-context-reduction-v0/source-corpus/notification-delivery.md +0 -8
  32. package/benchmarks/synthetic-context-reduction-v0/tasks/tasks.json +0 -31
  33. package/docs/README.md +0 -130
  34. package/docs/adoption/adopter-kit.md +0 -187
  35. package/docs/adoption/ai-employee-graph.md +0 -151
  36. package/docs/adoption/character-layer.md +0 -196
  37. package/docs/adoption/choose-profile.md +0 -106
  38. package/docs/adoption/cli.md +0 -134
  39. package/docs/adoption/connect-project-15-minutes.md +0 -122
  40. package/docs/adoption/developer-integration-guide.md +0 -122
  41. package/docs/adoption/end-to-end-control-loop.md +0 -168
  42. package/docs/adoption/for-developers.md +0 -210
  43. package/docs/adoption/getting-started.md +0 -192
  44. package/docs/adoption/mirai-graph-transition.md +0 -67
  45. package/docs/adoption/profile-conformance-fixtures.md +0 -112
  46. package/docs/adoption/seed-to-validated-package.md +0 -121
  47. package/docs/concept.md +0 -109
  48. package/docs/repository-purpose.md +0 -422
  49. package/docs/research/ai-work-field-instrumentation-bridge.md +0 -126
  50. package/docs/research/baseline-comparison-protocol.md +0 -79
  51. package/docs/research/evidence-package-v0.1.md +0 -99
  52. package/docs/research/evidence-package-v0.2.md +0 -150
  53. package/docs/research/evidence-package-v0.3.md +0 -256
  54. package/docs/research/independent-implementation-pilot-plan.md +0 -74
  55. package/docs/research/limitations-and-threats.md +0 -40
  56. package/docs/research/practice-science-program.md +0 -232
  57. package/docs/research/scientific-evidence-package.md +0 -188
  58. package/docs/research/semantic-completeness-review-protocol.md +0 -70
  59. package/docs/terminology.md +0 -119
  60. package/docs/transfer/ai-employee-profile-proposal.md +0 -119
  61. package/docs/transfer/federation-routing-control-loop-2026-05-31.md +0 -28
  62. package/docs/transfer/graph-capability-map-2026-05-29.md +0 -126
  63. package/docs/transfer/graph-skill-to-mirai-graph.md +0 -128
  64. package/docs/transfer/project-management-standard-harvest-2026-06-02.md +0 -322
  65. package/docs/transfer/skill-graph-standard-harvest-2026-05-31.md +0 -113
  66. package/docs/transfer/standard-gap-report-2026-05-28.md +0 -208
  67. package/examples/ai-employee-minimal/README.md +0 -53
  68. package/examples/ai-employee-minimal/gates/results.json +0 -35
  69. package/examples/ai-employee-minimal/graph/objects.json +0 -187
  70. package/examples/ai-employee-minimal/graph/relations.json +0 -167
  71. package/examples/ai-employee-minimal/graph.json +0 -37
  72. package/examples/ai-employee-minimal/results/profile-conformance-result.json +0 -28
  73. package/examples/character-layer-integration-minimal/README.md +0 -25
  74. package/examples/character-layer-integration-minimal/results/character-layer-integration.json +0 -53
  75. package/examples/character-layer-minimal/README.md +0 -29
  76. package/examples/character-layer-minimal/gates/results.json +0 -57
  77. package/examples/character-layer-minimal/graph/objects.json +0 -165
  78. package/examples/character-layer-minimal/graph/relations.json +0 -178
  79. package/examples/character-layer-minimal/graph.json +0 -37
  80. package/examples/character-layer-readiness-1-0/README.md +0 -27
  81. package/examples/character-layer-readiness-1-0/results/character-layer-readiness.json +0 -90
  82. package/examples/dynamic-episode-minimal/README.md +0 -34
  83. package/examples/dynamic-episode-minimal/gates/results.json +0 -12
  84. package/examples/dynamic-episode-minimal/graph/objects.json +0 -92
  85. package/examples/dynamic-episode-minimal/graph/relations.json +0 -29
  86. package/examples/dynamic-episode-minimal/graph.json +0 -47
  87. package/examples/dynamic-episode-minimal/invalid-canonical-write-allowed.json +0 -40
  88. package/examples/dynamic-episode-minimal/invalid-evidence-as-authorization.json +0 -46
  89. package/examples/dynamic-episode-minimal/invalid-missing-event.json +0 -35
  90. package/examples/dynamic-episode-minimal/invalid-missing-selected-path.json +0 -40
  91. package/examples/dynamic-episode-minimal/invalid-unclassified-finding.json +0 -50
  92. package/examples/dynamic-episode-minimal/results/dynamic-episode-trace.json +0 -149
  93. package/examples/executable-technology-course/README.md +0 -16
  94. package/examples/executable-technology-course/technology.json +0 -99
  95. package/examples/federation-routing-smoke/README.md +0 -19
  96. package/examples/federation-routing-smoke/federation-health-dashboard.json +0 -42
  97. package/examples/federation-routing-smoke/route-explanation.json +0 -32
  98. package/examples/federation-routing-smoke/route-regression-result.json +0 -35
  99. package/examples/federation-routing-smoke/routes/production-deploy-execution-evidence.json +0 -17
  100. package/examples/federation-routing-smoke/routes/production-deploy-route-result.json +0 -12
  101. package/examples/federation-routing-smoke/routes/production-deploy-runtime-preflight.json +0 -8
  102. package/examples/federation-routing-smoke/routes/production-deploy-stderr.txt +0 -1
  103. package/examples/federation-routing-smoke/routes/production-deploy-stdout.txt +0 -1
  104. package/examples/federation-routing-smoke/routes/search-page-execution-evidence.json +0 -17
  105. package/examples/federation-routing-smoke/routes/search-page-route-result.json +0 -12
  106. package/examples/federation-routing-smoke/routes/search-page-stderr.txt +0 -1
  107. package/examples/federation-routing-smoke/routes/search-page-stdout.txt +0 -1
  108. package/examples/federation-routing-smoke/routing-fixture-run.json +0 -66
  109. package/examples/federation-routing-smoke/routing-fixtures.json +0 -44
  110. package/examples/goal-vector-quality-control-minimal/README.md +0 -22
  111. package/examples/goal-vector-quality-control-minimal/gates/results.json +0 -22
  112. package/examples/goal-vector-quality-control-minimal/graph/objects.json +0 -56
  113. package/examples/goal-vector-quality-control-minimal/graph/relations.json +0 -29
  114. package/examples/goal-vector-quality-control-minimal/graph.json +0 -41
  115. package/examples/goal-vector-quality-control-minimal/invalid-complete-without-evidence.json +0 -77
  116. package/examples/goal-vector-quality-control-minimal/invalid-correction-without-route.json +0 -86
  117. package/examples/goal-vector-quality-control-minimal/invalid-missing-reverse-audit.json +0 -77
  118. package/examples/goal-vector-quality-control-minimal/invalid-missing-vector-link.json +0 -62
  119. package/examples/goal-vector-quality-control-minimal/invalid-tests-as-acceptance.json +0 -72
  120. package/examples/goal-vector-quality-control-minimal/results/goal-vector-quality-control.json +0 -130
  121. package/examples/graph-dna-alignment-minimal/README.md +0 -16
  122. package/examples/graph-dna-alignment-minimal/graph/objects.json +0 -38
  123. package/examples/graph-dna-alignment-minimal/graph/relations.json +0 -20
  124. package/examples/graph-dna-alignment-minimal/graph.json +0 -37
  125. package/examples/graph-dna-alignment-minimal/results/graph-dna-alignment.json +0 -32
  126. package/examples/graph-seed-minimal/README.md +0 -9
  127. package/examples/graph-seed-minimal/graph-embryo.json +0 -63
  128. package/examples/graph-seed-minimal/graph-seed.json +0 -60
  129. package/examples/implementation-control-cycles/README.md +0 -47
  130. package/examples/implementation-control-cycles/gates/results.json +0 -22
  131. package/examples/implementation-control-cycles/graph/objects.json +0 -119
  132. package/examples/implementation-control-cycles/graph/relations.json +0 -200
  133. package/examples/implementation-control-cycles/graph.json +0 -37
  134. package/examples/implementation-control-cycles/results/implementation-control-cycles.json +0 -456
  135. package/examples/implementation-control-minimal/README.md +0 -39
  136. package/examples/implementation-control-minimal/gates/results.json +0 -42
  137. package/examples/implementation-control-minimal/graph/objects.json +0 -128
  138. package/examples/implementation-control-minimal/graph/relations.json +0 -128
  139. package/examples/implementation-control-minimal/graph.json +0 -37
  140. package/examples/implementation-control-minimal/results/implementation-control-loop.json +0 -21
  141. package/examples/instrumentation-layer-minimal/README.md +0 -32
  142. package/examples/instrumentation-layer-minimal/gates/results.json +0 -11
  143. package/examples/instrumentation-layer-minimal/graph/objects.json +0 -74
  144. package/examples/instrumentation-layer-minimal/graph/relations.json +0 -56
  145. package/examples/instrumentation-layer-minimal/graph.json +0 -37
  146. package/examples/instrumentation-layer-minimal/invalid-cockpit-missing-gates.json +0 -40
  147. package/examples/instrumentation-layer-minimal/invalid-feedback-accepted-with-blocking.json +0 -38
  148. package/examples/instrumentation-layer-minimal/invalid-feedback-process-improvement-without-kaizen.json +0 -38
  149. package/examples/instrumentation-layer-minimal/invalid-traceability-missing-evidence.json +0 -43
  150. package/examples/instrumentation-layer-minimal/results/development-cockpit.json +0 -68
  151. package/examples/instrumentation-layer-minimal/results/feature-implementation-traceability.json +0 -56
  152. package/examples/instrumentation-layer-minimal/results/multi-source-quality-feedback.json +0 -72
  153. package/examples/invalid-character-layer-context-authorization/graph/objects.json +0 -22
  154. package/examples/invalid-character-layer-context-authorization/graph/relations.json +0 -1
  155. package/examples/invalid-character-layer-context-authorization/graph.json +0 -35
  156. package/examples/invalid-character-layer-correction-loop-no-review/graph/objects.json +0 -22
  157. package/examples/invalid-character-layer-correction-loop-no-review/graph/relations.json +0 -1
  158. package/examples/invalid-character-layer-correction-loop-no-review/graph.json +0 -35
  159. package/examples/invalid-character-layer-feedback-auto-update/graph/objects.json +0 -22
  160. package/examples/invalid-character-layer-feedback-auto-update/graph/relations.json +0 -1
  161. package/examples/invalid-character-layer-feedback-auto-update/graph.json +0 -35
  162. package/examples/invalid-character-layer-object-kind/graph/objects.json +0 -22
  163. package/examples/invalid-character-layer-object-kind/graph/relations.json +0 -1
  164. package/examples/invalid-character-layer-object-kind/graph.json +0 -35
  165. package/examples/invalid-character-layer-relation-direction/graph/objects.json +0 -33
  166. package/examples/invalid-character-layer-relation-direction/graph/relations.json +0 -13
  167. package/examples/invalid-character-layer-relation-direction/graph.json +0 -35
  168. package/examples/invalid-character-layer-relation-type/graph/objects.json +0 -33
  169. package/examples/invalid-character-layer-relation-type/graph/relations.json +0 -13
  170. package/examples/invalid-character-layer-relation-type/graph.json +0 -35
  171. package/examples/invalid-character-layer-role-permission/graph/objects.json +0 -22
  172. package/examples/invalid-character-layer-role-permission/graph/relations.json +0 -1
  173. package/examples/invalid-character-layer-role-permission/graph.json +0 -35
  174. package/examples/invalid-context-pack-missing-explanation/context-pack.json +0 -25
  175. package/examples/invalid-missing-relation-target/graph/objects.json +0 -11
  176. package/examples/invalid-missing-relation-target/graph/relations.json +0 -11
  177. package/examples/invalid-missing-relation-target/graph.json +0 -32
  178. package/examples/invalid-profile-object-kind/graph/objects.json +0 -20
  179. package/examples/invalid-profile-object-kind/graph/relations.json +0 -1
  180. package/examples/invalid-profile-object-kind/graph.json +0 -32
  181. package/examples/invalid-profile-relation-type/graph/objects.json +0 -29
  182. package/examples/invalid-profile-relation-type/graph/relations.json +0 -11
  183. package/examples/invalid-profile-relation-type/graph.json +0 -32
  184. package/examples/invalid-relation-id-mismatch/graph/objects.json +0 -29
  185. package/examples/invalid-relation-id-mismatch/graph/relations.json +0 -11
  186. package/examples/invalid-relation-id-mismatch/graph.json +0 -32
  187. package/examples/invalid-seed-unsafe-write/graph-seed.json +0 -27
  188. package/examples/invalid-societal-governance-auto-learning-update/graph/objects.json +0 -29
  189. package/examples/invalid-societal-governance-auto-learning-update/graph/relations.json +0 -11
  190. package/examples/invalid-societal-governance-auto-learning-update/graph.json +0 -35
  191. package/examples/invalid-societal-governance-avatar-no-consent/graph/objects.json +0 -29
  192. package/examples/invalid-societal-governance-avatar-no-consent/graph/relations.json +0 -11
  193. package/examples/invalid-societal-governance-avatar-no-consent/graph.json +0 -35
  194. package/examples/invalid-societal-governance-generated-context-authorization/graph/objects.json +0 -38
  195. package/examples/invalid-societal-governance-generated-context-authorization/graph/relations.json +0 -20
  196. package/examples/invalid-societal-governance-generated-context-authorization/graph.json +0 -35
  197. package/examples/invalid-societal-governance-missing-appeal-path/graph/objects.json +0 -29
  198. package/examples/invalid-societal-governance-missing-appeal-path/graph/relations.json +0 -11
  199. package/examples/invalid-societal-governance-missing-appeal-path/graph.json +0 -35
  200. package/examples/invalid-societal-governance-private-trace-exposed/graph/objects.json +0 -29
  201. package/examples/invalid-societal-governance-private-trace-exposed/graph/relations.json +0 -11
  202. package/examples/invalid-societal-governance-private-trace-exposed/graph.json +0 -35
  203. package/examples/invalid-societal-governance-rights-overridden/graph/objects.json +0 -29
  204. package/examples/invalid-societal-governance-rights-overridden/graph/relations.json +0 -11
  205. package/examples/invalid-societal-governance-rights-overridden/graph.json +0 -35
  206. package/examples/launch-record-minimal/README.md +0 -29
  207. package/examples/launch-record-minimal/gates/results.json +0 -12
  208. package/examples/launch-record-minimal/graph/objects.json +0 -47
  209. package/examples/launch-record-minimal/graph/relations.json +0 -38
  210. package/examples/launch-record-minimal/graph.json +0 -34
  211. package/examples/launch-record-minimal/results/launch-record.json +0 -51
  212. package/examples/managed-project-control-loop/README.md +0 -43
  213. package/examples/managed-project-control-loop/gates/results.json +0 -22
  214. package/examples/managed-project-control-loop/graph/objects.json +0 -119
  215. package/examples/managed-project-control-loop/graph/relations.json +0 -110
  216. package/examples/managed-project-control-loop/graph.json +0 -37
  217. package/examples/managed-project-control-loop/results/managed-loop-result.json +0 -21
  218. package/examples/minimal-graph/README.md +0 -15
  219. package/examples/minimal-graph/gates/results.json +0 -12
  220. package/examples/minimal-graph/graph/objects.json +0 -24
  221. package/examples/minimal-graph/graph/relations.json +0 -11
  222. package/examples/minimal-graph/graph.json +0 -37
  223. package/examples/minimal-graph/results/profile-conformance-result.json +0 -26
  224. package/examples/model-portability-minimal/README.md +0 -15
  225. package/examples/model-portability-minimal/results/model-portability-evidence.json +0 -55
  226. package/examples/organization-governance-minimal/README.md +0 -29
  227. package/examples/organization-governance-minimal/gates/results.json +0 -21
  228. package/examples/organization-governance-minimal/graph/objects.json +0 -147
  229. package/examples/organization-governance-minimal/graph/relations.json +0 -147
  230. package/examples/organization-governance-minimal/graph.json +0 -37
  231. package/examples/organization-governance-minimal/results/profile-conformance-result.json +0 -31
  232. package/examples/process-control-contract-minimal/README.md +0 -19
  233. package/examples/process-control-contract-minimal/graph/objects.json +0 -38
  234. package/examples/process-control-contract-minimal/graph/relations.json +0 -29
  235. package/examples/process-control-contract-minimal/graph.json +0 -34
  236. package/examples/process-control-contract-minimal/results/process-control-contract.json +0 -58
  237. package/examples/process-transition-minimal/README.md +0 -25
  238. package/examples/process-transition-minimal/invalid-missing-launch-record.json +0 -14
  239. package/examples/process-transition-minimal/invalid-ready-to-written.json +0 -14
  240. package/examples/process-transition-minimal/invalid-release-missing-evidence.json +0 -14
  241. package/examples/process-transition-minimal/invalid-sync-to-update.json +0 -14
  242. package/examples/process-transition-minimal/invalid-terminal-missing-kaizen.json +0 -14
  243. package/examples/process-transition-minimal/invalid-tests-to-approved.json +0 -14
  244. package/examples/process-transition-minimal/results/transition-explanation-invalid-ready-to-written.json +0 -35
  245. package/examples/process-transition-minimal/results/transition-explanation-valid.json +0 -34
  246. package/examples/process-transition-minimal/state-machine.json +0 -79
  247. package/examples/process-transition-minimal/transition-request-skip-kaizen.json +0 -14
  248. package/examples/process-transition-minimal/transition-request.json +0 -14
  249. package/examples/project-technology-context-traversal/README.md +0 -17
  250. package/examples/project-technology-context-traversal/graph/objects.json +0 -78
  251. package/examples/project-technology-context-traversal/graph/relations.json +0 -47
  252. package/examples/project-technology-context-traversal/graph.json +0 -30
  253. package/examples/project-technology-context-traversal/selection.example.json +0 -29
  254. package/examples/project-technology-context-traversal/sources/announcement.md +0 -3
  255. package/examples/project-technology-context-traversal/sources/release-guide.md +0 -3
  256. package/examples/project-technology-context-traversal/sources/release-smoke.md +0 -3
  257. package/examples/project-technology-context-traversal/sources/rollback-policy.md +0 -3
  258. package/examples/risk-and-coordination-minimal/README.md +0 -16
  259. package/examples/risk-and-coordination-minimal/graph/objects.json +0 -47
  260. package/examples/risk-and-coordination-minimal/graph/relations.json +0 -29
  261. package/examples/risk-and-coordination-minimal/graph.json +0 -37
  262. package/examples/risk-and-coordination-minimal/results/multi-agent-coordination.json +0 -25
  263. package/examples/risk-and-coordination-minimal/results/risk-control-matrix.json +0 -34
  264. package/examples/self-service-onboarding/bootstrap-proposal/bootstrap-proposal.json +0 -20
  265. package/examples/self-service-onboarding/existing-graph/README.md +0 -4
  266. package/examples/self-service-onboarding/existing-graph/gates/results.json +0 -11
  267. package/examples/self-service-onboarding/existing-graph/graph/objects.json +0 -11
  268. package/examples/self-service-onboarding/existing-graph/graph/relations.json +0 -1
  269. package/examples/self-service-onboarding/existing-graph/graph.json +0 -36
  270. package/examples/self-service-onboarding/no-graph/README.md +0 -6
  271. package/examples/self-service-onboarding/no-graph/package.json +0 -6
  272. package/examples/self-service-onboarding/no-graph/src/index.js +0 -3
  273. package/examples/self-service-onboarding/stale-graph/README.md +0 -4
  274. package/examples/self-service-onboarding/stale-graph/graph.json +0 -36
  275. package/examples/semantic-intent-resolution-minimal/README.md +0 -13
  276. package/examples/semantic-intent-resolution-minimal/invalid-low-confidence-executes.json +0 -26
  277. package/examples/semantic-intent-resolution-minimal/invalid-proposal-canonical-update.json +0 -27
  278. package/examples/semantic-intent-resolution-minimal/results/semantic-intent-resolution.json +0 -45
  279. package/examples/skill-runtime-minimal/README.md +0 -29
  280. package/examples/skill-runtime-minimal/gates/results.json +0 -35
  281. package/examples/skill-runtime-minimal/graph/objects.json +0 -209
  282. package/examples/skill-runtime-minimal/graph/relations.json +0 -178
  283. package/examples/skill-runtime-minimal/graph.json +0 -37
  284. package/examples/skill-runtime-minimal/results/profile-conformance-result.json +0 -27
  285. package/examples/societal-governance-minimal/README.md +0 -37
  286. package/examples/societal-governance-minimal/graph/objects.json +0 -218
  287. package/examples/societal-governance-minimal/graph/relations.json +0 -209
  288. package/examples/societal-governance-minimal/graph.json +0 -37
  289. package/examples/source-boundary-minimal/README.md +0 -16
  290. package/examples/source-boundary-minimal/graph/objects.json +0 -38
  291. package/examples/source-boundary-minimal/graph/relations.json +0 -20
  292. package/examples/source-boundary-minimal/graph.json +0 -37
  293. package/examples/source-boundary-minimal/results/source-boundary-contract.json +0 -37
  294. package/examples/technology-quality-feedback-minimal/README.md +0 -33
  295. package/examples/technology-quality-feedback-minimal/graph/objects.json +0 -56
  296. package/examples/technology-quality-feedback-minimal/graph/relations.json +0 -47
  297. package/examples/technology-quality-feedback-minimal/graph.json +0 -34
  298. package/examples/technology-quality-feedback-minimal/invalid-accepted-with-blocking.json +0 -33
  299. package/examples/technology-quality-feedback-minimal/invalid-evidence-as-authorization.json +0 -22
  300. package/examples/technology-quality-feedback-minimal/invalid-missing-required-step.json +0 -22
  301. package/examples/technology-quality-feedback-minimal/invalid-process-improvement-without-kaizen.json +0 -33
  302. package/examples/technology-quality-feedback-minimal/invalid-spec-gap-without-route.json +0 -33
  303. package/examples/technology-quality-feedback-minimal/invalid-unclassified-finding.json +0 -33
  304. package/examples/technology-quality-feedback-minimal/results/technology-quality-feedback.json +0 -80
  305. package/examples/work-recovery-minimal/README.md +0 -15
  306. package/examples/work-recovery-minimal/graph/objects.json +0 -47
  307. package/examples/work-recovery-minimal/graph/relations.json +0 -20
  308. package/examples/work-recovery-minimal/graph.json +0 -37
  309. package/examples/work-recovery-minimal/results/recovery-resume-record.json +0 -17
  310. package/examples/work-recovery-minimal/results/work-state-machine.json +0 -21
  311. package/packages/cli/adopter-workflow.js +0 -228
  312. package/packages/cli/context-pack.js +0 -269
  313. package/packages/cli/graph-manifest.js +0 -367
  314. package/packages/cli/instrumentation-report.js +0 -97
  315. package/packages/cli/migrate-graph-manifest.js +0 -33
  316. package/packages/cli/mirai-graph.js +0 -154
  317. package/packages/cli/mirai_graph.js +0 -3
  318. package/packages/cli/playground-demo.js +0 -114
  319. package/packages/cli/project-technology.js +0 -141
  320. package/packages/cli/readiness-score.js +0 -164
  321. package/packages/cli/release-state.js +0 -329
  322. package/packages/cli/seed-preview.js +0 -78
  323. package/packages/cli/self-service-onboarding.js +0 -386
  324. package/packages/cli/validate-adopter-workflow.js +0 -63
  325. package/packages/cli/validate-artifact-releases.js +0 -282
  326. package/packages/cli/validate-baseline-comparison.js +0 -105
  327. package/packages/cli/validate-context-traversal.js +0 -292
  328. package/packages/cli/validate-graph-manifest-migration.js +0 -64
  329. package/packages/cli/validate-mirai-graph.js +0 -3245
  330. package/packages/cli/validate-process-transition-report.js +0 -105
  331. package/packages/cli/validate-profile-results.js +0 -64
  332. package/packages/cli/validate-project-continuity.js +0 -173
  333. package/packages/cli/validate-project-technology.js +0 -296
  334. package/packages/cli/validate-release-state.js +0 -100
  335. package/packages/cli/validate-routing-control-examples.js +0 -79
  336. package/packages/cli/validate-self-service-onboarding.js +0 -159
  337. package/packages/cli/validate-technology-course.js +0 -81
  338. package/packages/project-technology/artifact-release.js +0 -738
  339. package/packages/project-technology/context-traversal.js +0 -684
  340. package/packages/project-technology/continuity.js +0 -414
  341. package/packages/project-technology/index.js +0 -841
  342. package/packages/project-technology/technology-course.js +0 -282
  343. package/pilots/independent-implementation-001-conference-planning/README.md +0 -40
  344. package/pilots/independent-implementation-001-conference-planning/gates/results.json +0 -12
  345. package/pilots/independent-implementation-001-conference-planning/graph/objects.json +0 -74
  346. package/pilots/independent-implementation-001-conference-planning/graph/relations.json +0 -56
  347. package/pilots/independent-implementation-001-conference-planning/graph-seed.json +0 -65
  348. package/pilots/independent-implementation-001-conference-planning/graph.json +0 -37
  349. package/pilots/independent-implementation-001-conference-planning/reports/pilot-report.md +0 -120
  350. package/pilots/independent-implementation-001-conference-planning/results/context-pack.json +0 -35
  351. package/pilots/independent-implementation-001-conference-planning/results/graph-embryo.json +0 -81
  352. package/pilots/independent-implementation-001-conference-planning/results/package-validation.json +0 -7
  353. package/pilots/independent-implementation-001-conference-planning/results/profile-conformance-result.json +0 -28
  354. package/pilots/independent-implementation-001-conference-planning/results/readiness-score.json +0 -26
  355. package/pilots/independent-implementation-001-conference-planning/results/seed-validation.json +0 -7
  356. package/pilots/independent-implementation-002-software-specification/README.md +0 -40
  357. package/pilots/independent-implementation-002-software-specification/gates/results.json +0 -22
  358. package/pilots/independent-implementation-002-software-specification/graph/objects.json +0 -101
  359. package/pilots/independent-implementation-002-software-specification/graph/relations.json +0 -92
  360. package/pilots/independent-implementation-002-software-specification/graph-seed.json +0 -72
  361. package/pilots/independent-implementation-002-software-specification/graph.json +0 -37
  362. package/pilots/independent-implementation-002-software-specification/reports/pilot-report.md +0 -142
  363. package/pilots/independent-implementation-002-software-specification/results/context-pack.json +0 -184
  364. package/pilots/independent-implementation-002-software-specification/results/graph-embryo.json +0 -90
  365. package/pilots/independent-implementation-002-software-specification/results/package-validation.json +0 -7
  366. package/pilots/independent-implementation-002-software-specification/results/profile-conformance-result.json +0 -28
  367. package/pilots/independent-implementation-002-software-specification/results/readiness-score.json +0 -26
  368. package/pilots/independent-implementation-002-software-specification/results/seed-validation.json +0 -7
  369. package/pilots/independent-implementation-002-software-specification/reviews/semantic-completeness-review.json +0 -81
  370. package/pilots/independent-implementation-003-ai-employee-workflow/README.md +0 -42
  371. package/pilots/independent-implementation-003-ai-employee-workflow/gates/results.json +0 -30
  372. package/pilots/independent-implementation-003-ai-employee-workflow/graph/objects.json +0 -156
  373. package/pilots/independent-implementation-003-ai-employee-workflow/graph/relations.json +0 -147
  374. package/pilots/independent-implementation-003-ai-employee-workflow/graph-seed.json +0 -90
  375. package/pilots/independent-implementation-003-ai-employee-workflow/graph.json +0 -37
  376. package/pilots/independent-implementation-003-ai-employee-workflow/reports/pilot-report.md +0 -49
  377. package/pilots/independent-implementation-003-ai-employee-workflow/results/profile-conformance-result.json +0 -30
  378. package/pilots/independent-implementation-004-research-program/README.md +0 -41
  379. package/pilots/independent-implementation-004-research-program/gates/results.json +0 -21
  380. package/pilots/independent-implementation-004-research-program/graph/objects.json +0 -102
  381. package/pilots/independent-implementation-004-research-program/graph/relations.json +0 -84
  382. package/pilots/independent-implementation-004-research-program/graph-seed.json +0 -76
  383. package/pilots/independent-implementation-004-research-program/graph.json +0 -37
  384. package/pilots/independent-implementation-004-research-program/reports/pilot-report.md +0 -50
  385. package/pilots/independent-implementation-004-research-program/results/profile-conformance-result.json +0 -30
  386. package/pilots/independent-implementation-005-organization-governance/README.md +0 -42
  387. package/pilots/independent-implementation-005-organization-governance/gates/results.json +0 -20
  388. package/pilots/independent-implementation-005-organization-governance/graph/objects.json +0 -137
  389. package/pilots/independent-implementation-005-organization-governance/graph/relations.json +0 -110
  390. package/pilots/independent-implementation-005-organization-governance/graph-seed.json +0 -97
  391. package/pilots/independent-implementation-005-organization-governance/graph.json +0 -37
  392. package/pilots/independent-implementation-005-organization-governance/reports/pilot-report.md +0 -47
  393. package/pilots/independent-implementation-005-organization-governance/results/profile-conformance-result.json +0 -29
  394. package/playground/README.md +0 -78
  395. package/playground/demo-report.md +0 -84
  396. package/profiles/README.md +0 -28
  397. package/profiles/ai-employee/README.md +0 -132
  398. package/profiles/ai-employee/profile.json +0 -58
  399. package/profiles/character-layer/README.md +0 -143
  400. package/profiles/character-layer/profile.json +0 -46
  401. package/profiles/implementation-control/README.md +0 -174
  402. package/profiles/implementation-control/profile.json +0 -108
  403. package/profiles/organization-governance/README.md +0 -60
  404. package/profiles/organization-governance/profile.json +0 -56
  405. package/profiles/project-management/README.md +0 -119
  406. package/profiles/project-management/profile.json +0 -38
  407. package/profiles/skill-runtime/README.md +0 -99
  408. package/profiles/skill-runtime/profile.json +0 -58
  409. package/profiles/societal-governance/README.md +0 -129
  410. package/profiles/societal-governance/profile.json +0 -121
  411. package/profiles/software-specification/README.md +0 -142
  412. package/profiles/software-specification/profile.json +0 -31
  413. package/publications/README.md +0 -39
  414. package/publications/observable-self-correcting-ai-workflows/README.md +0 -105
  415. package/publications/preprint-note.md +0 -11
  416. package/publications/preprint-outline.md +0 -45
  417. package/publications/semantic-intent-goal-vector-control/README.md +0 -99
  418. package/releases/0.1.0-alpha.0.md +0 -45
  419. package/releases/0.1.0-alpha.1.md +0 -63
  420. package/releases/0.1.0-alpha.10.md +0 -93
  421. package/releases/0.1.0-alpha.11.md +0 -114
  422. package/releases/0.1.0-alpha.2.md +0 -37
  423. package/releases/0.1.0-alpha.3.md +0 -61
  424. package/releases/0.1.0-alpha.4.md +0 -53
  425. package/releases/0.1.0-alpha.5.md +0 -48
  426. package/releases/0.1.0-alpha.6.md +0 -96
  427. package/releases/0.1.0-alpha.7.md +0 -114
  428. package/releases/0.1.0-alpha.8.md +0 -92
  429. package/releases/0.1.0-alpha.9.md +0 -80
  430. package/releases/1.0.0-rc.1.md +0 -121
  431. package/releases/1.0.0-rc.10.md +0 -14
  432. package/releases/1.0.0-rc.11.md +0 -14
  433. package/releases/1.0.0-rc.2.md +0 -79
  434. package/releases/1.0.0-rc.3.md +0 -51
  435. package/releases/1.0.0-rc.4.md +0 -70
  436. package/releases/1.0.0-rc.5.md +0 -88
  437. package/releases/1.0.0-rc.6.md +0 -76
  438. package/releases/1.0.0-rc.8.md +0 -17
  439. package/releases/1.0.0-rc.9.md +0 -14
  440. package/releases/1.0.0.md +0 -23
  441. package/releases/1.1.0.md +0 -36
  442. package/releases/1.1.1.md +0 -25
  443. package/releases/1.2.0.md +0 -19
  444. package/releases/1.3.0.md +0 -16
  445. package/releases/README.md +0 -135
  446. package/releases/societal-governance-profile-proposal.md +0 -45
  447. package/schemas/baseline-comparison-result.schema.json +0 -87
  448. package/schemas/character-layer-integration.schema.json +0 -112
  449. package/schemas/character-layer-readiness.schema.json +0 -73
  450. package/schemas/context-pack.schema.json +0 -190
  451. package/schemas/context-traversal-receipt.schema.json +0 -64
  452. package/schemas/development-cockpit.schema.json +0 -74
  453. package/schemas/dynamic-episode-trace.schema.json +0 -153
  454. package/schemas/executable-technology.schema.json +0 -70
  455. package/schemas/feature-implementation-traceability.schema.json +0 -80
  456. package/schemas/federation-health-dashboard.schema.json +0 -47
  457. package/schemas/gate-result.schema.json +0 -44
  458. package/schemas/goal-vector-quality-control.schema.json +0 -131
  459. package/schemas/graph-dna-alignment.schema.json +0 -49
  460. package/schemas/graph-embryo.schema.json +0 -51
  461. package/schemas/graph-lock.schema.json +0 -28
  462. package/schemas/graph-manifest.schema.json +0 -154
  463. package/schemas/graph-seed.schema.json +0 -137
  464. package/schemas/implementation-control-cycle.schema.json +0 -265
  465. package/schemas/implementation-control-loop.schema.json +0 -84
  466. package/schemas/launch-record.schema.json +0 -78
  467. package/schemas/model-portability-evidence.schema.json +0 -93
  468. package/schemas/multi-agent-coordination.schema.json +0 -35
  469. package/schemas/multi-source-quality-feedback.schema.json +0 -54
  470. package/schemas/object.schema.json +0 -49
  471. package/schemas/package-manifest.schema.json +0 -53
  472. package/schemas/process-control-contract.schema.json +0 -100
  473. package/schemas/process-transition-request.schema.json +0 -41
  474. package/schemas/profile.schema.json +0 -56
  475. package/schemas/project-technology-extension.schema.json +0 -15
  476. package/schemas/project-technology-target-export.schema.json +0 -35
  477. package/schemas/readiness-score.schema.json +0 -43
  478. package/schemas/recovery-resume-record.schema.json +0 -25
  479. package/schemas/relation.schema.json +0 -43
  480. package/schemas/risk-control-matrix.schema.json +0 -36
  481. package/schemas/route-explanation.schema.json +0 -51
  482. package/schemas/route-regression-result.schema.json +0 -33
  483. package/schemas/routing-fixture-run.schema.json +0 -45
  484. package/schemas/routing-fixtures.schema.json +0 -59
  485. package/schemas/semantic-intent-resolution.schema.json +0 -151
  486. package/schemas/source-boundary-contract.schema.json +0 -31
  487. package/schemas/technology-course-pack.schema.json +0 -57
  488. package/schemas/technology-quality-feedback.schema.json +0 -116
  489. package/schemas/work-state-machine.schema.json +0 -34
  490. package/standard/action-runtime-boundary.md +0 -99
  491. package/standard/adoption-levels.md +0 -69
  492. package/standard/conformance-levels.md +0 -133
  493. package/standard/context-pack-generation.md +0 -184
  494. package/standard/development-cockpit.md +0 -67
  495. package/standard/dynamic-episode-layer.md +0 -113
  496. package/standard/dynamic-layer-code-generation.md +0 -87
  497. package/standard/episode-trace.md +0 -97
  498. package/standard/evidence-provenance.md +0 -128
  499. package/standard/feature-implementation-traceability.md +0 -68
  500. package/standard/federation-health.md +0 -42
  501. package/standard/feedback-learning-gate.md +0 -101
  502. package/standard/goal-vector-quality-control.md +0 -128
  503. package/standard/governance.md +0 -137
  504. package/standard/graph-as-ai-brain.md +0 -81
  505. package/standard/graph-dna-alignment.md +0 -50
  506. package/standard/graph-dna.md +0 -70
  507. package/standard/graph-embryo.md +0 -69
  508. package/standard/graph-seed.md +0 -122
  509. package/standard/hybrid-source-of-truth.md +0 -91
  510. package/standard/implementation-control-cycles.md +0 -194
  511. package/standard/implementation-control.md +0 -102
  512. package/standard/launch-record.md +0 -53
  513. package/standard/lifecycle-readiness.md +0 -159
  514. package/standard/multi-agent-coordination.md +0 -50
  515. package/standard/multi-source-quality-feedback.md +0 -71
  516. package/standard/object-model.md +0 -167
  517. package/standard/organization-governance.md +0 -83
  518. package/standard/process-control-contract.md +0 -53
  519. package/standard/profile-boundaries.md +0 -225
  520. package/standard/profiles.md +0 -253
  521. package/standard/project-technology.md +0 -215
  522. package/standard/projection-views.md +0 -69
  523. package/standard/recovery-resume.md +0 -49
  524. package/standard/relation-model.md +0 -149
  525. package/standard/risk-control-matrix.md +0 -53
  526. package/standard/route-explanation.md +0 -35
  527. package/standard/route-regression.md +0 -33
  528. package/standard/routing-fixtures.md +0 -54
  529. package/standard/runtime-enablement.md +0 -85
  530. package/standard/semantic-intent-resolution.md +0 -91
  531. package/standard/source-boundary-contract.md +0 -49
  532. package/standard/standard-v0.1.md +0 -132
  533. package/standard/technology-quality-feedback.md +0 -97
  534. package/standard/test-suite.md +0 -159
  535. package/standard/work-state-machine.md +0 -62
  536. package/templates/README.md +0 -77
  537. package/templates/ai-employee-starter/README.md +0 -9
  538. package/templates/ai-employee-starter/gates/results.json +0 -12
  539. package/templates/ai-employee-starter/graph/objects.json +0 -90
  540. package/templates/ai-employee-starter/graph/relations.json +0 -47
  541. package/templates/ai-employee-starter/graph.json +0 -37
  542. package/templates/character-layer-starter/README.md +0 -39
  543. package/templates/character-layer-starter/gates/results.json +0 -20
  544. package/templates/character-layer-starter/graph/objects.json +0 -308
  545. package/templates/character-layer-starter/graph/relations.json +0 -344
  546. package/templates/character-layer-starter/graph.json +0 -37
  547. package/templates/organization-governance-starter/README.md +0 -9
  548. package/templates/organization-governance-starter/gates/results.json +0 -12
  549. package/templates/organization-governance-starter/graph/objects.json +0 -112
  550. package/templates/organization-governance-starter/graph/relations.json +0 -65
  551. package/templates/organization-governance-starter/graph.json +0 -37
  552. package/templates/research-program-starter/README.md +0 -9
  553. package/templates/research-program-starter/gates/results.json +0 -12
  554. package/templates/research-program-starter/graph/objects.json +0 -79
  555. package/templates/research-program-starter/graph/relations.json +0 -47
  556. package/templates/research-program-starter/graph.json +0 -37
  557. package/templates/software-project-starter/README.md +0 -9
  558. package/templates/software-project-starter/gates/results.json +0 -12
  559. package/templates/software-project-starter/graph/objects.json +0 -79
  560. package/templates/software-project-starter/graph/relations.json +0 -47
  561. package/templates/software-project-starter/graph.json +0 -37
@@ -1,282 +0,0 @@
1
- "use strict";
2
-
3
- const crypto = require("crypto");
4
- const fs = require("fs");
5
- const path = require("path");
6
-
7
- const SAFE_ID = /^[A-Za-z0-9][A-Za-z0-9._:/@?=+*-]{1,255}$/;
8
- const ACTIVE_LIFECYCLES = new Set(["reviewed", "accepted", "active"]);
9
- const SECRET_MARKERS = ["password", "secret", "token", "cookie", "private_key", "totp", ".env"];
10
-
11
- function sortValue(value) {
12
- if (Array.isArray(value)) return value.map(sortValue);
13
- if (!value || typeof value !== "object") return value;
14
- return Object.fromEntries(Object.keys(value).sort().map((key) => [key, sortValue(value[key])]));
15
- }
16
-
17
- function canonicalBytes(value) {
18
- return `${JSON.stringify(sortValue(value), null, 2)}\n`;
19
- }
20
-
21
- function sha256(value, prefix = true) {
22
- const digest = crypto.createHash("sha256").update(Buffer.from(String(value))).digest("hex");
23
- return prefix ? `sha256:${digest}` : digest;
24
- }
25
-
26
- function result(action, status, extra = {}) {
27
- return {
28
- schema_version: "1.0.0",
29
- operation_id: `mirai.project_technology.course.${action}`,
30
- operation_mode: "read_only",
31
- status,
32
- changed: false,
33
- blockers: [],
34
- warnings: [],
35
- next_action: "none",
36
- ...extra,
37
- };
38
- }
39
-
40
- function readJson(file) {
41
- const absolute = path.resolve(file);
42
- if (!fs.existsSync(absolute) || fs.lstatSync(absolute).isSymbolicLink()) throw new Error("unsafe_or_missing_json_input");
43
- return JSON.parse(fs.readFileSync(absolute, "utf8").replace(/^\uFEFF/, ""));
44
- }
45
-
46
- function unwrapCoursePack(value) {
47
- return value && typeof value === "object" && !Array.isArray(value) && value.course_pack
48
- ? value.course_pack
49
- : value;
50
- }
51
-
52
- function uniqueStrings(value, field, blockers, required = true) {
53
- if (!Array.isArray(value) || (required && value.length === 0)) {
54
- blockers.push(`technology_${field}_empty`);
55
- return [];
56
- }
57
- const output = [];
58
- for (const item of value) {
59
- if (typeof item !== "string" || !SAFE_ID.test(item)) blockers.push(`technology_${field}_unsafe`);
60
- else output.push(item);
61
- }
62
- return [...new Set(output)];
63
- }
64
-
65
- function normalizeTechnology(input) {
66
- const blockers = [];
67
- if (!input || typeof input !== "object" || Array.isArray(input)) return { technology: {}, blockers: ["technology_contract_missing"] };
68
- const technology = {
69
- schema_version: String(input.schema_version || "1.0.0"),
70
- id: String(input.id || ""),
71
- title: String(input.title || ""),
72
- owner: String(input.owner || ""),
73
- outcome: String(input.outcome || ""),
74
- lifecycle: String(input.lifecycle || ""),
75
- version: String(input.version || ""),
76
- source_refs: uniqueStrings(input.source_refs || [], "source_refs", blockers),
77
- projection_refs: uniqueStrings(input.projection_refs || [], "projection_refs", blockers, false),
78
- };
79
- for (const field of ["id", "owner"]) if (!SAFE_ID.test(technology[field])) blockers.push(`technology_${field}_missing_or_unsafe`);
80
- for (const field of ["title", "outcome", "version"]) if (!technology[field].trim()) blockers.push(`technology_${field}_missing`);
81
- if (!ACTIVE_LIFECYCLES.has(technology.lifecycle)) blockers.push("technology_lifecycle_not_executable");
82
-
83
- const operationIds = new Set();
84
- technology.operations = [];
85
- if (!Array.isArray(input.operations) || input.operations.length === 0) blockers.push("technology_operations_empty");
86
- else for (const raw of input.operations) {
87
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) { blockers.push("technology_operation_invalid"); continue; }
88
- const operation = {
89
- id: String(raw.id || ""), title: String(raw.title || ""), summary: String(raw.summary || ""),
90
- owner: String(raw.owner || ""), capability_ref: String(raw.capability_ref || ""),
91
- prerequisites: uniqueStrings(raw.prerequisites || [], "operation_prerequisites", blockers, false),
92
- input_refs: uniqueStrings(raw.input_refs || [], "operation_input_refs", blockers, false),
93
- output_refs: uniqueStrings(raw.output_refs || [], "operation_output_refs", blockers),
94
- check_refs: uniqueStrings(raw.check_refs || [], "operation_check_refs", blockers),
95
- stop_condition_refs: uniqueStrings(raw.stop_condition_refs || [], "operation_stop_condition_refs", blockers, false),
96
- rollback_refs: uniqueStrings(raw.rollback_refs || [], "operation_rollback_refs", blockers, false),
97
- source_refs: uniqueStrings(raw.source_refs || [], "operation_source_refs", blockers),
98
- instructional_refs: uniqueStrings(raw.instructional_refs || [], "operation_instructional_refs", blockers, false),
99
- applicability: Array.isArray(raw.applicability) ? [...new Set(raw.applicability.map(String))].sort() : [],
100
- negative_boundaries: Array.isArray(raw.negative_boundaries) ? [...new Set(raw.negative_boundaries.map(String))].sort() : [],
101
- };
102
- for (const field of ["id", "owner", "capability_ref"]) if (!SAFE_ID.test(operation[field])) blockers.push(`technology_operation_${field}_missing_or_unsafe`);
103
- if (!operation.title || !operation.summary) blockers.push("technology_operation_explanation_missing");
104
- if (operationIds.has(operation.id)) blockers.push("technology_operation_duplicate");
105
- operationIds.add(operation.id); technology.operations.push(operation);
106
- }
107
-
108
- technology.scenarios = [];
109
- if (!Array.isArray(input.scenarios) || input.scenarios.length === 0) blockers.push("technology_scenarios_empty");
110
- else {
111
- const scenarioIds = new Set();
112
- for (const raw of input.scenarios) {
113
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) { blockers.push("technology_scenario_invalid"); continue; }
114
- const scenario = {
115
- id: String(raw.id || ""), title: String(raw.title || ""), outcome: String(raw.outcome || ""),
116
- operation_ids: uniqueStrings(raw.operation_ids || [], "scenario_operation_ids", blockers),
117
- required_inputs: uniqueStrings(raw.required_inputs || [], "scenario_required_inputs", blockers, false),
118
- audience: Array.isArray(raw.audience) ? [...new Set(raw.audience.map(String))].sort() : [],
119
- };
120
- if (!SAFE_ID.test(scenario.id)) blockers.push("technology_scenario_id_missing_or_unsafe");
121
- if (!scenario.title || !scenario.outcome) blockers.push("technology_scenario_explanation_missing");
122
- if (scenarioIds.has(scenario.id)) blockers.push("technology_scenario_duplicate");
123
- scenarioIds.add(scenario.id);
124
- for (const id of scenario.operation_ids) if (!operationIds.has(id)) blockers.push("technology_scenario_operation_unknown");
125
- technology.scenarios.push(scenario);
126
- }
127
- }
128
- for (const operation of technology.operations) for (const dependency of operation.prerequisites) if (!operationIds.has(dependency)) blockers.push("technology_operation_prerequisite_unknown");
129
-
130
- const visiting = new Set(); const visited = new Set(); const byId = new Map(technology.operations.map((item) => [item.id, item]));
131
- function visit(id) {
132
- if (visiting.has(id)) return true;
133
- if (visited.has(id)) return false;
134
- visiting.add(id);
135
- for (const dependency of (byId.get(id) || {}).prerequisites || []) if (visit(dependency)) return true;
136
- visiting.delete(id); visited.add(id); return false;
137
- }
138
- if ([...byId.keys()].some(visit)) blockers.push("technology_required_dependency_cycle");
139
- return { technology, blockers: [...new Set(blockers)].sort() };
140
- }
141
-
142
- function technologyDigest(technology) {
143
- return sha256(canonicalBytes(technology));
144
- }
145
-
146
- function resolveClosure(operations, selectedIds, blockers) {
147
- const byId = new Map(operations.map((item) => [item.id, item]));
148
- const output = []; const seen = new Set();
149
- function add(id) {
150
- if (seen.has(id)) return;
151
- const operation = byId.get(id);
152
- if (!operation) { blockers.push("course_required_operation_missing"); return; }
153
- for (const dependency of operation.prerequisites) add(dependency);
154
- seen.add(id); output.push(operation);
155
- }
156
- for (const id of selectedIds) add(id);
157
- return output;
158
- }
159
-
160
- function compileTechnologyCourse(repository, options = {}) {
161
- let raw;
162
- try { raw = options.technology || readJson(options.technologyFile); }
163
- catch (error) { return result("compile", "blocked", { blockers: [String(error.message || error)], next_action: "provide a valid executable technology contract" }); }
164
- const normalized = normalizeTechnology(raw);
165
- const blockers = [...normalized.blockers];
166
- if (blockers.length) return result("compile", "blocked", { blockers, next_action: "repair the executable technology contract" });
167
- const scenarioIds = options.scenarioIds && options.scenarioIds.length ? options.scenarioIds : normalized.technology.scenarios.map((item) => item.id);
168
- const scenarios = normalized.technology.scenarios.filter((item) => scenarioIds.includes(item.id));
169
- if (scenarios.length !== new Set(scenarioIds).size) blockers.push("course_scenario_unknown");
170
- const selectedOperationIds = scenarios.flatMap((item) => item.operation_ids);
171
- const operations = resolveClosure(normalized.technology.operations, selectedOperationIds, blockers);
172
- const audience = String(options.audience || "learner");
173
- if (!SAFE_ID.test(audience)) blockers.push("course_audience_unsafe");
174
- if (blockers.length) return result("compile", "blocked", { blockers: [...new Set(blockers)].sort(), next_action: "repair the technology or course selection" });
175
- const technology_digest = technologyDigest(normalized.technology);
176
- const packBase = {
177
- schema_version: "1.0.0",
178
- technology_id: normalized.technology.id,
179
- technology_title: normalized.technology.title,
180
- technology_outcome: normalized.technology.outcome,
181
- technology_version: normalized.technology.version,
182
- technology_digest,
183
- audience,
184
- scenario_ids: scenarios.map((item) => item.id),
185
- source_refs: normalized.technology.source_refs,
186
- source_revisions: options.sourceRevisions || {},
187
- scenarios,
188
- sections: operations.map((item, index) => ({
189
- order: index + 1,
190
- technology_node_id: item.id,
191
- title: item.title,
192
- summary: item.summary,
193
- owner: item.owner,
194
- capability_ref: item.capability_ref,
195
- prerequisite_ids: item.prerequisites,
196
- input_refs: item.input_refs,
197
- output_refs: item.output_refs,
198
- check_refs: item.check_refs,
199
- stop_condition_refs: item.stop_condition_refs,
200
- rollback_refs: item.rollback_refs,
201
- source_refs: item.source_refs,
202
- instructional_refs: item.instructional_refs,
203
- })),
204
- exercises: options.exercises || [],
205
- checks: [...new Set(operations.flatMap((item) => item.check_refs))].sort(),
206
- omissions: [],
207
- limitations: [],
208
- };
209
- const context = { ...packBase, course_pack_digest: sha256(canonicalBytes(packBase)) };
210
- return result("compile", "success", { repository: path.resolve(repository || "."), course_pack: context });
211
- }
212
-
213
- function verifyTechnologyCourse(repository, options = {}) {
214
- let pack;
215
- try { pack = unwrapCoursePack(options.coursePack || readJson(options.coursePackFile)); }
216
- catch (error) { return result("verify", "blocked", { blockers: [String(error.message || error)] }); }
217
- const blockers = [];
218
- const digest = pack.course_pack_digest;
219
- const base = { ...pack }; delete base.course_pack_digest;
220
- if (digest !== sha256(canonicalBytes(base))) blockers.push("course_pack_digest_mismatch");
221
- if (!Array.isArray(pack.sections) || pack.sections.length === 0) blockers.push("course_sections_empty");
222
- const ids = new Set();
223
- for (const section of pack.sections || []) {
224
- if (!SAFE_ID.test(String(section.technology_node_id || ""))) blockers.push("course_section_identity_missing");
225
- if (ids.has(section.technology_node_id)) blockers.push("course_section_duplicate");
226
- ids.add(section.technology_node_id);
227
- if (!section.title || !section.summary || !section.owner || !section.capability_ref) blockers.push("course_section_incomplete");
228
- }
229
- const serialized = JSON.stringify(pack).toLowerCase();
230
- for (const marker of SECRET_MARKERS) if (serialized.includes(`\"${marker}\":`)) blockers.push("course_pack_secret_field_forbidden");
231
- return result("verify", blockers.length ? "blocked" : "success", { blockers: [...new Set(blockers)].sort(), course_pack_digest: digest, next_action: blockers.length ? "recompile the course from current accepted technology" : "none" });
232
- }
233
-
234
- function reconcileTechnologyCourse(repository, options = {}) {
235
- let pack; let projection;
236
- try {
237
- pack = unwrapCoursePack(options.coursePack || readJson(options.coursePackFile));
238
- projection = options.projection || readJson(options.projectionFile);
239
- } catch (error) { return result("reconcile", "blocked", { blockers: [String(error.message || error)] }); }
240
- const verified = verifyTechnologyCourse(repository, { coursePack: pack });
241
- if (verified.status !== "success") return result("reconcile", "blocked", { blockers: verified.blockers, next_action: verified.next_action });
242
- if (projection.course_pack_digest !== pack.course_pack_digest) return result("reconcile", "blocked", { blockers: ["course_projection_source_stale"], next_action: "re-export the projection or explicitly reconcile against its source pack" });
243
- const base = new Map(pack.sections.map((item) => [item.technology_node_id, item]));
244
- const seen = new Set(); const changes = [];
245
- for (const current of projection.sections || []) {
246
- const id = current.technology_node_id;
247
- if (!base.has(id)) { changes.push({ type: "semantic_proposal", technology_node_id: id || null, reason: "course_section_added" }); continue; }
248
- seen.add(id); const previous = base.get(id);
249
- const semanticFields = ["owner", "capability_ref", "prerequisite_ids", "input_refs", "output_refs", "check_refs", "stop_condition_refs", "rollback_refs", "source_refs"];
250
- const semantic = semanticFields.some((field) => canonicalBytes(previous[field] || null) !== canonicalBytes(current[field] || null));
251
- const editorial = previous.title !== current.title || previous.summary !== current.summary || canonicalBytes(previous.instructional_refs || []) !== canonicalBytes(current.instructional_refs || []);
252
- if (semantic) changes.push({ type: "semantic_proposal", technology_node_id: id, reason: "executable_contract_changed" });
253
- else if (editorial) changes.push({ type: "editorial", technology_node_id: id, reason: "instructional_projection_changed" });
254
- }
255
- for (const id of base.keys()) if (!seen.has(id)) changes.push({ type: "semantic_proposal", technology_node_id: id, reason: "required_course_section_removed" });
256
- const semantic = changes.filter((item) => item.type === "semantic_proposal");
257
- return result("reconcile", semantic.length ? "needs_decision" : "success", {
258
- changes,
259
- semantic_proposals: semantic,
260
- editorial_changes: changes.filter((item) => item.type === "editorial"),
261
- canonical_write_allowed: false,
262
- next_action: semantic.length ? "send semantic proposals to the technology owners" : changes.length ? "apply editorial changes through the documentation owner" : "none",
263
- });
264
- }
265
-
266
- function executeCourse(repository, options = {}) {
267
- const action = options.courseAction;
268
- if (action === "compile") return compileTechnologyCourse(repository, options);
269
- if (action === "verify") return verifyTechnologyCourse(repository, options);
270
- if (action === "reconcile") return reconcileTechnologyCourse(repository, options);
271
- return result(String(action || "unknown"), "fail", { blockers: ["unsupported_technology_course_action"] });
272
- }
273
-
274
- module.exports = {
275
- canonicalBytes,
276
- compileTechnologyCourse,
277
- executeCourse,
278
- normalizeTechnology,
279
- reconcileTechnologyCourse,
280
- technologyDigest,
281
- verifyTechnologyCourse,
282
- };
@@ -1,40 +0,0 @@
1
- # Independent Implementation Pilot 001: Conference Planning
2
-
3
- Status: pilot fixture
4
-
5
- ## Purpose
6
-
7
- This pilot tests whether a valid Mirai Graph package can be created using only
8
- the public repository materials.
9
-
10
- ## Domain
11
-
12
- Synthetic conference planning workflow.
13
-
14
- No private company, customer, employee or internal project material is used.
15
-
16
- ## Research Question
17
-
18
- Can a developer create a valid Level 1 Mirai Graph package for a small workflow
19
- using only public Mirai Graph docs, schemas and examples?
20
-
21
- ## Files
22
-
23
- - `graph-seed.json`
24
- - `graph.json`
25
- - `graph/objects.json`
26
- - `graph/relations.json`
27
- - `gates/results.json`
28
- - `results/`
29
- - `reports/pilot-report.md`
30
-
31
- ## Commands
32
-
33
- Run from repository root:
34
-
35
- ```bash
36
- node packages/cli/validate-mirai-graph.js seed pilots/independent-implementation-001-conference-planning/graph-seed.json
37
- node packages/cli/validate-mirai-graph.js pilots/independent-implementation-001-conference-planning
38
- node packages/cli/readiness-score.js pilots/independent-implementation-001-conference-planning --target-mode pilot
39
- node packages/cli/context-pack.js pilots/independent-implementation-001-conference-planning --task-id task.prepare_speaker_schedule
40
- ```
@@ -1,12 +0,0 @@
1
- [
2
- {
3
- "id": "gate_result.conference_planning.public_safety",
4
- "gate_id": "gate.public_safety",
5
- "target_id": "package.conference_planning_pilot_001",
6
- "verdict": "pass",
7
- "summary": "The pilot uses synthetic public-safe conference planning material only.",
8
- "evidence": ["source.conference_brief"],
9
- "reviewed_at": "2026-05-28",
10
- "reviewer": "Mirai Graph maintainers"
11
- }
12
- ]
@@ -1,74 +0,0 @@
1
- [
2
- {
3
- "id": "source.conference_brief",
4
- "kind": "evidence",
5
- "title": "Synthetic conference brief",
6
- "summary": "A public-safe synthetic brief for a one-day community conference.",
7
- "readiness": "accepted",
8
- "evidence": [],
9
- "profile": "project_management"
10
- },
11
- {
12
- "id": "system.community_conference",
13
- "kind": "system",
14
- "title": "Community Conference",
15
- "summary": "A synthetic one-day conference planning workflow.",
16
- "readiness": "review_ready",
17
- "evidence": ["source.conference_brief"],
18
- "profile": "project_management"
19
- },
20
- {
21
- "id": "goal.publish_reliable_schedule",
22
- "kind": "goal",
23
- "title": "Publish reliable schedule",
24
- "summary": "Prepare and publish a reliable speaker schedule for the conference.",
25
- "readiness": "review_ready",
26
- "evidence": ["source.conference_brief"],
27
- "profile": "project_management"
28
- },
29
- {
30
- "id": "task.collect_session_proposals",
31
- "kind": "task",
32
- "title": "Collect session proposals",
33
- "summary": "Collect proposed talks and workshops before schedule planning.",
34
- "readiness": "review_ready",
35
- "evidence": ["source.conference_brief"],
36
- "profile": "project_management"
37
- },
38
- {
39
- "id": "task.confirm_room_capacity",
40
- "kind": "task",
41
- "title": "Confirm room capacity",
42
- "summary": "Confirm available room capacity before assigning sessions.",
43
- "readiness": "review_ready",
44
- "evidence": ["source.conference_brief"],
45
- "profile": "project_management"
46
- },
47
- {
48
- "id": "decision.schedule_publish_gate",
49
- "kind": "decision",
50
- "title": "Schedule publish gate",
51
- "summary": "The schedule may be published only after owner review.",
52
- "readiness": "draft",
53
- "evidence": ["source.conference_brief"],
54
- "profile": "project_management"
55
- },
56
- {
57
- "id": "risk.session_room_mismatch",
58
- "kind": "risk",
59
- "title": "Session room mismatch",
60
- "summary": "A popular session may be assigned to a room that is too small.",
61
- "readiness": "review_ready",
62
- "evidence": ["source.conference_brief"],
63
- "profile": "project_management"
64
- },
65
- {
66
- "id": "gate.owner_schedule_approval",
67
- "kind": "governance_gate",
68
- "title": "Owner schedule approval",
69
- "summary": "Owner approval is required before schedule publication.",
70
- "readiness": "accepted",
71
- "evidence": ["source.conference_brief"],
72
- "profile": "project_management"
73
- }
74
- ]
@@ -1,56 +0,0 @@
1
- [
2
- {
3
- "id": "relation.system.community_conference.supports.goal.publish_reliable_schedule",
4
- "type": "supports",
5
- "source": "system.community_conference",
6
- "target": "goal.publish_reliable_schedule",
7
- "readiness": "review_ready",
8
- "evidence": ["source.conference_brief"],
9
- "profile": "project_management"
10
- },
11
- {
12
- "id": "relation.task.collect_session_proposals.supports.goal.publish_reliable_schedule",
13
- "type": "supports",
14
- "source": "task.collect_session_proposals",
15
- "target": "goal.publish_reliable_schedule",
16
- "readiness": "review_ready",
17
- "evidence": ["source.conference_brief"],
18
- "profile": "project_management"
19
- },
20
- {
21
- "id": "relation.task.confirm_room_capacity.blocks.risk.session_room_mismatch",
22
- "type": "blocks",
23
- "source": "task.confirm_room_capacity",
24
- "target": "risk.session_room_mismatch",
25
- "readiness": "review_ready",
26
- "evidence": ["source.conference_brief"],
27
- "profile": "project_management"
28
- },
29
- {
30
- "id": "relation.risk.session_room_mismatch.blocks.goal.publish_reliable_schedule",
31
- "type": "blocks",
32
- "source": "risk.session_room_mismatch",
33
- "target": "goal.publish_reliable_schedule",
34
- "readiness": "review_ready",
35
- "evidence": ["source.conference_brief"],
36
- "profile": "project_management"
37
- },
38
- {
39
- "id": "relation.gate.owner_schedule_approval.governs.decision.schedule_publish_gate",
40
- "type": "governs",
41
- "source": "gate.owner_schedule_approval",
42
- "target": "decision.schedule_publish_gate",
43
- "readiness": "accepted",
44
- "evidence": ["source.conference_brief"],
45
- "profile": "project_management"
46
- },
47
- {
48
- "id": "relation.decision.schedule_publish_gate.depends_on.task.confirm_room_capacity",
49
- "type": "depends_on",
50
- "source": "decision.schedule_publish_gate",
51
- "target": "task.confirm_room_capacity",
52
- "readiness": "draft",
53
- "evidence": ["source.conference_brief"],
54
- "profile": "project_management"
55
- }
56
- ]
@@ -1,65 +0,0 @@
1
- {
2
- "schema_version": "0.1.0",
3
- "seed_id": "seed.conference_planning",
4
- "target_graph_id": "graph.conference_planning",
5
- "purpose": "Create a Mirai Graph package for managing a small public conference planning workflow.",
6
- "target_profile": "profile.project_management",
7
- "target_mode": "pilot",
8
- "graph_dna": {
9
- "purpose": "Keep conference goals, planning tasks, decisions, risks and governance checks connected.",
10
- "evolution_vector": "Grow from a small planning map into a reviewed conference operations graph.",
11
- "non_negotiable_principles": [
12
- "The package must remain synthetic and public-safe.",
13
- "Schedule decisions require owner review before they are treated as accepted."
14
- ]
15
- },
16
- "source_boundaries": {
17
- "allowed_sources": [
18
- "synthetic conference planning brief",
19
- "synthetic organizer notes"
20
- ],
21
- "excluded_sources": [
22
- "real attendee data",
23
- "private sponsor contracts",
24
- "personal speaker contact details"
25
- ],
26
- "canonical_write_allowed": false
27
- },
28
- "growth_rules": {
29
- "allowed_object_families": [
30
- "system",
31
- "goal",
32
- "task",
33
- "decision",
34
- "risk",
35
- "evidence",
36
- "governance_gate"
37
- ],
38
- "allowed_relation_families": [
39
- "depends_on",
40
- "blocks",
41
- "supports",
42
- "evidences",
43
- "governs",
44
- "belongs_to"
45
- ],
46
- "max_initial_objects": 12,
47
- "depth_mode": "light"
48
- },
49
- "review_gates": [
50
- "human_review_before_canonical_write",
51
- "public_safety_before_release",
52
- "owner_approval_before_schedule_publish"
53
- ],
54
- "generated_views": [
55
- "seed_summary",
56
- "candidate_object_list",
57
- "risk_view",
58
- "next_action_view"
59
- ],
60
- "stop_conditions": [
61
- "real_personal_data_requested",
62
- "schedule_publish_requested_before_owner_approval",
63
- "candidate_count_exceeds_budget"
64
- ]
65
- }
@@ -1,37 +0,0 @@
1
- {
2
- "$schema": "https://mirai-graph.dev/schemas/graph-manifest.schema.json",
3
- "format": "mirai-graph",
4
- "schema_version": "2.0.0",
5
- "id": "package.conference_planning_pilot_001",
6
- "aliases": [],
7
- "title": "Conference Planning Pilot 001",
8
- "scope": "package",
9
- "kind": "graph_package",
10
- "owner": "mirai-graph",
11
- "profiles": [
12
- "project_management"
13
- ],
14
- "graph": {
15
- "root": "graph",
16
- "source_of_truth": [
17
- "graph"
18
- ],
19
- "objects": [
20
- "graph/objects.json"
21
- ],
22
- "relations": [
23
- "graph/relations.json"
24
- ],
25
- "schemas": [],
26
- "generated": [],
27
- "raw_sources": [
28
- "README.md"
29
- ]
30
- },
31
- "imports": [],
32
- "version": "0.1.0",
33
- "conformance_level": "level_1",
34
- "description": "A synthetic independent implementation pilot for a conference planning workflow.",
35
- "license": "CC-BY-4.0",
36
- "public_safety": "synthetic_public"
37
- }