agent-bios 0.19.0 → 0.19.2

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 (85) hide show
  1. package/DEPENDENCIES.md +27 -27
  2. package/INSTALL.md +4 -4
  3. package/README.md +58 -28
  4. package/claude/CLAUDE.md +1 -1
  5. package/claude/guides/claude-prompting.md +1 -1
  6. package/claude/guides/cli-multi-model-workflow.md +3 -3
  7. package/claude/guides/documentation-hygiene.md +3 -0
  8. package/claude/guides/gpt-prompting.md +1 -1
  9. package/claude/guides/korean-writing.md +153 -0
  10. package/claude/guides/learning-flow.md +4 -4
  11. package/claude/guides/session-distill-workflow.md +8 -8
  12. package/claude/guides/slide-writing/RUNBOOK.md +5 -5
  13. package/claude/skills/repo-charter/SKILL.md +3 -3
  14. package/claude/skills/understand/SKILL.md +58 -28
  15. package/codex/AGENTS.md +1 -1
  16. package/codex/guides/claude-prompting.md +1 -1
  17. package/codex/guides/cli-multi-model-workflow.md +3 -3
  18. package/codex/guides/documentation-hygiene.md +3 -0
  19. package/codex/guides/gpt-prompting.md +1 -1
  20. package/codex/guides/korean-writing.md +153 -0
  21. package/codex/guides/learning-flow.md +4 -4
  22. package/codex/guides/session-distill-workflow.md +8 -8
  23. package/codex/guides/slide-writing/RUNBOOK.md +5 -5
  24. package/compose/app_bridge/SKILL.md +12 -12
  25. package/compose/app_bridge/scripts/bridge.py +15 -7
  26. package/compose/assemble.py +5 -5
  27. package/compose/bootstrap/SKILL.md +18 -18
  28. package/compose/canary.sh +4 -4
  29. package/compose/check-domains.py +6 -6
  30. package/compose/corpus-state.py +16 -1168
  31. package/compose/corpus.py +13 -402
  32. package/compose/corpus_app.py +14 -450
  33. package/compose/corpus_catalog.py +15 -926
  34. package/compose/corpus_import.py +14 -523
  35. package/compose/corpus_install.py +14 -1841
  36. package/compose/corpus_session.py +16 -848
  37. package/compose/corpus_setup.py +16 -670
  38. package/compose/corpus_setup_cli.py +15 -577
  39. package/compose/corpus_setup_i18n.py +20 -318
  40. package/compose/corpus_setup_ui.py +18 -631
  41. package/compose/corpus_store.py +16 -1621
  42. package/compose/corpus_transaction.py +15 -284
  43. package/compose/corpus_ui.py +17 -972
  44. package/compose/corpus_ui_runtime.py +16 -274
  45. package/compose/corpus_understand.py +13 -520
  46. package/compose/domains.json +2 -1
  47. package/compose/instructions-state.py +1175 -0
  48. package/compose/instructions.py +409 -0
  49. package/compose/instructions_app.py +464 -0
  50. package/compose/instructions_catalog.py +931 -0
  51. package/compose/instructions_import.py +529 -0
  52. package/compose/instructions_install.py +1866 -0
  53. package/compose/instructions_session.py +852 -0
  54. package/compose/instructions_setup.py +676 -0
  55. package/compose/instructions_setup_cli.py +586 -0
  56. package/compose/instructions_setup_i18n.py +324 -0
  57. package/compose/instructions_setup_ui.py +647 -0
  58. package/compose/instructions_store.py +1668 -0
  59. package/compose/instructions_transaction.py +306 -0
  60. package/compose/instructions_ui.py +975 -0
  61. package/compose/instructions_ui_runtime.py +278 -0
  62. package/compose/instructions_understand.py +678 -0
  63. package/compose/register-hooks.py +1 -1
  64. package/compose/setup/START.md +24 -13
  65. package/docs/advanced-launch.md +11 -11
  66. package/docs/instructions-compatibility.md +86 -0
  67. package/docs/{corpus.md → instructions.md} +35 -8
  68. package/docs/recovery.md +8 -8
  69. package/docs/releases/0.19.2.md +38 -0
  70. package/docs/session-model.md +23 -20
  71. package/docs/setup.md +42 -25
  72. package/docs/understand.md +57 -9
  73. package/install.sh +70 -69
  74. package/launch/agent-launch.py +306 -295
  75. package/launch/agent-launch.toml +2 -2
  76. package/launch/i18n/en.toml +55 -55
  77. package/launch/i18n/ja.toml +56 -56
  78. package/launch/i18n/ko.toml +56 -56
  79. package/launch/shell_integration.py +4 -4
  80. package/learn/collect-learning.py +10 -10
  81. package/learn/learning.schema.json +1 -1
  82. package/learn/migrate-learnings.py +51 -51
  83. package/package.json +27 -11
  84. package/provenance.json +1 -1
  85. /package/docs/assets/{corpus-studio.svg → instructions-studio.svg} +0 -0
package/docs/setup.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Setup, app connection, and personal instructions
2
2
 
3
- [← Overview](../README.md) · [Corpus](corpus.md) · [Sessions](session-model.md) · [Recovery](recovery.md)
3
+ [← Overview](../README.md) · [Instructions](instructions.md) · [Sessions](session-model.md) · [Recovery](recovery.md)
4
4
 
5
5
  Install `agent-bios@0.19.0` through the [README quick start](../README.md#quick-start)
6
6
  to use the guided installer, conversation setup, app bridge and instruction import.
@@ -43,24 +43,33 @@ For the source alternative, obtain the repository through its Code menu and run
43
43
  `install` and `onboard` open the wizard by default. After the language choice,
44
44
  four stages collect the choices:
45
45
 
46
- 1. **Corpus:** no active corpus, all available corpus, selected packages/domains,
47
- or saved policy on an existing installation. App registration is optional.
46
+ 1. **Instructions:** no active instructions, all available instructions, selected packages/domains,
47
+ or saved policy on an existing installation. **Connect to the Codex app** is
48
+ an independent option for adding `$agent-bios` to app conversations.
48
49
  2. **Personal instructions:** optionally add project folders and select detected
49
- global/project instruction files for capture. This is independent of corpus use.
50
- 3. **Dependencies:** inspect the full inventory and select supported installation
51
- recipes. Leaving them unselected installs none.
50
+ global/project instruction files for capture. This is independent of instructions use.
51
+ 3. **Dependencies:** inspect the full inventory. Ready dependencies are checked
52
+ and cannot be toggled; only missing dependencies with a supported recipe can
53
+ be selected for installation. Leaving those unselected installs none.
52
54
  4. **Review:** inspect the effects and, when useful, expand exact commands and
53
55
  paths before Apply.
54
56
 
55
- The fresh wizard starts with no active corpus. Reinstalling keeps saved choices
56
- unless you change them. No active corpus retains the library privately but delivers
57
- no corpus instruction text or management bootstrap. Explicit selected mode includes
57
+ The fresh wizard starts with no active instructions. Reinstalling keeps saved choices
58
+ unless you change them. Selecting **No active instructions** retains the library privately but delivers
59
+ no agent-bios instruction text or management bootstrap. Explicit selected mode includes
58
60
  only its targets within applicable host/project scope; it does not add unrelated
59
61
  enabled items or implicit core content.
60
62
 
61
- The installer, launcher and Corpus Studio use a verified UI bundle without downloading or installing
63
+ Personal instructions and host learning records already on this device appear in
64
+ a separate checked, read-only list with stored item counts. These entries describe
65
+ retained content across project scopes, not the active instructions policy or new installation
66
+ choices. Selecting **No active instructions** preserves them. Use Instructions Studio for personal content and
67
+ selection changes; merely displaying stored content does not activate it. The list
68
+ can also show retained content after private runtime removal.
69
+
70
+ The installer, launcher and Instructions Studio use a verified UI bundle without downloading or installing
62
71
  Textual. Its extraction is temporary and removed on exit. Missing or damaged
63
- bundled UI fails explicitly. Language changes presentation, not corpus text,
72
+ bundled UI fails explicitly. Language changes presentation, not instructions text,
64
73
  identifiers or host settings.
65
74
 
66
75
  Back preserves your choices. Cancelling before Apply performs no planned setup
@@ -72,8 +81,8 @@ before retrying rather than assuming everything rolled back.
72
81
  Selection flags seed the wizard; they do not skip it:
73
82
 
74
83
  ```bash
75
- agent-bios install --corpus none
76
- agent-bios install --corpus selected --select '@agent-bios/core/builder-base'
84
+ agent-bios install --instructions none
85
+ agent-bios install --instructions selected --select '@agent-bios/core/builder-base'
77
86
  agent-bios install --dry-run
78
87
  ```
79
88
 
@@ -81,15 +90,15 @@ agent-bios install --dry-run
81
90
  machine route. Direct storage-only examples are:
82
91
 
83
92
  ```bash
84
- agent-bios install --non-interactive --corpus none
85
- agent-bios install --non-interactive --corpus all
86
- agent-bios install --non-interactive --corpus selected --select '@agent-bios/core/builder-base'
93
+ agent-bios install --non-interactive --instructions none
94
+ agent-bios install --non-interactive --instructions all
95
+ agent-bios install --non-interactive --instructions selected --select '@agent-bios/core/builder-base'
87
96
  ```
88
97
 
89
98
  Those direct commands do not collect dependency, app or import choices. Use the
90
99
  shared conversation protocol below for a complete machine setup plan. The legacy
91
100
  `--domains` flag requires `--non-interactive` and retains its implicit core/infra
92
- meaning; `--domains none` is different from `--corpus none`.
101
+ meaning; `--domains none` is different from `--instructions none`.
93
102
 
94
103
  ## Setup through conversation or automation
95
104
 
@@ -110,11 +119,19 @@ agent-bios setup resume --review-id REVIEW_ID
110
119
  `start` returns the supported languages, execution target and guide without
111
120
  dependency probes or private setup writes. Choose the language before `inspect`.
112
121
  The agent produces the six choice fields from your answers and saves the entire
113
- engine-issued review. It shows the selected commands, destinations, corpus policy,
122
+ engine-issued review. It shows the selected commands, destinations, instructions policy,
114
123
  app change and capture sources before applying authorized effects. The engine
115
124
  rejects a changed source, environment, plan or state; `--yes` alone is not evidence
116
125
  that the effects were reviewed.
117
126
 
127
+ Dependency readiness and installation intent are separate: an already available
128
+ dependency never belongs in the requested `dependencies` list or new install actions.
129
+ The separate `retained_corpus` inventory contains `{target, label, item_count}` rows,
130
+ with localized labels in `display.retained_corpus`, and no instruction bodies. These
131
+ serialized names remain for [compatibility](instructions-compatibility.md). Source
132
+ package choices and the selected activation policy remain independent of that storage
133
+ view; retained entries are not added to `targets` by being displayed.
134
+
118
135
  Status and resume are read-only. An old completed receipt describes that attempt;
119
136
  current runtime/helper readiness is reported separately. A running operation can
120
137
  defer readiness checks and return null fields while still showing recorded progress.
@@ -123,9 +140,9 @@ it does not replay uncertain operations. The agent follows the full procedure in
123
140
  [START.md](../compose/setup/START.md), including exact review preservation and verified
124
141
  entrypoint handoff. Source and reviewed artifacts remain available for recovery.
125
142
 
126
- ## Use corpus in a Codex app task
143
+ ## Use instructions in a Codex app task
127
144
 
128
- Choose app registration during setup, or explicitly run:
145
+ Choose **Connect to the Codex app** during setup, or explicitly run:
129
146
 
130
147
  ```bash
131
148
  agent-bios app register --dry-run
@@ -139,7 +156,7 @@ entry is preserved. Registration on disk does not prove the app discovered it;
139
156
  setup can return a usable helper path to continue before discovery refreshes.
140
157
 
141
158
  Once discovered, use `$agent-bios` in the chosen task. Ask it to manage the library,
142
- change setup, show task status, or explicitly use selected corpus in this task.
159
+ change setup, show task status, or explicitly use selected instructions in this task.
143
160
  A setup or management request does not activate content. Each task starts with
144
161
  managed delivery off and requires its own explicit use.
145
162
 
@@ -149,13 +166,13 @@ Use previews a `ContentRef` and then returns the exact snapshot's
149
166
  Session operations require the real task ID, normally `CODEX_THREAD_ID`. Setup and
150
167
  management do not require that ID. App use enables no hooks, agents or permissions.
151
168
 
152
- Ask `$agent-bios` to turn corpus delivery off to stop consulting it in subsequent
169
+ Ask `$agent-bios` to turn instructions delivery off to stop consulting it in subsequent
153
170
  work. Text already returned cannot be erased; a fresh task is needed for clean
154
171
  exclusion. A resumed or forked conversation can carry earlier content independently
155
172
  of the new task's receipt. Native global/project instructions still follow host rules.
156
173
 
157
174
  `agent-bios app unregister` removes only the owned discovery link. It does not erase
158
- prior task context or personal corpus data. Corpus Studio can also run in the app's
175
+ prior task context or personal instructions data. Instructions Studio can also run in the app's
159
176
  integrated terminal; editing it changes future snapshots, not current task context.
160
177
 
161
178
  ## Import existing instructions
@@ -174,14 +191,14 @@ agent-bios import apply PLAN_ID --expected-revision REV --json
174
191
  Discovery checks known global locations and fixed filenames in chosen project
175
192
  roots. It does not crawl the home directory or follow instruction references.
176
193
  Capture preserves originals and stores redacted evidence with source digests
177
- privately. It is pending review, not an automatically optimized personal corpus.
194
+ privately. It is pending review, not an automatically optimized personal instructions.
178
195
 
179
196
  In an app task, ask `$agent-bios` to review the returned capture ID. The agent
180
197
  proposes content, `always`/`relevant`/`requested` placement, rationale, and source-line
181
198
  coverage or exclusions. The runtime checks the evidence and structure, and Apply
182
199
  requires the reviewed revision. Changed originals or conflicting edits require
183
200
  fresh review. Project-scoped imports remain limited to their recorded root and
184
- applicable hosts, even when all corpus or an enable override is selected.
201
+ applicable hosts, even when all instructions or an enable override is selected.
185
202
 
186
203
  Native hosts may still read the untouched originals. Importing a procedure as
187
204
  requested content does not suppress the same rule in a native file, and changing
@@ -1,8 +1,8 @@
1
- # Understand why the corpus works this way
1
+ # Understand why the instructions work this way
2
2
 
3
- [← Overview](../README.md) · [Setup](setup.md) · [Corpus](corpus.md) · [Sessions](session-model.md) · [Recovery](recovery.md) · [Launch](advanced-launch.md) · [Understand!](understand.md)
3
+ [← Overview](../README.md) · [Setup](setup.md) · [Instructions](instructions.md) · [Sessions](session-model.md) · [Recovery](recovery.md) · [Launch](advanced-launch.md) · [Understand!](understand.md)
4
4
 
5
- Understand! is learning for the person using the corpus, not model training. It explores reasons and limits through a conversation rather than asking you to memorize files.
5
+ Understand! is learning for the person using the instructions, not model training. It explores reasons and limits through a conversation rather than asking you to memorize files.
6
6
 
7
7
  ## Start a learning session
8
8
 
@@ -16,14 +16,57 @@ agent-launch --understand core-purpose claude # or codex
16
16
 
17
17
  The selection is a coherent bundle, not an individual file: core groups cover goals
18
18
  and scope, decision support, adaptation, evidence/safety, and retained learning;
19
- domain and personal bundles come from the effective corpus. A session freezes its
19
+ domain and personal bundles come from the effective instructions. A session freezes its
20
20
  selected source references and edited content. The tutor explains the purpose,
21
21
  background, mechanisms, tradeoffs, and limits, distinguishing documented rationale
22
- from inference. Each active learning turn ends with one goal-relevant question and
23
- waits for the user. Incidental ambiguity does not force a detour; pause and stop
24
- requests end the questioning. `understand!` also works through the shared skill in
22
+ from inference. The tutor chooses a small finite set of core points and tracks their
23
+ coverage and question counts. It uses fewer questions when understanding is sufficient,
24
+ with at most 10 tutor questions per source bullet including all followups and
25
+ clarifications. Ten is a ceiling, not a target. At the limit it explains remaining
26
+ gaps instead of extending the quiz. Supporting guides supply context, not a list of
27
+ implementation details to examine one by one.
28
+
29
+ Questions are optional when explaining, answering or summarizing. Once the core
30
+ points are covered, the tutor summarizes and ends without a compulsory followup.
31
+ If it asks a useful question, it waits for your answer. Pause and stop requests end
32
+ the questioning immediately. This is the tutoring contract; the runtime does not
33
+ claim to measure understanding or independently count semantic questions.
34
+ `understand!` also works through the shared skill in
25
35
  an activated session. Learning excerpts are data, not permission to run their commands.
26
36
 
37
+ ## Read pinned material in bounded pages
38
+
39
+ Startup contains a small tutoring prompt, not the full source bundle. `show` gives
40
+ bundle metadata, and `start`/`session` return a compact entry with the pinned source
41
+ reference. The full source stays in private session storage. Read it on demand:
42
+
43
+ ```bash
44
+ agent-bios understand read SESSION
45
+ agent-bios understand read SESSION --ref '@agent-bios/core:rule-004'
46
+ agent-bios understand read SESSION --ref REF --member MEMBER --offset NEXT --expected-sha256 DIGEST
47
+ ```
48
+
49
+ Without `--ref`, the reader pages a manifest of items and member names without their
50
+ bodies. With a reference it reads the exact effective body, or the named member.
51
+ Each response includes `text`, `source_ref`, `resource_sha256`, `total_bytes`,
52
+ `next_offset` and `eof`. Follow offsets until the needed resource is complete;
53
+ partial output is never a complete-source claim. Offsets count UTF-8 bytes and stay
54
+ on character boundaries, including for a large guide written on one line.
55
+
56
+ `--limit-bytes` accepts 256–16384 bytes, default 8192. The entire JSON response,
57
+ including escaping and metadata, is capped at 32768 bytes. Transcript inspection
58
+ through `turns SESSION` uses the same page format; later transcript pages require
59
+ the preceding digest and restart if the transcript changed. All prior assistant
60
+ turns must still be reviewed before proposing a discovery.
61
+
62
+ Existing pinned sessions and older full-bundle prompt files are not rewritten.
63
+ Use `session SESSION` for the current compact entry and the reader for their exact
64
+ retained source. This does not erase earlier instructions from an already running
65
+ conversation. A resumed old host still needs the current reader and tutoring skill
66
+ to follow this workflow.
67
+
68
+ ## Personal discoveries
69
+
27
70
  A meaningful flaw or alternative first introduced by the user can unlock a persistent
28
71
  pixel trophy. Tutor-originated ideas, leading hints, and echoes do not qualify. The
29
72
  discovery flow binds the native human session, checks recorded turn provenance and
@@ -31,10 +74,15 @@ ordering, and asks for a later exact save confirmation. Unsupported provenance l
31
74
  the award pending, without blocking learning. Significance and semantic originality
32
75
  remain explicit tutor/user judgments; transcript validation does not prove them or
33
76
  authenticate against an owner who can edit local files. Only a successfully saved
34
- requested-only personal corpus note can unlock the trophy. The CLI prints it, and the
77
+ requested-only personal instructions note can unlock the trophy. The CLI prints it, and the
35
78
  TUI shows it when there is room. Retries do not duplicate the note; updates and note
36
79
  deletion retain the trophy. Full reset archives the active unlock generation and clears
37
80
  the display; older discovery records cannot reactivate it. Native global files and
38
- corpus source rules are not rewritten by learning.
81
+ instructions source rules are not rewritten by learning.
82
+
83
+ The runtime checks a new proposal's complete review-response size before storing
84
+ its candidate. An oversized proposal can be shortened and retried without leaving
85
+ an unreachable candidate; required provenance IDs must remain complete. Award
86
+ responses contain a compact receipt, so the saved note body is not echoed in full.
39
87
 
40
88
  Turning an item off for ordinary activated sessions does not remove it from the learning library. On/off preferences and the inventory read revision are not learning content, so they do not repin otherwise unchanged learning bundles.