agentdir-cli 0.9.0__tar.gz → 0.10.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 (118) hide show
  1. {agentdir_cli-0.9.0/src/agentdir_cli.egg-info → agentdir_cli-0.10.0}/PKG-INFO +62 -2
  2. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/README.md +61 -1
  3. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/INSTALL.md +5 -5
  4. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/PI_PACKAGE.md +2 -2
  5. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/RELEASING.md +14 -14
  6. agentdir_cli-0.10.0/docs/investigations/2026-09-21-jev-evaluation.md +204 -0
  7. agentdir_cli-0.10.0/docs/investigations/2026-09-21-jev-integration.md +260 -0
  8. agentdir_cli-0.10.0/docs/releases/v0.10.0.md +57 -0
  9. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/package.json +2 -2
  10. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/pyproject.toml +1 -1
  11. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/scripts/install.sh +1 -1
  12. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/scripts/rollback.sh +1 -1
  13. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/__init__.py +1 -1
  14. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/cli.py +21 -1
  15. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context.py +20 -12
  16. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context_selection.py +8 -2
  17. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/control.py +3 -0
  18. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/fsutil.py +6 -4
  19. agentdir_cli-0.10.0/src/agentdir/jev.py +180 -0
  20. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/memory.py +9 -0
  21. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0/src/agentdir_cli.egg-info}/PKG-INFO +62 -2
  22. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir_cli.egg-info/SOURCES.txt +6 -0
  23. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_agent_first.py +1 -1
  24. agentdir_cli-0.10.0/tests/test_fsutil.py +21 -0
  25. agentdir_cli-0.10.0/tests/test_jev.py +220 -0
  26. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_pi_package.py +2 -2
  27. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/LICENSE +0 -0
  28. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/MANIFEST.in +0 -0
  29. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/AGENTIC_CODING.md +0 -0
  30. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/DEMO.md +0 -0
  31. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/PRD.md +0 -0
  32. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/TECH_BRIEF.md +0 -0
  33. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/assets/agentdir-overview.png +0 -0
  34. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/investigations/2026-05-12-cross-repo-ergonomics-lanes.md +0 -0
  35. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/investigations/2026-05-12-rag-vector-scenarios.md +0 -0
  36. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/investigations/2026-08-19-agentdir-read-loop-dogfood.md +0 -0
  37. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.1.0.md +0 -0
  38. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.1.1.md +0 -0
  39. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.2.0.md +0 -0
  40. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.3.0.md +0 -0
  41. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.3.1.md +0 -0
  42. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.3.2.md +0 -0
  43. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.3.3.md +0 -0
  44. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.3.4.md +0 -0
  45. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.4.0.md +0 -0
  46. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.5.0.md +0 -0
  47. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.5.1.md +0 -0
  48. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.5.2.md +0 -0
  49. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.5.3.md +0 -0
  50. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.6.0.md +0 -0
  51. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.0.md +0 -0
  52. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.1.md +0 -0
  53. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.2.md +0 -0
  54. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.3.md +0 -0
  55. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.4.md +0 -0
  56. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.5.md +0 -0
  57. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.6.md +0 -0
  58. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.7.md +0 -0
  59. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.7.8.md +0 -0
  60. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.8.0.md +0 -0
  61. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/docs/releases/v0.9.0.md +0 -0
  62. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/examples/dogfood-session.sh +0 -0
  63. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/setup.cfg +0 -0
  64. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/skills/agentdir/SKILL.md +0 -0
  65. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/__main__.py +0 -0
  66. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/actors.py +0 -0
  67. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/artifacts.py +0 -0
  68. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/audit.py +0 -0
  69. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/capture.py +0 -0
  70. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/claims.py +0 -0
  71. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context_expansion.py +0 -0
  72. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context_projection.py +0 -0
  73. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context_repository.py +0 -0
  74. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/context_review.py +0 -0
  75. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/daemon.py +0 -0
  76. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/doctor.py +0 -0
  77. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/envelope.py +0 -0
  78. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/environment.py +0 -0
  79. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/events.py +0 -0
  80. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/federation.py +0 -0
  81. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/git.py +0 -0
  82. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/gitignore.py +0 -0
  83. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/hooks.py +0 -0
  84. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/index.py +0 -0
  85. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/locking.py +0 -0
  86. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/mailbox.py +0 -0
  87. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/query.py +0 -0
  88. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/redaction.py +0 -0
  89. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/rendering.py +0 -0
  90. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/replay.py +0 -0
  91. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/retention.py +0 -0
  92. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/review.py +0 -0
  93. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/secrets.py +0 -0
  94. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/sessions.py +0 -0
  95. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/skills.py +0 -0
  96. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/store.py +0 -0
  97. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir/upgrade.py +0 -0
  98. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir_cli.egg-info/dependency_links.txt +0 -0
  99. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir_cli.egg-info/entry_points.txt +0 -0
  100. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir_cli.egg-info/requires.txt +0 -0
  101. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/src/agentdir_cli.egg-info/top_level.txt +0 -0
  102. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_agent_trust.py +0 -0
  103. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_audit.py +0 -0
  104. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_claim_polarity.py +0 -0
  105. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_context_concurrency.py +0 -0
  106. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_context_expansion.py +0 -0
  107. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_context_federation.py +0 -0
  108. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_context_protocol.py +0 -0
  109. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_context_review.py +0 -0
  110. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_environment.py +0 -0
  111. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_evidence_classification.py +0 -0
  112. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_header_folding.py +0 -0
  113. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_install_script.py +0 -0
  114. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_structured_claims.py +0 -0
  115. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_truncation.py +0 -0
  116. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_v1_behavior.py +0 -0
  117. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_vector_memory.py +0 -0
  118. {agentdir_cli-0.9.0 → agentdir_cli-0.10.0}/tests/test_worktrees.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentdir-cli
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: Local-first Maildir-inspired work mailstore for software agents
5
5
  Author: AgentDir Contributors
6
6
  License-Expression: MIT
@@ -55,6 +55,23 @@ Engineers should not have to manually start sessions, wrap commands, collect
55
55
  evidence, or maintain agent memory by hand. Once a repository is adopted, the
56
56
  agent operates AgentDir in the background and leaves behind a useful trail.
57
57
 
58
+ ## Featured: Use Jev with Your Own Key
59
+
60
+ [![Jev: Bring your own key](https://img.shields.io/badge/Jev-Bring_your_own_key-2563eb?style=flat-square)](https://docs.typesafe.ai/introduction)
61
+
62
+ Get your API key from [TypeSafe](https://console.typesafe.ai), then run this in
63
+ your project's Bash terminal:
64
+
65
+ ```bash
66
+ read -rsp "Your Jev API key: " TYPESAFE_API_KEY
67
+ printf '\n'
68
+ export TYPESAFE_API_KEY
69
+ agentdir memory reranker configure jev
70
+ ```
71
+
72
+ Launch your coding agent from that terminal. This opt-in feature sends redacted
73
+ context to Jev. [Details and limits](#optional-jev-context-filtering).
74
+
58
75
  ## Why AgentDir Exists
59
76
 
60
77
  Agentic engineering has a trust gap.
@@ -162,7 +179,7 @@ available automatically during coding tasks:
162
179
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
163
180
 
164
181
  ```bash
165
- pi install npm:@jstxn/agentdir-pi@0.9.0
182
+ pi install npm:@jstxn/agentdir-pi@0.10.0
166
183
  # or install directly from a local checkout / release tag:
167
184
  pi install /absolute/path/to/agentdir
168
185
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -542,6 +559,49 @@ store, the same `work start`, `context build`, `memory search`, and
542
559
  preserving both components in JSON output. Explicit `--retrieval` modes remain
543
560
  available for diagnostics and comparisons.
544
561
 
562
+ ### Optional Jev Context Filtering
563
+
564
+ Jev can filter and rank local context for `work start` and `context build` after
565
+ retrieval, before source diversification. It is disabled by default and needs
566
+ no extra Python dependencies. Opt in separately for each store:
567
+
568
+ ```bash
569
+ agentdir memory reranker configure jev
570
+ # Supply TYPESAFE_API_KEY (or JEV_API_KEY) through your process environment.
571
+ agentdir work start "make database migrations safe to roll back"
572
+
573
+ # Restore fully local context selection.
574
+ agentdir memory reranker configure none
575
+ ```
576
+
577
+ Enabling this sends the task (up to 2048 UTF-8 bytes) and up to 20 local
578
+ candidate passages (subject plus passage, up to 1024 bytes each) to
579
+ `https://api.typesafe.ai/v1/systemone`. Common secret patterns and the configured
580
+ API key are redacted before sending; redaction does not anonymize proprietary
581
+ material. Keys are read only from the environment, never saved in configuration;
582
+ AgentDir does not automatically load `.env` files. Review
583
+ [TypeSafe's data handling](https://docs.typesafe.ai/models) before opting in.
584
+ Federated/group context always uses local selection, even when Jev is enabled.
585
+
586
+ The evaluated `jev-1.13.0` model and relevance cutoff of 0.7 are pinned. A
587
+ successful response filters the shortlist and suppresses unscored recent
588
+ summaries, while preserving source tiers, diversity limits, original retrieval
589
+ scores, current evidence, and the agent's review requirement. Derived session
590
+ summaries are not sent for scoring. Missing credentials, request failures,
591
+ malformed responses, or the three-second worker deadline retain local selection
592
+ and report a fallback reason. There are no retries. Work-start locking stays
593
+ intact; a request may add up to the worker deadline to that locked operation.
594
+
595
+ Context JSON and persisted manifests include `reranking` metadata: status,
596
+ model, rubric version, cutoff, candidate identities and sanitized-text hashes,
597
+ scores, usage, and latency. Each surviving source also has `rerank_score`;
598
+ `memory_score` remains the original local score. Reviewing a saved pack or
599
+ rebuilding the index makes no Jev request. `memory search` and `memory explain`
600
+ continue to describe local retrieval. Jev scores are advisory and cannot verify
601
+ evidence or mark a source read, used, or cited. The
602
+ [synthetic evaluation](docs/investigations/2026-09-21-jev-evaluation.md) motivates
603
+ this opt-in feature; validation on real session history is still needed.
604
+
545
605
  ### Federated Memory
546
606
 
547
607
  For multi-repo work, AgentDir can search explicitly registered roots:
@@ -22,6 +22,23 @@ Engineers should not have to manually start sessions, wrap commands, collect
22
22
  evidence, or maintain agent memory by hand. Once a repository is adopted, the
23
23
  agent operates AgentDir in the background and leaves behind a useful trail.
24
24
 
25
+ ## Featured: Use Jev with Your Own Key
26
+
27
+ [![Jev: Bring your own key](https://img.shields.io/badge/Jev-Bring_your_own_key-2563eb?style=flat-square)](https://docs.typesafe.ai/introduction)
28
+
29
+ Get your API key from [TypeSafe](https://console.typesafe.ai), then run this in
30
+ your project's Bash terminal:
31
+
32
+ ```bash
33
+ read -rsp "Your Jev API key: " TYPESAFE_API_KEY
34
+ printf '\n'
35
+ export TYPESAFE_API_KEY
36
+ agentdir memory reranker configure jev
37
+ ```
38
+
39
+ Launch your coding agent from that terminal. This opt-in feature sends redacted
40
+ context to Jev. [Details and limits](#optional-jev-context-filtering).
41
+
25
42
  ## Why AgentDir Exists
26
43
 
27
44
  Agentic engineering has a trust gap.
@@ -129,7 +146,7 @@ available automatically during coding tasks:
129
146
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
130
147
 
131
148
  ```bash
132
- pi install npm:@jstxn/agentdir-pi@0.9.0
149
+ pi install npm:@jstxn/agentdir-pi@0.10.0
133
150
  # or install directly from a local checkout / release tag:
134
151
  pi install /absolute/path/to/agentdir
135
152
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -509,6 +526,49 @@ store, the same `work start`, `context build`, `memory search`, and
509
526
  preserving both components in JSON output. Explicit `--retrieval` modes remain
510
527
  available for diagnostics and comparisons.
511
528
 
529
+ ### Optional Jev Context Filtering
530
+
531
+ Jev can filter and rank local context for `work start` and `context build` after
532
+ retrieval, before source diversification. It is disabled by default and needs
533
+ no extra Python dependencies. Opt in separately for each store:
534
+
535
+ ```bash
536
+ agentdir memory reranker configure jev
537
+ # Supply TYPESAFE_API_KEY (or JEV_API_KEY) through your process environment.
538
+ agentdir work start "make database migrations safe to roll back"
539
+
540
+ # Restore fully local context selection.
541
+ agentdir memory reranker configure none
542
+ ```
543
+
544
+ Enabling this sends the task (up to 2048 UTF-8 bytes) and up to 20 local
545
+ candidate passages (subject plus passage, up to 1024 bytes each) to
546
+ `https://api.typesafe.ai/v1/systemone`. Common secret patterns and the configured
547
+ API key are redacted before sending; redaction does not anonymize proprietary
548
+ material. Keys are read only from the environment, never saved in configuration;
549
+ AgentDir does not automatically load `.env` files. Review
550
+ [TypeSafe's data handling](https://docs.typesafe.ai/models) before opting in.
551
+ Federated/group context always uses local selection, even when Jev is enabled.
552
+
553
+ The evaluated `jev-1.13.0` model and relevance cutoff of 0.7 are pinned. A
554
+ successful response filters the shortlist and suppresses unscored recent
555
+ summaries, while preserving source tiers, diversity limits, original retrieval
556
+ scores, current evidence, and the agent's review requirement. Derived session
557
+ summaries are not sent for scoring. Missing credentials, request failures,
558
+ malformed responses, or the three-second worker deadline retain local selection
559
+ and report a fallback reason. There are no retries. Work-start locking stays
560
+ intact; a request may add up to the worker deadline to that locked operation.
561
+
562
+ Context JSON and persisted manifests include `reranking` metadata: status,
563
+ model, rubric version, cutoff, candidate identities and sanitized-text hashes,
564
+ scores, usage, and latency. Each surviving source also has `rerank_score`;
565
+ `memory_score` remains the original local score. Reviewing a saved pack or
566
+ rebuilding the index makes no Jev request. `memory search` and `memory explain`
567
+ continue to describe local retrieval. Jev scores are advisory and cannot verify
568
+ evidence or mark a source read, used, or cited. The
569
+ [synthetic evaluation](docs/investigations/2026-09-21-jev-evaluation.md) motivates
570
+ this opt-in feature; validation on real session history is still needed.
571
+
512
572
  ### Federated Memory
513
573
 
514
574
  For multi-repo work, AgentDir can search explicitly registered roots:
@@ -76,7 +76,7 @@ Useful variants:
76
76
  ```bash
77
77
  agentdir update --install-skill none
78
78
  agentdir update --no-adopt
79
- agentdir update --version v0.8.0
79
+ agentdir update --version v0.9.0
80
80
  agentdir update --dry-run
81
81
  ```
82
82
 
@@ -110,13 +110,13 @@ agentdir work finish --json --brief
110
110
  If you already have the wheel asset:
111
111
 
112
112
  ```bash
113
- AGENTDIR_WHEEL=/path/to/agentdir_cli-0.9.0-py3-none-any.whl bash scripts/install.sh
113
+ AGENTDIR_WHEEL=/path/to/agentdir_cli-0.10.0-py3-none-any.whl bash scripts/install.sh
114
114
  ```
115
115
 
116
116
  To force the virtual environment installer even when `pipx` is present:
117
117
 
118
118
  ```bash
119
- AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.9.0-py3-none-any.whl bash scripts/install.sh
119
+ AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.10.0-py3-none-any.whl bash scripts/install.sh
120
120
  ```
121
121
 
122
122
  ## Roll Back To The Previous Release
@@ -133,13 +133,13 @@ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollbac
133
133
  To choose a specific release:
134
134
 
135
135
  ```bash
136
- curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.8.0
136
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.9.0
137
137
  ```
138
138
 
139
139
  The equivalent manual rollback is:
140
140
 
141
141
  ```bash
142
- curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.8.0 bash
142
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.9.0 bash
143
143
  ```
144
144
 
145
145
  ## Optional Extras
@@ -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.9.0
39
+ pi install npm:@jstxn/agentdir-pi@0.10.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.9.0/docs/assets/agentdir-overview.png"
53
+ "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.10.0/docs/assets/agentdir-overview.png"
54
54
  }
55
55
  }
56
56
  ```
@@ -45,9 +45,9 @@ chmod +x dist/rollback-agentdir.sh
45
45
  Expected assets (substitute the release version):
46
46
 
47
47
  ```text
48
- dist/agentdir_cli-0.9.0-py3-none-any.whl
49
- dist/agentdir_cli-0.9.0.tar.gz
50
- dist/jstxn-agentdir-pi-0.9.0.tgz
48
+ dist/agentdir_cli-0.10.0-py3-none-any.whl
49
+ dist/agentdir_cli-0.10.0.tar.gz
50
+ dist/jstxn-agentdir-pi-0.10.0.tgz
51
51
  dist/install-agentdir.sh
52
52
  dist/rollback-agentdir.sh
53
53
  ```
@@ -55,19 +55,19 @@ dist/rollback-agentdir.sh
55
55
  ## Tag And Release
56
56
 
57
57
  ```bash
58
- git tag -a v0.9.0 -m "Release AgentDir v0.9.0"
58
+ git tag -a v0.10.0 -m "Release AgentDir v0.10.0"
59
59
  git push origin main
60
- git push origin v0.9.0
60
+ git push origin v0.10.0
61
61
 
62
- gh release create v0.9.0 \
63
- dist/agentdir_cli-0.9.0-py3-none-any.whl \
64
- dist/agentdir_cli-0.9.0.tar.gz \
65
- dist/jstxn-agentdir-pi-0.9.0.tgz \
62
+ gh release create v0.10.0 \
63
+ dist/agentdir_cli-0.10.0-py3-none-any.whl \
64
+ dist/agentdir_cli-0.10.0.tar.gz \
65
+ dist/jstxn-agentdir-pi-0.10.0.tgz \
66
66
  dist/install-agentdir.sh \
67
67
  dist/rollback-agentdir.sh \
68
68
  --repo jstxn/agentdir \
69
- --title "AgentDir v0.9.0" \
70
- --notes-file docs/releases/v0.9.0.md
69
+ --title "AgentDir v0.10.0" \
70
+ --notes-file docs/releases/v0.10.0.md
71
71
  ```
72
72
 
73
73
  Publishing the release triggers `publish.yml`, which rebuilds the sdist and
@@ -94,7 +94,7 @@ Use a disposable environment:
94
94
 
95
95
  ```bash
96
96
  tmp="$(mktemp -d)"
97
- gh release download v0.9.0 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
97
+ gh release download v0.10.0 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
98
98
  AGENTDIR_PREFIX="$tmp/prefix" AGENTDIR_HOME="$tmp/home" AGENTDIR_FORCE_VENV=1 bash "$tmp/install-agentdir.sh"
99
99
  "$tmp/prefix/bin/agentdir" --help
100
100
  "$tmp/prefix/bin/agentdir" --version
@@ -130,13 +130,13 @@ tmp="$(mktemp -d)"
130
130
  AGENTDIR_PREFIX="$tmp/prefix" \
131
131
  AGENTDIR_HOME="$tmp/home" \
132
132
  AGENTDIR_FORCE_VENV=1 \
133
- AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.9.0-py3-none-any.whl" \
133
+ AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.10.0-py3-none-any.whl" \
134
134
  bash dist/install-agentdir.sh
135
135
 
136
136
  AGENTDIR_PREFIX="$tmp/prefix" \
137
137
  AGENTDIR_HOME="$tmp/home" \
138
138
  AGENTDIR_FORCE_VENV=1 \
139
- bash dist/rollback-agentdir.sh v0.8.0
139
+ bash dist/rollback-agentdir.sh v0.9.0
140
140
 
141
141
  "$tmp/prefix/bin/agentdir" --help
142
142
  ```
@@ -0,0 +1,204 @@
1
+ # Jev context-selection evaluation
2
+
3
+ Date: 2026-09-21. AgentDir source: `cb5a1b001f03bbb3b2e302d43acbbd74f95d65ee`.
4
+
5
+ This follows the [integration investigation](2026-09-21-jev-integration.md).
6
+ The experiment uses live Jev responses and AgentDir's actual local retrieval
7
+ and selection functions. It adds an evaluation script and fixture, without
8
+ enabling a remote backend in normal AgentDir commands.
9
+
10
+ Recommendation: proceed with an opt-in relevance-filtering prototype that scores
11
+ candidates before diversification. Jev substantially improved this synthetic
12
+ benchmark, especially when its relevance gate could omit weak material. A
13
+ stricter existing local gate recovered some of that improvement at no API cost,
14
+ but did not match Jev here. Real session history is the next validation target;
15
+ these results do not justify making a remote model the default.
16
+
17
+ ## Method
18
+
19
+ - [Fixture](../../scripts/fixtures/jev_retrieval.json): 50 synthetic tasks and
20
+ 70 synthetic historical passages, with relevance labels fixed before live
21
+ scoring. These are not human annotations or real recorded development tasks.
22
+ - Four topic groups supply 20 development queries; six different groups supply
23
+ 30 held-out queries. The held-out set contains 24 answerable tasks and six
24
+ tasks with no labeled useful source.
25
+ - Each topic includes literal and paraphrased requests, an implementation
26
+ constraint, a failure reproduction, and a no-context request. Distractors
27
+ include keyword-heavy placeholders, decorative notes, and injected scoring
28
+ instructions. Relevant warnings in superseded decisions receive partial credit.
29
+ - Grades are 2 for directly useful and 1 for supporting detail. Labels are never
30
+ included in API requests. The same rubric and 0.7 cutoff are used throughout;
31
+ neither was tuned on the resulting scores.
32
+ - The local baselines are AgentDir hybrid retrieval and semantic-hybrid using
33
+ FastEmbed `0.8.0`, `BAAI/bge-small-en-v1.5`, and Python `3.12.12`.
34
+ - The model is pinned to `jev-1.13.0`. Requests use one Noul per candidate, with
35
+ a shared task and explicitly addressed candidate passages. Only synthetic
36
+ fixture text is sent. The API key is read in-process from the supplied dotenv
37
+ file and is excluded from logs, result files, and command arguments.
38
+
39
+ The corrected pipeline retrieves up to 96 hits, excludes derived summaries
40
+ without independent labels, and takes the first 20 canonical passages in
41
+ retrieval order for Jev scoring. The existing source tiers, session-diversity
42
+ rules, eight-hit memory limit, and five-source briefing limit still apply after
43
+ scoring. A fresh isolated store is used; the real repository's memory settings
44
+ are unchanged. Fixed message IDs and insertion order make the local inputs
45
+ repeatable.
46
+
47
+ Five variants are recorded for each retrieval engine:
48
+
49
+ 1. Current selection over all retrieved canonical passages.
50
+ 2. Current selection over only the same 20-candidate shortlist.
51
+ 3. Jev ordering over that shortlist, preserving existing quality gates.
52
+ 4. Jev ordering plus relevance filtering: require probability at least 0.7 and
53
+ treat surviving passages as eligible for the briefing. This replaces the
54
+ experiment's similarity-based eligibility gate, not evidence verification.
55
+ 5. A cheaper control that keeps only sources already rated `strong` by AgentDir.
56
+ This uses existing local thresholds and makes no API call.
57
+
58
+ The fourth variant changes both ordering and eligibility; its improvement must
59
+ not be attributed solely to reranking. Probabilities are applied only to
60
+ in-memory copies inside the evaluation script. Production scores, raw events,
61
+ and context-review decisions are never modified.
62
+
63
+ ## Results
64
+
65
+ Results below cover the 30 held-out tasks. nDCG@5 measures how well the first
66
+ five selected sources match graded relevance, with 1.0 ideal; it is averaged
67
+ over the 24 answerable tasks. Recall is the average fraction of labeled useful
68
+ sources selected on those tasks. Precision is useful selections divided by all
69
+ selections, including no-context tasks. Counts treat an unlabeled source as
70
+ irrelevant under the frozen rubric.
71
+
72
+ | Retrieval and selection | nDCG@5 | Direct answer first | Useful-source recall | Selection precision | Irrelevant selections | Correct empty briefing |
73
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
74
+ | Hybrid, current | 0.679 | 75.0% | 61.1% | 32.4% | 69 | 0/6 |
75
+ | Hybrid, local strong-only | 0.000 | 0.0% | 0.0% | N/A | 0 | 6/6 |
76
+ | Hybrid, Jev ordering only | 0.754 | 95.8% | 62.5% | 34.3% | 65 | 0/6 |
77
+ | Hybrid, Jev ordering + filtering | 0.930 | 100.0% | 84.7% | 98.0% | 1 | 6/6 |
78
+ | FastEmbed hybrid, current | 0.747 | 79.2% | 75.0% | 28.7% | 107 | 0/6 |
79
+ | FastEmbed hybrid, local strong-only | 0.829 | 79.2% | 79.2% | 64.8% | 25 | 6/6 |
80
+ | FastEmbed hybrid, Jev ordering only | 0.778 | 87.5% | 75.0% | 28.7% | 107 | 0/6 |
81
+ | FastEmbed hybrid, Jev ordering + filtering | 0.969 | 100.0% | 98.6% | 85.7% | 10 | 5/6 |
82
+
83
+ The full-pool and 20-candidate local baselines produced identical selections
84
+ on this fixture. The hybrid shortlist contained an average 84.7% of labeled
85
+ useful sources on held-out answerable tasks; the FastEmbed shortlist contained
86
+ 100%. Jev retained all labeled useful sources available to hybrid retrieval,
87
+ but could not recover its retrieval misses. The local strong-only hybrid
88
+ control returned nothing for every task, illustrating why local similarity
89
+ thresholds cannot be substituted for calibrated relevance probabilities.
90
+
91
+ Ordering alone helped place direct answers first but left most irrelevant
92
+ material in the briefing. Filtering accounts for much of the additional gain.
93
+ The existing selector intentionally permits weak exploratory context; counting
94
+ that context as irrelevant here evaluates a stricter selection policy and is
95
+ not evidence that the current behavior violates its contract.
96
+
97
+ The FastEmbed/Jev combination traded more complete coverage for more extras.
98
+ Its false positive on the supply-chain-attestation task selected three ordinary
99
+ release-management sources at probabilities 0.73-0.78, although none described
100
+ cryptographic attestations. Other extras concerned related secret-cleanup
101
+ procedures and release validation. One relevant historical warning scored 0.68
102
+ and was omitted. Hybrid/Jev's one unlabeled selection was subprocess timeout
103
+ advice returned for an output-capture task at 0.71. These are concrete reasons
104
+ to keep the scores advisory and validate the cutoff on real data.
105
+
106
+ No injected scoring-instruction passage was selected by either filtered Jev
107
+ variant across the 50 queries. On 50 batch/pair comparisons from the two fixed
108
+ development queries, mean absolute probability difference was 0.0582, with one
109
+ disagreement at the 0.7 cutoff. A relevant warning scored 0.70 in a batch and
110
+ 0.63 alone. Batching is promising but not score-equivalent to isolated requests.
111
+
112
+ Observed API latency for the corrected 100 query/engine evaluations was
113
+ **283 ms median and 425 ms p95**. The final offline replay measured warm local
114
+ retrieval/selection at 4.9/11.2 ms median/p95 for hybrid and 31.1/36.1 ms for
115
+ FastEmbed hybrid. These are local-process measurements, not a service SLA.
116
+
117
+ The corrected comparison used 141 distinct request payloads, including pair
118
+ checks, with 303,562 reported input tokens: approximately **$0.01275** at the
119
+ published $0.042 per million input tokens. Of these, 108 requests were new and
120
+ 33 reused prior identical responses. Across both live runs and the smoke test,
121
+ there were **250 API requests, zero observed API errors, 594,982 input tokens,
122
+ and about $0.02499 total estimated cost**. The final local-filter comparison
123
+ and replay made **zero new API requests**. Cost is calculated from reported
124
+ usage and published rates, not a billing statement.
125
+
126
+ ## Limits and interpretation
127
+
128
+ This is a small, constructed benchmark. Its repeated scenario structure,
129
+ short passages, imperfect relevance labels, and lack of real session history
130
+ limit what the scores establish. Useful related material can be missing from
131
+ the labels; precision here means agreement with those labels. Testing ten
132
+ injected passages does not establish general prompt-injection resistance.
133
+
134
+ The fixture deliberately excludes unlabeled derived summaries and does not
135
+ exercise concurrent `work start`, production network integration, long or
136
+ truncated session bodies, or private/federated-root export policies. Warm local
137
+ latency comes from a persistent evaluation process, not fresh CLI startup.
138
+ Jev timing includes the stdlib HTTP request and response validation. Cached
139
+ responses retain their original measured timings; a cache hit is not counted
140
+ as a new API call.
141
+
142
+ The first exploratory run incorrectly applied diversification when constructing
143
+ the shortlist. That discarded useful same-session passages before Jev could
144
+ score them. The reported comparison uses the corrected order: retrieve,
145
+ shortlist, score, then diversify. The first run remains under
146
+ `.agentdir/evals/jev/results/`; corrected results are under
147
+ `.agentdir/evals/jev/results-v2/`. The final offline replay, including the added
148
+ local strong-only control, is under `.agentdir/evals/jev/results-v3/`.
149
+ Requests with identical content reuse their
150
+ saved responses. The rubric and fixture labels did not change during this
151
+ correction. Held-out queries were seen in that first run, so the corrected run
152
+ is not a pristine blind evaluation.
153
+
154
+ ## Proof and reproduction
155
+
156
+ The dependency installation, live evaluation, and self-check ran through the
157
+ machine-wide queue. AgentDir recorded the evaluation output and verification.
158
+ The runner and fixture are the only executable additions; normal AgentDir
159
+ commands do not call Jev.
160
+
161
+ ```bash
162
+ # Create the isolated environment if it does not already exist.
163
+ ~/.config/agents-sync/bin/agent-queue bash -c 'uv venv --python 3.12 .agentdir/evals/jev/venv && uv pip install --python .agentdir/evals/jev/venv/bin/python "fastembed>=0.4" "platformdirs>=4.2" "rich>=13.7"'
164
+
165
+ # Local checks; no API calls.
166
+ ~/.config/agents-sync/bin/agent-queue agentdir run --name test -- \
167
+ .agentdir/evals/jev/venv/bin/python scripts/eval_jev.py --self-check
168
+
169
+ # Live calls only for requests absent from the content-addressed response cache.
170
+ ~/.config/agents-sync/bin/agent-queue agentdir run -- \
171
+ .agentdir/evals/jev/venv/bin/python scripts/eval_jev.py --live \
172
+ --env-file /home/jstxn/Development/.env --output .agentdir/evals/jev/results-v2
173
+
174
+ # Offline replay and local strong-only control; uses already saved responses.
175
+ ~/.config/agents-sync/bin/agent-queue bash -c 'agentdir run --name test -- .agentdir/evals/jev/venv/bin/python scripts/eval_jev.py --self-check && agentdir run -- .agentdir/evals/jev/venv/bin/python scripts/eval_jev.py --output .agentdir/evals/jev/results-v3'
176
+ ```
177
+
178
+ The final output directory was seeded with the earlier content-addressed
179
+ response files before offline replay. To reproduce from a fresh checkout,
180
+ create the environment and use `--live` with an empty output directory instead.
181
+ The recorded run used FastEmbed `0.8.0`; pin that version when comparing future
182
+ runs against these numbers.
183
+
184
+ The self-check exercises invalid or missing answers, non-finite and out-of-range
185
+ probabilities, ranking arithmetic, selection thresholds, preserving original
186
+ scores, timeout/429 fallback, and counting cached requests only once. Observed:
187
+
188
+ ```text
189
+ Self-check passed: response validation, ranking metrics, threshold, immutable inputs, timeout and 429 fallback, cached billing counted once.
190
+ ```
191
+
192
+ Result files contain the protocol and hashes, per-query candidate IDs and
193
+ selections, individual responses and usage, aggregate metrics, and batch/pair
194
+ comparisons. They remain in the ignored AgentDir store. No commit or push was
195
+ performed. A full application test suite was not run because production code
196
+ was unchanged; the changed script was exercised directly and with its self-check.
197
+
198
+ Final fixture SHA-256:
199
+ `d4ee208fa45d9bc3cbe19a94b894d805e6f2053463155f2181ab4d6d4348d70a`.
200
+ Final evaluator SHA-256:
201
+ `229174eee65383e1b7afacc6fc16351f1c35e028ad9b2dc5e5632b4cec33a663`.
202
+
203
+ API shape and published pricing: [TypeSafe API](https://docs.typesafe.ai/api),
204
+ [models](https://docs.typesafe.ai/models).