b79d0401f3
Add local operator inspection and reconciliation for quarantined resource leases, including atomic audit-backed FIFO handoff and recovery protocol support.\n\nPreserve capability tokens in the authoritative store and reject non-loopback or ordinary client transport for recovery mutations.\n\nChecked packaged templates and packaged authoring skill references; none need updating. The task-owned docs note records shared README and skill reference follow-up for docs-fold.
47 lines
1.6 KiB
Go
47 lines
1.6 KiB
Go
package protocol
|
|
|
|
type ResourceInspection struct {
|
|
Resource string `json:"resource"`
|
|
Owner *ResourceOwner `json:"owner,omitempty"`
|
|
Waiters []ResourceWaiter `json:"waiters,omitempty"`
|
|
Audits []ResourceRecoveryAudit `json:"audits,omitempty"`
|
|
}
|
|
type ResourceOwner struct {
|
|
RunID int64 `json:"run_id"`
|
|
Stage string `json:"stage"`
|
|
Sequence int `json:"sequence"`
|
|
CleanupConfirmed bool `json:"cleanup_confirmed"`
|
|
Quarantined bool `json:"quarantined"`
|
|
AgentActive bool `json:"agent_active"`
|
|
}
|
|
type ResourceWaiter struct {
|
|
RunID int64 `json:"run_id"`
|
|
Stage string `json:"stage"`
|
|
Sequence int `json:"sequence"`
|
|
QueuedAt string `json:"queued_at"`
|
|
}
|
|
type ResourceRecoveryAudit struct {
|
|
Resource string `json:"resource"`
|
|
RunID int64 `json:"run_id"`
|
|
Stage string `json:"stage"`
|
|
Sequence int `json:"sequence"`
|
|
Actor string `json:"actor"`
|
|
Source string `json:"source"`
|
|
Evidence string `json:"evidence"`
|
|
Result string `json:"result"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
type ResourceRecoveryEvidence struct {
|
|
CleanupConfirmed bool `json:"cleanup_confirmed"`
|
|
NoMutatingAction bool `json:"no_mutating_action"`
|
|
Summary string `json:"summary"`
|
|
}
|
|
type ResourceRecoveryRequest struct {
|
|
Resource string `json:"resource"`
|
|
RunID int64 `json:"run_id"`
|
|
Stage string `json:"stage"`
|
|
Sequence int `json:"sequence"`
|
|
Evidence *ResourceRecoveryEvidence `json:"evidence,omitempty"`
|
|
Actor string `json:"actor"`
|
|
}
|