Repository navigation
Commit affbb5b
investigate: settings get|pause|resume replace the policy commands (#480)
* investigate: settings get|pause|resume replace the policy commands
The template is the authority: remove investigate policy get|ai|ai-set|status|pause|resume and
their SDK calls. Add settings get (engine read) and settings pause|resume (compare-and-set of the
paused field on the default investigation_policy record). Kit section policy is now settings.
Document the new act entry (do, approval, lease, on_lease_end, the close entry) and the template's
ai_may_decide.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* investigate settings: verify the pause reads back, keep the write path honest
Resume clears the field on a disabled record, a record without a version is never
written, a permission denial is reported as one (exit code 2) and is not hidden by
a re-read, and a pause that does not read back as paused fails. Report a record's
expiry. The inbox rows show approval and approval_reason instead of the removed mode.
Docs: lease-end limits and the caller-token rule, breaker defaults, the builtin
settings fallback, stats counters, a migration note for the old pause record.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* investigate settings: resume races, read-back failure wording, migration note
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* investigate settings: keep the rate-limit exit code on a failed read-back; migration pauses in the same write
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent 814b697 commit affbb5b
12 files changed
Lines changed: 650 additions & 642 deletions
File tree
- doc
- cli
- sdk
- limacharlie
- commands
- sdk
- tests/unit
- fixtures/investigation_sync
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
5 | 44 | | |
6 | 45 | | |
7 | 46 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
798 | 803 | | |
799 | 804 | | |
800 | 805 | | |
| |||
804 | 809 | | |
805 | 810 | | |
806 | 811 | | |
807 | | - | |
808 | | - | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
809 | 815 | | |
810 | 816 | | |
811 | 817 | | |
| |||
0 commit comments