agent-bios 0.1.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/DEPENDENCIES.md +89 -0
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/claude/CLAUDE.md +138 -0
- package/claude/guides/cli-multi-model-workflow.md +194 -0
- package/claude/guides/coding-staged-workflow.md +70 -0
- package/claude/guides/implementation-map.md +34 -0
- package/claude/guides/llm-capability-boundary-examples.md +123 -0
- package/claude/guides/llm-capability-boundary-patterns.md +339 -0
- package/claude/guides/llm-capability-boundary.md +255 -0
- package/claude/guides/mock-realization-boundary.md +275 -0
- package/claude/guides/svg-visualization-guide.md +321 -0
- package/codex/AGENTS.md +139 -0
- package/codex/agents/frontier.toml +8 -0
- package/codex/agents/reviewer.toml +9 -0
- package/codex/agents/sweep.toml +9 -0
- package/codex/agents/workhorse.toml +8 -0
- package/codex/guides/cli-multi-model-workflow.md +194 -0
- package/codex/guides/coding-staged-workflow.md +70 -0
- package/codex/guides/implementation-map.md +34 -0
- package/codex/guides/llm-capability-boundary-examples.md +123 -0
- package/codex/guides/llm-capability-boundary-patterns.md +339 -0
- package/codex/guides/llm-capability-boundary.md +255 -0
- package/codex/guides/mock-realization-boundary.md +275 -0
- package/codex/guides/svg-visualization-guide.md +321 -0
- package/config/agent-launch.toml +94 -0
- package/package.json +54 -0
- package/scripts/agent-launch.py +1742 -0
- package/scripts/check-parity.sh +1703 -0
- package/scripts/codex-helm.sh +370 -0
- package/scripts/codex-run.sh +176 -0
- package/scripts/install.sh +310 -0
- package/scripts/provision-venv.sh +28 -0
- package/scripts/session-cost.py +106 -0
- package/shell/agent-launch.zsh +38 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
---
|
|
2
|
+
guide_id: mock-realization-boundary
|
|
3
|
+
language: en
|
|
4
|
+
status: active
|
|
5
|
+
use_when:
|
|
6
|
+
- adding mocks, fakes, stubs, fixtures, or simulated providers
|
|
7
|
+
- deciding whether a mock-backed path counts as completion
|
|
8
|
+
- separating verification harnesses from production semantic paths
|
|
9
|
+
- centralizing mock payloads for later deletion or replacement
|
|
10
|
+
- reporting verification results that include mock-backed checks
|
|
11
|
+
core_rules:
|
|
12
|
+
- mocks are verification realizations, not production semantic paths
|
|
13
|
+
- use mocks to verify wiring, schemas, artifact contracts, deterministic projections, failure handling, and harness stability
|
|
14
|
+
- use real semantic paths to verify product behavior, materiality judgment, causal reasoning, and semantic quality
|
|
15
|
+
- keep mock behavior behind explicit realization switches, fixture modules, or mock executors
|
|
16
|
+
- centralize mock payloads in a small deletion boundary so mock support can be removed or replaced together
|
|
17
|
+
- share validators and artifact contracts between mock and production paths
|
|
18
|
+
- report mock-backed verification separately from production-path verification
|
|
19
|
+
completion_policy:
|
|
20
|
+
mock_backed_paths_support_verification: true
|
|
21
|
+
mock_backed_paths_count_as_product_completion: false
|
|
22
|
+
semantic_quality_from_mock: not_applicable
|
|
23
|
+
verification_focus:
|
|
24
|
+
- mock paths exercise the same artifact contracts as production paths
|
|
25
|
+
- mock payloads are centralized and easy to delete
|
|
26
|
+
- mock execution is selected only through explicit realization config
|
|
27
|
+
- verification reports distinguish mock, fixture, and live paths
|
|
28
|
+
- production semantic gates run on real semantic paths
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Mock Realization Boundary Guide
|
|
32
|
+
|
|
33
|
+
This guide is a scoped extension of the global Coding Guidelines. Use it when
|
|
34
|
+
adding, reviewing, or cleaning up mocks, fakes, stubs, fixtures, simulated
|
|
35
|
+
providers, or mock executors.
|
|
36
|
+
|
|
37
|
+
The central rule is that a mock is a verification realization. It can prove that
|
|
38
|
+
the harness, contract, validator, projection, or failure path works. It does not
|
|
39
|
+
prove that the product semantic path works.
|
|
40
|
+
|
|
41
|
+
## Core Distinction
|
|
42
|
+
|
|
43
|
+
| Question | Mock path | Production semantic path |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| What does it prove? | Wiring, schemas, persistence, projections, failures | Real behavior, semantic judgment, user-visible quality |
|
|
46
|
+
| Who owns semantics? | Fixture author | Real model, real service, real user input, or real runtime authority |
|
|
47
|
+
| Completion credit | Verification support only | Product completion evidence |
|
|
48
|
+
| Quality gate status | `not_applicable` or harness-only | Passed/failed against real semantic criteria |
|
|
49
|
+
| Cleanup strategy | Central deletion boundary | Maintained product path |
|
|
50
|
+
|
|
51
|
+
Use the same artifact contracts and validators whenever possible. The mock path
|
|
52
|
+
should exercise the product contract, not create a parallel contract.
|
|
53
|
+
|
|
54
|
+
## Appropriate Mock Uses
|
|
55
|
+
|
|
56
|
+
Use mocks for:
|
|
57
|
+
|
|
58
|
+
- wiring checks
|
|
59
|
+
- schema and parser checks
|
|
60
|
+
- artifact persistence checks
|
|
61
|
+
- deterministic projection checks
|
|
62
|
+
- retry and failure handling checks
|
|
63
|
+
- timeout and cancellation checks
|
|
64
|
+
- E2E harness stability
|
|
65
|
+
- fixture-based regression tests
|
|
66
|
+
- external dependency isolation when the dependency is not under test
|
|
67
|
+
|
|
68
|
+
Use real paths for:
|
|
69
|
+
|
|
70
|
+
- product behavior
|
|
71
|
+
- materiality judgment
|
|
72
|
+
- causal reasoning
|
|
73
|
+
- semantic quality gates
|
|
74
|
+
- user-visible recommendations
|
|
75
|
+
- provider integration confidence
|
|
76
|
+
- release evidence for high-risk flows
|
|
77
|
+
|
|
78
|
+
## Structural Pattern
|
|
79
|
+
|
|
80
|
+
1. Define an explicit realization selector such as `mock`, `fixture`, `live`, or
|
|
81
|
+
`direct`.
|
|
82
|
+
2. Keep mock payloads in a fixture module or fixture directory.
|
|
83
|
+
3. Keep mock executors as thin shells that route fixture payloads through the
|
|
84
|
+
same validators and artifact writers used by production.
|
|
85
|
+
4. Mark semantic-quality evaluation as `not_applicable` for mock realization.
|
|
86
|
+
5. Report mock-backed verification separately from live or production-path
|
|
87
|
+
verification.
|
|
88
|
+
6. Keep the deletion boundary small enough that mock support can be removed or
|
|
89
|
+
replaced in one focused change.
|
|
90
|
+
|
|
91
|
+
## Realization Selector
|
|
92
|
+
|
|
93
|
+
Use explicit realization config so a mock cannot silently become the product
|
|
94
|
+
path.
|
|
95
|
+
|
|
96
|
+
Illustrative implementation:
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
type Realization = "mock" | "fixture" | "live";
|
|
100
|
+
|
|
101
|
+
function parseRealization(value: string | undefined): Realization {
|
|
102
|
+
if (value === "mock" || value === "fixture" || value === "live") return value;
|
|
103
|
+
return "live";
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function selectProvider(realization: Realization) {
|
|
107
|
+
if (realization === "mock") return createMockProvider();
|
|
108
|
+
if (realization === "fixture") return createFixtureProvider();
|
|
109
|
+
return createLiveProvider();
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Central Fixture Boundary
|
|
114
|
+
|
|
115
|
+
Centralize mock payloads. Runtime code that needs deterministic mock artifacts
|
|
116
|
+
imports from this boundary instead of growing inline mock-specific payloads.
|
|
117
|
+
|
|
118
|
+
Illustrative implementation:
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
export const reviewMockFixtures = {
|
|
122
|
+
findingLedger() {
|
|
123
|
+
return {
|
|
124
|
+
schema_version: 1,
|
|
125
|
+
findings: [
|
|
126
|
+
{
|
|
127
|
+
finding_id: "finding-001",
|
|
128
|
+
target: "fixture-target",
|
|
129
|
+
claim: "fixture finding",
|
|
130
|
+
severity: "low",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Thin Mock Executor
|
|
139
|
+
|
|
140
|
+
Keep the mock executor as an execution shell. It should not become the place
|
|
141
|
+
where product behavior is reimplemented.
|
|
142
|
+
|
|
143
|
+
Illustrative implementation:
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
async function runMockUnit(unit: Unit, ctx: RuntimeContext) {
|
|
147
|
+
const payload = reviewMockFixtures[unit.artifactKind]();
|
|
148
|
+
const artifact = validateArtifact(payload, unit.artifactKind);
|
|
149
|
+
await writeArtifact(ctx.outputPath, artifact);
|
|
150
|
+
return {
|
|
151
|
+
realization: "mock",
|
|
152
|
+
artifact_path: ctx.outputPath,
|
|
153
|
+
semantic_quality: "not_applicable",
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Shared Validators
|
|
159
|
+
|
|
160
|
+
The mock path should pass through the same validators as production. This makes
|
|
161
|
+
mock tests useful for contract drift without letting mocks become product
|
|
162
|
+
completion evidence.
|
|
163
|
+
|
|
164
|
+
Illustrative implementation:
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
function writeArtifact(path: string, payload: unknown) {
|
|
168
|
+
const validated = validateCurrentArtifactContract(payload);
|
|
169
|
+
return writeYaml(path, validated);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
await writeArtifact(outputPath, reviewMockFixtures.findingLedger());
|
|
173
|
+
await writeArtifact(outputPath, liveModelArtifact);
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Semantic Quality Gate
|
|
177
|
+
|
|
178
|
+
Mock-backed runs should make semantic quality explicitly not applicable. They
|
|
179
|
+
can still verify the harness and artifact collection.
|
|
180
|
+
|
|
181
|
+
Illustrative implementation:
|
|
182
|
+
|
|
183
|
+
```ts
|
|
184
|
+
function evaluateSemanticQuality(args: {
|
|
185
|
+
realization: Realization;
|
|
186
|
+
artifact: unknown;
|
|
187
|
+
}) {
|
|
188
|
+
if (args.realization === "mock") {
|
|
189
|
+
return {
|
|
190
|
+
status: "not_applicable",
|
|
191
|
+
applicability: "real_semantic_path_only",
|
|
192
|
+
reason: "mock verifies harness and contracts, not product semantics",
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
return evaluateLiveSemanticQuality(args.artifact);
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Verification Reporting
|
|
200
|
+
|
|
201
|
+
Separate mock-backed checks from production-path checks in final reports.
|
|
202
|
+
|
|
203
|
+
Preferred reporting shape:
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
type VerificationReport = {
|
|
207
|
+
mock_checks: CheckResult[];
|
|
208
|
+
fixture_checks: CheckResult[];
|
|
209
|
+
production_path_checks: CheckResult[];
|
|
210
|
+
unverified_risks: string[];
|
|
211
|
+
};
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Useful report language:
|
|
215
|
+
|
|
216
|
+
- "Mock run passed artifact-contract checks."
|
|
217
|
+
- "Mock run did not evaluate product semantic quality."
|
|
218
|
+
- "Live semantic path remains unverified."
|
|
219
|
+
- "Production path passed semantic quality gate."
|
|
220
|
+
|
|
221
|
+
## Deletion Boundary
|
|
222
|
+
|
|
223
|
+
Mock support should be easy to remove or replace. A good deletion boundary has:
|
|
224
|
+
|
|
225
|
+
- one fixture module or fixture directory
|
|
226
|
+
- one realization selector
|
|
227
|
+
- one mock executor shell if needed
|
|
228
|
+
- shared validators outside the mock boundary
|
|
229
|
+
- tests that name the realization explicitly
|
|
230
|
+
- no product runtime dependency on mock-only payloads
|
|
231
|
+
|
|
232
|
+
When cleanup is needed, remove or replace the fixture module, realization route,
|
|
233
|
+
and mock-only tests together.
|
|
234
|
+
|
|
235
|
+
## Product Completion Rule
|
|
236
|
+
|
|
237
|
+
Mock-backed paths can support verification but do not count as product
|
|
238
|
+
completion.
|
|
239
|
+
|
|
240
|
+
Examples:
|
|
241
|
+
|
|
242
|
+
- A mock E2E can prove the pipeline writes all expected artifacts.
|
|
243
|
+
- A mock E2E cannot prove the recommendation is semantically correct.
|
|
244
|
+
- A fixture can prove a validator rejects malformed payloads.
|
|
245
|
+
- A fixture cannot prove a live provider follows the intended reasoning path.
|
|
246
|
+
- A mock provider can prove retry handling.
|
|
247
|
+
- A mock provider cannot prove the real provider integration is production-ready.
|
|
248
|
+
|
|
249
|
+
## Design Procedure
|
|
250
|
+
|
|
251
|
+
Use this procedure before adding or extending mock behavior.
|
|
252
|
+
|
|
253
|
+
1. Name what the mock is meant to verify.
|
|
254
|
+
2. Name what the mock does not verify.
|
|
255
|
+
3. Choose an explicit realization selector.
|
|
256
|
+
4. Put mock payloads in one fixture boundary.
|
|
257
|
+
5. Route mock outputs through shared validators and artifact writers.
|
|
258
|
+
6. Keep mock executors thin.
|
|
259
|
+
7. Mark semantic quality as not applicable for mock runs.
|
|
260
|
+
8. Add reporting that separates mock checks from production-path checks.
|
|
261
|
+
9. Add at least one real semantic-path check when product behavior is part of
|
|
262
|
+
the completion claim.
|
|
263
|
+
10. Keep deletion or replacement possible in one focused change.
|
|
264
|
+
|
|
265
|
+
## Verification Checklist
|
|
266
|
+
|
|
267
|
+
- Mock use is explicitly selected.
|
|
268
|
+
- Mock payloads are centralized.
|
|
269
|
+
- Mock behavior is not embedded across production logic.
|
|
270
|
+
- Mock output uses the current production artifact contract.
|
|
271
|
+
- Shared validators run on mock output.
|
|
272
|
+
- Mock-backed verification is reported separately.
|
|
273
|
+
- Semantic quality is not claimed from mock-backed output.
|
|
274
|
+
- Product completion has real semantic-path evidence.
|
|
275
|
+
- Mock support has a clear deletion boundary.
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
---
|
|
2
|
+
guide_id: svg-visualization-guide
|
|
3
|
+
language: en
|
|
4
|
+
status: active
|
|
5
|
+
use_when:
|
|
6
|
+
- creating SVG diagrams for architecture, pipelines, artifacts, runtime/LLM boundaries, or service blueprints
|
|
7
|
+
- adding a blueprint SVG to IMPLEMENTATION_MAP.html
|
|
8
|
+
- visualizing before/after structure, hot paths, postponed work, gates, quality checks, or artifact authority
|
|
9
|
+
- replacing prose-heavy implementation status with a compact visual decision aid
|
|
10
|
+
core_rules:
|
|
11
|
+
- make each SVG answer one judgment question
|
|
12
|
+
- separate time flow from authority flow when they differ
|
|
13
|
+
- use stable role colors for input, runtime/tools, LLM, artifact, view/UI, gate, quality, postponed work, and downstream work
|
|
14
|
+
- label format and authority separately so canonical artifacts and projections are not confused
|
|
15
|
+
- keep hot-path work visually separate from postponed or excluded work
|
|
16
|
+
- prefer lanes, legends, short labels, explicit arrows, and compact nodes over dense prose
|
|
17
|
+
- validate SVG syntax and visual layout when practical
|
|
18
|
+
verification_focus:
|
|
19
|
+
- the SVG has one clear question
|
|
20
|
+
- input and output are obvious
|
|
21
|
+
- runtime/tools and LLM responsibilities are visually distinct
|
|
22
|
+
- canonical artifacts and projections are labeled separately
|
|
23
|
+
- hot path and postponed work are separated
|
|
24
|
+
- gates and quality checks have different meanings
|
|
25
|
+
- text does not overlap and arrows remain readable
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# SVG Visualization Guide
|
|
29
|
+
|
|
30
|
+
Use this guide when a diagram needs more precision than a Markdown table or
|
|
31
|
+
Mermaid diagram can provide. The goal is not decoration. The goal is to help a
|
|
32
|
+
reader quickly decide what the system does, where authority lives, what is on
|
|
33
|
+
the hot path, what is postponed, and what must be verified.
|
|
34
|
+
|
|
35
|
+
For `IMPLEMENTATION_MAP.html`, include one self-contained SVG service blueprint
|
|
36
|
+
that shows the whole service or implemented system at the right level of
|
|
37
|
+
abstraction.
|
|
38
|
+
|
|
39
|
+
## When To Use SVG
|
|
40
|
+
|
|
41
|
+
Prefer SVG when the visual needs any of these:
|
|
42
|
+
|
|
43
|
+
- before/after structure
|
|
44
|
+
- sequential pipeline flow
|
|
45
|
+
- multiple lanes or layers
|
|
46
|
+
- artifact relationships
|
|
47
|
+
- runtime/tools and LLM responsibility boundaries
|
|
48
|
+
- canonical artifact versus projection distinction
|
|
49
|
+
- gate, quality review, and UI projection in the same view
|
|
50
|
+
- postponed or excluded work beside the hot path
|
|
51
|
+
- a self-contained browser-readable visual artifact
|
|
52
|
+
|
|
53
|
+
Prefer a Markdown table or Mermaid diagram when the structure is shallow, has
|
|
54
|
+
five or fewer items, or the exact text diff matters more than layout.
|
|
55
|
+
|
|
56
|
+
## Core Principles
|
|
57
|
+
|
|
58
|
+
### One Judgment Question
|
|
59
|
+
|
|
60
|
+
Each SVG should answer one clear question.
|
|
61
|
+
|
|
62
|
+
Good questions:
|
|
63
|
+
|
|
64
|
+
- How does source authority become a canonical artifact consumers trust?
|
|
65
|
+
- Why does this pipeline need both a chunk pass and a bridge pass?
|
|
66
|
+
- How did input authority change before and after this redesign?
|
|
67
|
+
- What is the current service blueprint and where are the gates?
|
|
68
|
+
|
|
69
|
+
The SVG may cover many nodes, but all nodes should support the same question.
|
|
70
|
+
Detailed history, exhaustive task lists, and long explanations belong outside
|
|
71
|
+
the SVG.
|
|
72
|
+
|
|
73
|
+
### Time Flow And Authority Flow
|
|
74
|
+
|
|
75
|
+
Separate time flow from authority flow when they differ.
|
|
76
|
+
|
|
77
|
+
Time flow example:
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
input -> stage 1 -> stage 2 -> stage N
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Authority flow example:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
source/chat/decision/config
|
|
87
|
+
-> canonical JSON artifact
|
|
88
|
+
-> runtime projection
|
|
89
|
+
-> confirmed handoff
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Use separate lanes or distinct arrow styles when the reader needs to see both.
|
|
93
|
+
|
|
94
|
+
### Stable Role Colors
|
|
95
|
+
|
|
96
|
+
Use the same role colors across diagrams so the reader does not relearn the
|
|
97
|
+
legend.
|
|
98
|
+
|
|
99
|
+
| Role | Color | Meaning |
|
|
100
|
+
|---|---|---|
|
|
101
|
+
| Input | Blue | User source, chat, decision, config snapshot |
|
|
102
|
+
| Runtime/tools | Green | Deterministic parse, merge, projection, id/ref/digest creation |
|
|
103
|
+
| LLM | Amber | Semantic interpretation, drafting, relation judgment |
|
|
104
|
+
| Artifact | Slate/gray | Canonical or generated file |
|
|
105
|
+
| View/UI | Purple | HTML review, confirmation UI, user-facing projection |
|
|
106
|
+
| Gate | Red | Deterministic blocking check |
|
|
107
|
+
| Quality | Cyan | Non-blocking quality report or competency question |
|
|
108
|
+
| Postponed/excluded | Orange | Later decision, later collection, outside hot path |
|
|
109
|
+
| Future/downstream | Dashed gray | Later phase, downstream system, future redesign |
|
|
110
|
+
|
|
111
|
+
Color is not enough by itself. Use labels and legends too.
|
|
112
|
+
|
|
113
|
+
### Format And Authority
|
|
114
|
+
|
|
115
|
+
Each important node should show at least two of these:
|
|
116
|
+
|
|
117
|
+
- human-readable name
|
|
118
|
+
- artifact or concept id
|
|
119
|
+
- format
|
|
120
|
+
- owner
|
|
121
|
+
- authority status
|
|
122
|
+
|
|
123
|
+
Example:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
Confirmed Planning Input
|
|
127
|
+
JSON canonical + YAML projection
|
|
128
|
+
Runtime owns schema/ref/digest
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
YAML, Markdown, and HTML may be projections rather than canonical artifacts.
|
|
132
|
+
Label that distinction directly.
|
|
133
|
+
|
|
134
|
+
### Hot Path And Postponed Work
|
|
135
|
+
|
|
136
|
+
Complexity reduction often depends on what the system leaves out. Show hot-path
|
|
137
|
+
work and postponed or excluded work in the same SVG, but in separate lanes or
|
|
138
|
+
side boxes.
|
|
139
|
+
|
|
140
|
+
Examples:
|
|
141
|
+
|
|
142
|
+
```text
|
|
143
|
+
post_decision: fields resolved by a later decision
|
|
144
|
+
post_collection: assets gathered in a later step
|
|
145
|
+
placeholder_need: reserve context for later collection
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Postponed items should not sit inside the main flow.
|
|
149
|
+
|
|
150
|
+
## Recommended SVG Structure
|
|
151
|
+
|
|
152
|
+
### Title And Subtitle
|
|
153
|
+
|
|
154
|
+
Use a title that names the target and purpose. Use a subtitle for the single
|
|
155
|
+
judgment question.
|
|
156
|
+
|
|
157
|
+
```xml
|
|
158
|
+
<text class="title" x="70" y="72">Input Authority Rebuild Plan</text>
|
|
159
|
+
<text class="subtitle" x="72" y="108">How confirmed source authority becomes a canonical artifact</text>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Legend
|
|
163
|
+
|
|
164
|
+
Place a compact legend near the top. The legend should explain:
|
|
165
|
+
|
|
166
|
+
- role colors
|
|
167
|
+
- artifact formats
|
|
168
|
+
- arrow meanings
|
|
169
|
+
- hot path versus postponed work when relevant
|
|
170
|
+
|
|
171
|
+
### Lanes
|
|
172
|
+
|
|
173
|
+
Use lanes to make complex diagrams readable. Keep the lane count small.
|
|
174
|
+
|
|
175
|
+
Recommended lanes:
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
Inputs
|
|
179
|
+
Runtime/tools
|
|
180
|
+
LLM semantic work
|
|
181
|
+
Canonical artifacts
|
|
182
|
+
Views, gates, and quality
|
|
183
|
+
Postponed or downstream work
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
For before/after comparisons, use two columns instead of many lanes.
|
|
187
|
+
|
|
188
|
+
### Nodes
|
|
189
|
+
|
|
190
|
+
Keep each node to three to five short lines.
|
|
191
|
+
|
|
192
|
+
Recommended node shape:
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
Node title
|
|
196
|
+
Plain behavior
|
|
197
|
+
Important constraint
|
|
198
|
+
artifact_id or format
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Use monospace-like styling for artifact ids when useful. Keep long prose in the
|
|
202
|
+
surrounding document.
|
|
203
|
+
|
|
204
|
+
### Arrows
|
|
205
|
+
|
|
206
|
+
Use arrow meaning consistently.
|
|
207
|
+
|
|
208
|
+
- Slate arrow: normal data flow
|
|
209
|
+
- Green arrow: runtime-owned deterministic flow
|
|
210
|
+
- Amber or blue arrow: LLM semantic submit/candidate flow
|
|
211
|
+
- Red arrow: gate or blocking condition
|
|
212
|
+
- Dashed gray arrow: optional, future, downstream, or projection-only flow
|
|
213
|
+
|
|
214
|
+
When arrows cross too much, add a lane, hub node, or intermediate artifact.
|
|
215
|
+
|
|
216
|
+
## Implementation Map Blueprint
|
|
217
|
+
|
|
218
|
+
The `IMPLEMENTATION_MAP.html` blueprint SVG should explain the current service
|
|
219
|
+
or implemented system, not every file and task.
|
|
220
|
+
|
|
221
|
+
It should answer:
|
|
222
|
+
|
|
223
|
+
- What enters the service?
|
|
224
|
+
- What leaves the service?
|
|
225
|
+
- Which steps are runtime/tools work?
|
|
226
|
+
- Which steps are LLM semantic work?
|
|
227
|
+
- Which artifacts are canonical?
|
|
228
|
+
- Which views are generated projections?
|
|
229
|
+
- Which gates block progress?
|
|
230
|
+
- Which quality checks disclose risk without blocking?
|
|
231
|
+
- Which items are postponed, excluded, downstream, or future work?
|
|
232
|
+
|
|
233
|
+
Use the blueprint to support decisions. A reader should be able to understand
|
|
234
|
+
the current architecture, hot path, authority boundaries, and main risks without
|
|
235
|
+
reading a long progress log.
|
|
236
|
+
|
|
237
|
+
## Layout Rules
|
|
238
|
+
|
|
239
|
+
Recommended default:
|
|
240
|
+
|
|
241
|
+
```xml
|
|
242
|
+
<svg width="1900" height="1640" viewBox="0 0 1900 1640">
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Use these layout defaults:
|
|
246
|
+
|
|
247
|
+
- Width around 1800-1900px for complex blueprints
|
|
248
|
+
- Lane gaps of at least 30-40px
|
|
249
|
+
- Node gaps of at least 60-80px
|
|
250
|
+
- Node width of at least 240px
|
|
251
|
+
- Fixed font sizes
|
|
252
|
+
- Letter spacing of 0 except tiny badge cases
|
|
253
|
+
- Manual line breaks for long labels
|
|
254
|
+
- Larger boxes when text could overflow
|
|
255
|
+
- Hub nodes when arrows would cross heavily
|
|
256
|
+
|
|
257
|
+
## Accessibility And Visual Hygiene
|
|
258
|
+
|
|
259
|
+
Include `role`, `title`, and `desc`:
|
|
260
|
+
|
|
261
|
+
```xml
|
|
262
|
+
<svg role="img" aria-labelledby="title desc">
|
|
263
|
+
<title id="title">...</title>
|
|
264
|
+
<desc id="desc">...</desc>
|
|
265
|
+
</svg>
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Keep visuals plain and readable:
|
|
269
|
+
|
|
270
|
+
- simple fill and stroke
|
|
271
|
+
- wide margins
|
|
272
|
+
- clear lanes
|
|
273
|
+
- fixed color system
|
|
274
|
+
- short labels
|
|
275
|
+
- no text overflow
|
|
276
|
+
- no decorative gradients, orbs, blobs, excessive shadows, or nested cards
|
|
277
|
+
- no unnecessary icons
|
|
278
|
+
|
|
279
|
+
## Procedure
|
|
280
|
+
|
|
281
|
+
1. Write the judgment question in one sentence.
|
|
282
|
+
2. Split concepts into up to five or six lanes.
|
|
283
|
+
3. List three to five nodes per lane.
|
|
284
|
+
4. Mark each node owner: input, runtime/tools, LLM, artifact, view, gate,
|
|
285
|
+
quality, postponed, downstream.
|
|
286
|
+
5. Label machine-consumed outputs by format and authority.
|
|
287
|
+
6. Put postponed or excluded work in a separate lane or side box.
|
|
288
|
+
7. Draw arrows with consistent meanings.
|
|
289
|
+
8. Validate syntax and inspect layout.
|
|
290
|
+
|
|
291
|
+
## Verification
|
|
292
|
+
|
|
293
|
+
Run syntax and diff checks when practical:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
xmllint --noout path/to/file.svg
|
|
297
|
+
git diff --check -- path/to/file.svg
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
If the SVG is embedded in HTML, inspect it in a browser or screenshot when
|
|
301
|
+
layout matters. Check that:
|
|
302
|
+
|
|
303
|
+
- text does not overlap
|
|
304
|
+
- arrows do not obscure meaning
|
|
305
|
+
- lane titles and node titles are easy to scan
|
|
306
|
+
- hot path and postponed work are visually separate
|
|
307
|
+
- runtime/tools, LLM, gate, quality, artifact, and view colors match the legend
|
|
308
|
+
|
|
309
|
+
## Completion Criteria
|
|
310
|
+
|
|
311
|
+
The SVG is complete when:
|
|
312
|
+
|
|
313
|
+
- it answers one judgment question
|
|
314
|
+
- input and output are clear
|
|
315
|
+
- runtime/tools and LLM responsibilities are separated by label and color
|
|
316
|
+
- canonical artifacts and projections are distinct
|
|
317
|
+
- needed JSON/YAML/Markdown/HTML formats are labeled
|
|
318
|
+
- hot path and postponed or downstream work are separate
|
|
319
|
+
- gates and quality review have different visual meanings
|
|
320
|
+
- text does not overlap
|
|
321
|
+
- syntax and diff checks pass when available
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
schema_version = 1
|
|
2
|
+
|
|
3
|
+
[backends.codex]
|
|
4
|
+
command = "codex"
|
|
5
|
+
passthrough_args = []
|
|
6
|
+
|
|
7
|
+
[backends.claude]
|
|
8
|
+
command = "claude"
|
|
9
|
+
passthrough_args = ["--dangerously-skip-permissions"]
|
|
10
|
+
|
|
11
|
+
[capabilities.onto]
|
|
12
|
+
command = "onto"
|
|
13
|
+
|
|
14
|
+
[capabilities.ultracode]
|
|
15
|
+
command = "ultracode-for-codex"
|
|
16
|
+
|
|
17
|
+
[hosts.codex]
|
|
18
|
+
models = ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"]
|
|
19
|
+
# onto review seat used when a CROSS-family main (Claude) routes onto review to
|
|
20
|
+
# this (gpt/codex) family; must be an onto review-role registered (provider, model).
|
|
21
|
+
onto_review = { provider = "openai", model = "gpt-5.6-sol" }
|
|
22
|
+
|
|
23
|
+
[hosts.codex.tiers.frontier]
|
|
24
|
+
model = "gpt-5.6-sol"
|
|
25
|
+
effort = "max"
|
|
26
|
+
|
|
27
|
+
[hosts.codex.tiers.helm]
|
|
28
|
+
model = "gpt-5.6-sol"
|
|
29
|
+
effort = "xhigh"
|
|
30
|
+
|
|
31
|
+
[hosts.codex.tiers.workhorse]
|
|
32
|
+
model = "gpt-5.6-terra"
|
|
33
|
+
effort = "high"
|
|
34
|
+
|
|
35
|
+
[hosts.codex.tiers.sweep]
|
|
36
|
+
model = "gpt-5.6-luna"
|
|
37
|
+
effort = "low"
|
|
38
|
+
|
|
39
|
+
[hosts.codex.agent_templates]
|
|
40
|
+
frontier = "${CODEX_HOME}/agents/frontier.toml"
|
|
41
|
+
workhorse = "${CODEX_HOME}/agents/workhorse.toml"
|
|
42
|
+
sweep = "${CODEX_HOME}/agents/sweep.toml"
|
|
43
|
+
|
|
44
|
+
[hosts.claude]
|
|
45
|
+
models = ["claude-fable-5", "claude-opus-4-8", "claude-sonnet-5", "claude-haiku-4-5"]
|
|
46
|
+
# onto review seat used when a CROSS-family main (Codex) routes onto review to
|
|
47
|
+
# this (anthropic/claude) family; must be an onto review-role registered (provider, model).
|
|
48
|
+
onto_review = { provider = "anthropic", model = "claude-fable-5" }
|
|
49
|
+
|
|
50
|
+
[hosts.claude.tiers.frontier]
|
|
51
|
+
model = "claude-fable-5"
|
|
52
|
+
effort = "max"
|
|
53
|
+
|
|
54
|
+
[hosts.claude.tiers.helm]
|
|
55
|
+
model = "claude-opus-4-8"
|
|
56
|
+
effort = "xhigh"
|
|
57
|
+
|
|
58
|
+
[hosts.claude.tiers.workhorse]
|
|
59
|
+
model = "claude-sonnet-5"
|
|
60
|
+
effort = "high"
|
|
61
|
+
|
|
62
|
+
[hosts.claude.tiers.sweep]
|
|
63
|
+
model = "claude-haiku-4-5"
|
|
64
|
+
effort = "low"
|
|
65
|
+
|
|
66
|
+
[presets.balanced]
|
|
67
|
+
label = "Balanced"
|
|
68
|
+
description = "HELM default for everyday work with native multi-perspective review."
|
|
69
|
+
main_tier = "helm"
|
|
70
|
+
frontier_effort = "max"
|
|
71
|
+
review_setup = "native-panel"
|
|
72
|
+
delegation = true
|
|
73
|
+
codex_execution_policy = "bypass"
|
|
74
|
+
claude_permission_mode = "bypassPermissions"
|
|
75
|
+
|
|
76
|
+
[presets.deep-review]
|
|
77
|
+
label = "Deep review"
|
|
78
|
+
description = "HELM with hybrid onto, native, and Ultracode review at deep FRONTIER effort."
|
|
79
|
+
main_tier = "helm"
|
|
80
|
+
frontier_effort = { codex = "ultra", claude = "max" }
|
|
81
|
+
review_setup = "hybrid"
|
|
82
|
+
delegation = true
|
|
83
|
+
codex_execution_policy = "bypass"
|
|
84
|
+
claude_permission_mode = "bypassPermissions"
|
|
85
|
+
|
|
86
|
+
[presets.fast-batch]
|
|
87
|
+
label = "Fast batch"
|
|
88
|
+
description = "WORKHORSE default for high-volume, cost-conscious execution."
|
|
89
|
+
main_tier = "workhorse"
|
|
90
|
+
frontier_effort = "max"
|
|
91
|
+
review_setup = "native-panel"
|
|
92
|
+
delegation = true
|
|
93
|
+
codex_execution_policy = "bypass"
|
|
94
|
+
claude_permission_mode = "bypassPermissions"
|