This commit is contained in:
2026-06-22 08:55:57 +08:00
parent dbb87823e8
commit 6ade6e8fa9
325 changed files with 41131 additions and 855 deletions
+17
View File
@@ -22,6 +22,10 @@ type JobType string
const (
// TypeWebhookDeliver delivers a notify.Message to the configured webhook URL.
TypeWebhookDeliver JobType = "webhook.deliver"
// TypeSecretReencrypt re-encrypts every encrypted-column row that is still on
// an old key version onto the current active version (master-key rotation).
// Enqueued by the rotate-key admin endpoint; idempotent + resumable.
TypeSecretReencrypt JobType = "secret.reencrypt"
)
// JobStatus matches the CHECK constraint on jobs.status.
@@ -142,6 +146,12 @@ type MCPTokensPurgeConfig struct {
Retention time.Duration
}
// AcpSessionReaperConfig controls the ACP session reaper schedule.
type AcpSessionReaperConfig struct {
Enabled bool
Interval time.Duration
}
// Config is the full jobs.Module configuration.
type Config struct {
Enabled bool
@@ -154,4 +164,11 @@ type Config struct {
JobPurge JobPurgeConfig
AcpEventsPurge AcpEventsPurgeConfig
MCPTokensPurge MCPTokensPurgeConfig
AcpSessionReaper AcpSessionReaperConfig
// OrchestratorSchedule controls the task-decomposition parallel scheduler tick
// (autonomy roadmap §10). Registered via RunnerFns key "orchestrator_schedule".
OrchestratorSchedule RunnerConfig
// AuditRetention controls the audit-log retention purge tick (autonomy
// roadmap §11). Registered via RunnerFns key "audit_retention".
AuditRetention RunnerConfig
}