mirai-graph 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +16 -2
- package/docs/adoption/cli.md +13 -0
- package/package.json +39 -38
- package/packages/cli/context-pack.js +0 -0
- package/packages/cli/mirai-graph.js +1 -1
- package/packages/cli/mirai_graph.js +0 -0
- package/packages/cli/project-technology.js +18 -2
- package/packages/cli/readiness-score.js +0 -0
- package/packages/cli/seed-preview.js +0 -0
- package/packages/cli/validate-artifact-releases.js +282 -0
- package/packages/cli/validate-mirai-graph.js +0 -0
- package/packages/cli/validate-profile-results.js +0 -0
- package/packages/project-technology/artifact-release.js +738 -0
- package/packages/project-technology/index.js +6 -0
- package/releases/1.3.0.md +16 -0
- package/releases/README.md +1 -0
- package/standard/project-technology.md +45 -1
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
} = require("../cli/graph-manifest");
|
|
16
16
|
const traversal = require("./context-traversal");
|
|
17
17
|
const continuity = require("./continuity");
|
|
18
|
+
const artifacts = require("./artifact-release");
|
|
18
19
|
|
|
19
20
|
const CONTRACT_VERSION = "1.0.0";
|
|
20
21
|
const EXTENSION_KEY = "mirai.project_technology";
|
|
@@ -788,6 +789,7 @@ function verify(repoArg, options = {}) {
|
|
|
788
789
|
}
|
|
789
790
|
|
|
790
791
|
function execute(operation, repoArg, options = {}) {
|
|
792
|
+
if (operation === "artifact") return artifacts.executeArtifact(repoArg, options);
|
|
791
793
|
const readOnly = { explain, status, plan, verify, context };
|
|
792
794
|
if (readOnly[operation]) return readOnly[operation](repoArg, options);
|
|
793
795
|
const transactional = { enable, sync, connect, disconnect, provide, disable, repair };
|
|
@@ -802,9 +804,11 @@ module.exports = {
|
|
|
802
804
|
LOCAL_DIR,
|
|
803
805
|
bindingValues,
|
|
804
806
|
canonicalBytes,
|
|
807
|
+
compareArtifactReleases: artifacts.compareArtifactReleases,
|
|
805
808
|
connect,
|
|
806
809
|
compileContext: traversal.compileContext,
|
|
807
810
|
context,
|
|
811
|
+
createArtifactRelease: artifacts.createArtifactRelease,
|
|
808
812
|
discoverContext: traversal.discoverContext,
|
|
809
813
|
disable,
|
|
810
814
|
disconnect,
|
|
@@ -814,6 +818,7 @@ module.exports = {
|
|
|
814
818
|
explain,
|
|
815
819
|
extensionContract,
|
|
816
820
|
inventory,
|
|
821
|
+
inspectArtifactBundle: artifacts.inspectArtifactBundle,
|
|
817
822
|
normalizeExecutionContract,
|
|
818
823
|
continuity,
|
|
819
824
|
plan,
|
|
@@ -825,5 +830,6 @@ module.exports = {
|
|
|
825
830
|
sync,
|
|
826
831
|
targetBindingStatus,
|
|
827
832
|
verify,
|
|
833
|
+
verifyArtifactRelease: artifacts.verifyArtifactRelease,
|
|
828
834
|
verifyContext: traversal.verifyContext,
|
|
829
835
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Mirai Graph 1.3.0
|
|
2
|
+
|
|
3
|
+
Mirai Graph 1.3.0 adds generic immutable releases for file bundles to the
|
|
4
|
+
existing Project Technology engine.
|
|
5
|
+
|
|
6
|
+
Projects can inspect a bundle, preview or create a release, compare two
|
|
7
|
+
releases and verify stored files against their manifest. The graph stores only
|
|
8
|
+
safe lineage, state, references and checksums; protected artifact content
|
|
9
|
+
remains outside graph data.
|
|
10
|
+
|
|
11
|
+
The release supports direct files, directories, ZIP, TAR and TAR.GZ, with
|
|
12
|
+
fail-closed archive checks, transactional activation, rollback, concurrency
|
|
13
|
+
protection and idempotent repeats.
|
|
14
|
+
|
|
15
|
+
The public `graph.json` schema remains `2.0.0`. The Project Technology
|
|
16
|
+
activation contract remains `1.0.0`.
|
package/releases/README.md
CHANGED
|
@@ -20,6 +20,7 @@ Release notes must separate:
|
|
|
20
20
|
- [v1.1.0](1.1.0.md) - universal sequential context traversal and usage
|
|
21
21
|
verification in Project Technology.
|
|
22
22
|
- [v1.0.0](1.0.0.md) - stable Project Technology, CLI and public contract.
|
|
23
|
+
- [v1.3.0](1.3.0.md) - immutable artifact releases in Project Technology.
|
|
23
24
|
- [v1.0.0-rc.6](1.0.0-rc.6.md) - anti-drift / quality-control release
|
|
24
25
|
consolidation across Semantic Intent, Dynamic Episode, Goal Vector and
|
|
25
26
|
Technology Quality Feedback.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project Technology
|
|
2
2
|
|
|
3
|
-
Status: 1.
|
|
3
|
+
Status: 1.3 stable standard; activation contract remains 1.0.0
|
|
4
4
|
|
|
5
5
|
Project Technology is the shared executable mechanism of Mirai Graph. It is
|
|
6
6
|
not a profile, a second graph or a source of domain methodology.
|
|
@@ -19,6 +19,46 @@ Each graph keeps its own objects and relations. Project Technology only
|
|
|
19
19
|
standardizes safe inventory, task context, accepted-target binding, freshness
|
|
20
20
|
and verification.
|
|
21
21
|
|
|
22
|
+
## Immutable Artifact Releases
|
|
23
|
+
|
|
24
|
+
Project Technology can preserve versioned file bundles without turning their
|
|
25
|
+
contents into graph data:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
inspect -> release preview -> transactional release -> compare -> verify
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The generic CLI is:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
mirai-graph technology artifact inspect . --input incoming.zip
|
|
35
|
+
mirai-graph technology artifact release . --input incoming.zip --matter-id agreement-main --direction inbound
|
|
36
|
+
mirai-graph technology artifact release . --input incoming.zip --matter-id agreement-main --direction inbound --apply
|
|
37
|
+
mirai-graph technology artifact compare . --matter-id agreement-main --base-release 20260828-01 --target-release 20260828-02
|
|
38
|
+
mirai-graph technology artifact verify . --matter-id agreement-main --release-id 20260828-02
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The programmatic API exposes `inspectArtifactBundle`,
|
|
42
|
+
`createArtifactRelease`, `compareArtifactReleases` and
|
|
43
|
+
`verifyArtifactRelease`.
|
|
44
|
+
|
|
45
|
+
Each immutable release keeps the original input, a normalized package, a
|
|
46
|
+
hash-bound manifest and a technical comparison. The portable registry at
|
|
47
|
+
`graph/specs/artifact-releases.json` stores only opaque matter/release ids,
|
|
48
|
+
relative or provider refs, lineage, state and digests. Raw files, document
|
|
49
|
+
contents, party names and private discussion remain in the protected artifact
|
|
50
|
+
store.
|
|
51
|
+
|
|
52
|
+
Direct files, directories, ZIP, TAR and TAR.GZ are supported. Unsafe paths,
|
|
53
|
+
links, encrypted archives, executable or macro-enabled files, nested archives,
|
|
54
|
+
normalized path collisions and configured archive limits fail closed. RAR and
|
|
55
|
+
7z need an explicitly supplied safe provider.
|
|
56
|
+
|
|
57
|
+
Creation uses a lease, compare-and-swap registry digest, temporary assembly,
|
|
58
|
+
atomic activation and readback. Repeating the same release returns
|
|
59
|
+
`changed=false`. Domain consumers own the meaning of release states; Mirai
|
|
60
|
+
Graph owns only generic identity, lineage, integrity and technical comparison.
|
|
61
|
+
|
|
22
62
|
## Portable Project Continuity
|
|
23
63
|
|
|
24
64
|
Project Technology preserves verified project experience at task boundaries:
|
|
@@ -137,6 +177,10 @@ source still answers "how should the domain work be done?".
|
|
|
137
177
|
rejected from portable continuity.
|
|
138
178
|
- Significant work with an enabled continuity policy fails closed when its
|
|
139
179
|
terminal receipt is missing or stale.
|
|
180
|
+
- Artifact inspection, comparison and verification are read-only. Release
|
|
181
|
+
creation is preview-only without `--apply`.
|
|
182
|
+
- An artifact manifest or generated export never proves legal, business or
|
|
183
|
+
domain acceptance.
|
|
140
184
|
- A context pack is not ready while a required branch, source, access boundary
|
|
141
185
|
or validator is missing, stale, blocked, deprecated, conflicting or
|
|
142
186
|
digest-mismatched.
|