1.2 KiB
1.2 KiB
Orchestrator Job Schema Prep — PREP-POLICY-ENGINE-32-101-ORCHESTRATOR-JOB-SC
Status: Draft (2025-11-20) Owners: Policy Guild Scope: Outline the job schema needed for orchestrator scheduling once batch context (31-002) is available.
Dependencies
- Batch context contract (31-002).
- Orchestrator capsule envelope (Wave 150/140) for job submission fields.
Draft job schema
- Fields:
job_id(ULID),tenant_id,context_id(from 31-002),policy_profile_hash,requested_at,priority,batch_items[]referencing{component_purl, advisory_id},callbacks(SSE/NATS subjects),trace_ref(dsse hash). - Status lifecycle:
queued→running→completed|failed; deterministic transitions logged. - Determinism: job_id derived from hash of
(tenant_id, context_id, requested_at ISO), ordered batch_items.
Acceptance
- Schema stub stored at
docs/modules/policy/schemas/orchestrator-job@draft.jsonplus sample atdocs/modules/policy/samples/orchestrator-job@draft.json. - Subject/callback expectations aligned with Orchestrator envelopes.
Handoff
Prep artefact for PREP-POLICY-ENGINE-32-101-ORCHESTRATOR-JOB-SC. Update with final Orchestrator envelope fields and batch context hash once available.