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,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "0.1.0",
|
|
3
|
+
"review_id": "semantic_review.synthetic_context_reduction_v0.task_notify_after_approval",
|
|
4
|
+
"reviewed_at": "2026-05-28",
|
|
5
|
+
"reviewer": "Mirai Graph maintainers",
|
|
6
|
+
"protocol": "docs/research/semantic-completeness-review-protocol.md",
|
|
7
|
+
"target": {
|
|
8
|
+
"package_id": "package.synthetic_context_reduction_v0",
|
|
9
|
+
"context_pack": "benchmarks/synthetic-context-reduction-v0/results/context-pack.json",
|
|
10
|
+
"task_id": "task.notify_after_approval"
|
|
11
|
+
},
|
|
12
|
+
"verdict": "pass_with_notes",
|
|
13
|
+
"score_total": 15,
|
|
14
|
+
"score_max": 16,
|
|
15
|
+
"dimensions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "task_relevance",
|
|
18
|
+
"score": 2,
|
|
19
|
+
"note": "The context pack is centered on notification after approval."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "required_object_coverage",
|
|
23
|
+
"score": 2,
|
|
24
|
+
"note": "Notification delivery, workflow transition, scoped token, audit constraint and duplicate-notification risk are included."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "required_relation_coverage",
|
|
28
|
+
"score": 2,
|
|
29
|
+
"note": "The included relations preserve dependency, evidence, blocking and generation paths needed for the task."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "evidence_preservation",
|
|
33
|
+
"score": 2,
|
|
34
|
+
"note": "All source evidence referenced by included objects and relations is preserved."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "risk_and_blocker_visibility",
|
|
38
|
+
"score": 2,
|
|
39
|
+
"note": "The audit-before-notify constraint and duplicate notification risk remain visible."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "governance_gate_visibility",
|
|
43
|
+
"score": 1,
|
|
44
|
+
"note": "The package has no explicit governance gate object; the safety constraint is visible but not modeled as a gate."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "omission_transparency",
|
|
48
|
+
"score": 2,
|
|
49
|
+
"note": "Omitted package-level objects are listed."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "no_private_or_unsafe_leakage",
|
|
53
|
+
"score": 2,
|
|
54
|
+
"note": "The package is synthetic and contains no private material."
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"required_context_preserved": [
|
|
58
|
+
"pkg.notification_delivery",
|
|
59
|
+
"feature.workflow_transition",
|
|
60
|
+
"feature.scoped_api_token",
|
|
61
|
+
"constraint.audit_before_notify",
|
|
62
|
+
"risk.duplicate_notifications"
|
|
63
|
+
],
|
|
64
|
+
"important_omissions": [
|
|
65
|
+
{
|
|
66
|
+
"object_id": "pkg.identity_access",
|
|
67
|
+
"impact": "low",
|
|
68
|
+
"note": "The scoped API token feature and source evidence are included, so the omitted package wrapper does not block this task."
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"limitations": [
|
|
72
|
+
"The review is performed on a synthetic package.",
|
|
73
|
+
"The review does not measure downstream implementation quality.",
|
|
74
|
+
"The package does not yet model governance gates as graph objects.",
|
|
75
|
+
"Selection scores are heuristic and do not prove semantic completeness."
|
|
76
|
+
],
|
|
77
|
+
"claim_supported": "The generated context pack preserved task-relevant meaning under this review protocol."
|
|
78
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
const packageRoot = path.resolve(__dirname, "..");
|
|
7
|
+
const writeFlagIndex = process.argv.indexOf("--write");
|
|
8
|
+
const outputPath = writeFlagIndex >= 0 ? process.argv[writeFlagIndex + 1] : null;
|
|
9
|
+
const metricsPath = path.join(packageRoot, "metrics", "example-metrics.json");
|
|
10
|
+
const metrics = JSON.parse(fs.readFileSync(metricsPath, "utf8"));
|
|
11
|
+
|
|
12
|
+
const baseline = metrics.baseline.estimated_context_units;
|
|
13
|
+
const graphContext = metrics.graph_context.estimated_context_units;
|
|
14
|
+
|
|
15
|
+
if (!Number.isFinite(baseline) || baseline <= 0) {
|
|
16
|
+
throw new Error("baseline.estimated_context_units must be a positive number");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (!Number.isFinite(graphContext) || graphContext < 0) {
|
|
20
|
+
throw new Error("graph_context.estimated_context_units must be a non-negative number");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const reductionPercent = ((baseline - graphContext) / baseline) * 100;
|
|
24
|
+
|
|
25
|
+
const result = {
|
|
26
|
+
schema_version: "0.1.0",
|
|
27
|
+
task_id: metrics.task_id,
|
|
28
|
+
baseline_context_units: baseline,
|
|
29
|
+
graph_context_units: graphContext,
|
|
30
|
+
total_reduction_percent: Number(reductionPercent.toFixed(4)),
|
|
31
|
+
note: "Synthetic demonstration only; do not merge with internal empirical metrics."
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const output = JSON.stringify(result, null, 2);
|
|
35
|
+
|
|
36
|
+
if (outputPath) {
|
|
37
|
+
const resolvedOutputPath = path.resolve(outputPath);
|
|
38
|
+
fs.mkdirSync(path.dirname(resolvedOutputPath), { recursive: true });
|
|
39
|
+
fs.writeFileSync(resolvedOutputPath, `${output}\n`);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
console.log(output);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Audit Events Package
|
|
2
|
+
|
|
3
|
+
The audit package stores append-only events for security-relevant actions and
|
|
4
|
+
workflow transitions. Events must include actor identity, action type, target
|
|
5
|
+
object and correlation identifier.
|
|
6
|
+
|
|
7
|
+
Open issue: audit records should be queryable by administrators without
|
|
8
|
+
exposing private draft content.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Content Workflow Package
|
|
2
|
+
|
|
3
|
+
The workflow package manages draft, review, approved and published states.
|
|
4
|
+
Every state transition must store actor, timestamp, previous state, next state
|
|
5
|
+
and reason.
|
|
6
|
+
|
|
7
|
+
Open issue: publication approval should trigger notifications, but only after
|
|
8
|
+
audit events are persisted.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Identity And Access Package
|
|
2
|
+
|
|
3
|
+
The platform needs account registration, role assignment and scoped API tokens.
|
|
4
|
+
Editors can create drafts, reviewers can approve publication and administrators
|
|
5
|
+
can manage roles.
|
|
6
|
+
|
|
7
|
+
Open issue: API tokens must be auditable because notification delivery may act
|
|
8
|
+
on behalf of a user.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Notification Delivery Package
|
|
2
|
+
|
|
3
|
+
The notification package sends email and webhook messages when important
|
|
4
|
+
workflow events occur. Delivery workers must use scoped tokens and must not send
|
|
5
|
+
notifications until the triggering event has been audited.
|
|
6
|
+
|
|
7
|
+
Open issue: retry behavior must avoid duplicate notifications for the same
|
|
8
|
+
workflow transition.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "task.notify_after_approval",
|
|
4
|
+
"prompt": "Prepare the implementation context for sending notifications after content approval.",
|
|
5
|
+
"baseline_sources": [
|
|
6
|
+
"source-corpus/identity-access.md",
|
|
7
|
+
"source-corpus/content-workflow.md",
|
|
8
|
+
"source-corpus/audit-events.md",
|
|
9
|
+
"source-corpus/notification-delivery.md"
|
|
10
|
+
],
|
|
11
|
+
"graph_seed_objects": [
|
|
12
|
+
"feature.workflow_transition",
|
|
13
|
+
"constraint.audit_before_notify",
|
|
14
|
+
"pkg.notification_delivery"
|
|
15
|
+
],
|
|
16
|
+
"expected_context_objects": [
|
|
17
|
+
"pkg.content_workflow",
|
|
18
|
+
"feature.workflow_transition",
|
|
19
|
+
"pkg.audit_events",
|
|
20
|
+
"constraint.audit_before_notify",
|
|
21
|
+
"pkg.notification_delivery",
|
|
22
|
+
"feature.scoped_api_token",
|
|
23
|
+
"risk.duplicate_notifications"
|
|
24
|
+
],
|
|
25
|
+
"acceptance_notes": [
|
|
26
|
+
"Context must include the audit-before-notify constraint.",
|
|
27
|
+
"Context must include scoped-token dependency.",
|
|
28
|
+
"Context must flag duplicate notification risk."
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Mirai Graph 1.0 RC Adopter Kit
|
|
2
|
+
|
|
3
|
+
Status: 1.0 release-candidate adoption kit
|
|
4
|
+
|
|
5
|
+
This kit is the shortest public path from "I want to try Mirai Graph" to a
|
|
6
|
+
validated local graph package. It is intentionally CLI-first and repository
|
|
7
|
+
based while npm publication is pending.
|
|
8
|
+
|
|
9
|
+
## What This Kit Gives You
|
|
10
|
+
|
|
11
|
+
- A role-to-profile map.
|
|
12
|
+
- Starter templates for common adoption paths.
|
|
13
|
+
- A validation sequence that catches schema, profile and process mistakes.
|
|
14
|
+
- A minimal operating loop from graph seed to evidence and feedback.
|
|
15
|
+
- Safety boundaries for private data, generated context and canonical updates.
|
|
16
|
+
|
|
17
|
+
It does not prove that a project is correct, complete or scientifically
|
|
18
|
+
validated. It proves that the adopter has a structured, reviewable starting
|
|
19
|
+
package that follows the current 1.0 release-candidate shape.
|
|
20
|
+
|
|
21
|
+
## Start By Role
|
|
22
|
+
|
|
23
|
+
| Role | Start with | Template | Main checks |
|
|
24
|
+
| --- | --- | --- | --- |
|
|
25
|
+
| Developer | `software_specification` | `templates/software-project-starter/` | package validation, process transition, technology feedback |
|
|
26
|
+
| Researcher | `project_management` | `templates/research-program-starter/` | seed validation, evidence boundaries, reproducibility notes |
|
|
27
|
+
| AI product team | `ai_employee` | `templates/ai-employee-starter/` | role/skill/tool/policy graph, approval gates, feedback |
|
|
28
|
+
| Behavior governance | `character_layer` | `templates/character-layer-starter/` | constitution, role character profiles, reflection, correction loops |
|
|
29
|
+
| Organization | `organization_governance` | `templates/organization-governance-starter/` | goals, departments, policies, controls, metrics |
|
|
30
|
+
|
|
31
|
+
## Local Setup
|
|
32
|
+
|
|
33
|
+
Until npm publication is complete, run commands from the repository checkout:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
cd /path/to/mirai-graph
|
|
37
|
+
npm install
|
|
38
|
+
npm test
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
After npm publication, the same adopter path should be available through the
|
|
42
|
+
published `mirai-graph` package.
|
|
43
|
+
|
|
44
|
+
## One-Hour Adoption Path
|
|
45
|
+
|
|
46
|
+
1. Choose a role:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
node packages/cli/mirai-graph.js choose-profile
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
2. Print the role plan:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
node packages/cli/mirai-graph.js adopter plan developer
|
|
56
|
+
node packages/cli/mirai-graph.js adopter plan researcher
|
|
57
|
+
node packages/cli/mirai-graph.js adopter plan ai_employee
|
|
58
|
+
node packages/cli/mirai-graph.js adopter plan organization
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
3. Validate the closest starter:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node packages/cli/validate-mirai-graph.js templates/software-project-starter
|
|
65
|
+
node packages/cli/validate-mirai-graph.js templates/research-program-starter
|
|
66
|
+
node packages/cli/validate-mirai-graph.js templates/ai-employee-starter
|
|
67
|
+
node packages/cli/validate-mirai-graph.js templates/character-layer-starter
|
|
68
|
+
node packages/cli/validate-mirai-graph.js templates/organization-governance-starter
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
4. Generate a readable adopter report:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
node packages/cli/mirai-graph.js adopter report templates/software-project-starter
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
5. Copy the starter into your own project and replace synthetic objects with
|
|
78
|
+
your real public-safe or private source material.
|
|
79
|
+
|
|
80
|
+
6. Run validation again in the copied package before adding runtime evidence.
|
|
81
|
+
|
|
82
|
+
## One-Day Adoption Path
|
|
83
|
+
|
|
84
|
+
Use the one-hour path, then add the executable-process layer:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
graph seed
|
|
88
|
+
-> package validation
|
|
89
|
+
-> context pack
|
|
90
|
+
-> launch record
|
|
91
|
+
-> process transition explanation
|
|
92
|
+
-> technology quality feedback
|
|
93
|
+
-> evidence update
|
|
94
|
+
-> Kaizen item
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Recommended checks:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npm run validate:templates
|
|
101
|
+
npm run validate:launch-record
|
|
102
|
+
npm run validate:process-transition
|
|
103
|
+
npm run validate:technology-quality-feedback
|
|
104
|
+
npm run validate:instrumentation-layer
|
|
105
|
+
npm run validate:adopter-workflow
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Acceptance Checklist
|
|
109
|
+
|
|
110
|
+
A 1.0 release-candidate adopter package is ready for first internal use when:
|
|
111
|
+
|
|
112
|
+
- `mirai-graph-package.json` exists and points to graph, gates and profile.
|
|
113
|
+
- `graph/objects.json` has stable object ids, kinds, summaries and readiness.
|
|
114
|
+
- `graph/relations.json` has directed relations with valid source/target ids.
|
|
115
|
+
- `gates/results.json` records at least the initial validation gate.
|
|
116
|
+
- Private logs, credentials, customer data and internal handoffs are outside
|
|
117
|
+
the public graph package.
|
|
118
|
+
- Generated context is treated as derived output, not canonical state.
|
|
119
|
+
- Evidence and feedback do not authorize canonical updates by themselves.
|
|
120
|
+
- Significant action paths have launch records, approval gates and technology
|
|
121
|
+
quality feedback.
|
|
122
|
+
- Blocking findings stop release or acceptance transitions.
|
|
123
|
+
- Kaizen items are routed as proposals, not silent process rewrites.
|
|
124
|
+
|
|
125
|
+
## Recommended First Packages
|
|
126
|
+
|
|
127
|
+
Use these examples as references before creating your own package:
|
|
128
|
+
|
|
129
|
+
- `examples/minimal-graph/`
|
|
130
|
+
- `examples/implementation-control-minimal/`
|
|
131
|
+
- `examples/process-transition-minimal/`
|
|
132
|
+
- `examples/technology-quality-feedback-minimal/`
|
|
133
|
+
- `examples/instrumentation-layer-minimal/`
|
|
134
|
+
- `examples/organization-governance-minimal/`
|
|
135
|
+
|
|
136
|
+
Use these starters for new work:
|
|
137
|
+
|
|
138
|
+
- `templates/software-project-starter/`
|
|
139
|
+
- `templates/research-program-starter/`
|
|
140
|
+
- `templates/ai-employee-starter/`
|
|
141
|
+
- `templates/character-layer-starter/`
|
|
142
|
+
- `templates/organization-governance-starter/`
|
|
143
|
+
|
|
144
|
+
## Public Safety Boundary
|
|
145
|
+
|
|
146
|
+
Do not publish:
|
|
147
|
+
|
|
148
|
+
- credentials, tokens, cookies or `.env` values;
|
|
149
|
+
- customer-private logs or payloads;
|
|
150
|
+
- private handoff texts;
|
|
151
|
+
- internal runtime traces;
|
|
152
|
+
- unpublished research claims as proof;
|
|
153
|
+
- organization-specific policies that are not meant to be public.
|
|
154
|
+
|
|
155
|
+
Use Mirai Graph to structure the boundary:
|
|
156
|
+
|
|
157
|
+
```text
|
|
158
|
+
canonical graph state
|
|
159
|
+
-> generated context
|
|
160
|
+
-> runtime decision
|
|
161
|
+
-> evidence
|
|
162
|
+
-> feedback
|
|
163
|
+
-> proposal
|
|
164
|
+
-> approval
|
|
165
|
+
-> controlled update
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Only the controlled update changes canonical state.
|
|
169
|
+
|
|
170
|
+
## What To Do After The First Package Validates
|
|
171
|
+
|
|
172
|
+
1. Add a launch record for the first real work cycle.
|
|
173
|
+
2. Run a process-transition explanation before implementation.
|
|
174
|
+
3. Capture evidence and technology quality feedback after the work.
|
|
175
|
+
4. Add Kaizen findings for reusable process improvements.
|
|
176
|
+
5. Keep a short pilot report that separates observed evidence from claims.
|
|
177
|
+
|
|
178
|
+
The next maturity step is not more theory; it is a small, repeatable pilot with
|
|
179
|
+
clear evidence, limits and replayable validation commands.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# AI Employee Graph Adoption
|
|
2
|
+
|
|
3
|
+
Status: alpha adoption guide
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This guide explains how to start modeling an AI employee with Mirai Graph.
|
|
8
|
+
|
|
9
|
+
It is intended for teams that want an AI employee to have explicit roles,
|
|
10
|
+
skills, knowledge, tools, policies, workflows, feedback and learning gates.
|
|
11
|
+
|
|
12
|
+
## Step 1: Define The Employee Boundary
|
|
13
|
+
|
|
14
|
+
Start with one AI employee.
|
|
15
|
+
|
|
16
|
+
Define:
|
|
17
|
+
|
|
18
|
+
- employee id;
|
|
19
|
+
- department;
|
|
20
|
+
- role;
|
|
21
|
+
- allowed task area;
|
|
22
|
+
- forbidden task area;
|
|
23
|
+
- owner or reviewer;
|
|
24
|
+
- public/private data boundary.
|
|
25
|
+
|
|
26
|
+
Do not start with a broad autonomous agent. Start with a bounded employee.
|
|
27
|
+
|
|
28
|
+
## Step 2: Model Roles And Skills
|
|
29
|
+
|
|
30
|
+
Add:
|
|
31
|
+
|
|
32
|
+
- `role` objects for responsibilities;
|
|
33
|
+
- `skill` objects for capabilities that require knowledge or tools;
|
|
34
|
+
- `specialization` objects only when a role needs a narrower durable area.
|
|
35
|
+
|
|
36
|
+
Useful relations:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
ai_employee -> has_role -> role
|
|
40
|
+
role -> has_skill -> skill
|
|
41
|
+
role -> has_specialization -> specialization
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Step 3: Add Knowledge And Memory
|
|
45
|
+
|
|
46
|
+
Use:
|
|
47
|
+
|
|
48
|
+
- `knowledge` for reviewed reference material;
|
|
49
|
+
- `memory` for durable but reviewable learned context;
|
|
50
|
+
- `evidence` for source support.
|
|
51
|
+
|
|
52
|
+
Memory should not be an uncontrolled transcript dump. It should preserve source
|
|
53
|
+
and readiness.
|
|
54
|
+
|
|
55
|
+
Useful relations:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
skill -> uses_knowledge -> knowledge
|
|
59
|
+
skill -> uses_knowledge -> memory
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Step 4: Add Tools And Capabilities
|
|
63
|
+
|
|
64
|
+
Use:
|
|
65
|
+
|
|
66
|
+
- `tool` for the runtime adapter;
|
|
67
|
+
- `capability` for what the tool can safely do;
|
|
68
|
+
- `policy` for the rule that constrains use.
|
|
69
|
+
|
|
70
|
+
Useful relations:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
action -> requires_capability -> capability
|
|
74
|
+
tool -> can_execute -> action
|
|
75
|
+
policy -> governs -> governance_gate
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Step 5: Add Policy And Approval Gates
|
|
79
|
+
|
|
80
|
+
Every external, user-visible, irreversible, permission-changing or sensitive
|
|
81
|
+
action should have a governance gate.
|
|
82
|
+
|
|
83
|
+
Useful relation:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
action -> requires_approval -> governance_gate
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Approval can be automatic only when a policy explicitly allows it.
|
|
90
|
+
|
|
91
|
+
## Step 6: Model Runtime Boundary
|
|
92
|
+
|
|
93
|
+
Keep runtime states separate:
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
canonical graph state
|
|
97
|
+
-> generated context
|
|
98
|
+
-> runtime decision
|
|
99
|
+
-> proposed action
|
|
100
|
+
-> approval gate
|
|
101
|
+
-> executed action
|
|
102
|
+
-> audited result
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The graph can describe the states. The runtime implementation executes and
|
|
106
|
+
audits them.
|
|
107
|
+
|
|
108
|
+
## Step 7: Add Feedback And Lessons
|
|
109
|
+
|
|
110
|
+
Feedback should produce a proposed lesson, not an automatic behavior change.
|
|
111
|
+
|
|
112
|
+
Useful relations:
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
feedback -> responds_to -> result
|
|
116
|
+
lesson -> learns_from -> feedback
|
|
117
|
+
lesson -> updates_behavior -> workflow
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Then apply the feedback learning gate:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
feedback -> proposal -> replay/evaluation -> approval -> canonical graph update
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Step 8: Validate
|
|
127
|
+
|
|
128
|
+
Use the minimal example:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
node packages/cli/validate-mirai-graph.js examples/ai-employee-minimal
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Use the full release gate:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
npm run release:check
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## What This Does Not Prove
|
|
141
|
+
|
|
142
|
+
A valid AI employee graph does not prove:
|
|
143
|
+
|
|
144
|
+
- the runtime is safe;
|
|
145
|
+
- the AI employee is effective;
|
|
146
|
+
- the tool adapter is secure;
|
|
147
|
+
- the policy is sufficient;
|
|
148
|
+
- the employee can act without oversight.
|
|
149
|
+
|
|
150
|
+
It proves only that the package follows the declared profile shape checked by
|
|
151
|
+
the current validator.
|