@mmerterden/multi-agent-pipeline 20.40.0 → 20.42.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 +94 -0
- package/README.md +5 -2
- package/README.tr.md +5 -2
- package/docs/adr/0019-product-tree.md +143 -0
- package/docs/adr/README.md +1 -0
- package/docs/ecosystem.md +51 -14
- package/docs/facts.json +7 -7
- package/docs/features.md +15 -4
- package/install/claude.mjs +45 -3
- package/install/templates/claude-hooks.json +23 -1
- package/manifest.json +146 -107
- package/package.json +3 -2
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +11 -0
- package/pipeline/commands/multi-agent/review-analysis/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/setup/SKILL.md +1 -1
- package/pipeline/contract/types/index.d.ts +53 -49
- package/pipeline/lib/args.mjs +131 -4
- package/pipeline/lib/bg-launch.mjs +5 -2
- package/pipeline/lib/context-budget.mjs +5 -42
- package/pipeline/lib/credential-store.sh +11 -1
- package/pipeline/lib/hook-once.mjs +134 -0
- package/pipeline/lib/hook-registration.mjs +5 -0
- package/pipeline/lib/isotonic.mjs +73 -0
- package/pipeline/lib/low-disk.mjs +153 -0
- package/pipeline/lib/mcp-schema-load.mjs +90 -0
- package/pipeline/lib/md2confluence-v3.py +19 -10
- package/pipeline/lib/model-dispatch.sh +26 -2
- package/pipeline/lib/normalize-text.mjs +135 -0
- package/pipeline/lib/outbound-gate.mjs +21 -3
- package/pipeline/lib/plan-todos.sh +17 -4
- package/pipeline/lib/redact.mjs +12 -3
- package/pipeline/lib/risky-settings.mjs +198 -0
- package/pipeline/lib/route-state.sh +1 -0
- package/pipeline/lib/secret-patterns.generated.mjs +6 -2
- package/pipeline/lib/session-usage.mjs +232 -0
- package/pipeline/lib/source-digest.mjs +211 -0
- package/pipeline/lib/tdd-evidence.mjs +250 -17
- package/pipeline/lib/tiered-budget.mjs +87 -0
- package/pipeline/lib/untrusted-fence.mjs +132 -1
- package/pipeline/multi-agent-refs/analysis/locked.md +1 -1
- package/pipeline/multi-agent-refs/analysis/review.md +23 -1
- package/pipeline/multi-agent-refs/features/code-graph.md +11 -1
- package/pipeline/multi-agent-refs/features/cost-analysis.md +37 -2
- package/pipeline/multi-agent-refs/features/doctor.md +82 -4
- package/pipeline/multi-agent-refs/features/model-fallback.md +25 -0
- package/pipeline/multi-agent-refs/features/plan-todos.md +4 -0
- package/pipeline/multi-agent-refs/features/product-tree.md +68 -0
- package/pipeline/multi-agent-refs/features/unattended-gates.md +5 -3
- package/pipeline/multi-agent-refs/features/unattended-security.md +88 -1
- package/pipeline/multi-agent-refs/features/usage-reporting.md +33 -0
- package/pipeline/multi-agent-refs/help/en.md +2 -1
- package/pipeline/multi-agent-refs/help/tr.md +2 -1
- package/pipeline/multi-agent-refs/knowledge.md +58 -0
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +6 -0
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +5 -1
- package/pipeline/multi-agent-refs/phases/phase-2-dev.md +4 -4
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +2 -2
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +4 -0
- package/pipeline/multi-agent-refs/progress-contract.md +3 -1
- package/pipeline/office/index.html +13 -7
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/preferences-template.json +1 -0
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/doctor-report.schema.json +47 -0
- package/pipeline/schemas/learnings-ledger.schema.json +35 -2
- package/pipeline/schemas/office-archive.schema.json +225 -128
- package/pipeline/schemas/plan-todos.schema.json +29 -1
- package/pipeline/schemas/prefs.schema.json +146 -0
- package/pipeline/schemas/product-tree-overlay.schema.json +57 -0
- package/pipeline/schemas/product-tree.schema.json +136 -0
- package/pipeline/schemas/route-config.schema.json +51 -0
- package/pipeline/schemas/secret-patterns.json +17 -1
- package/pipeline/schemas/toolkit-path-params.json +15 -1
- package/pipeline/scripts/_cost-advise.mjs +357 -0
- package/pipeline/scripts/_cost-budget.mjs +78 -0
- package/pipeline/scripts/_cost.mjs +29 -0
- package/pipeline/scripts/_decode_text.py +107 -0
- package/pipeline/scripts/_eval-stats.mjs +182 -0
- package/pipeline/scripts/_guard-probe.mjs +406 -0
- package/pipeline/scripts/_guard_rules.py +336 -1
- package/pipeline/scripts/_learnings-promotion.mjs +229 -0
- package/pipeline/scripts/_locate.mjs +539 -0
- package/pipeline/scripts/_memory-policy.mjs +208 -33
- package/pipeline/scripts/_product-tree-extract.mjs +761 -0
- package/pipeline/scripts/_product-tree.mjs +923 -0
- package/pipeline/scripts/_retrieval.mjs +161 -4
- package/pipeline/scripts/_secret-scan.mjs +6 -1
- package/pipeline/scripts/_stack-routing.mjs +2 -0
- package/pipeline/scripts/_test-gaming.mjs +346 -0
- package/pipeline/scripts/_user_guard_rules.py +744 -0
- package/pipeline/scripts/agent-guard.py +69 -6
- package/pipeline/scripts/agent-guard.sh +8 -1
- package/pipeline/scripts/argv-secret-scan.mjs +2 -1
- package/pipeline/scripts/autopilot-loop.mjs +407 -0
- package/pipeline/scripts/autopilot-runner.mjs +38 -25
- package/pipeline/scripts/capture-resume.sh +9 -1
- package/pipeline/scripts/cost-analyze.mjs +66 -4
- package/pipeline/scripts/cost-budget-check.mjs +5 -13
- package/pipeline/scripts/disk-cleaner.mjs +1418 -0
- package/pipeline/scripts/doctor.mjs +324 -43
- package/pipeline/scripts/evidence-gate.mjs +90 -0
- package/pipeline/scripts/gate-ledger.mjs +76 -21
- package/pipeline/scripts/gc-tmp.sh +5 -0
- package/pipeline/scripts/graph-query.mjs +257 -17
- package/pipeline/scripts/guard-probe-known-holes.json +3 -0
- package/pipeline/scripts/learnings-ledger.mjs +680 -55
- package/pipeline/scripts/note-agent-event.mjs +2 -0
- package/pipeline/scripts/note-mcp-failure.mjs +363 -0
- package/pipeline/scripts/note-mcp-failure.sh +19 -0
- package/pipeline/scripts/note-skill-use.mjs +96 -23
- package/pipeline/scripts/office-archive.mjs +23 -10
- package/pipeline/scripts/office-memory.mjs +4 -1
- package/pipeline/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/scripts/pre-commit-check.sh +2 -2
- package/pipeline/scripts/pre-push-check.sh +8 -1
- package/pipeline/scripts/product-tree-eval.mjs +685 -0
- package/pipeline/scripts/product-tree.mjs +544 -0
- package/pipeline/scripts/publish-staged.mjs +324 -0
- package/pipeline/scripts/route-learn.mjs +628 -0
- package/pipeline/scripts/run-scope-guard.mjs +55 -1
- package/pipeline/scripts/scan-agent-config.sh +1 -1
- package/pipeline/scripts/statusline.mjs +309 -0
- package/pipeline/scripts/test-integrity-gate.mjs +97 -2
- package/pipeline/scripts/triage-memory.mjs +12 -4
- package/pipeline/scripts/uninstall.mjs +1 -0
- package/pipeline/skills/.skill-manifest.json +15 -7
- package/pipeline/skills/.skills-index.json +25 -3
- package/pipeline/skills/shared/README.md +6 -4
- package/pipeline/skills/shared/core/google-play-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-review-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
- package/pipeline/skills/shared/external/disk-cleaner/SKILL.md +105 -0
- package/pipeline/skills/shared/external/disk-cleaner/evals/evals.json +62 -0
- package/pipeline/skills/shared/external/disk-cleaner/scripts/disk-cleaner.mjs +1418 -0
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +118 -0
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +50 -0
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/skills/shared/external/storekit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +1 -1
- package/pipeline/skills/skill-copies.json +9 -1
- package/pipeline/skills/skills-index.md +4 -2
|
@@ -26,7 +26,7 @@ the file first; never inline it). The repo's own `.claude/skills` come first.
|
|
|
26
26
|
`ai-common-toolkit` and `ai-analyst-toolkit` are on everywhere. Nothing enabled
|
|
27
27
|
is a normal state.
|
|
28
28
|
|
|
29
|
-
**multi-agent-toolkit MCP.** <!-- fact:toolCount -->
|
|
29
|
+
**multi-agent-toolkit MCP.** <!-- fact:toolCount -->230<!-- /fact --> tools, most for a running app: `ios_get_ui_tree` /
|
|
30
30
|
`android_get_ui_tree`, `ios_list_crashes` / `android_list_crashes`, `design_*`,
|
|
31
31
|
`ios_app_store_audit`, `ios_testflight_validate`. Use them instead of guessing
|
|
32
32
|
about on-screen state. Not registered is a silent no-op.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/doctor-report.schema.json",
|
|
4
|
+
"title": "Doctor report",
|
|
5
|
+
"description": "What `doctor.mjs --json` prints. schemaVersion changes only when an existing field changes meaning or shape; a new check id or a new optional field does not change it. Every check id is listed by `doctor.mjs --list-checks` and documented in multi-agent-refs/features/doctor.md. `exit` is the process exit code: 0 healthy, 1 at least one WARN, 2 at least one BLOCK, 4 indeterminate (the layout did not resolve).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "exit", "selection", "checks"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": 1, "x-sensitivity": "none" },
|
|
11
|
+
"exit": { "type": "integer", "enum": [0, 1, 2, 4], "x-sensitivity": "none" },
|
|
12
|
+
"selection": {
|
|
13
|
+
"description": "The check ids --only asked for, in the order given, or null for a full run.",
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{ "type": "null" },
|
|
16
|
+
{ "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9-]+$" } }
|
|
17
|
+
],
|
|
18
|
+
"x-sensitivity": "none"
|
|
19
|
+
},
|
|
20
|
+
"checks": {
|
|
21
|
+
"description": "One entry per check that ran, in registry order.",
|
|
22
|
+
"type": "array",
|
|
23
|
+
"x-sensitivity": "local",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["id", "severity", "problem", "step", "detail"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
|
|
30
|
+
"severity": { "type": "string", "enum": ["OK", "INFO", "WARN", "BLOCK", "SKIP"] },
|
|
31
|
+
"problem": {
|
|
32
|
+
"description": "What is wrong (WARN, BLOCK, INFO) or why it was not checked (SKIP); null for OK.",
|
|
33
|
+
"type": ["string", "null"]
|
|
34
|
+
},
|
|
35
|
+
"step": {
|
|
36
|
+
"description": "The single step that fixes it, starting with a verb from the closed list; null for OK and SKIP.",
|
|
37
|
+
"type": ["string", "null"]
|
|
38
|
+
},
|
|
39
|
+
"detail": {
|
|
40
|
+
"description": "What --explain prints: a string, a list, or null. Free-form per check.",
|
|
41
|
+
"type": ["string", "array", "object", "null"]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"source": {
|
|
42
42
|
"type": "string",
|
|
43
|
-
"enum": ["triage", "transcript-mining", "manual"],
|
|
44
|
-
"description": "v16.27+ - who found this. `triage` is the Phase 4 distill, `transcript-mining` is learn-from-transcripts.mjs correlating a failure with the retry that worked, `manual` is a human or a model writing it directly. Kept separate because the three have different error modes and learning-curve.mjs has to be able to say which kind of learning is actually accumulating: a machine-mined path correction and a model's architectural claim are not the same evidence, and a metric that pools them can rise while the useful half is flat. Absent means the row predates the field."
|
|
43
|
+
"enum": ["triage", "transcript-mining", "manual", "promotion"],
|
|
44
|
+
"description": "v16.27+ - who found this. `triage` is the Phase 4 distill, `transcript-mining` is learn-from-transcripts.mjs correlating a failure with the retry that worked, `manual` is a human or a model writing it directly, `promotion` is a global row written by learnings-ledger.mjs promote --accept from entries that recur across repositories. Kept separate because the three have different error modes and learning-curve.mjs has to be able to say which kind of learning is actually accumulating: a machine-mined path correction and a model's architectural claim are not the same evidence, and a metric that pools them can rise while the useful half is flat. Absent means the row predates the field."
|
|
45
45
|
},
|
|
46
46
|
"confidence": {
|
|
47
47
|
"type": "string",
|
|
@@ -61,6 +61,39 @@
|
|
|
61
61
|
"items": { "type": "string", "pattern": "^L:[0-9a-f]{8}$" },
|
|
62
62
|
"description": "Ids of earlier entries in the same ledger that this entry replaces (learnings-ledger.mjs add --supersedes). The older rows stay in the append-only file; brief and profile leave a superseded entry out, timeline and show name the entry that superseded it. Only a link to an earlier line counts. Absent on rows that replace nothing."
|
|
63
63
|
},
|
|
64
|
+
"promoted_from": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["candidate", "similarity", "sources"],
|
|
68
|
+
"description": "Only on a row of the global ledger ($HOME/.claude/memory/multi-agent/_global/learnings-ledger.jsonl): the candidate a person approved with learnings-ledger.mjs promote --accept, its lowest pairwise word-pair similarity, and the per-repository entries it was promoted from. brief and profile leave the row out in every repository named in `sources`.",
|
|
69
|
+
"properties": {
|
|
70
|
+
"candidate": { "type": "string", "pattern": "^P:[0-9a-f]{8}$" },
|
|
71
|
+
"similarity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
72
|
+
"sources": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"minItems": 2,
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["repo", "id"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"repo": { "type": "string", "minLength": 1 },
|
|
81
|
+
"id": { "type": "string", "pattern": "^L:[0-9a-f]{8}$" }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"retracts": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": ["id", "reason"],
|
|
91
|
+
"description": "Only on a row of the global ledger: a person took back the global learning `id` with learnings-ledger.mjs promote --retract, for `reason`. The retraction is appended; the learning's own row is not rewritten. brief and profile leave a retracted learning out in every repository, show reports the retraction, and the learning is not proposed for promotion again. A row with this field is a retraction, never a learning of its own.",
|
|
92
|
+
"properties": {
|
|
93
|
+
"id": { "type": "string", "pattern": "^G:[0-9a-f]{8}$" },
|
|
94
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
64
97
|
"diagnosis": {
|
|
65
98
|
"type": "string",
|
|
66
99
|
"description": "Optional causal 'why' behind the lesson (Reflexion): the root-cause reasoning that turns a detected failure into a prevented one. Rendered in the brief as '(why: ...)'. Absent for plain facts/conventions."
|
|
@@ -2,167 +2,264 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/office-archive.schema.json",
|
|
4
4
|
"title": "Memory archive",
|
|
5
|
-
"description": "What GET /v1/archive returns and `office-archive.mjs --json` prints: per repository, the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired, and entries a later entry superseded, are left out and counted apart), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Every text is redacted and cut short. Local only: never offered to a phone or a remote carrier.",
|
|
5
|
+
"description": "What GET /v1/archive returns and `office-archive.mjs --json` prints: per repository, the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired, and entries a later entry superseded, are left out and counted apart), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Learnings promoted across repositories sit apart under `global`. Every text is redacted and cut short. Local only: never offered to a phone or a remote carrier.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": ["contractVersion", "generatedAt", "repos"],
|
|
9
9
|
"$defs": {
|
|
10
|
-
"count": {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
10
|
+
"count": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"minimum": 0
|
|
13
|
+
},
|
|
14
|
+
"text": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 240
|
|
17
|
+
},
|
|
18
|
+
"cell": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"maxLength": 160
|
|
21
|
+
},
|
|
22
|
+
"at": {
|
|
23
|
+
"type": ["string", "null"]
|
|
24
|
+
},
|
|
25
|
+
"scope": {
|
|
26
|
+
"type": ["string", "null"],
|
|
27
|
+
"maxLength": 120
|
|
28
|
+
},
|
|
15
29
|
"entry": {
|
|
16
30
|
"type": "object",
|
|
17
31
|
"additionalProperties": false,
|
|
18
32
|
"required": ["statement", "scope", "at"],
|
|
19
33
|
"properties": {
|
|
20
|
-
"statement": {
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
"statement": {
|
|
35
|
+
"$ref": "#/$defs/text"
|
|
36
|
+
},
|
|
37
|
+
"scope": {
|
|
38
|
+
"$ref": "#/$defs/scope"
|
|
39
|
+
},
|
|
40
|
+
"at": {
|
|
41
|
+
"$ref": "#/$defs/at"
|
|
42
|
+
}
|
|
23
43
|
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"properties": {
|
|
27
|
-
"contractVersion": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"pattern": "^1\\.[0-9]+\\.[0-9]+$",
|
|
30
|
-
"x-sensitivity": "none"
|
|
31
44
|
},
|
|
32
|
-
"
|
|
33
|
-
"type": "
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
"shelf": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["repo", "counts", "decisions", "securityNotes", "learnings", "graph"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"repo": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"counts": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": ["decisions", "securityNotes", "learnings", "retired", "superseded"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"decisions": {
|
|
59
|
+
"$ref": "#/$defs/count"
|
|
60
|
+
},
|
|
61
|
+
"securityNotes": {
|
|
62
|
+
"$ref": "#/$defs/count"
|
|
63
|
+
},
|
|
64
|
+
"learnings": {
|
|
65
|
+
"$ref": "#/$defs/count"
|
|
66
|
+
},
|
|
67
|
+
"retired": {
|
|
68
|
+
"$ref": "#/$defs/count",
|
|
69
|
+
"description": "Entries left out because their feedback retired them."
|
|
70
|
+
},
|
|
71
|
+
"superseded": {
|
|
72
|
+
"$ref": "#/$defs/count",
|
|
73
|
+
"description": "Entries left out because a later entry names them in its supersedes list. An entry both retired and superseded counts as retired."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"decisions": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"maxItems": 8,
|
|
80
|
+
"items": {
|
|
48
81
|
"type": "object",
|
|
49
82
|
"additionalProperties": false,
|
|
50
|
-
"required": ["
|
|
83
|
+
"required": ["statement", "scope", "at", "rationale", "confidence"],
|
|
51
84
|
"properties": {
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"$ref": "#/$defs/
|
|
57
|
-
|
|
85
|
+
"statement": {
|
|
86
|
+
"$ref": "#/$defs/text"
|
|
87
|
+
},
|
|
88
|
+
"scope": {
|
|
89
|
+
"$ref": "#/$defs/scope"
|
|
90
|
+
},
|
|
91
|
+
"at": {
|
|
92
|
+
"$ref": "#/$defs/at"
|
|
93
|
+
},
|
|
94
|
+
"rationale": {
|
|
95
|
+
"type": ["string", "null"],
|
|
96
|
+
"maxLength": 240
|
|
58
97
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"description": "Entries left out because a later entry names them in its supersedes list. An entry both retired and superseded counts as retired."
|
|
98
|
+
"confidence": {
|
|
99
|
+
"enum": ["low", "medium", "high", null]
|
|
62
100
|
}
|
|
63
101
|
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"securityNotes": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"maxItems": 8,
|
|
107
|
+
"items": {
|
|
108
|
+
"$ref": "#/$defs/entry"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"learnings": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"maxItems": 8,
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": ["kind", "statement", "scope", "at"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"kind": {
|
|
120
|
+
"enum": ["fact", "convention", "rejected-preference"]
|
|
121
|
+
},
|
|
122
|
+
"statement": {
|
|
123
|
+
"$ref": "#/$defs/text"
|
|
124
|
+
},
|
|
125
|
+
"scope": {
|
|
126
|
+
"$ref": "#/$defs/scope"
|
|
127
|
+
},
|
|
128
|
+
"at": {
|
|
129
|
+
"$ref": "#/$defs/at"
|
|
78
130
|
}
|
|
79
131
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"maxItems": 8,
|
|
89
|
-
"items": {
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"graph": {
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "null"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
90
140
|
"type": "object",
|
|
91
141
|
"additionalProperties": false,
|
|
92
|
-
"required": ["
|
|
142
|
+
"required": ["builtAt", "hubs", "clusters", "surprising", "questions"],
|
|
93
143
|
"properties": {
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
"properties": {
|
|
118
|
-
"name": { "$ref": "#/$defs/cell" },
|
|
119
|
-
"kind": { "$ref": "#/$defs/cell" },
|
|
120
|
-
"degree": { "type": "number", "minimum": 0 },
|
|
121
|
-
"path": { "$ref": "#/$defs/cell" }
|
|
144
|
+
"builtAt": {
|
|
145
|
+
"$ref": "#/$defs/at"
|
|
146
|
+
},
|
|
147
|
+
"hubs": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"maxItems": 8,
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["name", "kind", "degree", "path"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"name": {
|
|
156
|
+
"$ref": "#/$defs/cell"
|
|
157
|
+
},
|
|
158
|
+
"kind": {
|
|
159
|
+
"$ref": "#/$defs/cell"
|
|
160
|
+
},
|
|
161
|
+
"degree": {
|
|
162
|
+
"type": "number",
|
|
163
|
+
"minimum": 0
|
|
164
|
+
},
|
|
165
|
+
"path": {
|
|
166
|
+
"$ref": "#/$defs/cell"
|
|
122
167
|
}
|
|
123
168
|
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"clusters": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"maxItems": 8,
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["files", "cohesion", "around", "where"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"files": {
|
|
180
|
+
"type": "number",
|
|
181
|
+
"minimum": 0
|
|
182
|
+
},
|
|
183
|
+
"cohesion": {
|
|
184
|
+
"type": "number"
|
|
185
|
+
},
|
|
186
|
+
"around": {
|
|
187
|
+
"$ref": "#/$defs/cell"
|
|
188
|
+
},
|
|
189
|
+
"where": {
|
|
190
|
+
"$ref": "#/$defs/cell"
|
|
137
191
|
}
|
|
138
192
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"surprising": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"maxItems": 8,
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": ["from", "to", "kind", "links"],
|
|
202
|
+
"properties": {
|
|
203
|
+
"from": {
|
|
204
|
+
"$ref": "#/$defs/cell"
|
|
205
|
+
},
|
|
206
|
+
"to": {
|
|
207
|
+
"$ref": "#/$defs/cell"
|
|
208
|
+
},
|
|
209
|
+
"kind": {
|
|
210
|
+
"$ref": "#/$defs/cell"
|
|
211
|
+
},
|
|
212
|
+
"links": {
|
|
213
|
+
"type": "number",
|
|
214
|
+
"minimum": 0
|
|
152
215
|
}
|
|
153
216
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"questions": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"maxItems": 8,
|
|
222
|
+
"items": {
|
|
223
|
+
"$ref": "#/$defs/cell"
|
|
159
224
|
}
|
|
160
225
|
}
|
|
161
226
|
}
|
|
162
|
-
|
|
163
|
-
|
|
227
|
+
}
|
|
228
|
+
]
|
|
164
229
|
}
|
|
165
230
|
}
|
|
166
231
|
}
|
|
232
|
+
},
|
|
233
|
+
"properties": {
|
|
234
|
+
"contractVersion": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"pattern": "^1\\.[0-9]+\\.[0-9]+$",
|
|
237
|
+
"x-sensitivity": "none"
|
|
238
|
+
},
|
|
239
|
+
"generatedAt": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"format": "date-time",
|
|
242
|
+
"x-sensitivity": "none"
|
|
243
|
+
},
|
|
244
|
+
"repos": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"maxItems": 30,
|
|
247
|
+
"x-sensitivity": "local",
|
|
248
|
+
"items": {
|
|
249
|
+
"$ref": "#/$defs/shelf"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"global": {
|
|
253
|
+
"description": "The global ledger (written only by learnings-ledger.mjs promote --accept) on a shelf of its own, in the same shape as a repository's with `repo` set to `_global` and `graph` null; null until a learning has been promoted. Never listed in `repos`.",
|
|
254
|
+
"x-sensitivity": "local",
|
|
255
|
+
"oneOf": [
|
|
256
|
+
{
|
|
257
|
+
"type": "null"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"$ref": "#/$defs/shelf"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
167
264
|
}
|
|
168
265
|
}
|
|
@@ -85,6 +85,20 @@
|
|
|
85
85
|
"testsUnverifiable": {
|
|
86
86
|
"type": "boolean",
|
|
87
87
|
"description": "The todo named tests (--tests) but the results name no failing test, so the names went unchecked. Recorded in warn and off mode; enforce refuses the run instead."
|
|
88
|
+
},
|
|
89
|
+
"testFiles": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"maxItems": 200,
|
|
92
|
+
"description": "The worktree's new and changed test files at RED, each with the blob id its bytes were written to in the repository's object store. tdd-green refuses when one of them changed without --test-edit-reason; tdd-restore writes them back.",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": ["path", "blob"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"path": { "type": "string", "minLength": 1 },
|
|
99
|
+
"blob": { "type": "string", "pattern": "^[0-9a-f]{40,64}$" }
|
|
100
|
+
}
|
|
101
|
+
}
|
|
88
102
|
}
|
|
89
103
|
}
|
|
90
104
|
},
|
|
@@ -96,7 +110,21 @@
|
|
|
96
110
|
"properties": {
|
|
97
111
|
"at": { "type": "string", "format": "date-time" },
|
|
98
112
|
"failed": { "const": 0 },
|
|
99
|
-
"total": { "type": "integer", "minimum": 1 }
|
|
113
|
+
"total": { "type": "integer", "minimum": 1 },
|
|
114
|
+
"testEdits": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"description": "Test files RED kept that GREEN found changed, accepted with the reason given to --test-edit-reason. test-integrity-gate --state reports them for review.",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["path", "change", "reason"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"path": { "type": "string", "minLength": 1 },
|
|
123
|
+
"change": { "type": "string", "enum": ["modified", "deleted"] },
|
|
124
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
100
128
|
}
|
|
101
129
|
},
|
|
102
130
|
"outcome": {
|