Run pipeline stages on Claude Code (harness=claude)
A model stage with harness=claude, provider=anthropic and a Claude model id runs one claude -p process per visit with the server user's Claude sign-in. Only the declared tools exist (--tools) and nothing else is approved (--permission-mode dontAsk); edits are approved only below the run directory and the stage's artifacts directory. A permissions block, run write paths, delivery=true and reasoning_effort none/minimal are refused, not widened. Usage comes from the CLI's final result and counts toward budgets. Failures are fixed text; billing, quota and rate-limit refusals map to ErrProviderQuota. The redacted stream is the session export and evidence. provider-check --harness claude and model overrides are covered.
This commit is contained in:
@@ -26,6 +26,8 @@ func (r *runner) evidence(ctx context.Context, id int64) ([]protocol.SessionEvid
|
||||
item.Backend = owner.Backend
|
||||
if owner.Backend == "pi" {
|
||||
item.Data, err = stage.PiEvidence(owner.Reference)
|
||||
} else if owner.Backend == stage.ClaudeBackend {
|
||||
item.Data, err = stage.ClaudeStageEvidence(owner.Reference)
|
||||
} else {
|
||||
item.Data, err = (stage.OpenCodeClient{Directory: owner.Directory, Backend: owner.Backend}).SessionEvidence(ctx, owner.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user