Files
git.stella-ops.org/src/Policy/StellaOps.Policy.Engine/AGENTS.md
StellaOps Bot ef6e4b2067
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
oas-ci / oas-validate (push) Has been cancelled
Policy Simulation / policy-simulate (push) Has been cancelled
sdk-generator-smoke / sdk-smoke (push) Has been cancelled
SDK Publish & Sign / sdk-publish (push) Has been cancelled
Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
2025-11-27 21:45:32 +02:00

1.9 KiB

StellaOps.Policy.Engine — Agent Charter

Mission

Stand up the Policy Engine runtime host that evaluates organization policies against SBOM/advisory/VEX inputs with deterministic, replayable results. Deliver the API/worker orchestration, materialization writers, and observability stack described in Epic 2 (Policy Engine v2).

Scope

  • Minimal API host & background workers for policy runs (full, incremental, simulate).
  • Mongo persistence for policies, policy_runs, and effective_finding_* collections.
  • Change stream listeners and scheduler integration for incremental re-evaluation.
  • Authority integration enforcing new policy:* and effective:write scopes.
  • Observability: metrics, traces, structured logs, trace sampling.

Expectations

  • Keep endpoints deterministic, cancellation-aware, and tenant-scoped.
  • Only Policy Engine identity performs writes to effective findings.
  • Coordinate with Concelier/Excititor/Scheduler guilds for linkset joins and orchestration inputs.
  • Update TASKS.md, /docs/implplan/SPRINT_*.md when status changes.
  • Maintain compliance checklists and schema docs alongside code updates.

Required Reading

  • docs/modules/policy/architecture.md
  • docs/modules/platform/architecture-overview.md

Working Agreement

    1. Update task status to DOING/DONE in both correspoding sprint file /docs/implplan/SPRINT_*.md and the local TASKS.md when you start or finish work.
    1. Review this charter and the Required Reading documents before coding; confirm prerequisites are met.
    1. Keep changes deterministic (stable ordering, timestamps, hashes) and align with offline/air-gap expectations.
    1. Coordinate doc updates, tests, and cross-guild communication whenever contracts or workflows change.
    1. Revert to TODO if you pause the task without shipping changes; leave notes in commit/PR descriptions for context.