mirai-graph 1.0.0-rc.1
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.
- package/CHANGELOG.md +376 -0
- package/CITATION.cff +20 -0
- package/LICENSE +21 -0
- package/LICENSE-DOCS +26 -0
- package/README.md +270 -0
- package/ROADMAP.md +225 -0
- package/benchmarks/protocols/measure-convert-optimize.md +131 -0
- package/benchmarks/synthetic-context-reduction-v0/README.md +70 -0
- package/benchmarks/synthetic-context-reduction-v0/RESULT.md +52 -0
- package/benchmarks/synthetic-context-reduction-v0/expected/context-pack-compact.md +31 -0
- package/benchmarks/synthetic-context-reduction-v0/gates/results.json +12 -0
- package/benchmarks/synthetic-context-reduction-v0/graph/objects.json +114 -0
- package/benchmarks/synthetic-context-reduction-v0/graph/relations.json +74 -0
- package/benchmarks/synthetic-context-reduction-v0/metrics/example-metrics.json +22 -0
- package/benchmarks/synthetic-context-reduction-v0/mirai-graph-package.json +14 -0
- package/benchmarks/synthetic-context-reduction-v0/results/baseline-comparison-result.json +42 -0
- package/benchmarks/synthetic-context-reduction-v0/results/context-pack.json +181 -0
- package/benchmarks/synthetic-context-reduction-v0/results/context-reduction-result.json +8 -0
- package/benchmarks/synthetic-context-reduction-v0/results/profile-conformance-result.json +28 -0
- package/benchmarks/synthetic-context-reduction-v0/results/readiness-score.json +24 -0
- package/benchmarks/synthetic-context-reduction-v0/reviews/semantic-completeness-review.json +78 -0
- package/benchmarks/synthetic-context-reduction-v0/scripts/calculate-context-reduction.js +42 -0
- package/benchmarks/synthetic-context-reduction-v0/source-corpus/audit-events.md +8 -0
- package/benchmarks/synthetic-context-reduction-v0/source-corpus/content-workflow.md +8 -0
- package/benchmarks/synthetic-context-reduction-v0/source-corpus/identity-access.md +8 -0
- package/benchmarks/synthetic-context-reduction-v0/source-corpus/notification-delivery.md +8 -0
- package/benchmarks/synthetic-context-reduction-v0/tasks/tasks.json +31 -0
- package/docs/adoption/adopter-kit.md +179 -0
- package/docs/adoption/ai-employee-graph.md +151 -0
- package/docs/adoption/character-layer.md +196 -0
- package/docs/adoption/choose-profile.md +98 -0
- package/docs/adoption/cli.md +78 -0
- package/docs/adoption/developer-integration-guide.md +93 -0
- package/docs/adoption/end-to-end-control-loop.md +168 -0
- package/docs/adoption/getting-started.md +169 -0
- package/docs/adoption/mirai-graph-transition.md +64 -0
- package/docs/adoption/profile-conformance-fixtures.md +112 -0
- package/docs/adoption/seed-to-validated-package.md +121 -0
- package/docs/concept.md +109 -0
- package/docs/repository-purpose.md +421 -0
- package/docs/research/ai-work-field-instrumentation-bridge.md +126 -0
- package/docs/research/baseline-comparison-protocol.md +79 -0
- package/docs/research/evidence-package-v0.1.md +99 -0
- package/docs/research/evidence-package-v0.2.md +150 -0
- package/docs/research/evidence-package-v0.3.md +226 -0
- package/docs/research/independent-implementation-pilot-plan.md +74 -0
- package/docs/research/limitations-and-threats.md +40 -0
- package/docs/research/practice-science-program.md +232 -0
- package/docs/research/scientific-evidence-package.md +154 -0
- package/docs/research/semantic-completeness-review-protocol.md +70 -0
- package/docs/terminology.md +119 -0
- package/docs/transfer/ai-employee-profile-proposal.md +119 -0
- package/docs/transfer/federation-routing-control-loop-2026-05-31.md +28 -0
- package/docs/transfer/graph-capability-map-2026-05-29.md +126 -0
- package/docs/transfer/graph-skill-to-mirai-graph.md +128 -0
- package/docs/transfer/project-management-standard-harvest-2026-06-02.md +322 -0
- package/docs/transfer/skill-graph-standard-harvest-2026-05-31.md +113 -0
- package/docs/transfer/standard-gap-report-2026-05-28.md +208 -0
- package/examples/ai-employee-minimal/README.md +53 -0
- package/examples/ai-employee-minimal/gates/results.json +35 -0
- package/examples/ai-employee-minimal/graph/objects.json +187 -0
- package/examples/ai-employee-minimal/graph/relations.json +167 -0
- package/examples/ai-employee-minimal/mirai-graph-package.json +14 -0
- package/examples/ai-employee-minimal/results/profile-conformance-result.json +28 -0
- package/examples/character-layer-integration-minimal/README.md +25 -0
- package/examples/character-layer-integration-minimal/results/character-layer-integration.json +53 -0
- package/examples/character-layer-minimal/README.md +29 -0
- package/examples/character-layer-minimal/gates/results.json +57 -0
- package/examples/character-layer-minimal/graph/objects.json +165 -0
- package/examples/character-layer-minimal/graph/relations.json +178 -0
- package/examples/character-layer-minimal/mirai-graph-package.json +14 -0
- package/examples/character-layer-readiness-1-0/README.md +27 -0
- package/examples/character-layer-readiness-1-0/results/character-layer-readiness.json +90 -0
- package/examples/federation-routing-smoke/README.md +19 -0
- package/examples/federation-routing-smoke/federation-health-dashboard.json +42 -0
- package/examples/federation-routing-smoke/route-explanation.json +32 -0
- package/examples/federation-routing-smoke/route-regression-result.json +35 -0
- package/examples/federation-routing-smoke/routes/production-deploy-execution-evidence.json +17 -0
- package/examples/federation-routing-smoke/routes/production-deploy-route-result.json +12 -0
- package/examples/federation-routing-smoke/routes/production-deploy-runtime-preflight.json +8 -0
- package/examples/federation-routing-smoke/routes/production-deploy-stderr.txt +1 -0
- package/examples/federation-routing-smoke/routes/production-deploy-stdout.txt +1 -0
- package/examples/federation-routing-smoke/routes/search-page-execution-evidence.json +17 -0
- package/examples/federation-routing-smoke/routes/search-page-route-result.json +12 -0
- package/examples/federation-routing-smoke/routes/search-page-stderr.txt +1 -0
- package/examples/federation-routing-smoke/routes/search-page-stdout.txt +1 -0
- package/examples/federation-routing-smoke/routing-fixture-run.json +66 -0
- package/examples/federation-routing-smoke/routing-fixtures.json +44 -0
- package/examples/graph-dna-alignment-minimal/README.md +16 -0
- package/examples/graph-dna-alignment-minimal/graph/objects.json +38 -0
- package/examples/graph-dna-alignment-minimal/graph/relations.json +20 -0
- package/examples/graph-dna-alignment-minimal/mirai-graph-package.json +14 -0
- package/examples/graph-dna-alignment-minimal/results/graph-dna-alignment.json +32 -0
- package/examples/graph-seed-minimal/README.md +9 -0
- package/examples/graph-seed-minimal/graph-embryo.json +63 -0
- package/examples/graph-seed-minimal/graph-seed.json +60 -0
- package/examples/implementation-control-cycles/README.md +47 -0
- package/examples/implementation-control-cycles/gates/results.json +22 -0
- package/examples/implementation-control-cycles/graph/objects.json +119 -0
- package/examples/implementation-control-cycles/graph/relations.json +200 -0
- package/examples/implementation-control-cycles/mirai-graph-package.json +14 -0
- package/examples/implementation-control-cycles/results/implementation-control-cycles.json +456 -0
- package/examples/implementation-control-minimal/README.md +39 -0
- package/examples/implementation-control-minimal/gates/results.json +42 -0
- package/examples/implementation-control-minimal/graph/objects.json +128 -0
- package/examples/implementation-control-minimal/graph/relations.json +128 -0
- package/examples/implementation-control-minimal/mirai-graph-package.json +14 -0
- package/examples/implementation-control-minimal/results/implementation-control-loop.json +21 -0
- package/examples/instrumentation-layer-minimal/README.md +32 -0
- package/examples/instrumentation-layer-minimal/gates/results.json +11 -0
- package/examples/instrumentation-layer-minimal/graph/objects.json +74 -0
- package/examples/instrumentation-layer-minimal/graph/relations.json +56 -0
- package/examples/instrumentation-layer-minimal/invalid-cockpit-missing-gates.json +40 -0
- package/examples/instrumentation-layer-minimal/invalid-feedback-accepted-with-blocking.json +38 -0
- package/examples/instrumentation-layer-minimal/invalid-feedback-process-improvement-without-kaizen.json +38 -0
- package/examples/instrumentation-layer-minimal/invalid-traceability-missing-evidence.json +43 -0
- package/examples/instrumentation-layer-minimal/mirai-graph-package.json +14 -0
- package/examples/instrumentation-layer-minimal/results/development-cockpit.json +68 -0
- package/examples/instrumentation-layer-minimal/results/feature-implementation-traceability.json +56 -0
- package/examples/instrumentation-layer-minimal/results/multi-source-quality-feedback.json +72 -0
- package/examples/invalid-character-layer-context-authorization/graph/objects.json +22 -0
- package/examples/invalid-character-layer-context-authorization/graph/relations.json +1 -0
- package/examples/invalid-character-layer-context-authorization/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-correction-loop-no-review/graph/objects.json +22 -0
- package/examples/invalid-character-layer-correction-loop-no-review/graph/relations.json +1 -0
- package/examples/invalid-character-layer-correction-loop-no-review/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-feedback-auto-update/graph/objects.json +22 -0
- package/examples/invalid-character-layer-feedback-auto-update/graph/relations.json +1 -0
- package/examples/invalid-character-layer-feedback-auto-update/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-object-kind/graph/objects.json +22 -0
- package/examples/invalid-character-layer-object-kind/graph/relations.json +1 -0
- package/examples/invalid-character-layer-object-kind/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-relation-direction/graph/objects.json +33 -0
- package/examples/invalid-character-layer-relation-direction/graph/relations.json +13 -0
- package/examples/invalid-character-layer-relation-direction/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-relation-type/graph/objects.json +33 -0
- package/examples/invalid-character-layer-relation-type/graph/relations.json +13 -0
- package/examples/invalid-character-layer-relation-type/mirai-graph-package.json +14 -0
- package/examples/invalid-character-layer-role-permission/graph/objects.json +22 -0
- package/examples/invalid-character-layer-role-permission/graph/relations.json +1 -0
- package/examples/invalid-character-layer-role-permission/mirai-graph-package.json +14 -0
- package/examples/invalid-context-pack-missing-explanation/context-pack.json +25 -0
- package/examples/invalid-missing-relation-target/graph/objects.json +11 -0
- package/examples/invalid-missing-relation-target/graph/relations.json +11 -0
- package/examples/invalid-missing-relation-target/mirai-graph-package.json +11 -0
- package/examples/invalid-profile-object-kind/graph/objects.json +20 -0
- package/examples/invalid-profile-object-kind/graph/relations.json +1 -0
- package/examples/invalid-profile-object-kind/mirai-graph-package.json +11 -0
- package/examples/invalid-profile-relation-type/graph/objects.json +29 -0
- package/examples/invalid-profile-relation-type/graph/relations.json +11 -0
- package/examples/invalid-profile-relation-type/mirai-graph-package.json +11 -0
- package/examples/invalid-relation-id-mismatch/graph/objects.json +29 -0
- package/examples/invalid-relation-id-mismatch/graph/relations.json +11 -0
- package/examples/invalid-relation-id-mismatch/mirai-graph-package.json +11 -0
- package/examples/invalid-seed-unsafe-write/graph-seed.json +27 -0
- package/examples/launch-record-minimal/README.md +29 -0
- package/examples/launch-record-minimal/gates/results.json +12 -0
- package/examples/launch-record-minimal/graph/objects.json +47 -0
- package/examples/launch-record-minimal/graph/relations.json +38 -0
- package/examples/launch-record-minimal/mirai-graph-package.json +11 -0
- package/examples/launch-record-minimal/results/launch-record.json +51 -0
- package/examples/managed-project-control-loop/README.md +43 -0
- package/examples/managed-project-control-loop/gates/results.json +22 -0
- package/examples/managed-project-control-loop/graph/objects.json +119 -0
- package/examples/managed-project-control-loop/graph/relations.json +110 -0
- package/examples/managed-project-control-loop/mirai-graph-package.json +14 -0
- package/examples/managed-project-control-loop/results/managed-loop-result.json +21 -0
- package/examples/minimal-graph/README.md +15 -0
- package/examples/minimal-graph/gates/results.json +12 -0
- package/examples/minimal-graph/graph/objects.json +24 -0
- package/examples/minimal-graph/graph/relations.json +11 -0
- package/examples/minimal-graph/mirai-graph-package.json +14 -0
- package/examples/minimal-graph/results/profile-conformance-result.json +26 -0
- package/examples/model-portability-minimal/README.md +15 -0
- package/examples/model-portability-minimal/results/model-portability-evidence.json +55 -0
- package/examples/organization-governance-minimal/README.md +29 -0
- package/examples/organization-governance-minimal/gates/results.json +21 -0
- package/examples/organization-governance-minimal/graph/objects.json +147 -0
- package/examples/organization-governance-minimal/graph/relations.json +147 -0
- package/examples/organization-governance-minimal/mirai-graph-package.json +15 -0
- package/examples/organization-governance-minimal/results/profile-conformance-result.json +31 -0
- package/examples/process-control-contract-minimal/README.md +19 -0
- package/examples/process-control-contract-minimal/graph/objects.json +38 -0
- package/examples/process-control-contract-minimal/graph/relations.json +29 -0
- package/examples/process-control-contract-minimal/mirai-graph-package.json +11 -0
- package/examples/process-control-contract-minimal/results/process-control-contract.json +58 -0
- package/examples/process-transition-minimal/README.md +25 -0
- package/examples/process-transition-minimal/invalid-missing-launch-record.json +14 -0
- package/examples/process-transition-minimal/invalid-ready-to-written.json +14 -0
- package/examples/process-transition-minimal/invalid-release-missing-evidence.json +14 -0
- package/examples/process-transition-minimal/invalid-sync-to-update.json +14 -0
- package/examples/process-transition-minimal/invalid-terminal-missing-kaizen.json +14 -0
- package/examples/process-transition-minimal/invalid-tests-to-approved.json +14 -0
- package/examples/process-transition-minimal/results/transition-explanation-invalid-ready-to-written.json +35 -0
- package/examples/process-transition-minimal/results/transition-explanation-valid.json +34 -0
- package/examples/process-transition-minimal/state-machine.json +79 -0
- package/examples/process-transition-minimal/transition-request-skip-kaizen.json +14 -0
- package/examples/process-transition-minimal/transition-request.json +14 -0
- package/examples/risk-and-coordination-minimal/README.md +16 -0
- package/examples/risk-and-coordination-minimal/graph/objects.json +47 -0
- package/examples/risk-and-coordination-minimal/graph/relations.json +29 -0
- package/examples/risk-and-coordination-minimal/mirai-graph-package.json +14 -0
- package/examples/risk-and-coordination-minimal/results/multi-agent-coordination.json +25 -0
- package/examples/risk-and-coordination-minimal/results/risk-control-matrix.json +34 -0
- package/examples/skill-runtime-minimal/README.md +29 -0
- package/examples/skill-runtime-minimal/gates/results.json +35 -0
- package/examples/skill-runtime-minimal/graph/objects.json +209 -0
- package/examples/skill-runtime-minimal/graph/relations.json +178 -0
- package/examples/skill-runtime-minimal/mirai-graph-package.json +14 -0
- package/examples/skill-runtime-minimal/results/profile-conformance-result.json +27 -0
- package/examples/source-boundary-minimal/README.md +16 -0
- package/examples/source-boundary-minimal/graph/objects.json +38 -0
- package/examples/source-boundary-minimal/graph/relations.json +20 -0
- package/examples/source-boundary-minimal/mirai-graph-package.json +14 -0
- package/examples/source-boundary-minimal/results/source-boundary-contract.json +37 -0
- package/examples/technology-quality-feedback-minimal/README.md +33 -0
- package/examples/technology-quality-feedback-minimal/graph/objects.json +56 -0
- package/examples/technology-quality-feedback-minimal/graph/relations.json +47 -0
- package/examples/technology-quality-feedback-minimal/invalid-accepted-with-blocking.json +33 -0
- package/examples/technology-quality-feedback-minimal/invalid-evidence-as-authorization.json +22 -0
- package/examples/technology-quality-feedback-minimal/invalid-missing-required-step.json +22 -0
- package/examples/technology-quality-feedback-minimal/invalid-process-improvement-without-kaizen.json +33 -0
- package/examples/technology-quality-feedback-minimal/invalid-spec-gap-without-route.json +33 -0
- package/examples/technology-quality-feedback-minimal/invalid-unclassified-finding.json +33 -0
- package/examples/technology-quality-feedback-minimal/mirai-graph-package.json +11 -0
- package/examples/technology-quality-feedback-minimal/results/technology-quality-feedback.json +80 -0
- package/examples/work-recovery-minimal/README.md +15 -0
- package/examples/work-recovery-minimal/graph/objects.json +47 -0
- package/examples/work-recovery-minimal/graph/relations.json +20 -0
- package/examples/work-recovery-minimal/mirai-graph-package.json +14 -0
- package/examples/work-recovery-minimal/results/recovery-resume-record.json +17 -0
- package/examples/work-recovery-minimal/results/work-state-machine.json +21 -0
- package/package.json +104 -0
- package/packages/cli/adopter-workflow.js +227 -0
- package/packages/cli/context-pack.js +267 -0
- package/packages/cli/instrumentation-report.js +97 -0
- package/packages/cli/mirai-graph.js +121 -0
- package/packages/cli/mirai_graph.js +3 -0
- package/packages/cli/playground-demo.js +114 -0
- package/packages/cli/readiness-score.js +162 -0
- package/packages/cli/release-state.js +329 -0
- package/packages/cli/seed-preview.js +78 -0
- package/packages/cli/validate-adopter-workflow.js +63 -0
- package/packages/cli/validate-baseline-comparison.js +105 -0
- package/packages/cli/validate-mirai-graph.js +2434 -0
- package/packages/cli/validate-process-transition-report.js +105 -0
- package/packages/cli/validate-profile-results.js +64 -0
- package/packages/cli/validate-release-state.js +100 -0
- package/packages/cli/validate-routing-control-examples.js +79 -0
- package/pilots/independent-implementation-001-conference-planning/README.md +40 -0
- package/pilots/independent-implementation-001-conference-planning/gates/results.json +12 -0
- package/pilots/independent-implementation-001-conference-planning/graph/objects.json +74 -0
- package/pilots/independent-implementation-001-conference-planning/graph/relations.json +56 -0
- package/pilots/independent-implementation-001-conference-planning/graph-seed.json +65 -0
- package/pilots/independent-implementation-001-conference-planning/mirai-graph-package.json +14 -0
- package/pilots/independent-implementation-001-conference-planning/reports/pilot-report.md +120 -0
- package/pilots/independent-implementation-001-conference-planning/results/context-pack.json +35 -0
- package/pilots/independent-implementation-001-conference-planning/results/graph-embryo.json +81 -0
- package/pilots/independent-implementation-001-conference-planning/results/package-validation.json +7 -0
- package/pilots/independent-implementation-001-conference-planning/results/profile-conformance-result.json +28 -0
- package/pilots/independent-implementation-001-conference-planning/results/readiness-score.json +26 -0
- package/pilots/independent-implementation-001-conference-planning/results/seed-validation.json +7 -0
- package/pilots/independent-implementation-002-software-specification/README.md +40 -0
- package/pilots/independent-implementation-002-software-specification/gates/results.json +22 -0
- package/pilots/independent-implementation-002-software-specification/graph/objects.json +101 -0
- package/pilots/independent-implementation-002-software-specification/graph/relations.json +92 -0
- package/pilots/independent-implementation-002-software-specification/graph-seed.json +72 -0
- package/pilots/independent-implementation-002-software-specification/mirai-graph-package.json +14 -0
- package/pilots/independent-implementation-002-software-specification/reports/pilot-report.md +142 -0
- package/pilots/independent-implementation-002-software-specification/results/context-pack.json +184 -0
- package/pilots/independent-implementation-002-software-specification/results/graph-embryo.json +90 -0
- package/pilots/independent-implementation-002-software-specification/results/package-validation.json +7 -0
- package/pilots/independent-implementation-002-software-specification/results/profile-conformance-result.json +28 -0
- package/pilots/independent-implementation-002-software-specification/results/readiness-score.json +26 -0
- package/pilots/independent-implementation-002-software-specification/results/seed-validation.json +7 -0
- package/pilots/independent-implementation-002-software-specification/reviews/semantic-completeness-review.json +81 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/README.md +42 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/gates/results.json +30 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/graph/objects.json +156 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/graph/relations.json +147 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/graph-seed.json +90 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/mirai-graph-package.json +15 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/reports/pilot-report.md +49 -0
- package/pilots/independent-implementation-003-ai-employee-workflow/results/profile-conformance-result.json +30 -0
- package/pilots/independent-implementation-004-research-program/README.md +41 -0
- package/pilots/independent-implementation-004-research-program/gates/results.json +21 -0
- package/pilots/independent-implementation-004-research-program/graph/objects.json +102 -0
- package/pilots/independent-implementation-004-research-program/graph/relations.json +84 -0
- package/pilots/independent-implementation-004-research-program/graph-seed.json +76 -0
- package/pilots/independent-implementation-004-research-program/mirai-graph-package.json +15 -0
- package/pilots/independent-implementation-004-research-program/reports/pilot-report.md +50 -0
- package/pilots/independent-implementation-004-research-program/results/profile-conformance-result.json +30 -0
- package/pilots/independent-implementation-005-organization-governance/README.md +42 -0
- package/pilots/independent-implementation-005-organization-governance/gates/results.json +20 -0
- package/pilots/independent-implementation-005-organization-governance/graph/objects.json +137 -0
- package/pilots/independent-implementation-005-organization-governance/graph/relations.json +110 -0
- package/pilots/independent-implementation-005-organization-governance/graph-seed.json +97 -0
- package/pilots/independent-implementation-005-organization-governance/mirai-graph-package.json +14 -0
- package/pilots/independent-implementation-005-organization-governance/reports/pilot-report.md +47 -0
- package/pilots/independent-implementation-005-organization-governance/results/profile-conformance-result.json +29 -0
- package/playground/README.md +78 -0
- package/playground/demo-report.md +84 -0
- package/profiles/README.md +19 -0
- package/profiles/ai-employee/README.md +132 -0
- package/profiles/ai-employee/profile.json +58 -0
- package/profiles/character-layer/README.md +143 -0
- package/profiles/character-layer/profile.json +46 -0
- package/profiles/implementation-control/README.md +170 -0
- package/profiles/implementation-control/profile.json +106 -0
- package/profiles/organization-governance/README.md +61 -0
- package/profiles/organization-governance/profile.json +56 -0
- package/profiles/project-management/README.md +115 -0
- package/profiles/project-management/profile.json +31 -0
- package/profiles/skill-runtime/README.md +94 -0
- package/profiles/skill-runtime/profile.json +58 -0
- package/profiles/software-specification/README.md +142 -0
- package/profiles/software-specification/profile.json +31 -0
- package/publications/README.md +24 -0
- package/publications/preprint-note.md +11 -0
- package/publications/preprint-outline.md +45 -0
- package/releases/0.1.0-alpha.0.md +45 -0
- package/releases/0.1.0-alpha.1.md +63 -0
- package/releases/0.1.0-alpha.10.md +93 -0
- package/releases/0.1.0-alpha.11.md +114 -0
- package/releases/0.1.0-alpha.2.md +37 -0
- package/releases/0.1.0-alpha.3.md +61 -0
- package/releases/0.1.0-alpha.4.md +53 -0
- package/releases/0.1.0-alpha.5.md +48 -0
- package/releases/0.1.0-alpha.6.md +96 -0
- package/releases/0.1.0-alpha.7.md +114 -0
- package/releases/0.1.0-alpha.8.md +92 -0
- package/releases/0.1.0-alpha.9.md +80 -0
- package/releases/1.0.0-rc.1.md +112 -0
- package/releases/README.md +114 -0
- package/schemas/baseline-comparison-result.schema.json +87 -0
- package/schemas/character-layer-integration.schema.json +112 -0
- package/schemas/character-layer-readiness.schema.json +73 -0
- package/schemas/context-pack.schema.json +137 -0
- package/schemas/development-cockpit.schema.json +74 -0
- package/schemas/feature-implementation-traceability.schema.json +80 -0
- package/schemas/federation-health-dashboard.schema.json +47 -0
- package/schemas/gate-result.schema.json +44 -0
- package/schemas/graph-dna-alignment.schema.json +49 -0
- package/schemas/graph-embryo.schema.json +51 -0
- package/schemas/graph-seed.schema.json +137 -0
- package/schemas/implementation-control-cycle.schema.json +265 -0
- package/schemas/implementation-control-loop.schema.json +84 -0
- package/schemas/launch-record.schema.json +78 -0
- package/schemas/model-portability-evidence.schema.json +93 -0
- package/schemas/multi-agent-coordination.schema.json +35 -0
- package/schemas/multi-source-quality-feedback.schema.json +54 -0
- package/schemas/object.schema.json +49 -0
- package/schemas/package-manifest.schema.json +53 -0
- package/schemas/process-control-contract.schema.json +100 -0
- package/schemas/process-transition-request.schema.json +41 -0
- package/schemas/profile.schema.json +56 -0
- package/schemas/readiness-score.schema.json +43 -0
- package/schemas/recovery-resume-record.schema.json +25 -0
- package/schemas/relation.schema.json +43 -0
- package/schemas/risk-control-matrix.schema.json +36 -0
- package/schemas/route-explanation.schema.json +51 -0
- package/schemas/route-regression-result.schema.json +33 -0
- package/schemas/routing-fixture-run.schema.json +45 -0
- package/schemas/routing-fixtures.schema.json +59 -0
- package/schemas/source-boundary-contract.schema.json +31 -0
- package/schemas/technology-quality-feedback.schema.json +116 -0
- package/schemas/work-state-machine.schema.json +34 -0
- package/standard/action-runtime-boundary.md +99 -0
- package/standard/adoption-levels.md +69 -0
- package/standard/conformance-levels.md +133 -0
- package/standard/context-pack-generation.md +141 -0
- package/standard/development-cockpit.md +67 -0
- package/standard/evidence-provenance.md +128 -0
- package/standard/feature-implementation-traceability.md +68 -0
- package/standard/federation-health.md +42 -0
- package/standard/feedback-learning-gate.md +101 -0
- package/standard/governance.md +137 -0
- package/standard/graph-as-ai-brain.md +81 -0
- package/standard/graph-dna-alignment.md +50 -0
- package/standard/graph-dna.md +70 -0
- package/standard/graph-embryo.md +69 -0
- package/standard/graph-seed.md +122 -0
- package/standard/hybrid-source-of-truth.md +91 -0
- package/standard/implementation-control-cycles.md +194 -0
- package/standard/implementation-control.md +102 -0
- package/standard/launch-record.md +53 -0
- package/standard/lifecycle-readiness.md +159 -0
- package/standard/multi-agent-coordination.md +50 -0
- package/standard/multi-source-quality-feedback.md +71 -0
- package/standard/object-model.md +152 -0
- package/standard/organization-governance.md +84 -0
- package/standard/process-control-contract.md +53 -0
- package/standard/profiles.md +233 -0
- package/standard/projection-views.md +69 -0
- package/standard/recovery-resume.md +49 -0
- package/standard/relation-model.md +139 -0
- package/standard/risk-control-matrix.md +53 -0
- package/standard/route-explanation.md +35 -0
- package/standard/route-regression.md +33 -0
- package/standard/routing-fixtures.md +54 -0
- package/standard/runtime-enablement.md +85 -0
- package/standard/source-boundary-contract.md +49 -0
- package/standard/standard-v0.1.md +132 -0
- package/standard/technology-quality-feedback.md +97 -0
- package/standard/test-suite.md +105 -0
- package/standard/work-state-machine.md +62 -0
- package/templates/README.md +64 -0
- package/templates/ai-employee-starter/README.md +9 -0
- package/templates/ai-employee-starter/gates/results.json +12 -0
- package/templates/ai-employee-starter/graph/objects.json +90 -0
- package/templates/ai-employee-starter/graph/relations.json +47 -0
- package/templates/ai-employee-starter/mirai-graph-package.json +14 -0
- package/templates/character-layer-starter/README.md +39 -0
- package/templates/character-layer-starter/gates/results.json +20 -0
- package/templates/character-layer-starter/graph/objects.json +308 -0
- package/templates/character-layer-starter/graph/relations.json +344 -0
- package/templates/character-layer-starter/mirai-graph-package.json +14 -0
- package/templates/organization-governance-starter/README.md +9 -0
- package/templates/organization-governance-starter/gates/results.json +12 -0
- package/templates/organization-governance-starter/graph/objects.json +112 -0
- package/templates/organization-governance-starter/graph/relations.json +65 -0
- package/templates/organization-governance-starter/mirai-graph-package.json +14 -0
- package/templates/research-program-starter/README.md +9 -0
- package/templates/research-program-starter/gates/results.json +12 -0
- package/templates/research-program-starter/graph/objects.json +79 -0
- package/templates/research-program-starter/graph/relations.json +47 -0
- package/templates/research-program-starter/mirai-graph-package.json +14 -0
- package/templates/software-project-starter/README.md +9 -0
- package/templates/software-project-starter/gates/results.json +12 -0
- package/templates/software-project-starter/graph/objects.json +79 -0
- package/templates/software-project-starter/graph/relations.json +47 -0
- package/templates/software-project-starter/mirai-graph-package.json +14 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Character Layer Adoption
|
|
2
|
+
|
|
3
|
+
Status: alpha profile guide
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
The Character Layer profile defines a public Mirai Graph vocabulary for
|
|
8
|
+
model-independent AI character governance.
|
|
9
|
+
|
|
10
|
+
It is intended for systems that need to represent:
|
|
11
|
+
|
|
12
|
+
- character constitutions;
|
|
13
|
+
- principles and character virtues;
|
|
14
|
+
- character boundaries;
|
|
15
|
+
- role-specific character profiles;
|
|
16
|
+
- reflection protocols;
|
|
17
|
+
- evaluation fixtures;
|
|
18
|
+
- violation patterns;
|
|
19
|
+
- correction loops;
|
|
20
|
+
- evidence and governance gates.
|
|
21
|
+
|
|
22
|
+
## Profile Boundary
|
|
23
|
+
|
|
24
|
+
Character Layer stores canonical character state and review structure in a
|
|
25
|
+
graph package. Runtime systems can project that graph into task context, but
|
|
26
|
+
generated context remains separate from authorization, external action and
|
|
27
|
+
canonical updates.
|
|
28
|
+
|
|
29
|
+
Recommended boundary:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
canonical character graph
|
|
33
|
+
-> generated character context
|
|
34
|
+
-> runtime reflection
|
|
35
|
+
-> proposed answer or action
|
|
36
|
+
-> policy or action gate
|
|
37
|
+
-> output or execution
|
|
38
|
+
-> reviewed result
|
|
39
|
+
-> feedback
|
|
40
|
+
-> correction proposal
|
|
41
|
+
-> owner-approved canonical update
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Relationship To AI Employee
|
|
45
|
+
|
|
46
|
+
Use `character_layer` when the main object is behavior governance: principles,
|
|
47
|
+
boundaries, reflection, fixtures, violations and correction loops.
|
|
48
|
+
|
|
49
|
+
Use `ai_employee` when the main object is an executable AI worker model: roles,
|
|
50
|
+
skills, tools, capabilities, workflows, actions, feedback and lessons.
|
|
51
|
+
|
|
52
|
+
The profiles can be composed by a system design, but the first Character Layer
|
|
53
|
+
profile is separate and does not modify `profiles/ai-employee/`.
|
|
54
|
+
|
|
55
|
+
Typical composition:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
ai_employee -> has_role -> role
|
|
59
|
+
role_character_profile -> governs_role -> role
|
|
60
|
+
role_character_profile -> governs_employee -> ai_employee
|
|
61
|
+
role_character_profile -> specializes_character -> character_constitution
|
|
62
|
+
role_character_profile -> uses_reflection_protocol -> reflection_protocol
|
|
63
|
+
character_boundary -> requires_escalation_to -> governance_gate
|
|
64
|
+
correction_loop -> updates_character -> role_character_profile|character_principle|character_boundary
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Minimal Package
|
|
68
|
+
|
|
69
|
+
The minimal package is:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
examples/character-layer-minimal/
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
It includes:
|
|
76
|
+
|
|
77
|
+
- one public-safe character constitution;
|
|
78
|
+
- principles for uncertainty, authority boundaries and evidence reporting;
|
|
79
|
+
- character virtues for evidence honesty and boundary discipline;
|
|
80
|
+
- character boundaries for generated authorization and secret exposure;
|
|
81
|
+
- a reflection protocol;
|
|
82
|
+
- a role character profile;
|
|
83
|
+
- a fixture, violation pattern and correction loop;
|
|
84
|
+
- gate results for public safety, canonical writes, external actions, feedback
|
|
85
|
+
learning and scientific claims.
|
|
86
|
+
|
|
87
|
+
## Starter Pack
|
|
88
|
+
|
|
89
|
+
For new projects, start from the reusable starter:
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
templates/character-layer-starter/
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
It expands the minimal fixture into a base character constitution, reusable
|
|
96
|
+
principles, character virtues, hard boundaries, reflection protocol, several
|
|
97
|
+
role character profiles, violation patterns and an owner-reviewed correction
|
|
98
|
+
loop.
|
|
99
|
+
|
|
100
|
+
Use it when the same behavior governance layer should be reused across AI
|
|
101
|
+
employees, project roles or model backends.
|
|
102
|
+
|
|
103
|
+
## Cross-Layer Integration
|
|
104
|
+
|
|
105
|
+
Character Layer should compose with other layers through an integration artifact
|
|
106
|
+
rather than by mixing all profile vocabularies into one package.
|
|
107
|
+
|
|
108
|
+
Minimal synthetic integration example:
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
examples/character-layer-integration-minimal/
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
It links:
|
|
115
|
+
|
|
116
|
+
- `role_character_profile` to AI employee and role references;
|
|
117
|
+
- launch record and process-control contract references;
|
|
118
|
+
- technology quality feedback;
|
|
119
|
+
- runtime generated context boundary;
|
|
120
|
+
- reflection protocol;
|
|
121
|
+
- required gates for approval, review and technology feedback.
|
|
122
|
+
|
|
123
|
+
## Model Portability Evidence
|
|
124
|
+
|
|
125
|
+
To test whether a new neural model backend preserves behavior, compare model
|
|
126
|
+
runs against the same task set, graph context and character profile.
|
|
127
|
+
|
|
128
|
+
Minimal synthetic evidence shape:
|
|
129
|
+
|
|
130
|
+
```text
|
|
131
|
+
examples/model-portability-minimal/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This records fixture results, boundary violations, comparison metrics and a
|
|
135
|
+
bounded verdict such as `portable_within_fixture_limits`. It does not prove
|
|
136
|
+
broad model equivalence or production replacement readiness.
|
|
137
|
+
|
|
138
|
+
## 1.0 Readiness Consolidation
|
|
139
|
+
|
|
140
|
+
The Character Layer 1.0 readiness artifact is:
|
|
141
|
+
|
|
142
|
+
```text
|
|
143
|
+
examples/character-layer-readiness-1-0/
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
It consolidates profile vocabulary, minimal fixture, starter pack, semantic
|
|
147
|
+
anti-fixtures, cross-layer integration, model portability evidence shape,
|
|
148
|
+
validation commands, claim boundaries and remaining limits.
|
|
149
|
+
|
|
150
|
+
## Validation
|
|
151
|
+
|
|
152
|
+
From the repository root:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
node packages/cli/validate-mirai-graph.js profile profiles/character-layer/profile.json
|
|
156
|
+
node packages/cli/validate-mirai-graph.js examples/character-layer-minimal
|
|
157
|
+
node packages/cli/validate-mirai-graph.js templates/character-layer-starter
|
|
158
|
+
node packages/cli/validate-mirai-graph.js character-layer-integration examples/character-layer-integration-minimal/results/character-layer-integration.json
|
|
159
|
+
node packages/cli/validate-mirai-graph.js model-portability-evidence examples/model-portability-minimal/results/model-portability-evidence.json
|
|
160
|
+
node packages/cli/validate-mirai-graph.js character-layer-readiness examples/character-layer-readiness-1-0/results/character-layer-readiness.json
|
|
161
|
+
npm run validate:character-layer
|
|
162
|
+
npm run validate:character-layer-starter
|
|
163
|
+
npm run validate:character-layer-integration
|
|
164
|
+
npm run validate:model-portability-evidence
|
|
165
|
+
npm run validate:character-layer-readiness
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Evidence Limits
|
|
169
|
+
|
|
170
|
+
The current profile and example provide structural conformance evidence for the
|
|
171
|
+
Mirai Graph package shape. Scientific effectiveness claims require separate
|
|
172
|
+
research design, measurements and review.
|
|
173
|
+
|
|
174
|
+
The current release-candidate profile does not claim improvements in trust, safety,
|
|
175
|
+
auditability, consistency or employee performance.
|
|
176
|
+
|
|
177
|
+
## Public Safety
|
|
178
|
+
|
|
179
|
+
Public examples should use synthetic or public-safe content only.
|
|
180
|
+
|
|
181
|
+
Do not include:
|
|
182
|
+
|
|
183
|
+
- private operational constitutions;
|
|
184
|
+
- customer data;
|
|
185
|
+
- credentials, tokens or private keys;
|
|
186
|
+
- private runtime logs;
|
|
187
|
+
- organization-specific instructions that should stay internal.
|
|
188
|
+
|
|
189
|
+
## Adoption Checklist
|
|
190
|
+
|
|
191
|
+
- Choose `character_layer` only when behavior-governance objects are central.
|
|
192
|
+
- Keep canonical graph state separate from generated runtime context.
|
|
193
|
+
- Keep generated context separate from authorization.
|
|
194
|
+
- Add gate results for public safety and canonical-write boundaries.
|
|
195
|
+
- Mark scientific or product-effectiveness claims as out of scope until
|
|
196
|
+
supported by research evidence.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Choose A Mirai Graph Profile
|
|
2
|
+
|
|
3
|
+
Status: alpha.10 adopter workflow
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Use this guide when you want to start a Mirai Graph package and need to choose
|
|
8
|
+
the first profile, starter template and validation path.
|
|
9
|
+
|
|
10
|
+
Start narrow. A useful first package should model one bounded system, not the
|
|
11
|
+
entire organization.
|
|
12
|
+
|
|
13
|
+
## Quick Choice
|
|
14
|
+
|
|
15
|
+
| You are modeling | Start with profile | Starter template | Validate with |
|
|
16
|
+
| --- | --- | --- | --- |
|
|
17
|
+
| Software product, feature or package | `software_specification` | `templates/software-project-starter` | `npm run validate:templates` |
|
|
18
|
+
| Research program or evidence workflow | `project_management` | `templates/research-program-starter` | `npm run validate:templates` |
|
|
19
|
+
| AI employee, agent workflow or governed AI role | `ai_employee` | `templates/ai-employee-starter` | `npm run validate:templates` |
|
|
20
|
+
| AI behavior constitution, role character or reflection boundary | `character_layer` | `templates/character-layer-starter` | `npm run validate:templates` |
|
|
21
|
+
| Organization, department, portfolio or governance system | `organization_governance` | `templates/organization-governance-starter` | `npm run validate:templates` |
|
|
22
|
+
|
|
23
|
+
## Decision Rules
|
|
24
|
+
|
|
25
|
+
Choose `software_specification` when the graph needs to manage requirements,
|
|
26
|
+
features, components, dependencies, implementation tasks and technical risks.
|
|
27
|
+
|
|
28
|
+
Choose `project_management` when the graph needs to coordinate goals,
|
|
29
|
+
milestones, tasks, decisions, risks, evidence and review gates across a bounded
|
|
30
|
+
initiative.
|
|
31
|
+
|
|
32
|
+
Choose `ai_employee` when the graph needs to describe an AI worker as a governed
|
|
33
|
+
system with role, skill, tool, policy, action, result, feedback and learning
|
|
34
|
+
boundaries.
|
|
35
|
+
|
|
36
|
+
Choose `character_layer` when the graph needs to describe model-independent AI
|
|
37
|
+
behavior governance: constitution, principles, character virtues, boundaries,
|
|
38
|
+
reflection protocols, violation patterns and correction loops.
|
|
39
|
+
|
|
40
|
+
Choose `organization_governance` when the graph needs to model mission,
|
|
41
|
+
strategy, departments, programs, policies, controls, metrics, delegated
|
|
42
|
+
responsibility and governance risks.
|
|
43
|
+
|
|
44
|
+
If two profiles seem valid, choose the profile that matches the first decision
|
|
45
|
+
you need to make:
|
|
46
|
+
|
|
47
|
+
- build or change software -> `software_specification`;
|
|
48
|
+
- coordinate work -> `project_management`;
|
|
49
|
+
- govern an AI worker -> `ai_employee`;
|
|
50
|
+
- govern behavior across AI roles or model backends -> `character_layer`;
|
|
51
|
+
- govern an organization or portfolio -> `organization_governance`.
|
|
52
|
+
|
|
53
|
+
## First-Day Workflow
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
choose profile -> copy starter -> replace synthetic objects -> validate -> generate report -> add launch/evidence/kaizen controls
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
1. Copy the closest starter template into your project.
|
|
60
|
+
2. Keep the same file layout for the first iteration.
|
|
61
|
+
3. Replace synthetic object titles and summaries with your real public-safe or
|
|
62
|
+
private project objects.
|
|
63
|
+
4. Keep private notes, credentials, customer data and raw logs outside public
|
|
64
|
+
graph packages.
|
|
65
|
+
5. Run package validation.
|
|
66
|
+
6. Generate a Markdown report for human review.
|
|
67
|
+
7. Add launch records, process transitions, evidence packs and Kaizen only
|
|
68
|
+
after the package shape validates.
|
|
69
|
+
|
|
70
|
+
## Commands
|
|
71
|
+
|
|
72
|
+
Profile map:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
node packages/cli/mirai-graph.js choose-profile
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Adopter plan for a role or profile:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
node packages/cli/mirai-graph.js adopter plan developer
|
|
82
|
+
node packages/cli/mirai-graph.js adopter plan ai_employee
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Readable report for a starter:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
node packages/cli/mirai-graph.js adopter report templates/software-project-starter
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Boundaries
|
|
92
|
+
|
|
93
|
+
- A selected profile is a starting point, not a claim of complete governance.
|
|
94
|
+
- Passing validation means the package follows current release-candidate shape
|
|
95
|
+
rules.
|
|
96
|
+
- Generated context, evidence, feedback and proposals do not authorize
|
|
97
|
+
canonical updates.
|
|
98
|
+
- Production execution stays outside the public alpha adopter workflow.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Mirai Graph CLI
|
|
2
|
+
|
|
3
|
+
Status: alpha unified entrypoint
|
|
4
|
+
|
|
5
|
+
Mirai Graph keeps the reference scripts for direct automation. The
|
|
6
|
+
`mirai-graph` entrypoint is the primary command surface for common checks and
|
|
7
|
+
reports.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
List profile choices:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
node packages/cli/mirai-graph.js choose-profile
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Print an adopter plan for a role or profile:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
node packages/cli/mirai-graph.js adopter plan developer
|
|
21
|
+
node packages/cli/mirai-graph.js adopter plan organization_governance
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Generate a readable adopter report for a starter template:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
node packages/cli/mirai-graph.js adopter report templates/software-project-starter
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Validate a package:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
node packages/cli/mirai-graph.js validate examples/minimal-graph
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Generate a Markdown validation report:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
node packages/cli/mirai-graph.js report validation examples/minimal-graph
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Explain a process transition:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
node packages/cli/mirai-graph.js explain process-transition examples/process-transition-minimal/state-machine.json examples/process-transition-minimal/transition-request.json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Generate the playground report:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
node packages/cli/mirai-graph.js report playground
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Check the external release state without publishing:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
node packages/cli/mirai-graph.js release state --markdown
|
|
58
|
+
npm run validate:release-state
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Output Boundary
|
|
62
|
+
|
|
63
|
+
- JSON output is intended for tools and CI.
|
|
64
|
+
- Markdown output is intended for human review.
|
|
65
|
+
- Adopter workflow output is a starting aid, not adoption proof.
|
|
66
|
+
- A passing report is evidence for the checked artifact only.
|
|
67
|
+
- A release-state report checks package, git tag, GitHub Release, npm registry
|
|
68
|
+
and npm auth state, but it does not publish or authorize a release.
|
|
69
|
+
- Generated context, evidence, feedback and proposals do not authorize
|
|
70
|
+
canonical updates.
|
|
71
|
+
|
|
72
|
+
## Command Aliases
|
|
73
|
+
|
|
74
|
+
The `mirai_graph` entrypoint is an underscore alias for environments where a
|
|
75
|
+
hyphenated command name is inconvenient. New documentation and automation
|
|
76
|
+
should prefer
|
|
77
|
+
`node packages/cli/validate-mirai-graph.js <package-dir>` or
|
|
78
|
+
`node packages/cli/mirai-graph.js ...`.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Mirai Graph Developer Integration Guide
|
|
2
|
+
|
|
3
|
+
Status: 1.0 release-candidate developer guide
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This guide shows how to use Mirai Graph validation in a developer workflow or CI
|
|
8
|
+
pipeline.
|
|
9
|
+
|
|
10
|
+
Mirai Graph tooling is a reference implementation. The standard remains the
|
|
11
|
+
source of the model; the CLI helps teams check public-safe graph packages,
|
|
12
|
+
profiles, context packs and process-control artifacts.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
For the current release candidate, run commands from the repository root:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Validate A Package
|
|
23
|
+
|
|
24
|
+
JSON output is the default:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
node packages/cli/validate-mirai-graph.js examples/minimal-graph
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Human-readable Markdown output:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
node packages/cli/validate-mirai-graph.js --markdown examples/minimal-graph
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Validate Process Control
|
|
37
|
+
|
|
38
|
+
Use process-transition validation when work moves through an executable state
|
|
39
|
+
machine:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
node packages/cli/validate-mirai-graph.js process-transition \
|
|
43
|
+
examples/process-transition-minimal/state-machine.json \
|
|
44
|
+
examples/process-transition-minimal/transition-request.json
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Use process-control contract validation when a project binds cycles, state
|
|
48
|
+
machine, launch policy, evidence, recovery and Kaizen policy:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
node packages/cli/validate-mirai-graph.js process-control-contract \
|
|
52
|
+
examples/process-control-contract-minimal/results/process-control-contract.json
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## CI Example
|
|
56
|
+
|
|
57
|
+
Minimal GitHub Actions step:
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
- name: Validate Mirai Graph examples
|
|
61
|
+
run: |
|
|
62
|
+
npm ci
|
|
63
|
+
npm run release:check
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Targeted package check:
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
- name: Validate Mirai Graph package
|
|
70
|
+
run: |
|
|
71
|
+
node packages/cli/validate-mirai-graph.js path/to/package
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Markdown report artifact:
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
- name: Generate Mirai Graph validation report
|
|
78
|
+
run: |
|
|
79
|
+
node packages/cli/validate-mirai-graph.js --markdown path/to/package > mirai-graph-report.md
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Exit Codes
|
|
83
|
+
|
|
84
|
+
- `0`: validation passed.
|
|
85
|
+
- `1`: validation failed or an input file could not be read.
|
|
86
|
+
- `2`: command usage error.
|
|
87
|
+
|
|
88
|
+
## Boundaries
|
|
89
|
+
|
|
90
|
+
- A passing validation report is evidence for the selected check only.
|
|
91
|
+
- Generated context is not canonical graph state.
|
|
92
|
+
- Evidence and proposals do not authorize canonical updates.
|
|
93
|
+
- Readiness states do not imply execution or release.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# End-To-End Mirai Graph Control Loop
|
|
2
|
+
|
|
3
|
+
Status: alpha tutorial
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This tutorial shows the public alpha control loop:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
seed -> graph -> context -> launch -> transition -> evidence -> kaizen
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It uses existing public-safe examples. It does not require private project data
|
|
14
|
+
and does not grant automatic permission to change canonical graph state.
|
|
15
|
+
|
|
16
|
+
## 1. Start With A Seed
|
|
17
|
+
|
|
18
|
+
A graph seed defines the first bounded system shape before a full graph exists.
|
|
19
|
+
|
|
20
|
+
Run:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
node packages/cli/validate-mirai-graph.js seed examples/graph-seed-minimal/graph-seed.json
|
|
24
|
+
node packages/cli/seed-preview.js examples/graph-seed-minimal/graph-seed.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Read:
|
|
28
|
+
|
|
29
|
+
- `standard/graph-seed.md`
|
|
30
|
+
- `examples/graph-seed-minimal/README.md`
|
|
31
|
+
|
|
32
|
+
## 2. Validate A Graph Package
|
|
33
|
+
|
|
34
|
+
A package stores graph objects, relations and gate results.
|
|
35
|
+
|
|
36
|
+
Run:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
node packages/cli/validate-mirai-graph.js examples/minimal-graph
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Read:
|
|
43
|
+
|
|
44
|
+
- `standard/object-model.md`
|
|
45
|
+
- `standard/relation-model.md`
|
|
46
|
+
- `standard/evidence-provenance.md`
|
|
47
|
+
|
|
48
|
+
## 3. Generate Or Inspect Task Context
|
|
49
|
+
|
|
50
|
+
Context packs select task-relevant graph material. They are generated context,
|
|
51
|
+
not canonical state.
|
|
52
|
+
|
|
53
|
+
Run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
node packages/cli/context-pack.js benchmarks/synthetic-context-reduction-v0 --task-id task.notify_after_approval
|
|
57
|
+
node packages/cli/validate-mirai-graph.js context-pack benchmarks/synthetic-context-reduction-v0 benchmarks/synthetic-context-reduction-v0/results/context-pack.json
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Read:
|
|
61
|
+
|
|
62
|
+
- `standard/context-pack-generation.md`
|
|
63
|
+
- `benchmarks/synthetic-context-reduction-v0/README.md`
|
|
64
|
+
|
|
65
|
+
## 4. Prepare A Launch Record
|
|
66
|
+
|
|
67
|
+
A launch record defines a bounded work batch, required gates, allowed scope and
|
|
68
|
+
evidence expectations. It is not proof that the work has been executed.
|
|
69
|
+
|
|
70
|
+
Run:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
node packages/cli/validate-mirai-graph.js examples/launch-record-minimal
|
|
74
|
+
node packages/cli/validate-mirai-graph.js launch-record examples/launch-record-minimal/results/launch-record.json
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Read:
|
|
78
|
+
|
|
79
|
+
- `standard/launch-record.md`
|
|
80
|
+
- `examples/launch-record-minimal/README.md`
|
|
81
|
+
|
|
82
|
+
## 5. Validate A Process Transition
|
|
83
|
+
|
|
84
|
+
Process transitions move through executable state-machine states. Human stages
|
|
85
|
+
and documentation can explain the movement, but the transition request must
|
|
86
|
+
pass validator checks.
|
|
87
|
+
|
|
88
|
+
Run:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
node packages/cli/validate-mirai-graph.js process-transition examples/process-transition-minimal/state-machine.json examples/process-transition-minimal/transition-request.json
|
|
92
|
+
node packages/cli/validate-mirai-graph.js process-transition examples/process-transition-minimal/state-machine.json examples/process-transition-minimal/transition-request-skip-kaizen.json
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Negative fixtures intentionally fail:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npm run test:process-transition-negative
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Read:
|
|
102
|
+
|
|
103
|
+
- `standard/work-state-machine.md`
|
|
104
|
+
- `standard/process-control-contract.md`
|
|
105
|
+
- `examples/process-transition-minimal/README.md`
|
|
106
|
+
|
|
107
|
+
## 6. Record Evidence
|
|
108
|
+
|
|
109
|
+
Evidence links claims to sources, gates, validation results and limitations. It
|
|
110
|
+
does not approve canonical updates by itself.
|
|
111
|
+
|
|
112
|
+
Run:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm run validate:implementation-control
|
|
116
|
+
npm run validate:process-control
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Read:
|
|
120
|
+
|
|
121
|
+
- `standard/evidence-provenance.md`
|
|
122
|
+
- `standard/implementation-control.md`
|
|
123
|
+
- `examples/process-control-contract-minimal/README.md`
|
|
124
|
+
|
|
125
|
+
## 7. Close With Kaizen
|
|
126
|
+
|
|
127
|
+
Significant work should end with a Kaizen review or an explicit
|
|
128
|
+
`no_reusable_lessons` reason. Kaizen findings become classified improvement
|
|
129
|
+
inputs, not automatic rewrites.
|
|
130
|
+
|
|
131
|
+
Run:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
npm run validate:implementation-control-cycles
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Read:
|
|
138
|
+
|
|
139
|
+
- `standard/implementation-control-cycles.md`
|
|
140
|
+
- `examples/implementation-control-cycles/README.md`
|
|
141
|
+
|
|
142
|
+
## Full Smoke Check
|
|
143
|
+
|
|
144
|
+
Run the current release-candidate test suite:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
npm test
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Generate the playground report for this loop:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
npm run playground:demo
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
For release readiness:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm run release:check
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Boundaries
|
|
163
|
+
|
|
164
|
+
- Generated context is not canonical state.
|
|
165
|
+
- Evidence is not approval.
|
|
166
|
+
- A proposal is not a canonical update.
|
|
167
|
+
- `ready_to_execute` is not execution.
|
|
168
|
+
- Synthetic benchmarks are method demonstrations, not broad scientific proof.
|