arcvision 0.2.27 → 0.2.29
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/package.json +2 -2
- package/src/arcvision_context/README.md +103 -0
- package/src/arcvision_context/architecture.authority.ledger.json +6 -0
- package/src/arcvision_context/arcvision.context.json +32907 -0
- package/src/core/artifact-manager.js +42 -13
- package/src/core/call-resolver.js +29 -24
- package/src/core/context_builder.js +52 -48
- package/src/core/failure-mode-synthesizer.js +80 -37
- package/src/core/invariant-detector.js +57 -12
- package/src/core/readme-generator.js +64 -11
- package/src/core/scanner.js +122 -25
- package/src/engine/context_builder.js +24 -15
- package/src/engine/pass5_intelligence.js +852 -0
- package/src/index.js +150 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcvision",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "ArcVision CLI - Architectural Governance and Invariant Detection Tool",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -69,4 +69,4 @@
|
|
|
69
69
|
"test": "tests"
|
|
70
70
|
},
|
|
71
71
|
"type": "commonjs"
|
|
72
|
-
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# ArcVision System Context Artifact
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## What This Is [arcvision.context.json](./arcvision.context.json)
|
|
5
|
+
|
|
6
|
+
This file is the **canonical structural context** of this codebase.
|
|
7
|
+
It represents how the system actually works — not how it is described.
|
|
8
|
+
|
|
9
|
+
It is generated directly from source code by ArcVision.
|
|
10
|
+
|
|
11
|
+
## What This Replaces
|
|
12
|
+
|
|
13
|
+
This artifact replaces:
|
|
14
|
+
- Manual repository scanning
|
|
15
|
+
- Tribal knowledge held by senior engineers
|
|
16
|
+
- Re-explaining the system to new developers
|
|
17
|
+
- Re-prompting LLMs with partial or incorrect context
|
|
18
|
+
- Guessing blast radius of changes
|
|
19
|
+
|
|
20
|
+
## When You Must Use This
|
|
21
|
+
|
|
22
|
+
Use this artifact when:
|
|
23
|
+
- Onboarding a new developer
|
|
24
|
+
- Prompting an AI assistant about this codebase
|
|
25
|
+
- Making architectural changes
|
|
26
|
+
- Investigating unexpected behavior
|
|
27
|
+
- Assessing risk before modifying core modules
|
|
28
|
+
|
|
29
|
+
## What This Artifact Contains
|
|
30
|
+
|
|
31
|
+
- Canonical module and dependency graph
|
|
32
|
+
- Execution and data flow relationships
|
|
33
|
+
- Structural roles (service, store, boundary, etc.)
|
|
34
|
+
- Invariants inferred from the system
|
|
35
|
+
- Impact metrics (blast radius, coupling)
|
|
36
|
+
- Authority core identification
|
|
37
|
+
- Hidden coupling detection
|
|
38
|
+
- Architectural archetype classification
|
|
39
|
+
- Analysis completeness metrics
|
|
40
|
+
|
|
41
|
+
## Determinism & Trust
|
|
42
|
+
|
|
43
|
+
- Generated from commit: 96ba04214b910ff8d341938065b71d9e8865a8c3
|
|
44
|
+
- Generation timestamp: 2026-02-22T06:41:13.816Z
|
|
45
|
+
- Tool version: 0.2.28
|
|
46
|
+
- Deterministic: same input → same output
|
|
47
|
+
- Explicit assumptions listed inside the artifact
|
|
48
|
+
|
|
49
|
+
If this artifact conflicts with human memory, **trust the artifact**.
|
|
50
|
+
|
|
51
|
+
## Structural Context Hubs
|
|
52
|
+
|
|
53
|
+
The following files have the highest blast radius and represent critical structural hubs in the system:
|
|
54
|
+
|
|
55
|
+
- **core/invariant-registry.ts**
|
|
56
|
+
- Blast Radius: 8 files (11.94% of codebase)
|
|
57
|
+
- Risk: Changes here may silently propagate across the system.
|
|
58
|
+
|
|
59
|
+
- **core/invariant-hooks.js**
|
|
60
|
+
- Blast Radius: 3 files (4.48% of codebase)
|
|
61
|
+
- Risk: Acts as a coordination layer between components.
|
|
62
|
+
|
|
63
|
+
- **core/pattern-matcher.js**
|
|
64
|
+
- Blast Radius: 3 files (4.48% of codebase)
|
|
65
|
+
- Risk: Modifications can cause widespread inconsistencies.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## How to Use With AI
|
|
70
|
+
|
|
71
|
+
When prompting AI tools, include this file as system context.
|
|
72
|
+
Do not ask the AI to infer architecture without it.
|
|
73
|
+
|
|
74
|
+
## When to Regenerate
|
|
75
|
+
|
|
76
|
+
Regenerate this artifact when:
|
|
77
|
+
- Core modules change
|
|
78
|
+
- New services are added
|
|
79
|
+
- Dependency structure shifts
|
|
80
|
+
|
|
81
|
+
Run:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
arcvision scan --upload
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Source of Truth
|
|
88
|
+
|
|
89
|
+
This artifact is the **source of truth** for system structure.
|
|
90
|
+
All explanations, decisions, and AI reasoning should reference it.
|
|
91
|
+
|
|
92
|
+
Some execution script invocations are dynamically assembled at runtime and may not be statically traceable; such scripts are included
|
|
93
|
+
as execution boundaries without guaranteed call-site resolution
|
|
94
|
+
|
|
95
|
+
## Architecture Intelligence Summary
|
|
96
|
+
|
|
97
|
+
_Generated by ArcVision — derived from structural graph analysis._
|
|
98
|
+
|
|
99
|
+
- **Most Central Module**: `core/scanner.js` (centrality score: 45.8)
|
|
100
|
+
- **Coupling Hotspot**: invariant-integration-example.js + invariant-registry.ts + invariant-hooks.js
|
|
101
|
+
- **Risk Score**: 2.0 / 10 [low]
|
|
102
|
+
- **Most Fragile Module**: `invariant-registry.ts` — fragility score: 15
|
|
103
|
+
- **Top Recommendation**: Add an abstraction boundary around "invariant-registry.ts" — 15 modules depend on it with no outbound isolation.
|