Archie runs its own agent loop only. Removes Kit resolution and launch, the harness runner and adapters, the setup terminal and sandbox view, harness secrets and OAuth capture (table dropped in migration 0075), the task-tools contract that only Kit containers reached, and the sandbox-kit-spec dependency. Agent profiles carry image and tools only. The egress proxy keeps the model-session path; the sandbox relay code stays for #1867.
17 lines
599 B
Go
17 lines
599 B
Go
package storecontract
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// RunCredentialStore keeps run credentials by digest: the SHA-256 of the
|
|
// token a task's container presents. A lookup of an unknown or expired
|
|
// digest reports ErrRunCredentialUnknown.
|
|
type RunCredentialStore interface {
|
|
PutRunCredential(ctx context.Context, digest [32]byte, taskID int64, expires time.Time) error
|
|
DeleteRunCredential(ctx context.Context, digest [32]byte) error
|
|
RunCredentialTask(ctx context.Context, digest [32]byte, now time.Time) (int64, error)
|
|
DeleteExpiredRunCredentials(ctx context.Context, now time.Time) error
|
|
}
|