@hongmaple0820/scale-engine 0.25.0 → 0.27.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/LICENSE +15 -15
- package/README.en.md +384 -346
- package/README.md +564 -529
- package/dist/adapters/AiderAdapter.js +52 -52
- package/dist/adapters/AntigravityAdapter.d.ts +4 -0
- package/dist/adapters/AntigravityAdapter.js +21 -0
- package/dist/adapters/AntigravityAdapter.js.map +1 -0
- package/dist/adapters/ClaudeCodeAdapter.d.ts +4 -1
- package/dist/adapters/ClaudeCodeAdapter.js +34 -34
- package/dist/adapters/ClaudeCodeAdapter.js.map +1 -1
- package/dist/adapters/ClineAdapter.d.ts +4 -0
- package/dist/adapters/ClineAdapter.js +20 -0
- package/dist/adapters/ClineAdapter.js.map +1 -0
- package/dist/adapters/CodexAdapter.js +28 -28
- package/dist/adapters/CursorAdapter.js +26 -26
- package/dist/adapters/DeepSeekTuiAdapter.js +97 -97
- package/dist/adapters/DoubaoAdapter.js +33 -33
- package/dist/adapters/GeminiAdapter.js +26 -26
- package/dist/adapters/GenericProjectAgentAdapter.d.ts +29 -0
- package/dist/adapters/GenericProjectAgentAdapter.js +204 -0
- package/dist/adapters/GenericProjectAgentAdapter.js.map +1 -0
- package/dist/adapters/HermesAdapter.js +26 -26
- package/dist/adapters/JCodeAdapter.d.ts +4 -0
- package/dist/adapters/JCodeAdapter.js +19 -0
- package/dist/adapters/JCodeAdapter.js.map +1 -0
- package/dist/adapters/KiloCodeAdapter.d.ts +4 -0
- package/dist/adapters/KiloCodeAdapter.js +20 -0
- package/dist/adapters/KiloCodeAdapter.js.map +1 -0
- package/dist/adapters/KimiAdapter.js +32 -32
- package/dist/adapters/KiroAdapter.js +26 -26
- package/dist/adapters/OpenClawAdapter.js +26 -26
- package/dist/adapters/OpenCodeAdapter.js +26 -26
- package/dist/adapters/QCoderAdapter.js +26 -26
- package/dist/adapters/QoderAdapter.d.ts +4 -0
- package/dist/adapters/QoderAdapter.js +21 -0
- package/dist/adapters/QoderAdapter.js.map +1 -0
- package/dist/adapters/TraeAdapter.js +26 -26
- package/dist/adapters/VSCAdapter.js +26 -26
- package/dist/adapters/WindsurfAdapter.js +32 -32
- package/dist/adapters/WorkBuddyAdapter.js +26 -26
- package/dist/adapters/index.d.ts +5 -0
- package/dist/adapters/index.js +15 -0
- package/dist/adapters/index.js.map +1 -1
- package/dist/api/cli.js +190 -56
- package/dist/api/cli.js.map +1 -1
- package/dist/api/doctor.js +10 -3
- package/dist/api/doctor.js.map +1 -1
- package/dist/api/quickstart.js +7 -1
- package/dist/api/quickstart.js.map +1 -1
- package/dist/artifact/sqliteStore.js +89 -89
- package/dist/artifact/types.d.ts +1 -1
- package/dist/cli/phaseCommands.js +53 -53
- package/dist/cli/phaseCommands.js.map +1 -1
- package/dist/context/AntiPatternRegistry.js +20 -20
- package/dist/context/ContextBudget.d.ts +14 -0
- package/dist/context/ContextBudget.js +50 -14
- package/dist/context/ContextBudget.js.map +1 -1
- package/dist/context/ContextBuilder.js +155 -155
- package/dist/context/ContextCompiler.d.ts +34 -0
- package/dist/context/ContextCompiler.js +120 -0
- package/dist/context/ContextCompiler.js.map +1 -0
- package/dist/eval/WorkflowEval.js +4 -6
- package/dist/eval/WorkflowEval.js.map +1 -1
- package/dist/evolution/EvolutionEngine.js +31 -31
- package/dist/evolution/EvolutionEvaluator.d.ts +2 -0
- package/dist/evolution/EvolutionEvaluator.js +7 -1
- package/dist/evolution/EvolutionEvaluator.js.map +1 -1
- package/dist/fsm/FSMAgentBridge.js +11 -11
- package/dist/governance/GovernanceRoi.d.ts +6 -1
- package/dist/governance/GovernanceRoi.js +32 -0
- package/dist/governance/GovernanceRoi.js.map +1 -1
- package/dist/guardrails/DependencyAuditor.js +38 -0
- package/dist/guardrails/DependencyAuditor.js.map +1 -1
- package/dist/hooks/HookGeneratorEnhanced.js +218 -218
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/knowledge/SQLiteKnowledgeBase.js +28 -28
- package/dist/memory/MemoryBrain.js +52 -52
- package/dist/output/GovernanceDashboard.js +44 -44
- package/dist/output/HTMLArtifactLayer.js +31 -31
- package/dist/prompts/VibeTemplateGallery.js +121 -121
- package/dist/runtime/AiOsRuntime.d.ts +53 -0
- package/dist/runtime/AiOsRuntime.js +142 -0
- package/dist/runtime/AiOsRuntime.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/skills/SkillDiscovery.js +12 -1
- package/dist/skills/SkillDiscovery.js.map +1 -1
- package/dist/skills/routing/SkillPlanner.js +128 -40
- package/dist/skills/routing/SkillPlanner.js.map +1 -1
- package/dist/skills/routing/SkillRoutingTypes.d.ts +17 -0
- package/dist/tools/SafeCommandRunner.d.ts +16 -0
- package/dist/tools/SafeCommandRunner.js +83 -0
- package/dist/tools/SafeCommandRunner.js.map +1 -0
- package/dist/workflow/EngineeringStandards.js +62 -62
- package/dist/workflow/GovernanceTemplatePacks.d.ts +1 -1
- package/dist/workflow/GovernanceTemplatePacks.js +1990 -162
- package/dist/workflow/GovernanceTemplatePacks.js.map +1 -1
- package/dist/workflow/GovernanceTemplates.d.ts +2 -0
- package/dist/workflow/GovernanceTemplates.js +1012 -1001
- package/dist/workflow/GovernanceTemplates.js.map +1 -1
- package/dist/workflow/ResourceGovernance.js +16 -16
- package/dist/workflow/TaskArtifactScaffolder.js +10 -10
- package/dist/workflow/UpgradeManager.d.ts +3 -2
- package/dist/workflow/UpgradeManager.js +134 -49
- package/dist/workflow/UpgradeManager.js.map +1 -1
- package/dist/workflow/WorkspaceTopology.js +18 -15
- package/dist/workflow/WorkspaceTopology.js.map +1 -1
- package/dist/workflow/gates/GateSystem.js +3 -9
- package/dist/workflow/gates/GateSystem.js.map +1 -1
- package/docs/ACTIVE_SECURITY_VISUAL_GATES.md +87 -87
- package/docs/AI_ENGINEERING_OS_POSITIONING.md +462 -0
- package/docs/BACKGROUND_HUNTER.md +62 -62
- package/docs/CODE_INTELLIGENCE.md +138 -138
- package/docs/CONTEXT_BUDGET.md +155 -113
- package/docs/DEPENDENCY_AUDIT.md +118 -89
- package/docs/EVOLUTION_SHADOW_MODE.md +63 -63
- package/docs/EXTERNAL_REFERENCES.md +63 -58
- package/docs/GITLAB_FLOW.md +125 -125
- package/docs/GOVERNANCE_DASHBOARD.md +85 -85
- package/docs/MEMORY_BRAIN.md +104 -104
- package/docs/MEMORY_FABRIC.md +136 -134
- package/docs/README.md +102 -92
- package/docs/RUNTIME_EVIDENCE.md +101 -101
- package/docs/SKILL-REPOSITORY.md +57 -57
- package/docs/SKILL_RADAR.md +135 -122
- package/docs/THIRD_PARTY_SKILLS.md +57 -57
- package/docs/WORKFLOW_EVAL.md +151 -151
- package/docs/guides/DEVELOPMENT_WORKFLOW.md +80 -0
- package/docs/guides/GETTING_STARTED.md +50 -0
- package/docs/start/README.md +78 -72
- package/docs/start/agent-governance-demo.md +107 -107
- package/docs/start/quickstart.md +137 -127
- package/docs/start/workflow-upgrade.md +32 -8
- package/docs/workflow/README.md +67 -0
- package/docs/workflow/node-library.md +52 -0
- package/docs/workflow/templates/api-contract.md +29 -0
- package/docs/workflow/templates/architecture-review.md +23 -0
- package/docs/workflow/templates/db-change-plan.md +20 -0
- package/docs/workflow/templates/docs-impact.md +17 -0
- package/docs/workflow/templates/e2e-plan.md +20 -0
- package/docs/workflow/templates/explore.md +16 -0
- package/docs/workflow/templates/github-actions-scale-preflight.yml +32 -0
- package/docs/workflow/templates/mini-prd.md +16 -0
- package/docs/workflow/templates/plan.md +37 -0
- package/docs/workflow/templates/pre-push-scale-preflight.sh +8 -0
- package/docs/workflow/templates/product-smoke.md +61 -0
- package/docs/workflow/templates/reality-check.md +28 -0
- package/docs/workflow/templates/resource-cleanup.md +17 -0
- package/docs/workflow/templates/resource-impact.md +25 -0
- package/docs/workflow/templates/review.md +12 -0
- package/docs/workflow/templates/runtime.md +23 -0
- package/docs/workflow/templates/security-review.md +26 -0
- package/docs/workflow/templates/skill-evidence.md +33 -0
- package/docs/workflow/templates/skill-plan.md +39 -0
- package/docs/workflow/templates/spec.md +17 -0
- package/docs/workflow/templates/standards-impact.md +28 -0
- package/docs/workflow/templates/summary.md +16 -0
- package/docs/workflow/templates/tasks.md +8 -0
- package/docs/workflow/templates/ui-spec.md +29 -0
- package/docs/workflow/templates/verification.md +20 -0
- package/docs/workflow/templates/visual-review.md +20 -0
- package/examples/demo-projects/agent-governance-demo/CONTEXT.md +14 -14
- package/examples/demo-projects/agent-governance-demo/README.md +48 -48
- package/examples/demo-projects/agent-governance-demo/docs/CONTEXT-MAP.md +14 -14
- package/examples/demo-projects/agent-governance-demo/package.json +22 -21
- package/examples/demo-projects/agent-governance-demo/src/oauth-state.ts +39 -39
- package/examples/demo-projects/agent-governance-demo/tests/oauth-state.test.ts +52 -52
- package/package.json +95 -78
package/docs/DEPENDENCY_AUDIT.md
CHANGED
|
@@ -1,89 +1,118 @@
|
|
|
1
|
-
# Dependency Audit
|
|
2
|
-
|
|
3
|
-
Dependency Audit is the G7 dependency sub-gate for SCALE Engine.
|
|
4
|
-
It adds supply-chain checks without introducing a separate gate number such as `G6.8`.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
|
|
8
|
-
The auditor is intentionally bounded:
|
|
9
|
-
|
|
10
|
-
- reads `package-lock.json`
|
|
11
|
-
- audits direct dependencies by default
|
|
12
|
-
- supports `--changed-packages` for lockfile-diff workflows
|
|
13
|
-
- scans only selected package roots under `node_modules`
|
|
14
|
-
- caps package count and files per package
|
|
15
|
-
- does not contact the registry by default
|
|
16
|
-
- does not run install scripts
|
|
17
|
-
|
|
18
|
-
This keeps local verification usable while still catching high-risk dependency behavior.
|
|
19
|
-
|
|
20
|
-
## Commands
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
scale dependency audit
|
|
24
|
-
scale dependency audit --json
|
|
25
|
-
scale dependency audit --mode strict
|
|
26
|
-
scale dependency audit --changed-packages left-pad,@scope/tool --json
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
The command exits non-zero when the active mode has blocking findings.
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- `
|
|
58
|
-
- `
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
]
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
# Dependency Audit
|
|
2
|
+
|
|
3
|
+
Dependency Audit is the G7 dependency sub-gate for SCALE Engine.
|
|
4
|
+
It adds supply-chain checks without introducing a separate gate number such as `G6.8`.
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
The auditor is intentionally bounded:
|
|
9
|
+
|
|
10
|
+
- reads `package-lock.json`
|
|
11
|
+
- audits direct dependencies by default
|
|
12
|
+
- supports `--changed-packages` for lockfile-diff workflows
|
|
13
|
+
- scans only selected package roots under `node_modules`
|
|
14
|
+
- caps package count and files per package
|
|
15
|
+
- does not contact the registry by default
|
|
16
|
+
- does not run install scripts
|
|
17
|
+
|
|
18
|
+
This keeps local verification usable while still catching high-risk dependency behavior.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
scale dependency audit
|
|
24
|
+
scale dependency audit --json
|
|
25
|
+
scale dependency audit --mode strict
|
|
26
|
+
scale dependency audit --changed-packages left-pad,@scope/tool --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The command exits non-zero when the active mode has blocking findings.
|
|
30
|
+
|
|
31
|
+
## Verification Command Safety
|
|
32
|
+
|
|
33
|
+
SCALE verification commands are security-sensitive because they are often run in CI.
|
|
34
|
+
The core verification paths (`verify-task`, phase verification, workflow eval attempts, and gate commands) execute configured commands without shell expansion by default.
|
|
35
|
+
|
|
36
|
+
Allowed by default:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run build
|
|
40
|
+
npm test -- --runInBand
|
|
41
|
+
node scripts/check.js --changed
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Blocked by default:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm test && curl https://example.com
|
|
48
|
+
node scripts/check.js | tee out.txt
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Shell metacharacters such as `&&`, `|`, `;`, `<`, `>`, backticks, and unquoted `$` are rejected before execution. Use package scripts or checked-in helper scripts for composed commands. `SCALE_ALLOW_SHELL_COMMANDS=1` re-enables shell execution only for trusted local runs and must not be enabled for untrusted PR or user-controlled CI inputs.
|
|
52
|
+
|
|
53
|
+
## G7 Integration
|
|
54
|
+
|
|
55
|
+
`SecurityGate` now emits two first-class evidence sources:
|
|
56
|
+
|
|
57
|
+
- `built-in-security-scan`: source code security scan
|
|
58
|
+
- `dependency-audit`: dependency supply-chain scan
|
|
59
|
+
|
|
60
|
+
Both remain under `G7 Security`.
|
|
61
|
+
|
|
62
|
+
## Policy
|
|
63
|
+
|
|
64
|
+
Policy lives at `.scale/security/dependency-policy.json`:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"version": 1,
|
|
69
|
+
"mode": "compatibility",
|
|
70
|
+
"maxPackages": 50,
|
|
71
|
+
"maxPackageFiles": 25,
|
|
72
|
+
"allowPackages": [],
|
|
73
|
+
"baselineFindings": []
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Modes:
|
|
78
|
+
|
|
79
|
+
- `compatibility`: blocks `CRITICAL`
|
|
80
|
+
- `strict`: blocks `CRITICAL` and `HIGH`
|
|
81
|
+
- `offline`: keeps local-only behavior; current offline findings follow compatibility blocking
|
|
82
|
+
|
|
83
|
+
Use `baselineFindings` for accepted legacy dependency risk:
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"baselineFindings": [
|
|
88
|
+
{
|
|
89
|
+
"packageName": "legacy-tool",
|
|
90
|
+
"version": "1.2.3",
|
|
91
|
+
"ruleId": "dependency.install-script",
|
|
92
|
+
"reason": "Pinned and reviewed during migration window."
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Prefer a baseline over `allowPackages` when only one finding is accepted. `allowPackages` suppresses all findings for that package.
|
|
99
|
+
|
|
100
|
+
## Current Findings
|
|
101
|
+
|
|
102
|
+
The first implementation detects:
|
|
103
|
+
|
|
104
|
+
- install lifecycle scripts
|
|
105
|
+
- executable bin scripts
|
|
106
|
+
- deprecated packages from lockfile metadata
|
|
107
|
+
- built-in ownership/provenance watchlist matches
|
|
108
|
+
- dynamic code execution: `eval`, `new Function`
|
|
109
|
+
- shell execution patterns
|
|
110
|
+
- suspicious network access patterns
|
|
111
|
+
|
|
112
|
+
The built-in ownership/provenance watchlist currently blocks exact versions that were flagged by external package behavior analysis:
|
|
113
|
+
|
|
114
|
+
- `content-type@2.0.0`
|
|
115
|
+
- `type-is@2.1.0`
|
|
116
|
+
- `type-js@2.1.0` (kept as a defensive alias for reports that use this package name)
|
|
117
|
+
|
|
118
|
+
Future network-backed checks can add npm registry metadata and `npm audit --json` ingestion, but they should stay optional and evidence-backed.
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
# Evolution Shadow Mode
|
|
2
|
-
|
|
3
|
-
SCALE V2 keeps self-evolution useful without letting one-off failures become hard blockers too early.
|
|
4
|
-
|
|
5
|
-
## Flow
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
Gate Failure
|
|
9
|
-
-> Defect
|
|
10
|
-
-> Lesson
|
|
11
|
-
-> Proposed Rule
|
|
12
|
-
-> Shadow Rule
|
|
13
|
-
-> Candidate Hook
|
|
14
|
-
-> Approved Blocking Hook
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Gate Failure To Defect
|
|
18
|
-
|
|
19
|
-
`GateSystem` emits `gate.failed` for failed gate results. `AutoDefectCreator` tracks consecutive failures per session and gate stage.
|
|
20
|
-
|
|
21
|
-
Default behavior:
|
|
22
|
-
|
|
23
|
-
- three consecutive failures create one `Defect`
|
|
24
|
-
- a passing `gate.executed` event resets the streak
|
|
25
|
-
- defect payload uses `rootCauseCategory=gate_failure`
|
|
26
|
-
- the original blockers, evidence, evidence record id, stage, and streak count are stored in defect context
|
|
27
|
-
|
|
28
|
-
This is evidence capture only. It does not change source code or generate a hook.
|
|
29
|
-
|
|
30
|
-
## Rule Maturity
|
|
31
|
-
|
|
32
|
-
New rules start in `shadow` mode. Shadow rules can record hits, but they do not block development.
|
|
33
|
-
|
|
34
|
-
Promotion requires:
|
|
35
|
-
|
|
36
|
-
- shadow hits >= 10
|
|
37
|
-
- at least one defect evidence id
|
|
38
|
-
- rollback method present
|
|
39
|
-
- false positive rate within threshold
|
|
40
|
-
- explicit approval before a blocking hook is allowed
|
|
41
|
-
|
|
42
|
-
`RuleMaturity` exposes:
|
|
43
|
-
|
|
44
|
-
- `createShadowRuleMaturity`
|
|
45
|
-
- `recordShadowHit`
|
|
46
|
-
- `evaluateRulePromotion`
|
|
47
|
-
- `approveRuleMaturity`
|
|
48
|
-
|
|
49
|
-
## Hook Boundary
|
|
50
|
-
|
|
51
|
-
`HookGenerator` still requires `rule.approved === true`.
|
|
52
|
-
|
|
53
|
-
For V2 rules that carry maturity metadata, it also requires:
|
|
54
|
-
|
|
55
|
-
```text
|
|
56
|
-
rule.maturity.stage === "approved-blocking"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
That means proposed or shadow rules can be observed and improved, but cannot become blocking hooks until explicitly promoted.
|
|
60
|
-
|
|
61
|
-
## Current Scope
|
|
62
|
-
|
|
63
|
-
This release slice wires the core library path and gate events. CLI approval commands and persistent rule-maturity storage can be added later without changing the safety model.
|
|
1
|
+
# Evolution Shadow Mode
|
|
2
|
+
|
|
3
|
+
SCALE V2 keeps self-evolution useful without letting one-off failures become hard blockers too early.
|
|
4
|
+
|
|
5
|
+
## Flow
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Gate Failure
|
|
9
|
+
-> Defect
|
|
10
|
+
-> Lesson
|
|
11
|
+
-> Proposed Rule
|
|
12
|
+
-> Shadow Rule
|
|
13
|
+
-> Candidate Hook
|
|
14
|
+
-> Approved Blocking Hook
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Gate Failure To Defect
|
|
18
|
+
|
|
19
|
+
`GateSystem` emits `gate.failed` for failed gate results. `AutoDefectCreator` tracks consecutive failures per session and gate stage.
|
|
20
|
+
|
|
21
|
+
Default behavior:
|
|
22
|
+
|
|
23
|
+
- three consecutive failures create one `Defect`
|
|
24
|
+
- a passing `gate.executed` event resets the streak
|
|
25
|
+
- defect payload uses `rootCauseCategory=gate_failure`
|
|
26
|
+
- the original blockers, evidence, evidence record id, stage, and streak count are stored in defect context
|
|
27
|
+
|
|
28
|
+
This is evidence capture only. It does not change source code or generate a hook.
|
|
29
|
+
|
|
30
|
+
## Rule Maturity
|
|
31
|
+
|
|
32
|
+
New rules start in `shadow` mode. Shadow rules can record hits, but they do not block development.
|
|
33
|
+
|
|
34
|
+
Promotion requires:
|
|
35
|
+
|
|
36
|
+
- shadow hits >= 10
|
|
37
|
+
- at least one defect evidence id
|
|
38
|
+
- rollback method present
|
|
39
|
+
- false positive rate within threshold
|
|
40
|
+
- explicit approval before a blocking hook is allowed
|
|
41
|
+
|
|
42
|
+
`RuleMaturity` exposes:
|
|
43
|
+
|
|
44
|
+
- `createShadowRuleMaturity`
|
|
45
|
+
- `recordShadowHit`
|
|
46
|
+
- `evaluateRulePromotion`
|
|
47
|
+
- `approveRuleMaturity`
|
|
48
|
+
|
|
49
|
+
## Hook Boundary
|
|
50
|
+
|
|
51
|
+
`HookGenerator` still requires `rule.approved === true`.
|
|
52
|
+
|
|
53
|
+
For V2 rules that carry maturity metadata, it also requires:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
rule.maturity.stage === "approved-blocking"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
That means proposed or shadow rules can be observed and improved, but cannot become blocking hooks until explicitly promoted.
|
|
60
|
+
|
|
61
|
+
## Current Scope
|
|
62
|
+
|
|
63
|
+
This release slice wires the core library path and gate events. CLI approval commands and persistent rule-maturity storage can be added later without changing the safety model.
|
|
@@ -1,58 +1,63 @@
|
|
|
1
|
-
# External Reference Inventory
|
|
2
|
-
|
|
3
|
-
This inventory is the source of truth for external projects, community skills, MCP servers, CLIs, and adapter targets referenced by SCALE. It complements [Third-Party Skills and External References](THIRD_PARTY_SKILLS.md).
|
|
4
|
-
|
|
5
|
-
The inventory is intentionally conservative:
|
|
6
|
-
|
|
7
|
-
- A row here is an acknowledgement and governance record, not a claim that upstream code is vendored.
|
|
8
|
-
- License is only marked when it has been explicitly reviewed in this repository. Unknown or unverified projects stay `review-required`.
|
|
9
|
-
- Any future vendoring, source copying, modified redistribution, bundled assets, logos, examples, or generated derivatives must preserve upstream license text, copyright notices, NOTICE files, source URL, pinned revision, and modification notes.
|
|
10
|
-
- External services and memory providers remain disabled or read-only by default until privacy, retention, credential, and deletion boundaries are reviewed.
|
|
11
|
-
|
|
12
|
-
## Current References
|
|
13
|
-
|
|
14
|
-
| Upstream | Role in SCALE | Usage status | License status | Primary source surface |
|
|
15
|
-
| --- | --- | --- | --- | --- |
|
|
16
|
-
| [OthmanAdi/planning-with-files](https://github.com/OthmanAdi/planning-with-files) | File-backed planning workflow reference | adapted concept, not vendored | MIT | `SkillRepository`, README, `THIRD_PARTY_SKILLS` |
|
|
17
|
-
| [rohitg00/agentmemory](https://github.com/rohitg00/agentmemory) | Optional external memory provider | external provider, read-only by default | Apache-2.0 | `MemoryProviders`, `SkillRepository`, README |
|
|
18
|
-
| [garrytan/gbrain](https://github.com/garrytan/gbrain) | Optional graph memory provider | external provider, read-only by default | MIT | `MemoryProviders`, `SkillRepository`, README |
|
|
19
|
-
| [anthropics/skills](https://github.com/anthropics/skills) | Frontend and webapp testing skill references | external skill reference | review-required | `SkillRepository`, `SkillCatalog`, `ToolCapabilityRegistry` |
|
|
20
|
-
| [anthropics/claude-code](https://github.com/anthropics/claude-code) | Graphify and playwright-interactive skill references | optional discovery reference | review-required | `SkillDiscovery` |
|
|
21
|
-
| [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md) | Design system and DESIGN.md guidance | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
22
|
-
| [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | UI/UX design intelligence reference | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
23
|
-
| [eze-is/web-access](https://github.com/eze-is/web-access) | Web research and browser automation skill | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
24
|
-
| [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) | Browser automation CLI | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
25
|
-
| [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) | Chrome DevTools MCP integration | MCP reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
26
|
-
| [trycua/cua](https://github.com/trycua/cua) | Desktop computer-use automation | restricted external automation reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
27
|
-
| [microsoft/playwright](https://github.com/microsoft/playwright) | Browser automation and validation | optional discovery reference | review-required | `SkillDiscovery` |
|
|
28
|
-
| [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) | Gemini CLI and community skill examples | external CLI and skill reference | review-required | `SkillRepository`, `SkillCatalog`, adapters |
|
|
29
|
-
| [openai/codex](https://github.com/openai/codex) | Codex CLI adapter and external reviewer | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, adapters |
|
|
30
|
-
| [sst/opencode](https://github.com/sst/opencode) | OpenCode CLI reference used by routing | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
31
|
-
| [opencode-ai/opencode](https://github.com/opencode-ai/opencode) | OpenCode adapter source comment | adapter target reference | review-required | `OpenCodeAdapter` |
|
|
32
|
-
| [facebook/react](https://github.com/facebook/react) | React fix skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
33
|
-
| [vercel/next.js](https://github.com/vercel/next.js) | Next.js documentation update skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
34
|
-
| [vercel-labs/skills](https://github.com/vercel-labs/skills) | Skill discovery example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
35
|
-
| [Shubhamsaboo/awesome-llm-apps](https://github.com/Shubhamsaboo/awesome-llm-apps) | Full-stack agent skill example | external skill reference | review-required | `SkillCatalog` |
|
|
36
|
-
| [jnMetaCode/agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh) | Chinese role preset reference | external preset reference | review-required | `SkillRepository` |
|
|
37
|
-
| [yizhiyanhua-ai/fireworks-tech-graph](https://github.com/yizhiyanhua-ai/fireworks-tech-graph) | Diagram skill discovery and installer reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
38
|
-
| [github/awesome-copilot](https://github.com/github/awesome-copilot) | Excalidraw diagram skill source | optional install reference | review-required | `ExternalSkills`, `SkillInstaller`, installation workflow doc |
|
|
39
|
-
| [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) | Architecture diagram skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
40
|
-
| [heygen-com/hyperframes](https://github.com/heygen-com/hyperframes) | Video generation CLI reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
41
|
-
| [op7418/guizang-ppt-skill](https://github.com/op7418/guizang-ppt-skill) | PPT generation skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
42
|
-
| [QwenLM/qwen-code](https://github.com/QwenLM/qwen-code) | QCoder adapter target | adapter target reference | review-required | `QCoderAdapter` |
|
|
43
|
-
| [
|
|
44
|
-
|
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
# External Reference Inventory
|
|
2
|
+
|
|
3
|
+
This inventory is the source of truth for external projects, community skills, MCP servers, CLIs, and adapter targets referenced by SCALE. It complements [Third-Party Skills and External References](THIRD_PARTY_SKILLS.md).
|
|
4
|
+
|
|
5
|
+
The inventory is intentionally conservative:
|
|
6
|
+
|
|
7
|
+
- A row here is an acknowledgement and governance record, not a claim that upstream code is vendored.
|
|
8
|
+
- License is only marked when it has been explicitly reviewed in this repository. Unknown or unverified projects stay `review-required`.
|
|
9
|
+
- Any future vendoring, source copying, modified redistribution, bundled assets, logos, examples, or generated derivatives must preserve upstream license text, copyright notices, NOTICE files, source URL, pinned revision, and modification notes.
|
|
10
|
+
- External services and memory providers remain disabled or read-only by default until privacy, retention, credential, and deletion boundaries are reviewed.
|
|
11
|
+
|
|
12
|
+
## Current References
|
|
13
|
+
|
|
14
|
+
| Upstream | Role in SCALE | Usage status | License status | Primary source surface |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| [OthmanAdi/planning-with-files](https://github.com/OthmanAdi/planning-with-files) | File-backed planning workflow reference | adapted concept, not vendored | MIT | `SkillRepository`, README, `THIRD_PARTY_SKILLS` |
|
|
17
|
+
| [rohitg00/agentmemory](https://github.com/rohitg00/agentmemory) | Optional external memory provider | external provider, read-only by default | Apache-2.0 | `MemoryProviders`, `SkillRepository`, README |
|
|
18
|
+
| [garrytan/gbrain](https://github.com/garrytan/gbrain) | Optional graph memory provider | external provider, read-only by default | MIT | `MemoryProviders`, `SkillRepository`, README |
|
|
19
|
+
| [anthropics/skills](https://github.com/anthropics/skills) | Frontend and webapp testing skill references | external skill reference | review-required | `SkillRepository`, `SkillCatalog`, `ToolCapabilityRegistry` |
|
|
20
|
+
| [anthropics/claude-code](https://github.com/anthropics/claude-code) | Graphify and playwright-interactive skill references | optional discovery reference | review-required | `SkillDiscovery` |
|
|
21
|
+
| [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md) | Design system and DESIGN.md guidance | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
22
|
+
| [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | UI/UX design intelligence reference | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
23
|
+
| [eze-is/web-access](https://github.com/eze-is/web-access) | Web research and browser automation skill | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
24
|
+
| [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) | Browser automation CLI | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
25
|
+
| [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) | Chrome DevTools MCP integration | MCP reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
26
|
+
| [trycua/cua](https://github.com/trycua/cua) | Desktop computer-use automation | restricted external automation reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
|
|
27
|
+
| [microsoft/playwright](https://github.com/microsoft/playwright) | Browser automation and validation | optional discovery reference | review-required | `SkillDiscovery` |
|
|
28
|
+
| [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) | Gemini CLI and community skill examples | external CLI and skill reference | review-required | `SkillRepository`, `SkillCatalog`, adapters |
|
|
29
|
+
| [openai/codex](https://github.com/openai/codex) | Codex CLI adapter and external reviewer | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, adapters |
|
|
30
|
+
| [sst/opencode](https://github.com/sst/opencode) | OpenCode CLI reference used by routing | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
|
|
31
|
+
| [opencode-ai/opencode](https://github.com/opencode-ai/opencode) | OpenCode adapter source comment | adapter target reference | review-required | `OpenCodeAdapter` |
|
|
32
|
+
| [facebook/react](https://github.com/facebook/react) | React fix skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
33
|
+
| [vercel/next.js](https://github.com/vercel/next.js) | Next.js documentation update skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
34
|
+
| [vercel-labs/skills](https://github.com/vercel-labs/skills) | Skill discovery example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
|
|
35
|
+
| [Shubhamsaboo/awesome-llm-apps](https://github.com/Shubhamsaboo/awesome-llm-apps) | Full-stack agent skill example | external skill reference | review-required | `SkillCatalog` |
|
|
36
|
+
| [jnMetaCode/agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh) | Chinese role preset reference | external preset reference | review-required | `SkillRepository` |
|
|
37
|
+
| [yizhiyanhua-ai/fireworks-tech-graph](https://github.com/yizhiyanhua-ai/fireworks-tech-graph) | Diagram skill discovery and installer reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
38
|
+
| [github/awesome-copilot](https://github.com/github/awesome-copilot) | Excalidraw diagram skill source | optional install reference | review-required | `ExternalSkills`, `SkillInstaller`, installation workflow doc |
|
|
39
|
+
| [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) | Architecture diagram skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
40
|
+
| [heygen-com/hyperframes](https://github.com/heygen-com/hyperframes) | Video generation CLI reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
41
|
+
| [op7418/guizang-ppt-skill](https://github.com/op7418/guizang-ppt-skill) | PPT generation skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
|
|
42
|
+
| [QwenLM/qwen-code](https://github.com/QwenLM/qwen-code) | QCoder adapter target | adapter target reference | review-required | `QCoderAdapter` |
|
|
43
|
+
| [Qoder docs](https://docs.qoder.com/) | Qoder adapter target | adapter target reference | review-required | `QoderAdapter` |
|
|
44
|
+
| JCode | JCode adapter target; upstream source and license still need review | provisional adapter target reference | review-required | `JCodeAdapter` |
|
|
45
|
+
| [Cline docs](https://docs.cline.bot/) | Cline adapter target | adapter target reference | review-required | `ClineAdapter` |
|
|
46
|
+
| [Kilo Code docs](https://docs.kilocode.ai/) | Kilo Code adapter target | adapter target reference | review-required | `KiloCodeAdapter` |
|
|
47
|
+
| [Google Antigravity docs](https://antigravity.google/docs/) | Antigravity adapter target | adapter target reference | review-required | `AntigravityAdapter` |
|
|
48
|
+
| [openclaw-ai/openclaw](https://github.com/openclaw-ai/openclaw) | OpenClaw adapter target | adapter target reference | review-required | `OpenClawAdapter` |
|
|
49
|
+
| [hermes-ai/hermes](https://github.com/hermes-ai/hermes) | Hermes adapter target | adapter target reference | review-required | `HermesAdapter` |
|
|
50
|
+
| [Hmbown/deepseek-tui](https://github.com/Hmbown/deepseek-tui) | DeepSeek TUI adapter target | adapter target reference | review-required | `DeepSeekTuiAdapter` |
|
|
51
|
+
| [Aider-AI/aider](https://github.com/Aider-AI/aider) | Aider adapter target | adapter target reference | review-required | `AiderAdapter` |
|
|
52
|
+
|
|
53
|
+
## Required Maintenance
|
|
54
|
+
|
|
55
|
+
When a new GitHub upstream is referenced from `src/skills`, `src/tools`, `src/adapters`, or current tool orchestration docs, update this inventory in the same change. `tests/docs/externalReferences.test.ts` scans those surfaces and fails if a referenced upstream is missing from this file.
|
|
56
|
+
|
|
57
|
+
Before promoting any `review-required` item to a declared license status, record:
|
|
58
|
+
|
|
59
|
+
1. upstream license file and revision
|
|
60
|
+
2. upstream copyright and NOTICE obligations
|
|
61
|
+
3. whether SCALE vendors code, adapts concepts, or only links to the project
|
|
62
|
+
4. modification notes for copied or derived files
|
|
63
|
+
5. installation, script, and permission review evidence
|