retention: explicit run-history and artifact retention
Add `pipelines retention report` (strictly read-only) and `pipelines retention apply` (explicit, approval-gated removal) with an age and/or count policy, protected-run rules, atomic single-transaction removal and honest database space reclaim. Nothing prunes automatically.
This commit is contained in:
@@ -39,6 +39,10 @@ EXECUTE
|
||||
version Identify this CLI build without connecting (--version)
|
||||
rpc <request.json|-> Send any protocol command (automation escape hatch)
|
||||
|
||||
MAINTAIN
|
||||
retention report Show what a run-history policy would remove (read-only)
|
||||
retention apply Remove it after approval; artifacts go with their run
|
||||
|
||||
SERVER / INTERFACE
|
||||
harness [opencode|pi] Launch the configured default harness in this directory
|
||||
harness setup opencode|pi Login/select separate harness and new-pipeline defaults
|
||||
@@ -71,6 +75,10 @@ Examples:
|
||||
pipelines run "bug fix" "Fix the layout" --json
|
||||
pipelines run "bug fix" "Fix the layout" --model openai/gpt-5 --stage-model review=openai/o4 --json
|
||||
|
||||
Run retention (local, explicit, never automatic):
|
||||
pipelines retention report --db ~/.local/share/pipelines/data/pipelines.db --keep 200 --json
|
||||
pipelines retention apply --db ~/.local/share/pipelines/data/pipelines.db --keep 200 --yes
|
||||
|
||||
Launch-time model overrides: 'pipelines run --model P/M' covers every model stage;
|
||||
'--stage-model STAGE=P/M' (repeatable; a repeated key is last-wins) overrides one
|
||||
stage and wins over --model, which wins over the model pinned in the pipeline
|
||||
|
||||
Reference in New Issue
Block a user