agent-bios 0.19.4 → 0.20.1

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.
Files changed (162) hide show
  1. package/DEPENDENCIES.md +20 -5
  2. package/README.md +14 -19
  3. package/claude/agents/frontier.md +1 -1
  4. package/claude/guides/claude-prompting.md +475 -234
  5. package/claude/guides/cli-multi-model-workflow.md +8 -7
  6. package/claude/guides/gpt-prompting.md +319 -144
  7. package/claude/guides/session-distill-workflow.md +93 -43
  8. package/claude/guides/tooling-gotchas.md +3 -1
  9. package/codex/agents/frontier.toml +1 -1
  10. package/codex/agents/reviewer.toml +1 -1
  11. package/codex/agents/workhorse.toml +1 -1
  12. package/codex/guides/claude-prompting.md +475 -234
  13. package/codex/guides/cli-multi-model-workflow.md +8 -7
  14. package/codex/guides/gpt-prompting.md +319 -144
  15. package/codex/guides/session-distill-workflow.md +93 -43
  16. package/codex/guides/tooling-gotchas.md +3 -1
  17. package/compose/assemble.py +4 -1
  18. package/compose/canary.sh +8 -6
  19. package/compose/host_platform.py +158 -15
  20. package/compose/instructions-state.py +183 -41
  21. package/compose/instructions_install.py +222 -27
  22. package/compose/instructions_session.py +250 -75
  23. package/compose/instructions_setup_cli.py +2 -36
  24. package/compose/instructions_store.py +160 -3
  25. package/compose/instructions_transaction.py +29 -5
  26. package/docs/advanced-launch.md +5 -1
  27. package/docs/releases/0.20.0.md +102 -0
  28. package/docs/releases/0.20.1.md +76 -0
  29. package/install.sh +42 -14
  30. package/launch/agent-launch.py +152 -18
  31. package/launch/agent-launch.toml +28 -16
  32. package/launch/agent-launch.zsh +104 -13
  33. package/launch/claude_subcommands.py +179 -0
  34. package/launch/shell_integration.py +7 -1
  35. package/learn/collect-learning.py +60 -9
  36. package/learn/migrate-learnings.py +70 -4
  37. package/learn/redact.py +2 -1
  38. package/package.json +36 -3
  39. package/provenance.json +1 -1
  40. package/session-cost.py +80 -9
  41. package/session-distill/coverage.json +6 -0
  42. package/session-distill/distill.py +2575 -0
  43. package/session-distill/grammar/__init__.py +0 -0
  44. package/session-distill/grammar/owner_lines.py +874 -0
  45. package/session-distill/originators.json +9 -0
  46. package/session-distill/packets/cross_review.md +31 -0
  47. package/session-distill/packets/form.md +86 -0
  48. package/session-distill/packets/judge.md +81 -0
  49. package/session-distill/packets/placement_contract.md +90 -0
  50. package/session-distill/packets/propose.md +124 -0
  51. package/session-distill/packets/read.md +57 -0
  52. package/session-distill/packets/reconsider.md +53 -0
  53. package/session-distill/packets/s7b.md +65 -0
  54. package/session-distill/packets/s9b.md +39 -0
  55. package/session-distill/packets/stitch.md +35 -0
  56. package/session-distill/packets/sweep.md +33 -0
  57. package/session-distill/runlib/__init__.py +0 -0
  58. package/session-distill/runlib/bound.py +1102 -0
  59. package/session-distill/runlib/breaker.py +467 -0
  60. package/session-distill/runlib/census.py +2347 -0
  61. package/session-distill/runlib/claims.py +420 -0
  62. package/session-distill/runlib/controls.py +902 -0
  63. package/session-distill/runlib/coverage.py +881 -0
  64. package/session-distill/runlib/declare.py +888 -0
  65. package/session-distill/runlib/delivery_evidence.py +1145 -0
  66. package/session-distill/runlib/derive.py +812 -0
  67. package/session-distill/runlib/destinations.py +3072 -0
  68. package/session-distill/runlib/dispatch.py +7940 -0
  69. package/session-distill/runlib/drift.py +1077 -0
  70. package/session-distill/runlib/entry.py +401 -0
  71. package/session-distill/runlib/evidence.py +890 -0
  72. package/session-distill/runlib/exposure.py +1162 -0
  73. package/session-distill/runlib/gate.py +2727 -0
  74. package/session-distill/runlib/gitread.py +79 -0
  75. package/session-distill/runlib/inventory.py +19624 -0
  76. package/session-distill/runlib/journal.py +1919 -0
  77. package/session-distill/runlib/ledger.py +3210 -0
  78. package/session-distill/runlib/ledger_compat.py +101 -0
  79. package/session-distill/runlib/ledger_migration.py +190 -0
  80. package/session-distill/runlib/lifecycle_intake.py +693 -0
  81. package/session-distill/runlib/lineage.py +454 -0
  82. package/session-distill/runlib/measures.py +249 -0
  83. package/session-distill/runlib/monitor.py +1180 -0
  84. package/session-distill/runlib/operations.py +522 -0
  85. package/session-distill/runlib/packet.py +838 -0
  86. package/session-distill/runlib/placement.py +1769 -0
  87. package/session-distill/runlib/projection.py +4090 -0
  88. package/session-distill/runlib/ranking.py +740 -0
  89. package/session-distill/runlib/receipts.py +200 -0
  90. package/session-distill/runlib/records.py +1965 -0
  91. package/session-distill/runlib/search.py +249 -0
  92. package/session-distill/runlib/sequencing.py +829 -0
  93. package/session-distill/runlib/sources.py +641 -0
  94. package/session-distill/runlib/stage_adjudicate.py +845 -0
  95. package/session-distill/runlib/stage_apply.py +1378 -0
  96. package/session-distill/runlib/stage_approvals.py +758 -0
  97. package/session-distill/runlib/stage_close.py +1220 -0
  98. package/session-distill/runlib/stage_confirm.py +929 -0
  99. package/session-distill/runlib/stage_delivery.py +3080 -0
  100. package/session-distill/runlib/stage_form.py +2576 -0
  101. package/session-distill/runlib/stage_judge.py +4248 -0
  102. package/session-distill/runlib/stage_propose.py +3307 -0
  103. package/session-distill/runlib/stage_read.py +5179 -0
  104. package/session-distill/runlib/stage_render.py +2739 -0
  105. package/session-distill/runlib/stage_retrieve.py +924 -0
  106. package/session-distill/runlib/stage_review_korean.py +1002 -0
  107. package/session-distill/runlib/stage_review_proposals.py +1292 -0
  108. package/session-distill/runlib/stagelock.py +412 -0
  109. package/session-distill/runlib/stop.py +1061 -0
  110. package/session-distill/runlib/targets.py +809 -0
  111. package/session-distill/runlib/usage.py +280 -0
  112. package/session-distill/runlib/validate.py +319 -0
  113. package/session-distill/runlib/views.py +4327 -0
  114. package/session-distill/schemas/adjudication.schema.json +35 -0
  115. package/session-distill/schemas/approval.schema.json +35 -0
  116. package/session-distill/schemas/census.schema.json +128 -0
  117. package/session-distill/schemas/checks.schema.json +207 -0
  118. package/session-distill/schemas/claim.schema.json +16 -0
  119. package/session-distill/schemas/confirmation.schema.json +24 -0
  120. package/session-distill/schemas/coverage.schema.json +66 -0
  121. package/session-distill/schemas/cross_review.schema.json +24 -0
  122. package/session-distill/schemas/event.schema.json +20 -0
  123. package/session-distill/schemas/evidence.schema.json +20 -0
  124. package/session-distill/schemas/expected_observation.schema.json +18 -0
  125. package/session-distill/schemas/form.schema.json +103 -0
  126. package/session-distill/schemas/intake.schema.json +71 -0
  127. package/session-distill/schemas/inventory.schema.json +872 -0
  128. package/session-distill/schemas/judge.schema.json +77 -0
  129. package/session-distill/schemas/ledger.schema.json +313 -0
  130. package/session-distill/schemas/observation.schema.json +16 -0
  131. package/session-distill/schemas/propose.schema.json +555 -0
  132. package/session-distill/schemas/read.schema.json +76 -0
  133. package/session-distill/schemas/reconsider.schema.json +122 -0
  134. package/session-distill/schemas/run.schema.json +150 -0
  135. package/session-distill/schemas/s7b.schema.json +200 -0
  136. package/session-distill/schemas/s9b.schema.json +28 -0
  137. package/session-distill/schemas/stitch.schema.json +25 -0
  138. package/session-distill/schemas/sweep.schema.json +25 -0
  139. package/session-distill/seats.json +149 -0
  140. package/session-distill/tables/allowed_pairs.json +257 -0
  141. package/session-distill/tables/controls.json +30 -0
  142. package/session-distill/tables/delivery_evidence.json +36 -0
  143. package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
  144. package/session-distill/tables/destinations.json +684 -0
  145. package/session-distill/tables/drift_layers.json +68 -0
  146. package/session-distill/tables/exposure_rules.json +192 -0
  147. package/session-distill/tables/placement_rules.json +148 -0
  148. package/session-distill/tables/propose_fixtures.json +154 -0
  149. package/session-distill/tables/ranking.json +194 -0
  150. package/session-distill/tables/redundancy.json +10 -0
  151. package/session-distill/tables/structural_rules.json +44 -0
  152. package/session-distill/tables/transition_fixtures.json +398 -0
  153. package/session-distill/tables/transitions.json +69 -0
  154. package/session-distill/tables/unit_outcome.json +67 -0
  155. package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
  156. package/wrappers/claude-run.sh +481 -33
  157. package/wrappers/claude_hermetic_evidence.py +1423 -0
  158. package/wrappers/codex-helm.sh +46 -15
  159. package/wrappers/codex-run.sh +183 -20
  160. package/wrappers/codex_frame_filter.py +1199 -0
  161. package/wrappers/codex_protocol.py +737 -0
  162. package/wrappers/jsonl_lines.py +65 -0
@@ -0,0 +1,69 @@
1
+ {
2
+ "$comment": "design §12.3: every applied disposition against every state, then the events that are not dispositions. A null cell is a pair code rejects (the table's dash). The cell wording of the design is regenerated from the cell records by runlib/ledger.py render_cell, and the event rows are the design's own wording; the --self-test holds both against the design's tables, and holds the event ids against the handlers runlib/ledger.py implements.",
3
+ "dispositions": ["place", "correct", "re-deliver", "keep", "reduce_delete", "reduce_merge", "incubate", "drop", "none"],
4
+ "state_rows": {"incubating": "incubating", "placed": "placed", "adopted-no-text": "placed", "absorbed": "absorbed_retired", "retired": "absorbed_retired"},
5
+ "cells": {
6
+ "no_entry_new_learning": {
7
+ "place": {"new_entry": true, "status": "placed", "effects": []},
8
+ "correct": null,
9
+ "re-deliver": null,
10
+ "keep": null,
11
+ "reduce_delete": null,
12
+ "reduce_merge": null,
13
+ "incubate": {"new_entry": true, "status": "incubating", "effects": []},
14
+ "drop": {"new_entry": true, "status": "retired", "effects": ["never_placed"]},
15
+ "none": {"new_entry": false, "status": null, "effects": []}
16
+ },
17
+ "no_entry_existing_unit": {
18
+ "place": null,
19
+ "correct": {"new_entry": true, "status": "placed", "effects": []},
20
+ "re-deliver": {"new_entry": true, "status": "placed", "effects": []},
21
+ "keep": {"new_entry": true, "status": "placed", "effects": ["keep_record"]},
22
+ "reduce_delete": {"new_entry": true, "status": "retired", "effects": []},
23
+ "reduce_merge": {"new_entry": true, "status": "absorbed", "effects": ["allocate_destination_entry"]},
24
+ "incubate": {"new_entry": true, "status": "placed", "effects": ["pending_intervention"]},
25
+ "drop": {"new_entry": true, "status": "placed", "effects": ["dropped_intervention"]},
26
+ "none": {"new_entry": false, "status": null, "effects": []}
27
+ },
28
+ "incubating": {
29
+ "place": {"new_entry": false, "status": "placed", "effects": []},
30
+ "correct": {"new_entry": false, "status": "incubating", "effects": ["text_revised"]},
31
+ "re-deliver": null,
32
+ "keep": null,
33
+ "reduce_delete": null,
34
+ "reduce_merge": null,
35
+ "incubate": {"new_entry": false, "status": "incubating", "effects": ["expiry_renewed"]},
36
+ "drop": {"new_entry": false, "status": "retired", "effects": []},
37
+ "none": {"new_entry": false, "status": "unchanged", "effects": []}
38
+ },
39
+ "placed": {
40
+ "place": null,
41
+ "correct": {"new_entry": false, "status": "unchanged", "effects": []},
42
+ "re-deliver": {"new_entry": false, "status": "unchanged", "effects": []},
43
+ "keep": {"new_entry": false, "status": "unchanged", "effects": ["keep_record"]},
44
+ "reduce_delete": {"new_entry": false, "status": "retired", "effects": []},
45
+ "reduce_merge": {"new_entry": false, "status": "absorbed", "effects": ["absorbed_by", "receiver_merge_decision"]},
46
+ "incubate": {"new_entry": false, "status": "unchanged", "effects": ["pending_intervention"]},
47
+ "drop": {"new_entry": false, "status": "unchanged", "effects": ["dropped_intervention"]},
48
+ "none": {"new_entry": false, "status": "unchanged", "effects": []}
49
+ },
50
+ "absorbed_retired": {
51
+ "place": {"new_entry": false, "status": "placed", "effects": ["revival"]},
52
+ "correct": null,
53
+ "re-deliver": null,
54
+ "keep": null,
55
+ "reduce_delete": null,
56
+ "reduce_merge": null,
57
+ "incubate": {"new_entry": false, "status": "incubating", "effects": ["revival"]},
58
+ "drop": {"new_entry": false, "status": "unchanged", "effects": []},
59
+ "none": {"new_entry": false, "status": "unchanged", "effects": []}
60
+ }
61
+ },
62
+ "events": [
63
+ {"id": "awaiting_R", "from": "incubating", "event": "awaiting R (§10.2)", "to": "incubating, reason recorded"},
64
+ {"id": "recurrence", "from": "any", "event": "recurrence (new evidence for the same learning)", "to": "unchanged; evidence and lineages appended"},
65
+ {"id": "contradiction", "from": "any", "event": "contradiction (admitted evidence against it)", "to": "unchanged until its candidate's disposition (correct, reduce, or drop) is applied"},
66
+ {"id": "delivery", "from": "any applied decision", "event": "delivery failed or unverified", "to": "unchanged; `decisions[].applied.delivery` records it"},
67
+ {"id": "revert", "from": "any applied decision", "event": "application reverted by the owner", "to": "the status before that decision; a revert decision appended"}
68
+ ]
69
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$comment": "design §6.4 (design/session-distill/2026-10-20T1942--9684f05--mechanism-design.md) as data: the one source runlib/derive.py reads and its fixture generator writes one frozen fixture per row from. Words are the design's own. A column that is the string \"any\" or \"—\" accepts every value of its domain, as the design's dash does; a list accepts its members. Every section's rows carry an id, and the frozen fixtures name those ids (`derive.py --generate-fixtures`).",
3
+ "domains": {
4
+ "judged": ["yes", "no"],
5
+ "diagnosis": ["covers", "wrong or insufficient", "trigger problem", "no match"],
6
+ "delivery": ["unknown", "selected_unavailable", "not_delivered", "exposed_not_read", "delivered"],
7
+ "following": ["followed", "not_followed", "unknown"],
8
+ "contribution": ["helped", "harmed", "neutral", "unknown"],
9
+ "requirement": ["met", "unmet", "uncertain"],
10
+ "test": ["untested: s8_deferred"]
11
+ },
12
+ "unit_diagnosis": [
13
+ {"id": "covers", "situation": "yes", "action": "yes", "diagnosis": "covers"},
14
+ {"id": "wrong_or_insufficient", "situation": "yes", "action": "no", "diagnosis": "wrong or insufficient"},
15
+ {"id": "trigger_problem", "situation": "no", "action": "yes", "diagnosis": "trigger problem"},
16
+ {"id": "no_match", "situation": "no", "action": "no", "diagnosis": "no match"}
17
+ ],
18
+ "unit_outcome": [
19
+ {"id": "o1", "diagnosis": "any", "delivery": ["unknown"], "following": "—", "contribution": "—", "outcome": "unknown", "test": "—"},
20
+ {"id": "o2", "diagnosis": "any", "delivery": ["selected_unavailable", "not_delivered"], "following": "—", "contribution": "—", "outcome": "not delivered", "test": "—"},
21
+ {"id": "o3", "diagnosis": ["covers"], "delivery": ["exposed_not_read"], "following": "—", "contribution": "—", "outcome": "misfire (trigger)", "test": "—"},
22
+ {"id": "o4", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["not_followed"], "contribution": "—", "outcome": "misfire", "test": "—"},
23
+ {"id": "o5", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["followed"], "contribution": ["harmed"], "outcome": "misfire", "test": "—"},
24
+ {"id": "o6", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["followed"], "contribution": ["helped"], "outcome": "confirmed", "test": "—"},
25
+ {"id": "o7", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["followed"], "contribution": ["neutral"], "outcome": "neutral (followed, no effect)", "test": "—"},
26
+ {"id": "o8", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["followed"], "contribution": ["unknown"], "outcome": "unknown", "test": "—"},
27
+ {"id": "o9", "diagnosis": ["covers"], "delivery": ["delivered"], "following": ["unknown"], "contribution": "—", "outcome": "unknown", "test": "—"},
28
+ {"id": "o10", "diagnosis": ["trigger problem", "wrong or insufficient"], "delivery": ["delivered", "exposed_not_read"], "following": "—", "contribution": "—", "outcome": "misfire", "test": "—"}
29
+ ],
30
+ "candidate_diagnosis": [
31
+ {"id": "covered", "if_any_unit": "covers", "diagnosis": "covered"},
32
+ {"id": "wrong_or_insufficient", "if_any_unit": "wrong or insufficient", "diagnosis": "wrong or insufficient"},
33
+ {"id": "trigger_problem", "if_any_unit": "trigger problem", "diagnosis": "trigger problem"},
34
+ {"id": "gap", "if_any_unit": null, "diagnosis": "gap", "incomplete": "unknown"},
35
+ {"id": "redundant", "lifecycle": "redundancy_hint", "covering_units_at_least": 2, "diagnosis": "redundant"}
36
+ ],
37
+ "kind": [
38
+ {"id": "obsolete", "lifecycle_no_longer_arises": true, "kind": "obsolete",
39
+ "$comment": "first: a lifecycle candidate both judges find no longer arising is obsolete whatever its units yield; the design names the case without a place in the order, and the order of this list is the precedence"},
40
+ {"id": "misfire", "if_any_outcome": ["misfire", "misfire (trigger)"], "kind": "misfire"},
41
+ {"id": "not_delivered", "if_any_outcome": ["not delivered"], "kind": "not delivered"},
42
+ {"id": "unknown", "if_any_outcome": ["unknown"], "kind": "unclassified"},
43
+ {"id": "confirmed", "if_any_outcome": ["confirmed"], "kind": "confirmed"},
44
+ {"id": "all_neutral", "if_any_outcome": ["neutral (followed, no effect)"], "kind": "unclassified"},
45
+ {"id": "gap", "no_matching_unit": {"release": "gap", "current": "gap"}, "kind": "gap"},
46
+ {"id": "already_resolved", "no_matching_unit": {"release": "gap", "current": "covered"}, "kind": "already resolved"},
47
+ {"id": "no_matching_unit_otherwise", "no_matching_unit": "otherwise", "kind": "unclassified",
48
+ "$comment": "not a row of §6.4: the design names two pairs for a candidate with no matching unit, and any other pair (an absence unknown at either point, or a current point whose units match without covering) is unclassified rather than read as either; a licensed addition of runlib/derive.py, so the table stays total"}
49
+ ],
50
+ "admission": [
51
+ {"id": "admitted", "rule": "both judges mark every requirement met and every deterministic check passes", "admission": "admitted"},
52
+ {"id": "rejected", "rule": "both judges mark one requirement unmet", "admission": "rejected"},
53
+ {"id": "disputed", "rule": "anything else", "admission": "disputed"}
54
+ ],
55
+ "requirements": ["observed_event", "consequence", "causal_support", "recognizable_in_advance", "actionable", "bounded", "positioned", "audience"],
56
+ "promotion": [
57
+ {"id": "lineages", "types": "any but G", "independent_lineages_at_least": 2, "eligible": true},
58
+ {"id": "consequence", "types": "any but G", "both_judges_class_one_of": ["irreversible", "security", "verification-corrupting"], "eligible": true},
59
+ {"id": "type_g", "types": ["G"], "independent_lineages_at_least": 3, "or_arc_confirmed": true, "eligible": true},
60
+ {"id": "below_bar", "types": "any", "eligible": false, "allowed_dispositions": ["incubate", "keep", "drop", "none"],
61
+ "$comment": "§6.4 says incubate, keep and drop; `none` is added (D-20261112-644ff3) because §7.2 allows an unclassified candidate only `none`, so the two lists were disjoint, and `none` promotes nothing. derive.py declares the difference beside the design's sentence."}
62
+ ],
63
+ "absence_completeness": {
64
+ "policy": "literal",
65
+ "$comment": "§6.4: an incomplete reference point turns gap into unknown. `literal` reads the reference point's own flag (§6.1), so a layer with no producer at any point (native_settings, D-20261102-0caf7d) keeps every absence unknown; `scoped` reads only the layers it lists, and every absence claim then names them. The records of 2026-10-22, 2026-10-23T1330 and T1548 leave the choice to WP-10; this is the default until it is decided."
66
+ }
67
+ }