agentdir-cli 0.7.8__tar.gz → 0.8.0__tar.gz

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 (99) hide show
  1. {agentdir_cli-0.7.8/src/agentdir_cli.egg-info → agentdir_cli-0.8.0}/PKG-INFO +92 -7
  2. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/README.md +91 -6
  3. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/PI_PACKAGE.md +2 -2
  4. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/RELEASING.md +43 -14
  5. agentdir_cli-0.8.0/docs/releases/v0.8.0.md +125 -0
  6. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/package.json +2 -2
  7. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/pyproject.toml +1 -1
  8. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/scripts/install.sh +1 -1
  9. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/scripts/rollback.sh +1 -1
  10. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/skills/agentdir/SKILL.md +18 -0
  11. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/__init__.py +1 -1
  12. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/audit.py +226 -8
  13. agentdir_cli-0.8.0/src/agentdir/claims.py +154 -0
  14. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/cli.py +83 -8
  15. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/control.py +20 -6
  16. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/doctor.py +60 -3
  17. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/envelope.py +20 -1
  18. agentdir_cli-0.8.0/src/agentdir/git.py +93 -0
  19. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/index.py +3 -3
  20. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/rendering.py +11 -1
  21. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/secrets.py +2 -2
  22. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/sessions.py +80 -11
  23. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/skills.py +19 -1
  24. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/store.py +39 -13
  25. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0/src/agentdir_cli.egg-info}/PKG-INFO +92 -7
  26. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/SOURCES.txt +7 -1
  27. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_agent_first.py +1 -1
  28. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_audit.py +100 -0
  29. agentdir_cli-0.8.0/tests/test_claim_polarity.py +141 -0
  30. agentdir_cli-0.8.0/tests/test_header_folding.py +87 -0
  31. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_pi_package.py +2 -2
  32. agentdir_cli-0.8.0/tests/test_structured_claims.py +179 -0
  33. agentdir_cli-0.8.0/tests/test_worktrees.py +138 -0
  34. agentdir_cli-0.7.8/src/agentdir/git.py +0 -45
  35. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/LICENSE +0 -0
  36. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/MANIFEST.in +0 -0
  37. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/AGENTIC_CODING.md +0 -0
  38. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/DEMO.md +0 -0
  39. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/INSTALL.md +0 -0
  40. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/PRD.md +0 -0
  41. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/TECH_BRIEF.md +0 -0
  42. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/assets/agentdir-overview.png +0 -0
  43. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/investigations/2026-05-12-cross-repo-ergonomics-lanes.md +0 -0
  44. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/investigations/2026-05-12-rag-vector-scenarios.md +0 -0
  45. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.1.0.md +0 -0
  46. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.1.1.md +0 -0
  47. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.2.0.md +0 -0
  48. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.3.0.md +0 -0
  49. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.3.1.md +0 -0
  50. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.3.2.md +0 -0
  51. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.3.3.md +0 -0
  52. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.3.4.md +0 -0
  53. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.4.0.md +0 -0
  54. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.5.0.md +0 -0
  55. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.5.1.md +0 -0
  56. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.5.2.md +0 -0
  57. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.5.3.md +0 -0
  58. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.6.0.md +0 -0
  59. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.0.md +0 -0
  60. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.1.md +0 -0
  61. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.2.md +0 -0
  62. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.3.md +0 -0
  63. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.4.md +0 -0
  64. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.5.md +0 -0
  65. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.6.md +0 -0
  66. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.7.md +0 -0
  67. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/docs/releases/v0.7.8.md +0 -0
  68. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/examples/dogfood-session.sh +0 -0
  69. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/setup.cfg +0 -0
  70. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/__main__.py +0 -0
  71. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/actors.py +0 -0
  72. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/artifacts.py +0 -0
  73. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/capture.py +0 -0
  74. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/context.py +0 -0
  75. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/daemon.py +0 -0
  76. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/environment.py +0 -0
  77. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/events.py +0 -0
  78. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/federation.py +0 -0
  79. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/fsutil.py +0 -0
  80. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/gitignore.py +0 -0
  81. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/hooks.py +0 -0
  82. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/mailbox.py +0 -0
  83. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/memory.py +0 -0
  84. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/query.py +0 -0
  85. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/redaction.py +0 -0
  86. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/replay.py +0 -0
  87. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/retention.py +0 -0
  88. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/review.py +0 -0
  89. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir/upgrade.py +0 -0
  90. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/dependency_links.txt +0 -0
  91. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/entry_points.txt +0 -0
  92. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/requires.txt +0 -0
  93. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/top_level.txt +0 -0
  94. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_agent_trust.py +0 -0
  95. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_environment.py +0 -0
  96. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_install_script.py +0 -0
  97. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_truncation.py +0 -0
  98. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_v1_behavior.py +0 -0
  99. {agentdir_cli-0.7.8 → agentdir_cli-0.8.0}/tests/test_vector_memory.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentdir-cli
3
- Version: 0.7.8
3
+ Version: 0.8.0
4
4
  Summary: Local-first Maildir-inspired work mailstore for software agents
5
5
  Author: AgentDir Contributors
6
6
  License-Expression: MIT
@@ -34,13 +34,17 @@ Dynamic: license-file
34
34
  # AgentDir
35
35
 
36
36
  <p align="center">
37
- <img src="https://raw.githubusercontent.com/jstxn/agentdir/main/docs/assets/agentdir-overview.png" alt="AgentDir turns agent work into a saved trail, searchable memory, and proof for engineers." />
37
+ <img src="docs/assets/agentdir-agent-trace-demo.gif" alt="AgentDir records observable agent reasoning artifacts, tool calls, evidence, and handoffs across Codex, Claude, Pi, and other coding agents." />
38
38
  </p>
39
39
 
40
40
  <p align="center">
41
41
  <strong>Local-first memory and evidence for agentic engineering.</strong>
42
42
  </p>
43
43
 
44
+ <p align="center">
45
+ <a href="https://github.com/jstxn/agentdir/actions/workflows/ci.yml"><img src="https://github.com/jstxn/agentdir/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
46
+ </p>
47
+
44
48
  AgentDir is a flight recorder for coding agents. It lets agents record what
45
49
  happened during a software task, then gives engineers a clean way to inspect,
46
50
  replay, search, and audit that work later.
@@ -156,7 +160,7 @@ available automatically during coding tasks:
156
160
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
157
161
 
158
162
  ```bash
159
- pi install npm:@jstxn/agentdir-pi@0.7.8
163
+ pi install npm:@jstxn/agentdir-pi@0.8.0
160
164
  # or install directly from a local checkout / release tag:
161
165
  pi install /absolute/path/to/agentdir
162
166
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -261,6 +265,26 @@ directory is `.git/hooks` by default and follows `core.hooksPath` or linked
261
265
  worktree configuration. In rulesync repos, the source rule replaces the listed
262
266
  project guidance files as the managed source of truth.
263
267
 
268
+ ## Git Worktrees
269
+
270
+ A repository has one store, shared by every `git worktree` checkout. Commands
271
+ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
272
+ evidence and memory from all worktrees stay searchable together instead of
273
+ fragmenting into one store per branch.
274
+
275
+ Each worktree still keeps its own active session, so parallel agents in
276
+ different worktrees do not overwrite each other.
277
+
278
+ Two cases keep a store inside the worktree instead:
279
+
280
+ ```bash
281
+ # a store already present in the worktree always wins
282
+ AGENTDIR_WORKTREE_STORE=local agentdir adopt # or opt out explicitly
283
+ ```
284
+
285
+ `agentdir doctor` warns when a worktree holds a store separate from the main
286
+ one and names the command that joins them for search.
287
+
264
288
  ## Inspect A Session
265
289
 
266
290
  Most users will not need these commands every day, but they are the reason
@@ -279,7 +303,8 @@ For final-answer support:
279
303
 
280
304
  ```bash
281
305
  agentdir audit session
282
- agentdir audit claims --text final-response.md
306
+ agentdir audit claims # recorded structured claims
307
+ agentdir audit claims --text final-response.md # prose, when not instrumented
283
308
  ```
284
309
 
285
310
  Audits are advisory by default. Use `--strict` when unsupported or contradicted
@@ -328,9 +353,44 @@ gaps, and recommended next agent actions.
328
353
 
329
354
  ### Claims-To-Evidence Checks
330
355
 
331
- AgentDir can compare final-response claims such as "tests passed" or "build
332
- passed" against the latest recorded tool results. It does this with
333
- deterministic heuristics, not an LLM.
356
+ Agents record what a check showed, and AgentDir compares that against the
357
+ recorded tool results. It does this deterministically, not with an LLM.
358
+
359
+ ```bash
360
+ agentdir claim test --passed
361
+ agentdir claim build --failed --note "linker error in release profile"
362
+ agentdir claim list
363
+ agentdir audit claims # checks recorded claims against evidence
364
+ agentdir audit claims --strict # exit 1 when a claim is not supported
365
+ ```
366
+
367
+ A structured claim names its family and outcome outright, so checking it is a
368
+ comparison rather than an interpretation of prose:
369
+
370
+ | Claim | Evidence | Result |
371
+ | --- | --- | --- |
372
+ | passed | succeeded | `supported` |
373
+ | passed | failed | `contradicted` |
374
+ | failed | failed | `acknowledged` |
375
+ | failed | succeeded | `contradicted` |
376
+ | either | none recorded | `unsupported` |
377
+ | none recorded | failed | `unreviewed` |
378
+
379
+ Recording a family again replaces its earlier claim, so a check re-run after a
380
+ fix supersedes rather than accumulates. Claiming a failure honestly is
381
+ `acknowledged` and does not count against the audit.
382
+
383
+ A claim made in error can be withdrawn:
384
+
385
+ ```bash
386
+ agentdir claim build --retract
387
+ ```
388
+
389
+ Claims are append-only events, so retracting supersedes the earlier claim in the
390
+ latest-claim view while leaving both in the record.
391
+
392
+ Recorded claims also reach the `agent_handoff` object without any final text
393
+ being supplied.
334
394
 
335
395
  Supported claim families:
336
396
 
@@ -341,6 +401,31 @@ Supported claim families:
341
401
  - doctor
342
402
  - release
343
403
 
404
+ #### Auditing prose instead
405
+
406
+ For final responses that were not instrumented, `agentdir audit claims --text`
407
+ reads claims out of prose:
408
+
409
+ ```bash
410
+ agentdir audit claims --text final-response.md
411
+ ```
412
+
413
+ This path has to infer intent from wording, so prefer recorded claims when the
414
+ agent can emit them.
415
+
416
+ Claim detection is keyword-based, so ordinary phrasing such as "everything
417
+ works" or "verified locally" matches no family. When recorded evidence failed
418
+ and the text makes no checkable claim about it, the audit reports that family as
419
+ `unreviewed` and is not `ok`, rather than passing because it found nothing to
420
+ check. `claims_detected` reports how many claims were actually parsed, so
421
+ "nothing to audit" is never mistaken for "audited and clean".
422
+
423
+ Text that states the failure instead ("tests failed", "two tests fail") is
424
+ reported as `acknowledged` and does not count against the audit, so honest
425
+ failure reporting is never flagged like text that hid the failure. Failure
426
+ vocabulary asserting success ("no test failures") is treated as a success claim
427
+ and checked against evidence like any other.
428
+
344
429
  ### Context Packs
345
430
 
346
431
  Agents can package retrieved context into auditable source manifests:
@@ -1,13 +1,17 @@
1
1
  # AgentDir
2
2
 
3
3
  <p align="center">
4
- <img src="https://raw.githubusercontent.com/jstxn/agentdir/main/docs/assets/agentdir-overview.png" alt="AgentDir turns agent work into a saved trail, searchable memory, and proof for engineers." />
4
+ <img src="docs/assets/agentdir-agent-trace-demo.gif" alt="AgentDir records observable agent reasoning artifacts, tool calls, evidence, and handoffs across Codex, Claude, Pi, and other coding agents." />
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
8
  <strong>Local-first memory and evidence for agentic engineering.</strong>
9
9
  </p>
10
10
 
11
+ <p align="center">
12
+ <a href="https://github.com/jstxn/agentdir/actions/workflows/ci.yml"><img src="https://github.com/jstxn/agentdir/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
13
+ </p>
14
+
11
15
  AgentDir is a flight recorder for coding agents. It lets agents record what
12
16
  happened during a software task, then gives engineers a clean way to inspect,
13
17
  replay, search, and audit that work later.
@@ -123,7 +127,7 @@ available automatically during coding tasks:
123
127
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
124
128
 
125
129
  ```bash
126
- pi install npm:@jstxn/agentdir-pi@0.7.8
130
+ pi install npm:@jstxn/agentdir-pi@0.8.0
127
131
  # or install directly from a local checkout / release tag:
128
132
  pi install /absolute/path/to/agentdir
129
133
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -228,6 +232,26 @@ directory is `.git/hooks` by default and follows `core.hooksPath` or linked
228
232
  worktree configuration. In rulesync repos, the source rule replaces the listed
229
233
  project guidance files as the managed source of truth.
230
234
 
235
+ ## Git Worktrees
236
+
237
+ A repository has one store, shared by every `git worktree` checkout. Commands
238
+ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
239
+ evidence and memory from all worktrees stay searchable together instead of
240
+ fragmenting into one store per branch.
241
+
242
+ Each worktree still keeps its own active session, so parallel agents in
243
+ different worktrees do not overwrite each other.
244
+
245
+ Two cases keep a store inside the worktree instead:
246
+
247
+ ```bash
248
+ # a store already present in the worktree always wins
249
+ AGENTDIR_WORKTREE_STORE=local agentdir adopt # or opt out explicitly
250
+ ```
251
+
252
+ `agentdir doctor` warns when a worktree holds a store separate from the main
253
+ one and names the command that joins them for search.
254
+
231
255
  ## Inspect A Session
232
256
 
233
257
  Most users will not need these commands every day, but they are the reason
@@ -246,7 +270,8 @@ For final-answer support:
246
270
 
247
271
  ```bash
248
272
  agentdir audit session
249
- agentdir audit claims --text final-response.md
273
+ agentdir audit claims # recorded structured claims
274
+ agentdir audit claims --text final-response.md # prose, when not instrumented
250
275
  ```
251
276
 
252
277
  Audits are advisory by default. Use `--strict` when unsupported or contradicted
@@ -295,9 +320,44 @@ gaps, and recommended next agent actions.
295
320
 
296
321
  ### Claims-To-Evidence Checks
297
322
 
298
- AgentDir can compare final-response claims such as "tests passed" or "build
299
- passed" against the latest recorded tool results. It does this with
300
- deterministic heuristics, not an LLM.
323
+ Agents record what a check showed, and AgentDir compares that against the
324
+ recorded tool results. It does this deterministically, not with an LLM.
325
+
326
+ ```bash
327
+ agentdir claim test --passed
328
+ agentdir claim build --failed --note "linker error in release profile"
329
+ agentdir claim list
330
+ agentdir audit claims # checks recorded claims against evidence
331
+ agentdir audit claims --strict # exit 1 when a claim is not supported
332
+ ```
333
+
334
+ A structured claim names its family and outcome outright, so checking it is a
335
+ comparison rather than an interpretation of prose:
336
+
337
+ | Claim | Evidence | Result |
338
+ | --- | --- | --- |
339
+ | passed | succeeded | `supported` |
340
+ | passed | failed | `contradicted` |
341
+ | failed | failed | `acknowledged` |
342
+ | failed | succeeded | `contradicted` |
343
+ | either | none recorded | `unsupported` |
344
+ | none recorded | failed | `unreviewed` |
345
+
346
+ Recording a family again replaces its earlier claim, so a check re-run after a
347
+ fix supersedes rather than accumulates. Claiming a failure honestly is
348
+ `acknowledged` and does not count against the audit.
349
+
350
+ A claim made in error can be withdrawn:
351
+
352
+ ```bash
353
+ agentdir claim build --retract
354
+ ```
355
+
356
+ Claims are append-only events, so retracting supersedes the earlier claim in the
357
+ latest-claim view while leaving both in the record.
358
+
359
+ Recorded claims also reach the `agent_handoff` object without any final text
360
+ being supplied.
301
361
 
302
362
  Supported claim families:
303
363
 
@@ -308,6 +368,31 @@ Supported claim families:
308
368
  - doctor
309
369
  - release
310
370
 
371
+ #### Auditing prose instead
372
+
373
+ For final responses that were not instrumented, `agentdir audit claims --text`
374
+ reads claims out of prose:
375
+
376
+ ```bash
377
+ agentdir audit claims --text final-response.md
378
+ ```
379
+
380
+ This path has to infer intent from wording, so prefer recorded claims when the
381
+ agent can emit them.
382
+
383
+ Claim detection is keyword-based, so ordinary phrasing such as "everything
384
+ works" or "verified locally" matches no family. When recorded evidence failed
385
+ and the text makes no checkable claim about it, the audit reports that family as
386
+ `unreviewed` and is not `ok`, rather than passing because it found nothing to
387
+ check. `claims_detected` reports how many claims were actually parsed, so
388
+ "nothing to audit" is never mistaken for "audited and clean".
389
+
390
+ Text that states the failure instead ("tests failed", "two tests fail") is
391
+ reported as `acknowledged` and does not count against the audit, so honest
392
+ failure reporting is never flagged like text that hid the failure. Failure
393
+ vocabulary asserting success ("no test failures") is treated as a success claim
394
+ and checked against evidence like any other.
395
+
311
396
  ### Context Packs
312
397
 
313
398
  Agents can package retrieved context into auditable source manifests:
@@ -36,7 +36,7 @@ pi install git:github.com/jstxn/agentdir@<tag-or-commit>
36
36
  If the npm package has been published:
37
37
 
38
38
  ```bash
39
- pi install npm:@jstxn/agentdir-pi@0.7.8
39
+ pi install npm:@jstxn/agentdir-pi@0.8.0
40
40
  ```
41
41
 
42
42
  Use `pi config` to enable or disable the bundled skill after installation.
@@ -50,7 +50,7 @@ The root `package.json` declares the Pi resources:
50
50
  "keywords": ["pi-package"],
51
51
  "pi": {
52
52
  "skills": ["./skills"],
53
- "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.7.8/docs/assets/agentdir-overview.png"
53
+ "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.8.0/docs/assets/agentdir-overview.png"
54
54
  }
55
55
  }
56
56
  ```
@@ -6,6 +6,20 @@ the importable package and CLI remain `agentdir`. PyPI publishing happens
6
6
  automatically: the `publish.yml` workflow builds and uploads to PyPI via
7
7
  trusted publishing whenever a GitHub Release is published.
8
8
 
9
+ ## Bump The Version
10
+
11
+ The version appears in several shipped files. CI fails when `pyproject.toml`,
12
+ `package.json`, `src/agentdir/__init__.py`, and `scripts/install.sh` disagree,
13
+ but the rest are not checked automatically:
14
+
15
+ - `pyproject.toml` and `src/agentdir/__init__.py`
16
+ - `package.json` (both `version` and the `pi.image` tag URL)
17
+ - `scripts/install.sh` — the release the public `curl | bash` installer
18
+ downloads. A stale value here keeps shipping the previous version.
19
+ - `scripts/rollback.sh` — set to the *previous* release
20
+ - `README.md` and `docs/PI_PACKAGE.md` Pi install lines
21
+ - `tests/test_pi_package.py` and `tests/test_agent_first.py`
22
+
9
23
  ## Preflight
10
24
 
11
25
  ```bash
@@ -31,9 +45,9 @@ chmod +x dist/rollback-agentdir.sh
31
45
  Expected assets (substitute the release version):
32
46
 
33
47
  ```text
34
- dist/agentdir_cli-0.7.8-py3-none-any.whl
35
- dist/agentdir_cli-0.7.8.tar.gz
36
- dist/jstxn-agentdir-pi-0.7.8.tgz
48
+ dist/agentdir_cli-0.8.0-py3-none-any.whl
49
+ dist/agentdir_cli-0.8.0.tar.gz
50
+ dist/jstxn-agentdir-pi-0.8.0.tgz
37
51
  dist/install-agentdir.sh
38
52
  dist/rollback-agentdir.sh
39
53
  ```
@@ -41,31 +55,46 @@ dist/rollback-agentdir.sh
41
55
  ## Tag And Release
42
56
 
43
57
  ```bash
44
- git tag -a v0.7.8 -m "Release AgentDir v0.7.8"
58
+ git tag -a v0.8.0 -m "Release AgentDir v0.8.0"
45
59
  git push origin main
46
- git push origin v0.7.8
60
+ git push origin v0.8.0
47
61
 
48
- gh release create v0.7.8 \
49
- dist/agentdir_cli-0.7.8-py3-none-any.whl \
50
- dist/agentdir_cli-0.7.8.tar.gz \
51
- dist/jstxn-agentdir-pi-0.7.8.tgz \
62
+ gh release create v0.8.0 \
63
+ dist/agentdir_cli-0.8.0-py3-none-any.whl \
64
+ dist/agentdir_cli-0.8.0.tar.gz \
65
+ dist/jstxn-agentdir-pi-0.8.0.tgz \
52
66
  dist/install-agentdir.sh \
53
67
  dist/rollback-agentdir.sh \
54
68
  --repo jstxn/agentdir \
55
- --title "AgentDir v0.7.8" \
56
- --notes-file docs/releases/v0.7.8.md
69
+ --title "AgentDir v0.8.0" \
70
+ --notes-file docs/releases/v0.8.0.md
57
71
  ```
58
72
 
59
73
  Publishing the release triggers `publish.yml`, which rebuilds the sdist and
60
74
  wheel from the tag and uploads them to PyPI as `agentdir-cli`.
61
75
 
76
+ ## Publish The Pi Package
77
+
78
+ PyPI is automated; npm is not. The Pi package `@jstxn/agentdir-pi` has to be
79
+ published by hand or Pi users stay on the previous version:
80
+
81
+ ```bash
82
+ npm publish --access public
83
+ ```
84
+
85
+ Confirm it landed:
86
+
87
+ ```bash
88
+ npm view @jstxn/agentdir-pi version
89
+ ```
90
+
62
91
  ## Release Verification
63
92
 
64
93
  Use a disposable environment:
65
94
 
66
95
  ```bash
67
96
  tmp="$(mktemp -d)"
68
- gh release download v0.7.8 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
97
+ gh release download v0.8.0 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
69
98
  AGENTDIR_PREFIX="$tmp/prefix" AGENTDIR_HOME="$tmp/home" bash "$tmp/install-agentdir.sh"
70
99
  "$tmp/prefix/bin/agentdir" --help
71
100
  "$tmp/prefix/bin/agentdir" --version
@@ -101,13 +130,13 @@ tmp="$(mktemp -d)"
101
130
  AGENTDIR_PREFIX="$tmp/prefix" \
102
131
  AGENTDIR_HOME="$tmp/home" \
103
132
  AGENTDIR_FORCE_VENV=1 \
104
- AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.7.8-py3-none-any.whl" \
133
+ AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.8.0-py3-none-any.whl" \
105
134
  bash dist/install-agentdir.sh
106
135
 
107
136
  AGENTDIR_PREFIX="$tmp/prefix" \
108
137
  AGENTDIR_HOME="$tmp/home" \
109
138
  AGENTDIR_FORCE_VENV=1 \
110
- bash dist/rollback-agentdir.sh v0.7.7
139
+ bash dist/rollback-agentdir.sh v0.7.8
111
140
 
112
141
  "$tmp/prefix/bin/agentdir" --help
113
142
  ```
@@ -0,0 +1,125 @@
1
+ # AgentDir v0.8.0
2
+
3
+ Fixes two ways evidence could quietly fail to mean anything, adds structured
4
+ claims, and puts the test suite under CI.
5
+
6
+ The minor version moves because `agentdir audit claims` can now report `ok=false`
7
+ on text that previously passed. See **Behaviour changes** before upgrading a
8
+ pipeline that runs it with `--strict`.
9
+
10
+ ## Fixed
11
+
12
+ ### Worktree checkouts no longer fragment the store
13
+
14
+ `git rev-parse --show-toplevel` reports the *linked* worktree, so every
15
+ `git worktree` checkout resolved to its own `.agentdir`. A repository's evidence
16
+ and memory split into one store per branch, and an agent working in a worktree
17
+ saw `memory_hits=0` while the main tree's history sat alongside it, unreachable
18
+ and unmentioned.
19
+
20
+ Linked worktrees now resolve to the main working tree's store. Each worktree
21
+ keeps its own active session, so parallel agents do not overwrite each other.
22
+
23
+ A store already present inside a worktree still wins, so nothing recorded there
24
+ is orphaned, and `AGENTDIR_WORKTREE_STORE=local` opts out. `agentdir doctor`
25
+ warns when a worktree store is separate from the main one and names the command
26
+ that joins them for search.
27
+
28
+ ### Context packs were broken on Python 3.11
29
+
30
+ A header longer than the fold width is written across continuation lines.
31
+ Python 3.12 and newer strip the continuation's leading whitespace when the value
32
+ is read back; 3.11 does not. `X-AgentDir-Blob-SHA256` is 89 characters with its
33
+ name, so it always folds, and on 3.11 every artifact lookup carried a leading
34
+ space and never matched — `Context pack manifest artifact is missing` for a blob
35
+ sitting right there.
36
+
37
+ This affected context packs, the doctor's artifact check, and the secret
38
+ scanner, on the minimum Python AgentDir declares and ships to PyPI. Header
39
+ values are now normalised when parsed.
40
+
41
+ **A store indexed by an affected 3.11 install keeps the padded values in its
42
+ SQLite sidecar.** `agentdir doctor` now warns when it finds them; run
43
+ `agentdir index rebuild` to restore them from the envelopes, which were always
44
+ correct.
45
+
46
+ ### `audit claims` no longer passes because it understood nothing
47
+
48
+ Claim detection is keyword-based, so ordinary phrasing ("everything works",
49
+ "verified locally", "no regressions") matched no family and returned
50
+ `ok=true claims=none` over recorded test failures — which reads as "audited and
51
+ clean" when the truth is "never audited".
52
+
53
+ Failed evidence the text makes no checkable claim about is now `unreviewed` and
54
+ not ok. Text that reports the failure ("tests failed") is `acknowledged` and
55
+ does not count against the audit, so honest failure reporting is not flagged
56
+ like text that hid the failure. Failure vocabulary asserting success ("no test
57
+ failures") is treated as a success claim and checked like any other.
58
+
59
+ ### `status` and `doctor` printed everything twice
60
+
61
+ The recording console had no output sink, so rich wrote each table to stdout as
62
+ well as recording it, and the caller printed the exported copy.
63
+
64
+ ## Added
65
+
66
+ ### Structured claims
67
+
68
+ ```bash
69
+ agentdir claim test --passed
70
+ agentdir claim build --failed --note "linker error in release profile"
71
+ agentdir claim list
72
+ agentdir audit claims # compares recorded claims against evidence
73
+ ```
74
+
75
+ A recorded claim names its family and outcome outright, so checking it is a
76
+ comparison rather than an interpretation of prose:
77
+
78
+ | Claim | Evidence | Result |
79
+ | --- | --- | --- |
80
+ | passed | succeeded | `supported` |
81
+ | passed | failed | `contradicted` |
82
+ | failed | failed | `acknowledged` |
83
+ | failed | succeeded | `contradicted` |
84
+ | either | none recorded | `unsupported` |
85
+ | none recorded | failed | `unreviewed` |
86
+
87
+ Re-recording a family replaces its earlier claim. `agentdir claim <family>
88
+ --retract` withdraws one made in error; claims are append-only events, so
89
+ retraction supersedes in the latest-claim view while leaving both in the record.
90
+
91
+ Recorded claims reach the `agent_handoff` object with no final text supplied.
92
+ Prose auditing stays available as `agentdir audit claims --text <path|->`.
93
+
94
+ ### Continuous integration
95
+
96
+ The suite runs on every push and pull request across Python 3.11, 3.12 and 3.13
97
+ plus macOS, alongside checks that the distribution builds, `twine` accepts its
98
+ metadata, `package.json` and `pyproject.toml` agree on the version, and the
99
+ install scripts parse. Its first run is what surfaced the Python 3.11 bug above.
100
+
101
+ ## Behaviour changes
102
+
103
+ - **`agentdir audit claims` can now report `ok=false` where it previously
104
+ reported `ok=true`**, and `--strict` exits 1 accordingly. This is the point of
105
+ the fix, but a pipeline that runs it with `--strict` over final text may start
106
+ failing on sessions that have failed evidence the text does not mention. Record
107
+ the outcome with `agentdir claim`, or state the failing check in the text.
108
+ - `agentdir audit claims` without `--text` now audits recorded claims instead of
109
+ exiting 2 for a missing argument.
110
+ - The active-session pointer moved to
111
+ `state/workspaces/<workspace>/current-session.json`. The unscoped pointer is
112
+ still written, so downgrading to 0.7.x keeps working.
113
+ - Commands run inside a linked worktree may now resolve to a different store
114
+ than before. Set `AGENTDIR_WORKTREE_STORE=local` to keep the previous
115
+ behaviour.
116
+
117
+ ## Upgrading
118
+
119
+ ```bash
120
+ agentdir update
121
+ ```
122
+
123
+ If the repository has worktrees adopted before this release, `agentdir doctor`
124
+ reports which stores are split and how to join them. On Python 3.11, run
125
+ `agentdir index rebuild` once if doctor reports folded header values.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jstxn/agentdir-pi",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "description": "Pi package for AgentDir local-first coding-agent memory and evidence capture.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -29,6 +29,6 @@
29
29
  "skills": [
30
30
  "./skills"
31
31
  ],
32
- "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.7.8/docs/assets/agentdir-overview.png"
32
+ "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.8.0/docs/assets/agentdir-overview.png"
33
33
  }
34
34
  }
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentdir-cli"
7
- version = "0.7.8"
7
+ version = "0.8.0"
8
8
  description = "Local-first Maildir-inspired work mailstore for software agents"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- AGENTDIR_VERSION="${AGENTDIR_VERSION:-v0.7.8}"
4
+ AGENTDIR_VERSION="${AGENTDIR_VERSION:-v0.8.0}"
5
5
  AGENTDIR_REPO="${AGENTDIR_REPO:-jstxn/agentdir}"
6
6
  AGENTDIR_PACKAGE_VERSION="${AGENTDIR_VERSION#v}"
7
7
  # Releases after v0.7.4 ship the wheel under the agentdir-cli distribution
@@ -2,7 +2,7 @@
2
2
  set -euo pipefail
3
3
 
4
4
  AGENTDIR_REPO="${AGENTDIR_REPO:-jstxn/agentdir}"
5
- AGENTDIR_ROLLBACK_VERSION="${1:-${AGENTDIR_ROLLBACK_VERSION:-v0.7.7}}"
5
+ AGENTDIR_ROLLBACK_VERSION="${1:-${AGENTDIR_ROLLBACK_VERSION:-v0.7.8}}"
6
6
  AGENTDIR_TMP_DIR=""
7
7
 
8
8
  log() {
@@ -64,6 +64,20 @@ Emit important plans, blockers, diffs, review decisions, and final handoffs as i
64
64
  - Add `--json` to get a `{"success": false, "exit_code": ..., "error_code": ...}` envelope on failure; add `--quiet` for exit-code-only checks.
65
65
  - `agentdir run --session require` fails fast instead of auto-creating a session; `--session create` forces a fresh one.
66
66
 
67
+ ## Record Claims
68
+
69
+ After running a check you will rely on in the final response, record what it showed:
70
+
71
+ ```bash
72
+ agentdir claim test --passed
73
+ agentdir claim build --failed --note "linker error in release profile"
74
+ agentdir claim list
75
+ ```
76
+
77
+ Families: `test`, `lint`, `typecheck`, `build`, `doctor`, `release`. Re-recording a family replaces the earlier claim, so record again after a fix. Withdraw a claim you should not have made with `agentdir claim <family> --retract`.
78
+
79
+ `agentdir audit claims` (no `--text`) compares recorded claims against evidence, with no wording involved. A claim that overstates a result is reported `contradicted`; failed evidence with no claim about it is `unreviewed`. Claiming a failure honestly is `acknowledged` and does not count against the audit, so record failures rather than omitting them.
80
+
67
81
  ## Finish Work
68
82
 
69
83
  Before the final response, run `agentdir work finish --json` when practical. Read the `agent_handoff` object before making final verification claims.
@@ -71,3 +85,7 @@ Before the final response, run `agentdir work finish --json` when practical. Rea
71
85
  If you need to preview the final handoff without ending the active session, run `agentdir report final --format json` instead.
72
86
 
73
87
  Before claiming tests, builds, lint, typecheck, hooks, release checks, or doctor checks passed, verify the latest recorded evidence with `agentdir evidence --brief`.
88
+
89
+ `agentdir audit claims` matches claim keywords, so vague phrasing ("everything works", "verified locally") is not checkable. When evidence failed and the text claims nothing about it, the family is reported `unreviewed` and the audit is not `ok`. Name the check and its result plainly so the claim can be verified against evidence.
90
+
91
+ Reporting a failure plainly ("tests failed", "two tests still fail") is recorded as `acknowledged` and does not count against the audit. Report failing checks rather than writing around them.
@@ -1,3 +1,3 @@
1
1
  """AgentDir local agent work mailstore."""
2
2
 
3
- __version__ = "0.7.8"
3
+ __version__ = "0.8.0"