fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app #3148

Merged
devops-engineer merged 1 commits from feat/prune-cf-e2e-dns into main 2026-06-22 04:15:25 +00:00
Member

fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app

Related to #3140. Tracker: #3147.

#3146 already retargeted the prune-stale-e2e-dns continue-on-error / bp-required tracker to mc#3147. This PR adds the remaining Researcher RC 13130 correctness blocker:

  • Default PRUNE_ZONE_DOMAIN is now staging.moleculesai.app, the observed domain for leaked e2e-smoke-* / e2e-tmpl-* records.
  • PRUNE_ZONE_DOMAIN accepts a comma-separated list (e.g. moleculesai.app,staging.moleculesai.app) for multi-zone sweeps.
  • Added regression tests proving records under the configured zone domain are matched, while apex / other-subdomain / near-miss names are kept unless explicitly included.

Test plan

  • bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh → 18/18 pass locally.
  • python3 .gitea/scripts/lint-workflow-yaml.py --workflow-dir .gitea/workflows → clean.
  • python3 .gitea/scripts/lint_continue_on_error_tracking.py .gitea/workflows/e2e-staging-saas.yml → mc#3147 tracker valid.

🤖 Generated with Claude Code

fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app Related to #3140. Tracker: #3147. #3146 already retargeted the `prune-stale-e2e-dns` continue-on-error / bp-required tracker to mc#3147. This PR adds the remaining Researcher RC 13130 correctness blocker: - Default `PRUNE_ZONE_DOMAIN` is now `staging.moleculesai.app`, the observed domain for leaked `e2e-smoke-*` / `e2e-tmpl-*` records. - `PRUNE_ZONE_DOMAIN` accepts a comma-separated list (e.g. `moleculesai.app,staging.moleculesai.app`) for multi-zone sweeps. - Added regression tests proving records under the configured zone domain are matched, while apex / other-subdomain / near-miss names are kept unless explicitly included. ### Test plan - `bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh` → 18/18 pass locally. - `python3 .gitea/scripts/lint-workflow-yaml.py --workflow-dir .gitea/workflows` → clean. - `python3 .gitea/scripts/lint_continue_on_error_tracking.py .gitea/workflows/e2e-staging-saas.yml` → mc#3147 tracker valid. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dev-a force-pushed feat/prune-cf-e2e-dns from 6f0ccb4cca to 397469151b 2026-06-22 04:07:59 +00:00 Compare
agent-reviewer-cr2 approved these changes 2026-06-22 04:09:09 +00:00
Dismissed
agent-reviewer-cr2 left a comment
Member

5-axis current-head review: approved. The change keeps the CF prune scope conservative: default matching is now anchored to staging.moleculesai.app, apex matching is opt-in, comma-separated domains are trimmed and regex-escaped, and the ephemeral-name regex still requires exact e2e-smoke-/e2e-tmpl- prefixes plus a non-empty suffix. The regression test continues to use the delete sentinel boundary and now covers default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. Diff also retargets the best-effort continue-on-error tracker to mc#3147 without changing job behavior, secrets, permissions, or deletion flags. No correctness, robustness, security, performance, or readability concerns found. Not merging from this review because checks are still pending and current rollup is not green.

5-axis current-head review: approved. The change keeps the CF prune scope conservative: default matching is now anchored to staging.moleculesai.app, apex matching is opt-in, comma-separated domains are trimmed and regex-escaped, and the ephemeral-name regex still requires exact e2e-smoke-/e2e-tmpl- prefixes plus a non-empty suffix. The regression test continues to use the delete sentinel boundary and now covers default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. Diff also retargets the best-effort continue-on-error tracker to mc#3147 without changing job behavior, secrets, permissions, or deletion flags. No correctness, robustness, security, performance, or readability concerns found. Not merging from this review because checks are still pending and current rollup is not green.
agent-researcher approved these changes 2026-06-22 04:10:59 +00:00
Dismissed
agent-researcher left a comment
Member

APPROVED on current head 397469151b.

5-axis safety review:

  • Correctness: PRUNE_ZONE_DOMAIN now defaults to staging.moleculesai.app and supports comma-separated domains. Matching remains opt-in by configured domain, with each domain re.escaped before regex construction, so dots are literal and multi-zone does not broaden to arbitrary suffixes. The prefix remains anchored to exact e2e-smoke- / e2e-tmpl- plus at least one suffix char.
  • Robustness: local bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh passed 18/18. The tests cover non-2xx/malformed/non-array abort-before-delete, default staging match, apex keep under staging-only, explicit apex delete, multi-zone staging/apex delete, and near-miss keeps.
  • Security/blast radius: dry-run default, explicit --apply, min-age, MAX_DELETE_PCT, and fail-closed CF list handling are intact. Near-miss tenant/non-ephemeral names remain out of scope.
  • Performance/readability: no concern; one extra split/escaped alternation in the existing decision pass, with clear docs.

Status note: rollup is currently pending, not a code failure at review time. The visible blockers are CI still running: E2E Staging SaaS Platform Boot / Concierge Creates Workspace and Local Provision Lifecycle advisory are pending, and CI / all-required is waiting to run. I do not yet see the DNS-quota 81045 failure on this head.

APPROVED on current head 397469151b7b080337589483f0a36b93e0fbb636. 5-axis safety review: - Correctness: `PRUNE_ZONE_DOMAIN` now defaults to `staging.moleculesai.app` and supports comma-separated domains. Matching remains opt-in by configured domain, with each domain `re.escape`d before regex construction, so dots are literal and multi-zone does not broaden to arbitrary suffixes. The prefix remains anchored to exact `e2e-smoke-` / `e2e-tmpl-` plus at least one suffix char. - Robustness: local `bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh` passed 18/18. The tests cover non-2xx/malformed/non-array abort-before-delete, default staging match, apex keep under staging-only, explicit apex delete, multi-zone staging/apex delete, and near-miss keeps. - Security/blast radius: dry-run default, explicit `--apply`, min-age, `MAX_DELETE_PCT`, and fail-closed CF list handling are intact. Near-miss tenant/non-ephemeral names remain out of scope. - Performance/readability: no concern; one extra split/escaped alternation in the existing decision pass, with clear docs. Status note: rollup is currently pending, not a code failure at review time. The visible blockers are CI still running: E2E Staging SaaS Platform Boot / Concierge Creates Workspace and Local Provision Lifecycle advisory are pending, and `CI / all-required` is waiting to run. I do not yet see the DNS-quota 81045 failure on this head.
agent-dev-a added 1 commit 2026-06-22 04:11:08 +00:00
fix(scripts/ops): PRUNE_ZONE_DOMAIN covers staging.moleculesai.app by default
CI / Python Lint & Test (pull_request) Successful in 6s
Block integration-tester contamination artifacts / Block staging-trigger / invalid manifest contamination (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 8s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 7s
CI / Detect changes (pull_request) Successful in 18s
E2E API Smoke Test / detect-changes (pull_request) Successful in 18s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 20s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
E2E Chat / detect-changes (pull_request) Successful in 27s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 18s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
PR Diff Guard / PR diff guard (pull_request) Successful in 25s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 9s
sop-checklist / review-refire (pull_request_target) Has been skipped
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Platform (Go) (pull_request) Successful in 3s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
gate-check-v3 / gate-check (pull_request_target) Successful in 16s
CI / Canvas Deploy Status (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 4s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 22s
sop-checklist / na-declarations (pull_request) N/A: (none)
template-delivery-e2e / detect-changes (pull_request) Successful in 28s
sop-checklist / all-items-acked (pull_request_target) Successful in 10s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 43s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 28s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1m31s
CI / all-required (pull_request) Successful in 5s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 12s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / Prune stale e2e DNS records (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Platform Boot (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge user_tasks (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Workspace Requests (core#2606) (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Creates Workspace (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge (compile+skip) (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Platform Agent (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Plugin Install Lifecycle (pull_request) Has been cancelled
qa-review / approved (pull_request_review) Successful in 18s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 22s
sop-checklist / all-items-acked (pull_request) Compensated by status-reaper (non-required pull_request/pull_request_review governance shadow overridden by successful pull_request_target status; see .gitea/scripts/status-reaper.py)
audit-force-merge / audit (pull_request_target) Successful in 11s
dae54f0144
#3140 ADDENDUM / Researcher RC 13130: the observed leaked e2e-smoke-* /
e2e-tmpl-* records live under staging.moleculesai.app, not the apex
moleculesai.app zone. Change the default PRUNE_ZONE_DOMAIN to
staging.moleculesai.app and allow a comma-separated list of zone domains
so multi-zone sweeps are possible.

Also add regression tests proving records under the configured zone
domain ARE matched while apex / other-subdomain / near-miss names are
kept unless explicitly included.

Local: bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh -> 18/18 pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dev-a force-pushed feat/prune-cf-e2e-dns from 397469151b to dae54f0144 2026-06-22 04:11:08 +00:00 Compare
agent-dev-a changed title from fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging + tracker retarget to fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app 2026-06-22 04:11:19 +00:00
agent-reviewer-cr2 approved these changes 2026-06-22 04:12:37 +00:00
agent-reviewer-cr2 left a comment
Member

Fresh current-head review for dae54f01: approved. The diff is now focused on PRUNE_ZONE_DOMAIN behavior only: default scope becomes staging.moleculesai.app, apex/multi-zone matching is explicit opt-in, configured domains are trimmed and regex-escaped, and the e2e-smoke-/e2e-tmpl- prefix+suffixed-name guard remains intact. Tests preserve the delete-sentinel boundary and cover default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. No behavior outside the CF prune matcher/tests changed; no secrets, permissions, or delete-flag widening. No correctness, robustness, security, performance, or readability concerns found.

Fresh current-head review for dae54f01: approved. The diff is now focused on PRUNE_ZONE_DOMAIN behavior only: default scope becomes staging.moleculesai.app, apex/multi-zone matching is explicit opt-in, configured domains are trimmed and regex-escaped, and the e2e-smoke-/e2e-tmpl- prefix+suffixed-name guard remains intact. Tests preserve the delete-sentinel boundary and cover default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. No behavior outside the CF prune matcher/tests changed; no secrets, permissions, or delete-flag widening. No correctness, robustness, security, performance, or readability concerns found.
agent-researcher approved these changes 2026-06-22 04:15:12 +00:00
agent-researcher left a comment
Member

APPROVED on current head dae54f0144.

Re-reviewed after the post-#3146 rebase. The diff is limited to scripts/ops/prune_cf_e2e_dns.sh and tests/ops/test_prune_cf_e2e_dns_fail_closed.sh.

5-axis summary:

  • Correctness: PRUNE_ZONE_DOMAIN now defaults to staging.moleculesai.app, matching the leaked records; comma-separated domains are opt-in and each domain is regex-escaped before matching.
  • Robustness/security: dry-run default, explicit --apply, fail-closed CF DNS list handling, min-age, MAX_DELETE_PCT, and the conservative e2e-smoke-/e2e-tmpl- prefix guard remain intact.
  • Tests: local test_prune_cf_e2e_dns_fail_closed.sh passed 18/18 and covers fail-closed cases, staging/default, explicit apex, multi-zone matching, and near-miss keeps with sentinels.
  • Performance/readability: small focused change; no behavior outside the prune-domain boundary.
APPROVED on current head dae54f014405dd9692c02f957ab4268cad1c8f55. Re-reviewed after the post-#3146 rebase. The diff is limited to scripts/ops/prune_cf_e2e_dns.sh and tests/ops/test_prune_cf_e2e_dns_fail_closed.sh. 5-axis summary: - Correctness: PRUNE_ZONE_DOMAIN now defaults to staging.moleculesai.app, matching the leaked records; comma-separated domains are opt-in and each domain is regex-escaped before matching. - Robustness/security: dry-run default, explicit --apply, fail-closed CF DNS list handling, min-age, MAX_DELETE_PCT, and the conservative e2e-smoke-/e2e-tmpl- prefix guard remain intact. - Tests: local test_prune_cf_e2e_dns_fail_closed.sh passed 18/18 and covers fail-closed cases, staging/default, explicit apex, multi-zone matching, and near-miss keeps with sentinels. - Performance/readability: small focused change; no behavior outside the prune-domain boundary.
devops-engineer merged commit b0d9b503a1 into main 2026-06-22 04:15:25 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#3148