service_policy_service_v1
Starter scaffold for the svc_policy_service_v1 service archetype.
Purpose
Minimal policy-service scaffold for decision/rules APIs with Postgres-backed policy data.
Included surfaces
arch/service/index.x07service.jsonarch/manifest.x07arch.jsonsrc/main.x07.jsonsrc/example.x07.jsontests/tests.json
This example is intentionally minimal.
It exists to seed x07 init and later service tooling.
Validate the copied scaffold with:
x07 service validate --manifest arch/service/index.x07service.json
Reference pattern:
- expose decision logic through the policy-service cell kind
- keep policy data and review state on logical bindings such as
db.primary,msg.decisions, orobj.policies - treat rollout, probes, and autoscaling as runtime hints instead of provider-specific service objects
Migration note:
- if a service currently mixes provider IAM policy identifiers or direct storage endpoints into the decision path, move them behind logical bindings and keep the service interface stable
Related guides: