Add declarative multi-stage promotion bundles (archie bundle export, diff, apply) #2157

Closed
opened 2026-11-27 10:00:59 +00:00 by sam · 2 comments
Owner

Add archie bundle export|diff|apply for promoting workflows, Cedar access policies, judgement rules, and action-type definitions across stages while preserving stage credentials and earned-autonomy approval counts.

Add `archie bundle export|diff|apply` for promoting workflows, Cedar access policies, judgement rules, and action-type definitions across stages while preserving stage credentials and earned-autonomy approval counts.
sam added the featurein-progresshigh labels 2026-11-27 10:00:59 +00:00
sam self-assigned this 2026-11-27 10:00:59 +00:00
Author
Owner

CI/CD and GitOps automation requirements:

  • Dual transport: HTTPS control-plane API mode (ARCHIE_URL + ARCHIE_TOKEN[_FILE], /api/bundles/{export,diff,apply}) for external runners (GitHub Actions, Jenkins, GitLab CI) with zero direct Postgres exposure, plus direct DB mode for in-cluster Argo CD / Helm PostSync Jobs.
  • Offline validation (archie bundle validate) for PR checks without DB or server access.
  • Deterministic sorted YAML export, canonical Bundle.Digest() (excluding exported_at), and --expect-digest pinning on apply.
  • Idempotent apply (unchanged resources are a no-op) and CI-friendly --format text|json, --dry-run, and --detailed-exitcode (0 = clean, 2 = drift, 1 = error).
CI/CD and GitOps automation requirements: - Dual transport: HTTPS control-plane API mode (`ARCHIE_URL` + `ARCHIE_TOKEN[_FILE]`, `/api/bundles/{export,diff,apply}`) for external runners (GitHub Actions, Jenkins, GitLab CI) with zero direct Postgres exposure, plus direct DB mode for in-cluster Argo CD / Helm `PostSync` Jobs. - Offline validation (`archie bundle validate`) for PR checks without DB or server access. - Deterministic sorted YAML export, canonical `Bundle.Digest()` (excluding `exported_at`), and `--expect-digest` pinning on `apply`. - Idempotent `apply` (unchanged resources are a no-op) and CI-friendly `--format text|json`, `--dry-run`, and `--detailed-exitcode` (0 = clean, 2 = drift, 1 = error).
Author
Owner

Implemented declarative promotion bundles (archie bundle validate|export|diff|apply) with deterministic YAML/digest pinning (--expect-digest), dual transport (HTTPS API + direct DB), idempotent apply preserving earned-autonomy counts, and CI flags (16abc4761, wired in dd38d93a2). Verified with task check.

Implemented declarative promotion bundles (`archie bundle validate|export|diff|apply`) with deterministic YAML/digest pinning (`--expect-digest`), dual transport (HTTPS API + direct DB), idempotent apply preserving earned-autonomy counts, and CI flags (`16abc4761`, wired in `dd38d93a2`). Verified with `task check`.
sam closed this issue 2026-11-27 10:21:06 +00:00
sam removed the in-progress label 2026-11-27 10:21:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#2157