agent-bios 0.19.3 → 0.20.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 +62 -20
- package/INSTALL.md +1 -1
- package/README.md +16 -21
- package/claude/agents/frontier.md +1 -1
- package/claude/agents/sweep.md +2 -1
- package/claude/agents/workhorse.md +2 -2
- package/claude/guides/claude-prompting.md +494 -167
- package/claude/guides/cli-multi-model-workflow.md +8 -7
- package/claude/guides/gpt-prompting.md +241 -111
- package/claude/guides/session-distill-workflow.md +93 -43
- package/claude/guides/tooling-gotchas.md +3 -1
- package/codex/agents/reviewer.toml +2 -2
- package/codex/agents/sweep.toml +1 -1
- package/codex/agents/workhorse.toml +2 -2
- package/codex/guides/claude-prompting.md +494 -167
- package/codex/guides/cli-multi-model-workflow.md +8 -7
- package/codex/guides/gpt-prompting.md +241 -111
- package/codex/guides/session-distill-workflow.md +93 -43
- package/codex/guides/tooling-gotchas.md +3 -1
- package/compose/assemble.py +4 -1
- package/compose/canary.sh +8 -6
- package/compose/host_platform.py +158 -15
- package/compose/instructions-state.py +183 -41
- package/compose/instructions_app.py +2 -2
- package/compose/instructions_install.py +222 -27
- package/compose/instructions_session.py +250 -75
- package/compose/instructions_setup.py +6 -6
- package/compose/instructions_setup_cli.py +2 -36
- package/compose/instructions_setup_i18n.py +3 -3
- package/compose/instructions_store.py +160 -3
- package/compose/instructions_transaction.py +29 -5
- package/compose/instructions_ui_runtime.py +2 -2
- package/compose/setup/START.md +1 -1
- package/docs/advanced-launch.md +4 -0
- package/docs/releases/0.19.4.md +99 -0
- package/docs/releases/0.20.0.md +102 -0
- package/docs/setup.md +4 -4
- package/install.sh +54 -20
- package/launch/agent-launch.py +171 -22
- package/launch/agent-launch.toml +64 -29
- package/launch/agent-launch.zsh +104 -13
- package/launch/claude_subcommands.py +179 -0
- package/launch/provision-venv.sh +1 -1
- package/launch/shell_integration.py +7 -1
- package/learn/collect-learning.py +60 -9
- package/learn/migrate-learnings.py +70 -4
- package/learn/redact.py +2 -1
- package/package.json +37 -4
- package/provenance.json +1 -1
- package/session-cost.py +141 -18
- package/session-distill/coverage.json +6 -0
- package/session-distill/distill.py +2575 -0
- package/session-distill/grammar/__init__.py +0 -0
- package/session-distill/grammar/owner_lines.py +874 -0
- package/session-distill/originators.json +9 -0
- package/session-distill/packets/cross_review.md +31 -0
- package/session-distill/packets/form.md +86 -0
- package/session-distill/packets/judge.md +81 -0
- package/session-distill/packets/placement_contract.md +90 -0
- package/session-distill/packets/propose.md +124 -0
- package/session-distill/packets/read.md +57 -0
- package/session-distill/packets/reconsider.md +53 -0
- package/session-distill/packets/s7b.md +65 -0
- package/session-distill/packets/s9b.md +39 -0
- package/session-distill/packets/stitch.md +35 -0
- package/session-distill/packets/sweep.md +33 -0
- package/session-distill/runlib/__init__.py +0 -0
- package/session-distill/runlib/bound.py +1102 -0
- package/session-distill/runlib/breaker.py +467 -0
- package/session-distill/runlib/census.py +2347 -0
- package/session-distill/runlib/claims.py +420 -0
- package/session-distill/runlib/controls.py +902 -0
- package/session-distill/runlib/coverage.py +881 -0
- package/session-distill/runlib/declare.py +888 -0
- package/session-distill/runlib/delivery_evidence.py +1145 -0
- package/session-distill/runlib/derive.py +812 -0
- package/session-distill/runlib/destinations.py +3072 -0
- package/session-distill/runlib/dispatch.py +7939 -0
- package/session-distill/runlib/drift.py +1077 -0
- package/session-distill/runlib/entry.py +401 -0
- package/session-distill/runlib/evidence.py +890 -0
- package/session-distill/runlib/exposure.py +1162 -0
- package/session-distill/runlib/gate.py +2727 -0
- package/session-distill/runlib/gitread.py +79 -0
- package/session-distill/runlib/inventory.py +19624 -0
- package/session-distill/runlib/journal.py +1919 -0
- package/session-distill/runlib/ledger.py +3210 -0
- package/session-distill/runlib/ledger_compat.py +101 -0
- package/session-distill/runlib/ledger_migration.py +190 -0
- package/session-distill/runlib/lifecycle_intake.py +693 -0
- package/session-distill/runlib/lineage.py +454 -0
- package/session-distill/runlib/measures.py +249 -0
- package/session-distill/runlib/monitor.py +1180 -0
- package/session-distill/runlib/operations.py +522 -0
- package/session-distill/runlib/packet.py +838 -0
- package/session-distill/runlib/placement.py +1769 -0
- package/session-distill/runlib/projection.py +4090 -0
- package/session-distill/runlib/ranking.py +740 -0
- package/session-distill/runlib/receipts.py +200 -0
- package/session-distill/runlib/records.py +1965 -0
- package/session-distill/runlib/search.py +249 -0
- package/session-distill/runlib/sequencing.py +829 -0
- package/session-distill/runlib/sources.py +641 -0
- package/session-distill/runlib/stage_adjudicate.py +845 -0
- package/session-distill/runlib/stage_apply.py +1378 -0
- package/session-distill/runlib/stage_approvals.py +758 -0
- package/session-distill/runlib/stage_close.py +1220 -0
- package/session-distill/runlib/stage_confirm.py +929 -0
- package/session-distill/runlib/stage_delivery.py +3080 -0
- package/session-distill/runlib/stage_form.py +2576 -0
- package/session-distill/runlib/stage_judge.py +4248 -0
- package/session-distill/runlib/stage_propose.py +3307 -0
- package/session-distill/runlib/stage_read.py +5179 -0
- package/session-distill/runlib/stage_render.py +2739 -0
- package/session-distill/runlib/stage_retrieve.py +924 -0
- package/session-distill/runlib/stage_review_korean.py +1002 -0
- package/session-distill/runlib/stage_review_proposals.py +1292 -0
- package/session-distill/runlib/stagelock.py +412 -0
- package/session-distill/runlib/stop.py +1061 -0
- package/session-distill/runlib/targets.py +809 -0
- package/session-distill/runlib/usage.py +280 -0
- package/session-distill/runlib/validate.py +319 -0
- package/session-distill/runlib/views.py +4327 -0
- package/session-distill/schemas/adjudication.schema.json +35 -0
- package/session-distill/schemas/approval.schema.json +35 -0
- package/session-distill/schemas/census.schema.json +128 -0
- package/session-distill/schemas/checks.schema.json +207 -0
- package/session-distill/schemas/claim.schema.json +16 -0
- package/session-distill/schemas/confirmation.schema.json +24 -0
- package/session-distill/schemas/coverage.schema.json +66 -0
- package/session-distill/schemas/cross_review.schema.json +24 -0
- package/session-distill/schemas/event.schema.json +20 -0
- package/session-distill/schemas/evidence.schema.json +20 -0
- package/session-distill/schemas/expected_observation.schema.json +18 -0
- package/session-distill/schemas/form.schema.json +103 -0
- package/session-distill/schemas/intake.schema.json +71 -0
- package/session-distill/schemas/inventory.schema.json +872 -0
- package/session-distill/schemas/judge.schema.json +77 -0
- package/session-distill/schemas/ledger.schema.json +313 -0
- package/session-distill/schemas/observation.schema.json +16 -0
- package/session-distill/schemas/propose.schema.json +555 -0
- package/session-distill/schemas/read.schema.json +76 -0
- package/session-distill/schemas/reconsider.schema.json +122 -0
- package/session-distill/schemas/run.schema.json +150 -0
- package/session-distill/schemas/s7b.schema.json +200 -0
- package/session-distill/schemas/s9b.schema.json +28 -0
- package/session-distill/schemas/stitch.schema.json +25 -0
- package/session-distill/schemas/sweep.schema.json +25 -0
- package/session-distill/seats.json +149 -0
- package/session-distill/tables/allowed_pairs.json +257 -0
- package/session-distill/tables/controls.json +30 -0
- package/session-distill/tables/delivery_evidence.json +36 -0
- package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
- package/session-distill/tables/destinations.json +684 -0
- package/session-distill/tables/drift_layers.json +68 -0
- package/session-distill/tables/exposure_rules.json +192 -0
- package/session-distill/tables/placement_rules.json +148 -0
- package/session-distill/tables/propose_fixtures.json +154 -0
- package/session-distill/tables/ranking.json +194 -0
- package/session-distill/tables/redundancy.json +10 -0
- package/session-distill/tables/structural_rules.json +44 -0
- package/session-distill/tables/transition_fixtures.json +398 -0
- package/session-distill/tables/transitions.json +69 -0
- package/session-distill/tables/unit_outcome.json +67 -0
- package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
- package/wrappers/claude-run.sh +481 -33
- package/wrappers/claude_hermetic_evidence.py +1423 -0
- package/wrappers/codex-helm.sh +44 -13
- package/wrappers/codex-run.sh +183 -20
- package/wrappers/codex_frame_filter.py +1199 -0
- package/wrappers/codex_protocol.py +737 -0
- package/wrappers/jsonl_lines.py +65 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Where S11 and S12 may write, by (writer, override) pair. THE ROWS ARE DERIVED, not remembered: `destinations.closure()` reads every script package.json files[] ships plus the writers declared `writer_scope: author`, finds each environment read whose value reaches a write in that file, and `inventory_problems()` fails in both directions. The first version of this table was written from memory and was wrong both ways — it lacked nine overrides real writers read, and it certified AGENT_BIOS_STATE_DIR for install.sh, which assigns STATE_DIR from $HOME unconditionally (install.sh:48) and never reads that variable, so the certificate was about a value that cannot reach the writer. The class is a judgement over the derived pair: the override's own meaning decides it (config homes and state roots are install_roots, ZDOTDIR is launcher_shell_integration, the distill state is nudge, a HOME-derived personal layer is personal_layers), and a writer no §10.6 effect can invoke is named in not_a_destination with the reason it cannot. `derived_at_line` is the line the derivation found, for a reader; nothing reads it, and it is not authority.",
|
|
3
|
+
"classes_from": "schemas/run.schema.json properties.destinations.required",
|
|
4
|
+
"writers": [
|
|
5
|
+
{
|
|
6
|
+
"writer": "compose/assemble.py",
|
|
7
|
+
"destinations": [
|
|
8
|
+
{
|
|
9
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
10
|
+
"class": "install_roots",
|
|
11
|
+
"derived_at_line": 800
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"override": "CODEX_HOME",
|
|
15
|
+
"class": "install_roots",
|
|
16
|
+
"derived_at_line": 801
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"writes_without_override": "install_roots",
|
|
20
|
+
"fixed_roots": [
|
|
21
|
+
{
|
|
22
|
+
"derived_at_line": 802,
|
|
23
|
+
"root": "state_dir = pathlib.Path(args.state_dir or pathlib.Path.home() / \".local/share/agent-bios\")"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"$comment": "Compiles the instruction payload into the two config homes and the state root; the run hands it the environment it must write under.",
|
|
27
|
+
"root_from": "home",
|
|
28
|
+
"channels": {
|
|
29
|
+
"path_arguments": {
|
|
30
|
+
"tokens": [
|
|
31
|
+
"--state-dir"
|
|
32
|
+
],
|
|
33
|
+
"reason": "`--state-dir` is how the run gives it the state root instead of letting it derive one: the option wins over AGENT_BIOS_STATE_DIR and over the HOME fallback, and an argument cannot be inherited by a child the way a variable can."
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"release_1_invoked": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"writer": "compose/canary.sh",
|
|
40
|
+
"destinations": [
|
|
41
|
+
{
|
|
42
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
43
|
+
"class": "install_roots",
|
|
44
|
+
"derived_at_line": 45
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
48
|
+
"class": "install_roots",
|
|
49
|
+
"derived_at_line": 14
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"$comment": "The install canary writes its marker under the state root and the Claude config home to prove a deploy reached them.",
|
|
53
|
+
"release_1_invoked": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"writer": "compose/instructions-state.py",
|
|
57
|
+
"destinations": [
|
|
58
|
+
{
|
|
59
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
60
|
+
"class": "install_roots",
|
|
61
|
+
"derived_at_line": 49
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"override": "CODEX_HOME",
|
|
65
|
+
"class": "install_roots",
|
|
66
|
+
"derived_at_line": 50
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"writes_without_override": "install_roots",
|
|
70
|
+
"fixed_roots": [
|
|
71
|
+
{
|
|
72
|
+
"derived_at_line": 45,
|
|
73
|
+
"root": "STATE_DIR = pathlib.Path.home() / \".local/share/agent-bios\""
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"$comment": "Reads and rewrites the private installation's stored state under the state root and both config homes.",
|
|
77
|
+
"root_from": "home",
|
|
78
|
+
"channels": {
|
|
79
|
+
"path_arguments": {
|
|
80
|
+
"tokens": [
|
|
81
|
+
"--state-dir"
|
|
82
|
+
],
|
|
83
|
+
"reason": "`--state-dir` is the root the run passes; the environment and the HOME fallback are only read when it is absent."
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"release_1_invoked": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"writer": "compose/instructions_app.py",
|
|
90
|
+
"destinations": [
|
|
91
|
+
{
|
|
92
|
+
"override": "HOME",
|
|
93
|
+
"class": "personal_layers",
|
|
94
|
+
"derived_at_line": 103
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"$comment": "Writes the desktop app bridge's files under the owner's home.",
|
|
98
|
+
"channels": {
|
|
99
|
+
"path_arguments": {
|
|
100
|
+
"tokens": [
|
|
101
|
+
"--state-dir"
|
|
102
|
+
],
|
|
103
|
+
"reason": "`--state-dir` is the root the run passes, ahead of any variable."
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"release_1_invoked": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"writer": "compose/instructions_import.py",
|
|
110
|
+
"destinations": [
|
|
111
|
+
{
|
|
112
|
+
"override": "HOME",
|
|
113
|
+
"class": "personal_layers",
|
|
114
|
+
"derived_at_line": 91
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"$comment": "Imports an instruction corpus into paths rooted at the owner's home.",
|
|
118
|
+
"channels": {
|
|
119
|
+
"path_arguments": {
|
|
120
|
+
"tokens": [
|
|
121
|
+
"--state-dir"
|
|
122
|
+
],
|
|
123
|
+
"reason": "`--state-dir` is the root the run passes, ahead of any variable."
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"release_1_invoked": false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"writer": "compose/instructions_install.py",
|
|
130
|
+
"destinations": [
|
|
131
|
+
{
|
|
132
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
133
|
+
"class": "install_roots",
|
|
134
|
+
"derived_at_line": 326
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
138
|
+
"class": "install_roots",
|
|
139
|
+
"derived_at_line": 328
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"override": "CODEX_HOME",
|
|
143
|
+
"class": "install_roots",
|
|
144
|
+
"derived_at_line": 329
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"override": "HOME",
|
|
148
|
+
"class": "personal_layers",
|
|
149
|
+
"derived_at_line": 325
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"override": "ZDOTDIR",
|
|
153
|
+
"class": "launcher_shell_integration",
|
|
154
|
+
"derived_at_line": 330
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"writes_without_override": "install_roots",
|
|
158
|
+
"fixed_roots": [
|
|
159
|
+
{
|
|
160
|
+
"derived_at_line": 327,
|
|
161
|
+
"root": "self.user_root = Path(environment_value(self.env, \"AGENT_BIOS_INSTRUCTIONS_DIR\", \"AGENT_BIOS_CORPUS_DIR\", str(home / \".config/agent-bios/corpus\"))).expanduser()"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"fallbacks": [
|
|
165
|
+
{
|
|
166
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
167
|
+
"literal": "self.env.get(\"AGENT_BIOS_STATE_DIR\", str(home / \".local/share/agent-bios\"))"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
171
|
+
"literal": "self.env.get(\"CLAUDE_CONFIG_DIR\", str(home / \".claude\"))"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"override": "CODEX_HOME",
|
|
175
|
+
"literal": "self.env.get(\"CODEX_HOME\", str(home / \".codex\"))"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"override": "ZDOTDIR",
|
|
179
|
+
"literal": "self.env.get(\"ZDOTDIR\", str(home))"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"fallback_source": "compose/instructions_install.py",
|
|
183
|
+
"$comment": "The private installer: it writes the catalog, the store, the launcher status and the shell hook across the state root, both config homes and ZDOTDIR.",
|
|
184
|
+
"root_from": "home",
|
|
185
|
+
"release_1_invoked": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"writer": "compose/instructions_session.py",
|
|
189
|
+
"destinations": [
|
|
190
|
+
{
|
|
191
|
+
"override": "HOME",
|
|
192
|
+
"class": "personal_layers",
|
|
193
|
+
"derived_at_line": 538
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"$comment": "Writes the per-session instruction selection under the owner's home.",
|
|
197
|
+
"channels": {
|
|
198
|
+
"password_database": [
|
|
199
|
+
{
|
|
200
|
+
"line": 72,
|
|
201
|
+
"guarded_by": "HOME",
|
|
202
|
+
"reason": "The read is `pwd.getpwuid(os.getuid()).pw_dir`, reached only inside `if home is None:` where `home = env.get('HOME')`. The run always hands this writer HOME, so the branch is unreachable for a confined run — and the value is used to BUILD A LOOKUP PATTERN for Claude's own user-scope instruction files, not a destination. Established from the source, which is the only way this one can be established: running the writer against a real HOME to see where it lands is the accident this whole unit exists to prevent."
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"release_1_invoked": false
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"writer": "compose/instructions_setup.py",
|
|
210
|
+
"destinations": [
|
|
211
|
+
{
|
|
212
|
+
"override": "AGENT_LAUNCH_VENV",
|
|
213
|
+
"class": "install_roots",
|
|
214
|
+
"derived_at_line": 130
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"override": "HOME",
|
|
218
|
+
"class": "personal_layers",
|
|
219
|
+
"derived_at_line": 50
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"$comment": "Provisions the managed venv and writes setup state under the owner's home.",
|
|
223
|
+
"release_1_invoked": false
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"writer": "compose/instructions_store.py",
|
|
227
|
+
"destinations": [
|
|
228
|
+
{
|
|
229
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
230
|
+
"class": "install_roots",
|
|
231
|
+
"derived_at_line": 385
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"writes_without_override": "install_roots",
|
|
235
|
+
"fixed_roots": [
|
|
236
|
+
{
|
|
237
|
+
"derived_at_line": 388,
|
|
238
|
+
"root": "self.user_root = Path(user_root or environment_value(os.environ,"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"$comment": "Owns the instruction store under the state root.",
|
|
242
|
+
"root_from": "home",
|
|
243
|
+
"release_1_invoked": false
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"writer": "compose/instructions_understand.py",
|
|
247
|
+
"destinations": [
|
|
248
|
+
{
|
|
249
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
250
|
+
"class": "install_roots",
|
|
251
|
+
"derived_at_line": 385
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"override": "CODEX_HOME",
|
|
255
|
+
"class": "install_roots",
|
|
256
|
+
"derived_at_line": 385
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"override": "HOME",
|
|
260
|
+
"class": "personal_layers",
|
|
261
|
+
"derived_at_line": 384
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"$comment": "Writes the understanding records into whichever host's config home the call names — the override key itself is chosen at runtime, so both keys are rows.",
|
|
265
|
+
"channels": {
|
|
266
|
+
"path_arguments": {
|
|
267
|
+
"tokens": [
|
|
268
|
+
"--state-dir"
|
|
269
|
+
],
|
|
270
|
+
"reason": "`--state-dir` is the root the run passes, ahead of any variable."
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"release_1_invoked": false
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"writer": "compose/prune-backups.py",
|
|
277
|
+
"writes_without_override": "install_roots",
|
|
278
|
+
"fixed_roots": [
|
|
279
|
+
{
|
|
280
|
+
"derived_at_line": 234,
|
|
281
|
+
"root": "state = pathlib.Path(args.state_dir or pathlib.Path.home() / \".local/share/agent-bios\")"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"$comment": "Prunes backups under the state root.",
|
|
285
|
+
"root_from": "home",
|
|
286
|
+
"channels": {
|
|
287
|
+
"path_arguments": {
|
|
288
|
+
"tokens": [
|
|
289
|
+
"--state-dir"
|
|
290
|
+
],
|
|
291
|
+
"reason": "`--state-dir` is the root the run passes; pruning is the one operation where a wrong root deletes rather than writes, so it is given rather than derived."
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"release_1_invoked": false
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"writer": "compose/windows_deploy.py",
|
|
298
|
+
"destinations": [
|
|
299
|
+
{
|
|
300
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
301
|
+
"class": "install_roots",
|
|
302
|
+
"derived_at_line": 387
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"override": "HOME",
|
|
306
|
+
"class": "personal_layers",
|
|
307
|
+
"derived_at_line": 386
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"$comment": "Writes the Windows shortcut and its state under the state root; on this platform no apply reaches it, but the pair is real and classified rather than excused.",
|
|
311
|
+
"channels": {
|
|
312
|
+
"path_arguments": {
|
|
313
|
+
"tokens": [
|
|
314
|
+
"--root"
|
|
315
|
+
],
|
|
316
|
+
"reason": "`--root` is the deployment root the run passes; nothing is derived from the environment when it is present."
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"release_1_invoked": false
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"writer": "install.sh",
|
|
323
|
+
"destinations": [
|
|
324
|
+
{
|
|
325
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
326
|
+
"class": "install_roots",
|
|
327
|
+
"derived_at_line": 43
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"override": "CODEX_HOME",
|
|
331
|
+
"class": "install_roots",
|
|
332
|
+
"derived_at_line": 44
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"override": "ZDOTDIR",
|
|
336
|
+
"class": "launcher_shell_integration",
|
|
337
|
+
"derived_at_line": 56
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"writes_without_override": "install_roots",
|
|
341
|
+
"fixed_roots": [
|
|
342
|
+
{
|
|
343
|
+
"derived_at_line": 48,
|
|
344
|
+
"root": "STATE_DIR=\"$HOME/.local/share/agent-bios\""
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"fallbacks": [
|
|
348
|
+
{
|
|
349
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
350
|
+
"literal": "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"override": "CODEX_HOME",
|
|
354
|
+
"literal": "${CODEX_HOME:-$HOME/.codex}"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"fallback_source": "install.sh",
|
|
358
|
+
"$comment": "The compatibility installer. It resolves both config homes and ZDOTDIR from the environment AND fixes STATE_DIR, BIN_DIR and LAUNCH_DIR from $HOME with no override at all (install.sh:48, :47, :45) — which is why an AGENT_BIOS_STATE_DIR row for this writer certified a value it cannot use.",
|
|
359
|
+
"root_from": "home",
|
|
360
|
+
"channels": {
|
|
361
|
+
"path_arguments": {
|
|
362
|
+
"tokens": [
|
|
363
|
+
"--state-dir"
|
|
364
|
+
],
|
|
365
|
+
"reason": "`--state-dir` is the root the run passes, ahead of AGENT_BIOS_STATE_DIR and ahead of the `$HOME/.local/share/agent-bios` fallback in its own source."
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"release_1_invoked": false
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"writer": "launch/agent-launch.py",
|
|
372
|
+
"destinations": [
|
|
373
|
+
{
|
|
374
|
+
"override": "AGENT_BIOS_SESSION_DISTILL_STATE",
|
|
375
|
+
"class": "nudge",
|
|
376
|
+
"derived_at_line": 10776
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
380
|
+
"class": "install_roots",
|
|
381
|
+
"derived_at_line": 4196
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"override": "AGENT_BIOS_UPDATE_CHECK_STATE",
|
|
385
|
+
"class": "install_roots",
|
|
386
|
+
"derived_at_line": 8328
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"override": "AGENT_LAUNCH_VERSION_FILE",
|
|
390
|
+
"class": "install_roots",
|
|
391
|
+
"derived_at_line": 8321
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
395
|
+
"class": "install_roots",
|
|
396
|
+
"derived_at_line": 1448
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"override": "CODEX_HOME",
|
|
400
|
+
"class": "install_roots",
|
|
401
|
+
"derived_at_line": 4168
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"writes_without_override": "install_roots",
|
|
405
|
+
"fixed_roots": [
|
|
406
|
+
{
|
|
407
|
+
"derived_at_line": 8314,
|
|
408
|
+
"root": "INSTRUCTIONS_STATUS_PATH = pathlib.Path("
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"$comment": "The launcher: it writes its profile, venv, update-check and version state, the distill nudge state, and reads both config homes to place per-host files.",
|
|
412
|
+
"root_from": "home",
|
|
413
|
+
"release_1_invoked": false
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"writer": "launch/agent-launch.zsh",
|
|
417
|
+
"writes_without_override": "install_roots",
|
|
418
|
+
"fixed_roots": [
|
|
419
|
+
{
|
|
420
|
+
"derived_at_line": 191,
|
|
421
|
+
"root": "local host=\"$1\" foreign=\"$2\" state=\"$HOME/.local/share/agent-bios\" first prog stamp"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"$comment": "The shell function caches a host's subcommands under the state root.",
|
|
425
|
+
"root_from": "home",
|
|
426
|
+
"release_1_invoked": false
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"writer": "launch/provision-venv.sh",
|
|
430
|
+
"destinations": [
|
|
431
|
+
{
|
|
432
|
+
"override": "AGENT_LAUNCH_VENV",
|
|
433
|
+
"class": "install_roots",
|
|
434
|
+
"derived_at_line": 12
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"$comment": "Creates the managed venv at AGENT_LAUNCH_VENV.",
|
|
438
|
+
"release_1_invoked": false
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"writer": "launch/shell_integration.py",
|
|
442
|
+
"destinations": [
|
|
443
|
+
{
|
|
444
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
445
|
+
"class": "install_roots",
|
|
446
|
+
"derived_at_line": 30
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"override": "HOME",
|
|
450
|
+
"class": "personal_layers",
|
|
451
|
+
"derived_at_line": 28
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"override": "ZDOTDIR",
|
|
455
|
+
"class": "launcher_shell_integration",
|
|
456
|
+
"derived_at_line": 29
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"fallbacks": [
|
|
460
|
+
{
|
|
461
|
+
"override": "ZDOTDIR",
|
|
462
|
+
"literal": "self.env.get(\"ZDOTDIR\") or str(self.home)"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
466
|
+
"literal": "self.env.get(\"AGENT_BIOS_STATE_DIR\", str(self.home / \".local/share/agent-bios\"))"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"fallback_source": "launch/shell_integration.py",
|
|
470
|
+
"$comment": "Owns the shell connection: the .zshrc block under ZDOTDIR and the receipt and backups under the state root.",
|
|
471
|
+
"release_1_invoked": false
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"writer": "session-distill/runlib/inventory.py",
|
|
475
|
+
"destinations": [
|
|
476
|
+
{
|
|
477
|
+
"override": "HOME",
|
|
478
|
+
"class": "personal_layers",
|
|
479
|
+
"derived_at_line": 2567,
|
|
480
|
+
"read_only": "the census READS the owner's home; nothing of this writer's is written under it. The pair is a row because the derivation sees the read reach a write, and a row that came back certified would present a read as a destination release-1 S11 may write (the round-4 review)"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"writes_without_override": "runtime_state",
|
|
484
|
+
"fixed_roots": [
|
|
485
|
+
{
|
|
486
|
+
"derived_at_line": 8382,
|
|
487
|
+
"root": "home_ref = f\"@fixture/core:{pathlib.Path.home()}/.claude/an-item-under-the-owners-home\"",
|
|
488
|
+
"not_a_destination": "the line builds a fixture REFERENCE string for a control (`@fixture/core:<home>/...`), not a path anything opens; the derivation sees the home expression reach a write because the string is written into the fixture file"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"$comment": "Reads the owner's home to take the census. Its only writes go inside the run directory; the HOME pair is a row because the derivation sees the read reach a write, and the class states what the run may not do with it.",
|
|
492
|
+
"root_from": "argument",
|
|
493
|
+
"$comment_root_from": "its writes go inside the run directory it is handed; the HOME it reads is a READ of the owner's home for the census, which the personal_layers row states, not a destination",
|
|
494
|
+
"channels": {
|
|
495
|
+
"absolute_literals": {
|
|
496
|
+
"tokens": [
|
|
497
|
+
"/bin/sleep",
|
|
498
|
+
"/etc/passwd",
|
|
499
|
+
"/tmp",
|
|
500
|
+
"/usr/bin:/bin",
|
|
501
|
+
"/var/tmp"
|
|
502
|
+
],
|
|
503
|
+
"reason": "None of the five is a destination. `/tmp` and `/var/tmp` are the CANDIDATE list the census picks a scratch directory from and are joined with the run's own TMPDIR before anything is written; `/usr/bin:/bin` is a PATH default for a child environment; `/etc/passwd` is a string a control hands to the confinement to be refused; `/bin/sleep` is the program a control starts so that a second process exists to hold a lock, and it writes nothing."
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"release_1_invoked": true
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"writer": "session-distill/update-state.py",
|
|
510
|
+
"destinations": [
|
|
511
|
+
{
|
|
512
|
+
"override": "AGENT_BIOS_SESSION_DISTILL_STATE",
|
|
513
|
+
"class": "nudge",
|
|
514
|
+
"derived_at_line": 24
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"fallbacks": [
|
|
518
|
+
{
|
|
519
|
+
"override": "AGENT_BIOS_SESSION_DISTILL_STATE",
|
|
520
|
+
"literal": "str(pathlib.Path.home() / \".local/share/agent-bios/session-distill-state.json\")"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"fallback_source": "session-distill/update-state.py",
|
|
524
|
+
"$comment": "The nudge state of §10.6, written by a script the owner runs from a checkout. It is NOT in package.json files[], so the derivation over the shipped set cannot see it; `writer_scope: author` declares that, and inventory_problems fails if files[] ever ships it or it disappears.",
|
|
525
|
+
"writer_scope": "author",
|
|
526
|
+
"release_1_invoked": false
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"writer": "wrappers/claude-run.sh",
|
|
530
|
+
"destinations": [
|
|
531
|
+
{
|
|
532
|
+
"override": "CLAUDE_CONFIG_DIR",
|
|
533
|
+
"class": "install_roots",
|
|
534
|
+
"derived_at_line": 551
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"$comment": "The Claude wrapper writes its session log under the Claude config home.",
|
|
538
|
+
"channels": {
|
|
539
|
+
"path_arguments": {
|
|
540
|
+
"tokens": [
|
|
541
|
+
"--home",
|
|
542
|
+
"--root"
|
|
543
|
+
],
|
|
544
|
+
"reason": "`--root` and `--home` are passed by the run; the wrapper forwards them to the host instead of exporting a variable the host's own children would inherit."
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"release_1_invoked": false
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"writer": "wrappers/codex-helm.sh",
|
|
551
|
+
"destinations": [
|
|
552
|
+
{
|
|
553
|
+
"override": "CODEX_HOME",
|
|
554
|
+
"class": "install_roots",
|
|
555
|
+
"derived_at_line": 345
|
|
556
|
+
}
|
|
557
|
+
],
|
|
558
|
+
"$comment": "The Codex helm writes its state under the Codex home.",
|
|
559
|
+
"channels": {
|
|
560
|
+
"path_arguments": {
|
|
561
|
+
"tokens": [
|
|
562
|
+
"--home"
|
|
563
|
+
],
|
|
564
|
+
"reason": "`--home` is passed by the run rather than exported, so a child of the host does not inherit it."
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"release_1_invoked": false
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"writer": "wrappers/codex-run.sh",
|
|
571
|
+
"destinations": [
|
|
572
|
+
{
|
|
573
|
+
"override": "CODEX_HOME",
|
|
574
|
+
"class": "install_roots",
|
|
575
|
+
"derived_at_line": 154
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"$comment": "The Codex wrapper writes its session state under the Codex home.",
|
|
579
|
+
"channels": {
|
|
580
|
+
"path_arguments": {
|
|
581
|
+
"tokens": [
|
|
582
|
+
"--home"
|
|
583
|
+
],
|
|
584
|
+
"reason": "`--home` is passed by the run rather than exported, so a child of the host does not inherit it."
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"release_1_invoked": false
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"writer": "wrappers/codex_frame_filter.py",
|
|
591
|
+
"destinations": [
|
|
592
|
+
{
|
|
593
|
+
"override": "AGENT_BIOS_STATE_DIR",
|
|
594
|
+
"class": "install_roots",
|
|
595
|
+
"derived_at_line": 434
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"$comment": "The frame filter writes its cache under the state root.",
|
|
599
|
+
"channels": {
|
|
600
|
+
"absolute_literals": {
|
|
601
|
+
"tokens": [
|
|
602
|
+
"/Users/canary/private-value"
|
|
603
|
+
],
|
|
604
|
+
"reason": "A canary value inside a fixture payload, written so a leak of it can be recognised in output. Nothing opens it."
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"release_1_invoked": false
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"writer": "git",
|
|
611
|
+
"fallbacks": [],
|
|
612
|
+
"fallback_source": null,
|
|
613
|
+
"$comment": "One commit per applied item — in RELEASE 2. Release 1 does not run this writer at all: the four review rounds on certifying that commit each produced new blocking defects, and the fifth of round 4's was the repository's own hook writing under /tmp and provisioning under HOME, which certifying the commit would have had to cover. The row stays so the writer is declared and named rather than forgotten.",
|
|
614
|
+
"destinations": [],
|
|
615
|
+
"writes_without_override": "checkout",
|
|
616
|
+
"root_from": "argument",
|
|
617
|
+
"$comment_root_from": "the working tree the run was given, as an argument to every git call; there is no environment override for it, and the confinement is that the tree is the clone the `checkout` class names",
|
|
618
|
+
"release_1_invoked": false,
|
|
619
|
+
"$comment_release_1": "not invoked by release-1 S11: the apply writes the approved changes into files of the declared checkout and executes NO git; it names the commit command for the owner to run, and the owner commits as usual so the repository's hooks run in the owner's own environment (D-20261113-f22b7d, narrowing D-20261112-2cf1c4)"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"writer": "session-distill/runlib/stage_close.py",
|
|
623
|
+
"fallbacks": [],
|
|
624
|
+
"fallback_source": null,
|
|
625
|
+
"$comment": "Release 1's S12: the run's decisions and window written to the checkout's ledger and, for a periodic run, the coverage state - both tracked files inside the declared checkout, whose root the stage reads from the declaration it is passed. It starts no process and reads no override and no HOME: the launcher's state file is an owner command the stage names (update-state.py is that file's writer, with its own row), so there is no nudge destination here. Its allocation, lock and record are inside the run directory.",
|
|
626
|
+
"destinations": [],
|
|
627
|
+
"writes_without_override": "checkout",
|
|
628
|
+
"root_from": "argument",
|
|
629
|
+
"$comment_root_from": "the declared checkout, read from the run's declaration: the root is never taken from the environment",
|
|
630
|
+
"release_1_invoked": true
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"writer": "session-distill/runlib/stage_apply.py",
|
|
634
|
+
"fallbacks": [],
|
|
635
|
+
"fallback_source": null,
|
|
636
|
+
"$comment": "Release 1's S11: the approved changes written into files of the declared checkout, whose root the stage reads from the declaration it is passed - and that is its whole effect outside the run directory. It writes files and starts no process (D-20261113-f22b7d). It reads no override and no HOME: the personal-layer destination is not this release's (D-20261112-2cf1c4), so there is no row for it here until a release writes one, and the derived closure would name the pair the day the source reads it (INVENTORY_INCOMPLETE). Its plan, journal and record are inside the run directory.",
|
|
637
|
+
"destinations": [],
|
|
638
|
+
"writes_without_override": "checkout",
|
|
639
|
+
"release_1_invoked": true,
|
|
640
|
+
"root_from": "argument",
|
|
641
|
+
"$comment_root_from": "the declared checkout, read from the run's declaration: the root is never taken from the environment"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"writer": "session-distill/runlib/recovery.py",
|
|
645
|
+
"fallbacks": [],
|
|
646
|
+
"fallback_source": null,
|
|
647
|
+
"$comment": "Recovery writes only its own journal and report, under the class whose root exists so that a recovery after a drifted apply has somewhere to land that the apply did not touch. This file does not exist yet (S11/S12 are STAGE_NOT_IMPLEMENTED); the row is a forward declaration and INVENTORY_FORWARD_LANDED fails when the file appears, so the derived closure takes over rather than this row standing unchecked.",
|
|
648
|
+
"destinations": [],
|
|
649
|
+
"writes_without_override": "recovery",
|
|
650
|
+
"writer_unwritten": true,
|
|
651
|
+
"root_from": "argument",
|
|
652
|
+
"$comment_root_from": "the recovery root is passed to it, like every other stage's",
|
|
653
|
+
"release_1_invoked": true
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"writer": "session-distill/runlib/journal.py",
|
|
657
|
+
"fallbacks": [],
|
|
658
|
+
"fallback_source": null,
|
|
659
|
+
"$comment": "The write-ahead journal itself. It is runtime state rather than part of the run so that a run directory lost with its machine does not take the record of what was already applied with it.",
|
|
660
|
+
"destinations": [],
|
|
661
|
+
"writes_without_override": "runtime_state",
|
|
662
|
+
"root_from": "argument",
|
|
663
|
+
"$comment_root_from": "the journal's root is the function's own `root` argument (`append(path, record, root)`), which the run passes from the declared runtime_state; it reads no variable for it",
|
|
664
|
+
"channels": {
|
|
665
|
+
"absolute_literals": {
|
|
666
|
+
"tokens": [
|
|
667
|
+
"/etc/passwd",
|
|
668
|
+
"/tmp"
|
|
669
|
+
],
|
|
670
|
+
"reason": "`/etc/passwd` and `/tmp` are control inputs: the first is a target the lexical check must refuse as absolute, the second is where a control builds its own temp tree. Every real journal path is reached through the confined handle under the root the run passes."
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"release_1_invoked": true
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
"not_a_destination": [
|
|
677
|
+
{
|
|
678
|
+
"writer": "install.sh",
|
|
679
|
+
"override": "AGENT_BIOS_UNINSTALL_ARCHIVE",
|
|
680
|
+
"reason": "The uninstall archive is written only by `install.sh uninstall`, which no operation in §10.6's vocabulary invokes.",
|
|
681
|
+
"derived_at_line": 1349
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
}
|