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,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §10.5 drift ('the recomputed live manifest against F's manifest minus the approved interventions over every §6.1 layer') with the lead's reading (나) of 2026-11-12: the comparison runs over the layers the declaration's `config_manifest_B` actually carries, layers it does not carry are named in the run record as not drift-checked, and an approved operation whose TARGET lies in a layer nobody compared is refused before any effect. This table is what makes that last rule decidable: it maps each configuration layer to the path prefixes that belong to it. It exists because `config_manifest_B`'s key vocabulary is declared NOWHERE - `schemas/run.schema.json` admits any key with a sha256 value, no code computes the manifest (a real declaration is a file an operator writes, read by `distill.py declare --from`), and the only filler in the tree is `declare.fixture()`'s single `global` entry, which matches neither §7.4's destination layers nor §6.1's inventory layers. So this table is also a PROPOSAL for that vocabulary, and the open question is recorded with it rather than settled here.",
|
|
3
|
+
"open_question": "Which vocabulary does `config_manifest_B` key on - §7.4's destination layers (enforcement, gates, hooks, guides, skills, personal, session_injection, incubator), §6.1's inventory layers (catalog, adopted_packages, overlays, native_*, session_injection, ledger_*), or the configuration's own names as used here? Until a declaration says, drift is checked over whatever keys B carries and every other layer is reported unchecked by name.",
|
|
4
|
+
"layers": [
|
|
5
|
+
{
|
|
6
|
+
"layer": "global",
|
|
7
|
+
"prefixes": [
|
|
8
|
+
"claude/CLAUDE.md",
|
|
9
|
+
"codex/AGENTS.md",
|
|
10
|
+
"ko/claude/CLAUDE.md",
|
|
11
|
+
"ko/codex/AGENTS.md"
|
|
12
|
+
],
|
|
13
|
+
"$comment": "The always-loaded global file and its projections. `declare.fixture()` keys B on this name, so it is the one layer a run declares today."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"layer": "guides",
|
|
17
|
+
"prefixes": [
|
|
18
|
+
"claude/guides/",
|
|
19
|
+
"codex/guides/",
|
|
20
|
+
"ko/claude/guides/",
|
|
21
|
+
"ko/codex/guides/"
|
|
22
|
+
],
|
|
23
|
+
"$comment": "§7.4's `guides` destination; the Codex and ko trees are projections, so an operation on one is an operation on the layer."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"layer": "skills",
|
|
27
|
+
"prefixes": [
|
|
28
|
+
"claude/skills/"
|
|
29
|
+
],
|
|
30
|
+
"$comment": "One tree serves both hosts (AGENTS.md: `claude/skills/` is not mirrored), so there is no codex prefix to name."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"layer": "hooks",
|
|
34
|
+
"prefixes": [
|
|
35
|
+
".githooks/",
|
|
36
|
+
"claude/hooks/"
|
|
37
|
+
],
|
|
38
|
+
"$comment": "§7.4's `hooks` destination: a hook registered with a host, and the repository's own commit hook."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"layer": "gates",
|
|
42
|
+
"prefixes": [
|
|
43
|
+
"gates/"
|
|
44
|
+
],
|
|
45
|
+
"$comment": "§7.4's `gates` destination. Author-side: an operation here is verified in the checkout, never at an installed path."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"layer": "enforcement",
|
|
49
|
+
"prefixes": [
|
|
50
|
+
"compose/",
|
|
51
|
+
"launch/",
|
|
52
|
+
"learn/",
|
|
53
|
+
"wrappers/",
|
|
54
|
+
"install.sh"
|
|
55
|
+
],
|
|
56
|
+
"$comment": "§7.4's `enforcement` destination: the machinery that decides what a session receives, rather than text a session reads."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"layer": "ledger",
|
|
60
|
+
"prefixes": [
|
|
61
|
+
"design/session-distill/ledger.json",
|
|
62
|
+
"session-distill/coverage.json",
|
|
63
|
+
"design/session-distill/versions.json"
|
|
64
|
+
],
|
|
65
|
+
"$comment": "What S12's close writes. Not a §7.4 destination - no learning is placed here - but an operation can target it, and a target in an uncompared layer is what the refusal is about. THE PREFIXES HERE ARE THIS REPO'S OWN LAYOUT. `design/session-distill/ledger.json` and `design/session-distill/versions.json` exist in a checkout and not in a packaged install, where the ledger a run applies to is a RUN INPUT (lifecycle intake takes it as an argument) rather than a fixed path. So for a packaged user these two prefixes name nothing and the layer matches no target. The fix belongs with the `config_manifest_B` vocabulary this table's open_question records — the layer's paths should come from the declaration — not with deleting the layer, which would make a ledger operation unlayered and therefore refused before any effect. `gates/check-package.sh` carries the same statement as a named, retiring exemption, so neither copy can outlive the finding quietly."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §11's exposure predicate, one row per branch of its sentence, as data. The sentence: an occasion's exposure to the applied item must be shown BEFORE the decision or action the occasion concerns, not before the session began. Each row names what must be shown for one kind of applied item, the facts an occasion record must carry for the question to be answerable at all, and the design clause it comes from. `runlib/exposure.py` reads this and decides nothing a row does not state. A row's `fixtures` are generated from it by the suite, so a branch without its three cases - shown, shown absent, unanswerable - fails rather than going untested (plan WP-21 done-when 7: 'a generated fixture per rule').",
|
|
3
|
+
"verdicts": {
|
|
4
|
+
"eligible": "exposure was shown: the occasion counts, and S3 judges it observed or not observed",
|
|
5
|
+
"not_exposed": "exposure was shown ABSENT: the item could not have fired here, so the occasion is excluded from the resolution with its count reported",
|
|
6
|
+
"exposure_unknown": "exposure could not be shown either way: the occasion is carried, and the resolution is pending"
|
|
7
|
+
},
|
|
8
|
+
"$comment_verdicts": "§11's own sentence names two states ('an occasion with exposure is eligible; one whose exposure cannot be shown is exposure_unknown'), while the plan's O9 fixtures distinguish an occasion shown NOT exposed (the installer change with the old installer on the receipt, the removed wrapper resolving to an older carrier) from one that cannot be shown (no resolution recorded, a recovery begun by the old installer). Three verdicts implement both readings without contradiction, and `runlib/measures.py` - which admits only the two - receives the not_exposed occasions as a COUNT rather than as instances: calling them eligible would count an occasion the item could not reach, and calling them unknown would hold the window pending forever on an occasion that has been answered.",
|
|
9
|
+
"rules": [
|
|
10
|
+
{
|
|
11
|
+
"id": "create_or_edit",
|
|
12
|
+
"applies_to": {
|
|
13
|
+
"operation": [
|
|
14
|
+
"create",
|
|
15
|
+
"edit"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"requires": [
|
|
19
|
+
"delivered_version",
|
|
20
|
+
"applied_version"
|
|
21
|
+
],
|
|
22
|
+
"shown_when": "delivered_version == applied_version",
|
|
23
|
+
"design": "create or edit — delivery of the applied unit version at its surface's level (§6.3)",
|
|
24
|
+
"$comment": "The version is bound by bytes, never by path (WP-10's ladder), so the comparison is of digests the delivery evidence already produced.",
|
|
25
|
+
"optional_facts": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "delete_or_merge",
|
|
29
|
+
"applies_to": {
|
|
30
|
+
"operation": [
|
|
31
|
+
"delete",
|
|
32
|
+
"merge"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"requires": [
|
|
36
|
+
"pin_units"
|
|
37
|
+
],
|
|
38
|
+
"shown_when": "removed_unit not in pin_units and (merged_unit is None or merged_unit in pin_units)",
|
|
39
|
+
"design": "delete or merge — the session's pin shows the removed unit absent (and the merged unit present)",
|
|
40
|
+
"$comment": "Both halves, or a merge that dropped its content would read as exposed because the removal alone succeeded.",
|
|
41
|
+
"requires_by_operation": {
|
|
42
|
+
"delete": [
|
|
43
|
+
"removed_unit"
|
|
44
|
+
],
|
|
45
|
+
"merge": [
|
|
46
|
+
"removed_unit",
|
|
47
|
+
"merged_unit"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"optional_facts": [
|
|
51
|
+
"merged_unit"
|
|
52
|
+
],
|
|
53
|
+
"$comment_reads": "A pin alone proves nothing: 'the removed unit is absent' needs the unit that was removed, and a merge needs the unit it merged into. With both absent as None, an occasion carrying only `pin_units: []` came back eligible. `merged_unit` stays optional for a plain delete, where its absence means no merge was asked for."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "route",
|
|
57
|
+
"applies_to": {
|
|
58
|
+
"operation": [
|
|
59
|
+
"route"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"requires": [
|
|
63
|
+
"pin_routes",
|
|
64
|
+
"pin_units",
|
|
65
|
+
"route_entry",
|
|
66
|
+
"routed_unit"
|
|
67
|
+
],
|
|
68
|
+
"shown_when": "route_entry in pin_routes and routed_unit in pin_units",
|
|
69
|
+
"design": "route — the pin shows the route entry and the unit reached by it",
|
|
70
|
+
"$comment": "A route entry whose unit the pin does not hold is a route to nothing, which is not exposure.",
|
|
71
|
+
"optional_facts": [],
|
|
72
|
+
"$comment_reads": "the route's own entry and the unit it reaches are the identities being looked for; without them the two memberships read None and the branch would answer not_exposed where nothing was shown."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "executable_invoked",
|
|
76
|
+
"applies_to": {
|
|
77
|
+
"role": [
|
|
78
|
+
"hook",
|
|
79
|
+
"script",
|
|
80
|
+
"tool",
|
|
81
|
+
"wrapper"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"requires": [
|
|
85
|
+
"invocation_path",
|
|
86
|
+
"invocation_sha256",
|
|
87
|
+
"applied_path",
|
|
88
|
+
"applied_sha256"
|
|
89
|
+
],
|
|
90
|
+
"shown_when": "invocation_path == applied_path and invocation_sha256 == applied_sha256",
|
|
91
|
+
"design": "executable, by its role — invoked directly (a hook, script, tool, or wrapper): the invocation at that occasion names the applied artifact's path and hash",
|
|
92
|
+
"$comment": "Path AND hash: a path that still resolves to the old bytes is the case §6.3's levels exist to catch.",
|
|
93
|
+
"$comment_reads": "the applied artifact's own identity is the other side of the comparison; it comes from the applied item, not from the occasion.",
|
|
94
|
+
"$comment_requires": "The applied identity is the REFERENCE the comparison is made against, so it is required: with it absent the predicate compared an observation with None and answered not_exposed about an item nobody identified (the round-5 review). Absent, the answer is exposure_unknown."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "executable_compiler",
|
|
98
|
+
"applies_to": {
|
|
99
|
+
"role": [
|
|
100
|
+
"catalog_compiler"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"requires": [
|
|
104
|
+
"compiler_digest",
|
|
105
|
+
"applied_sha256"
|
|
106
|
+
],
|
|
107
|
+
"shown_when": "compiler_digest == applied_sha256",
|
|
108
|
+
"design": "producing an artifact others consume (the catalog compiler): the session consumed an artifact produced by the applied version, shown by the version digest the artifact records (the snapshot's `inputs.compiler_digest`)",
|
|
109
|
+
"$comment": "O9's fixture: a compiler change with the OLD compiler digest on the snapshot is shown not exposed, not unknown - the snapshot answered the question.",
|
|
110
|
+
"$comment_reads": "as above: the applied digest is the item's, not the occasion's.",
|
|
111
|
+
"$comment_requires": "The applied identity is the REFERENCE the comparison is made against, so it is required: with it absent the predicate compared an observation with None and answered not_exposed about an item nobody identified (the round-5 review). Absent, the answer is exposure_unknown."
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "executable_installer",
|
|
115
|
+
"applies_to": {
|
|
116
|
+
"role": [
|
|
117
|
+
"installer"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"requires": [
|
|
121
|
+
"installer_digest",
|
|
122
|
+
"applied_sha256"
|
|
123
|
+
],
|
|
124
|
+
"shown_when": "installer_digest == applied_sha256 and begun_by_installer_digest in (None, applied_sha256)",
|
|
125
|
+
"unknown_when": "installer_digest is None or installer_digest != applied_sha256 or (begun_by_installer_digest is not None and begun_by_installer_digest != applied_sha256)",
|
|
126
|
+
"design": "for the installer, the installation receipt bound to the session's snapshot (§6.3) names the applied installer digest as `installer_digest` and, where the transaction was recovered, as `begun_by_installer_digest` too — a transaction begun or finished by another installer version, or an unbound one, is `exposure_unknown`; this is the single installer-exposure predicate",
|
|
127
|
+
"$comment": "The one rule §11 writes the unknown case into itself. A receipt with no digest is an unbound transaction; a recovery whose two digests disagree is a transaction two versions touched. `compose/instructions_install.py::_receipt_body` is what writes both fields. Two round-3 corrections. `applied_sha256` was OPTIONAL while both conditions compare against it, so an absent one made `shown_when` false and `unknown_when` false and the answer came back `not_exposed` — a negative answer from a fact nobody recorded; it is required now. And a receipt whose digest is not the applied one is a transaction FINISHED by another version, which §11's own sentence calls `exposure_unknown`; the condition said so only for the recovery field. So this rule answers `eligible` or `exposure_unknown` and never `not_exposed`: for an installer transaction there is no state in which the installation is known not to have been exposed.",
|
|
128
|
+
"optional_facts": [
|
|
129
|
+
"begun_by_installer_digest"
|
|
130
|
+
],
|
|
131
|
+
"$comment_reads": "the applied digest is the item's; `begun_by_installer_digest` is optional because its absence means no second version began the transaction, which is what §11's unknown case turns on."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "executable_deleted",
|
|
135
|
+
"applies_to": {
|
|
136
|
+
"operation": [
|
|
137
|
+
"delete"
|
|
138
|
+
],
|
|
139
|
+
"role": [
|
|
140
|
+
"hook",
|
|
141
|
+
"script",
|
|
142
|
+
"tool",
|
|
143
|
+
"wrapper",
|
|
144
|
+
"installer",
|
|
145
|
+
"catalog_compiler"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"requires": [
|
|
149
|
+
"resolved_path",
|
|
150
|
+
"resolved_sha256"
|
|
151
|
+
],
|
|
152
|
+
"shown_when": "resolved_sha256 != removed_sha256 and resolved_sha256 != fallback_sha256 and (required_replacement is None or resolved_sha256 == required_replacement)",
|
|
153
|
+
"unknown_when": "resolved_path is None and resolved_sha256 is None",
|
|
154
|
+
"design": "deleted: the effective resolution recorded at that occasion — the launcher binding or the invocation record's resolved path and artifact hash — shows neither the removed artifact nor an older fallback carrier, and shows any required replacement; when the occasion recorded no resolution, exposure is `exposure_unknown`",
|
|
155
|
+
"$comment": "O9's fixture: a removed wrapper that resolves to an OLDER carrier is shown not exposed. The older carrier is the case a path-only check misses, which is why the hash decides.",
|
|
156
|
+
"requires_by_operation": {
|
|
157
|
+
"delete": [
|
|
158
|
+
"removed_sha256",
|
|
159
|
+
"fallback_sha256"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"optional_facts": [
|
|
163
|
+
"required_replacement"
|
|
164
|
+
],
|
|
165
|
+
"$comment_reads": "'the resolution is neither the removed artifact nor an older carrier' needs both of those digests; without them the two inequalities are trivially true and a wrapper carrying only its own resolution came back eligible. `required_replacement` is genuinely optional: absent means no particular replacement was required."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "personal",
|
|
169
|
+
"applies_to": {
|
|
170
|
+
"operation": [
|
|
171
|
+
"personal"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"requires": [
|
|
175
|
+
"layer_sha256",
|
|
176
|
+
"loading_record",
|
|
177
|
+
"applied_sha256"
|
|
178
|
+
],
|
|
179
|
+
"shown_when": "layer_sha256 == applied_sha256 and loading_record is True",
|
|
180
|
+
"unknown_when": "loading_record is None",
|
|
181
|
+
"design": "personal — the layer's identity matches the applied hash and the host's loading record shows it loaded",
|
|
182
|
+
"$comment": "O9's fixture: a personal change with no loading record is exposure_unknown, because the host never said whether it loaded the layer.",
|
|
183
|
+
"$comment_reads": "the applied digest is the item's.",
|
|
184
|
+
"$comment_requires": "The applied identity is the REFERENCE the comparison is made against, so it is required: with it absent the predicate compared an observation with None and answered not_exposed about an item nobody identified (the round-5 review). Absent, the answer is exposure_unknown."
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"precedence": [
|
|
188
|
+
"role",
|
|
189
|
+
"operation"
|
|
190
|
+
],
|
|
191
|
+
"$comment_precedence": "Which applies_to key outranks which, when two rows match one occasion. Read by `rule_for`, which weights a row by the keys it is matched on in this order and REFUSES a tie: an occasion of operation 'edit' and role 'installer' matched both `create_or_edit` (operation only) and `executable_installer` (role only) at one key each, and the earlier row in this list won by position. §11 writes the executable branches by ROLE, so role is the more specific claim and says so here instead of being implied by order."
|
|
192
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §7.4's DECIDABLE restrictions, as data. The semantic bars of the same section — leftward reformulation, retirement reasons, facts kept verbatim — are not here: they reach S7 and S7b as the one canonical text in `packets/placement_contract.md` and are judged by S7b. Together this table and that packet are the single authority for §7.4, and WP-22 generates the runbook's contract section from them (never hand-written). `runlib/placement.py` reads this file; `placement.fidelity_problems` holds the rule ids plus the packet's bars against the copied and cited §7.4 list.",
|
|
3
|
+
"destinations": {
|
|
4
|
+
"$comment": "the layers as destinations, in §7.4's order of 'cheapest that still fires on time'. The order is data because the rule is an order, and a reader that re-sorted it would be a second authority.",
|
|
5
|
+
"order": [
|
|
6
|
+
"enforcement",
|
|
7
|
+
"gates",
|
|
8
|
+
"hooks",
|
|
9
|
+
"guides",
|
|
10
|
+
"skills",
|
|
11
|
+
"personal",
|
|
12
|
+
"session_injection",
|
|
13
|
+
"incubator"
|
|
14
|
+
],
|
|
15
|
+
"global_file": "the always-loaded global file, which §7.4's revision leaves open to deletions and merges only"
|
|
16
|
+
},
|
|
17
|
+
"consumers": {
|
|
18
|
+
"$comment": "consumer escalation (§7.4): who executes when the learning is needed. A consumer that reads only code cannot be reached by an instruction, whatever layer it is placed in.",
|
|
19
|
+
"reads": {
|
|
20
|
+
"session": [
|
|
21
|
+
"instruction",
|
|
22
|
+
"code"
|
|
23
|
+
],
|
|
24
|
+
"owner": [
|
|
25
|
+
"instruction",
|
|
26
|
+
"code"
|
|
27
|
+
],
|
|
28
|
+
"hermetic_dispatch": [
|
|
29
|
+
"packet"
|
|
30
|
+
],
|
|
31
|
+
"script": [
|
|
32
|
+
"code"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"rules": [
|
|
37
|
+
{
|
|
38
|
+
"id": "guide_premature",
|
|
39
|
+
"code": "GUIDE_PREMATURE",
|
|
40
|
+
"design": "a guide proposed where fewer than five promoted items share a situation no guide covers",
|
|
41
|
+
"reads": [
|
|
42
|
+
"destination.layer",
|
|
43
|
+
"situation_promoted_items",
|
|
44
|
+
"situation_covered_by_guide"
|
|
45
|
+
],
|
|
46
|
+
"threshold": 5,
|
|
47
|
+
"scope": "placing_a_guide",
|
|
48
|
+
"requires": [
|
|
49
|
+
"situation_promoted_items",
|
|
50
|
+
"situation_covered_by_guide"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "consumer_mismatch",
|
|
55
|
+
"code": "CONSUMER_MISMATCH",
|
|
56
|
+
"design": "an instruction aimed at a consumer that reads only code (a script, a hermetic dispatch)",
|
|
57
|
+
"reads": [
|
|
58
|
+
"consumer",
|
|
59
|
+
"artifact_form"
|
|
60
|
+
],
|
|
61
|
+
"scope": "carries_an_instruction",
|
|
62
|
+
"requires": [
|
|
63
|
+
"consumer",
|
|
64
|
+
"artifact_form"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "gate_on_judgment",
|
|
69
|
+
"code": "GATE_ON_JUDGMENT",
|
|
70
|
+
"design": "a blocking gate proposed for a semantic criterion",
|
|
71
|
+
"reads": [
|
|
72
|
+
"destination.layer",
|
|
73
|
+
"blocking",
|
|
74
|
+
"criterion"
|
|
75
|
+
],
|
|
76
|
+
"scope": "placing_a_gate",
|
|
77
|
+
"requires": [
|
|
78
|
+
"blocking",
|
|
79
|
+
"criterion"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "global_addition",
|
|
84
|
+
"code": "GLOBAL_ADDITION",
|
|
85
|
+
"design": "an addition to the global file",
|
|
86
|
+
"$comment": "§7.4's destination rule, beside §7.3's operation rule in tables/structural_rules.json: one refuses the always-loaded file as the HOME of a new learning, the other refuses an operation on it that is not a delete or a merge. Both can hold of one proposal, and each says which it was.",
|
|
87
|
+
"reads": [
|
|
88
|
+
"destination.carrier",
|
|
89
|
+
"disposition"
|
|
90
|
+
],
|
|
91
|
+
"scope": "always",
|
|
92
|
+
"requires": []
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "c_route",
|
|
96
|
+
"code": "C_ROUTE",
|
|
97
|
+
"design": "a C principle routed anywhere but the router trigger of the guide whose situation it names or session-level injection",
|
|
98
|
+
"reads": [
|
|
99
|
+
"typology",
|
|
100
|
+
"destination.layer",
|
|
101
|
+
"destination.carrier",
|
|
102
|
+
"names_situation_of_guide",
|
|
103
|
+
"owner_only"
|
|
104
|
+
],
|
|
105
|
+
"allowed_layers": [
|
|
106
|
+
"guides",
|
|
107
|
+
"session_injection"
|
|
108
|
+
],
|
|
109
|
+
"scope": "a_c_principle",
|
|
110
|
+
"requires": [
|
|
111
|
+
"typology"
|
|
112
|
+
],
|
|
113
|
+
"requires_when": [
|
|
114
|
+
{
|
|
115
|
+
"typology": "C",
|
|
116
|
+
"layer": "guides",
|
|
117
|
+
"fields": [
|
|
118
|
+
"names_situation_of_guide"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"typology": "C",
|
|
123
|
+
"layer": "session_injection",
|
|
124
|
+
"fields": [
|
|
125
|
+
"owner_only"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "hook_charter",
|
|
132
|
+
"code": "HOOK_CHARTER",
|
|
133
|
+
"design": "a hook that blocks or judges",
|
|
134
|
+
"$comment": "the hook charter of §7.4: pattern-matched injection of canonical text, no blocking and no semantic judging.",
|
|
135
|
+
"reads": [
|
|
136
|
+
"destination.layer",
|
|
137
|
+
"blocking",
|
|
138
|
+
"judges"
|
|
139
|
+
],
|
|
140
|
+
"scope": "placing_a_hook",
|
|
141
|
+
"requires": [
|
|
142
|
+
"blocking",
|
|
143
|
+
"judges"
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"$comment_inputs": "Each rule names the inputs it READS and the scope in which it reads them. `placement.py` refuses a proposal that is in a rule's scope and does not carry one of that rule's inputs (PLACEMENT_INPUT_ABSENT) instead of letting the rule pass over a field nobody filled. The reason is measured: the flat proposal S7 built carried none of these, so five of the six rules passed vacuously on every proposal while their own suite - which calls them with hand-built dicts - stayed green. A rule whose input never arrives is not a rule. A rule that reads a field only for some destinations names it under `requires_when`, with the values (the destination `layer`, or the proposal's own field) under which the rule reads it (Codex WP-12 r2 F6: C_ROUTE read `names_situation_of_guide` for a guide and required only `typology`, so an absent value passed as a refusal of the wrong kind instead of a missing input)."
|
|
148
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Frozen answers of the O5 plants S7 owns (WP-12). Regenerate deliberately: a changed answer here is a changed contract, and the suite names the case.",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"id": "F-O5-01",
|
|
6
|
+
"plant": "evidence supporting keep",
|
|
7
|
+
"problems": [],
|
|
8
|
+
"awaiting_R": false,
|
|
9
|
+
"awaiting_R_reason": "a ledger-only disposition enters no F",
|
|
10
|
+
"disposition": "keep"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "F-O5-02",
|
|
14
|
+
"plant": "evidence supporting re-deliver",
|
|
15
|
+
"problems": [],
|
|
16
|
+
"awaiting_R": false,
|
|
17
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
18
|
+
"disposition": "re-deliver"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "F-O5-03",
|
|
22
|
+
"plant": "evidence supporting reduce",
|
|
23
|
+
"problems": [],
|
|
24
|
+
"awaiting_R": false,
|
|
25
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
26
|
+
"disposition": "reduce"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "F-O5-04",
|
|
30
|
+
"plant": "redundant pair of working units",
|
|
31
|
+
"problems": [],
|
|
32
|
+
"awaiting_R": false,
|
|
33
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
34
|
+
"disposition": "reduce"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "F-O5-08",
|
|
38
|
+
"plant": "core item admitted by adjudication",
|
|
39
|
+
"problems": [],
|
|
40
|
+
"awaiting_R": true,
|
|
41
|
+
"awaiting_R_reason": "a core item admitted by adjudication is awaiting_R: it enters no F this run and is tested against its own R comparison first (§10)",
|
|
42
|
+
"disposition": "place"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "F-O5-08b",
|
|
46
|
+
"plant": "the same admission on a personal item",
|
|
47
|
+
"problems": [],
|
|
48
|
+
"awaiting_R": false,
|
|
49
|
+
"awaiting_R_reason": "a personal item admitted by adjudication proceeds (§10)",
|
|
50
|
+
"disposition": "place"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "F-O5-08c",
|
|
54
|
+
"plant": "a core operation under a personal label",
|
|
55
|
+
"problems": [
|
|
56
|
+
"DESTINATION_LAYER_INCONSISTENT k-adj: the destination is personal and the operations write claude/guides/g.md (guides), in the checkout's core layers; a personal item writes no core file (Codex WP-12 r2 F8)",
|
|
57
|
+
"REQUIRES_R_ABSENT k-adj: a core item admitted by adjudication is awaiting_R, so its proposal says requires_R"
|
|
58
|
+
],
|
|
59
|
+
"awaiting_R": true,
|
|
60
|
+
"awaiting_R_reason": "a core item admitted by adjudication is awaiting_R: it enters no F this run and is tested against its own R comparison first (§10)",
|
|
61
|
+
"disposition": "place"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "F-O5-15",
|
|
65
|
+
"plant": "a type G candidate below the lineage bar",
|
|
66
|
+
"problems": [
|
|
67
|
+
"PAIR_DISALLOWED place k-g: a candidate below the promotion bar may be proposed only as incubate, keep, drop, none"
|
|
68
|
+
],
|
|
69
|
+
"awaiting_R": false,
|
|
70
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
71
|
+
"disposition": "place"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "F-O5-15b",
|
|
75
|
+
"plant": "the same candidate proposed as incubate instead",
|
|
76
|
+
"problems": [],
|
|
77
|
+
"awaiting_R": false,
|
|
78
|
+
"awaiting_R_reason": "a ledger-only disposition enters no F",
|
|
79
|
+
"disposition": "incubate"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "F-O5-REAL",
|
|
83
|
+
"plant": "a derivation row built by the real producer path (derive.unit_outcome, wrapped as S6 wraps it)",
|
|
84
|
+
"problems": [],
|
|
85
|
+
"awaiting_R": false,
|
|
86
|
+
"awaiting_R_reason": "a ledger-only disposition enters no F",
|
|
87
|
+
"disposition": "none"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "F-O5-RELEASE1",
|
|
91
|
+
"plant": "release 1's three named states, carried forward",
|
|
92
|
+
"problems": [],
|
|
93
|
+
"awaiting_R": false,
|
|
94
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
95
|
+
"disposition": "place"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "F-O5-RELEASE1b",
|
|
99
|
+
"plant": "the same, with one state not carried",
|
|
100
|
+
"problems": [
|
|
101
|
+
"UNKNOWN_NOT_CARRIED k-r1b.unit_outcomes=none: the derivation named this state, so the proposal carries it forward rather than resting on an answer nobody has"
|
|
102
|
+
],
|
|
103
|
+
"awaiting_R": false,
|
|
104
|
+
"awaiting_R_reason": "admitted directly, so its F is this run's",
|
|
105
|
+
"disposition": "place"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"legacy_cases": [
|
|
109
|
+
{
|
|
110
|
+
"id": "F-O5-09",
|
|
111
|
+
"plant": "legacy S3-03: no mapped decision, no classification block",
|
|
112
|
+
"call_spent": false,
|
|
113
|
+
"disposition": "none",
|
|
114
|
+
"entered_with_decision": false,
|
|
115
|
+
"group": "user-approved-default",
|
|
116
|
+
"entry_id": "S3-03",
|
|
117
|
+
"observation": false,
|
|
118
|
+
"schema_problems": []
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "F-O5-10",
|
|
122
|
+
"plant": "a legacy entry with a mapped incubate decision",
|
|
123
|
+
"call_spent": false,
|
|
124
|
+
"disposition": "incubate",
|
|
125
|
+
"entered_with_decision": true,
|
|
126
|
+
"group": "user-approved-default",
|
|
127
|
+
"entry_id": "S2-99",
|
|
128
|
+
"observation": true,
|
|
129
|
+
"schema_problems": []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "F-O5-13",
|
|
133
|
+
"plant": "one left at none stays in the legacy intake, in another group",
|
|
134
|
+
"call_spent": false,
|
|
135
|
+
"disposition": "none",
|
|
136
|
+
"entered_with_decision": false,
|
|
137
|
+
"group": "below-bar-default",
|
|
138
|
+
"entry_id": "S2-11",
|
|
139
|
+
"observation": false,
|
|
140
|
+
"schema_problems": []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "F-O5-09b",
|
|
144
|
+
"plant": "the same entry with a classification block reaches a call",
|
|
145
|
+
"call_spent": true,
|
|
146
|
+
"disposition": "none",
|
|
147
|
+
"entered_with_decision": false,
|
|
148
|
+
"group": "user-approved-default",
|
|
149
|
+
"entry_id": "S2-07",
|
|
150
|
+
"observation": false,
|
|
151
|
+
"schema_problems": []
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|