Skip to content

feat: add approval-gated Sandbox deploy and cleanup workflows - #1

Merged
anilkreddy merged 2 commits into
mainfrom
feat/approved-deploy-and-cleanup
Nov 15, 2026
Merged

anilkreddy merged 2 commits into
mainfrom
feat/approved-deploy-and-cleanup

Conversation

@anilkreddy

@anilkreddy anilkreddy commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Add two manual, main-only Sandbox workflows:

  • build-approve-deploy.yml: repository quality gate → actual CommerceKit check of three supported fixtures → actual CCv2 Build Action → native environment approval → recreate the validated synthetic build in a fresh isolated run → actual Deploy Action.
  • cleanup.yml: seed 105 mixed/protected builds, execute the actual Cleanup Action twice with dry-run hardcoded true, validate exact counts/reasons/shared events and zero target mutations, then remove the run.

The owner selected synthetic recreation across the approval boundary. Only a validated public build identifier crosses jobs; credentials and private state never become outputs or artifacts. Required reviewer anilkreddy, own-run approval allowed, main-only branch policy and administrator bypass disabled are configured and independently verified on sandbox-deploy-approval. Both before-build and after-gate preflights fail closed on policy drift.

Validation:

  • Frozen registry install and full pnpm quality passed: 62 offline tests, zero skips; format/lint, workflow security policy, public scan and audit passed. actionlint passed.
  • Actual published CLI 0.1.0-preview.2 archive verified against GitHub digest/checksums/manifest; check reports three files and zero findings.
  • Actual normal Cleanup bundle ran twice against the exact consumer fixture on a local HTTPS Sandbox: matching decisions/counts/events, multiple pages/passes, zero target mutations.
  • Actual pinned Deploy bundle deployed the mapped fixture locally; real result/event and scoped creation counts passed. Corrected the existing/new counter expectation to the supported createDeployment:d1 contract and added regressions.
  • Independent security/correctness review found no blocker. See docs/VALIDATION.md and docs/WORKFLOWS.md for provenance, actual commands, setup and dispatch instructions.

Hosted manual flows, job-token approval metadata access and native human approval remain NOT RUN. Public hosted OpenAPI advertises the fixture endpoint, but no hosted fixture operation was executed. CI on this PR is offline only. The production cleanup eligibility gate and real SAP/release approvals remain unchanged.

No live dispatch, hosted Sandbox deployment, SAP operation, provider send, package publication or release tag. Existing 16 scenarios and provider suites remain unchanged. Keep this initial implementation in draft for review before live testing.

Final hosted CI evidence: quality run 43632554003 passed on final head 1f2207afe624b4b22e727aa417f22696a9b3f4f2. The initial implementation head also passed run 43632346842; that exact evidence is committed in docs/VALIDATION.md. The PR remains draft, and neither manual hosted workflow has been dispatched.

@anilkreddy
anilkreddy marked this pull request as ready for review November 15, 2026 01:22
@anilkreddy
anilkreddy merged commit 529d1bc into main Nov 15, 2026
1 check passed
@anilkreddy
anilkreddy deleted the feat/approved-deploy-and-cleanup branch November 15, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant