molecule-core/org-templates/molecule-dev
rabbitblood 4f9f08b76b chore(template): Security Auditor DAST must clean up its own test artifacts
Follow-up to root-cause analysis in #17 (see 2026-04-14 02:14 UTC comment).

The Security Auditor's hourly DAST was creating test workspaces, secrets,
and plugins to probe auth/validation logic — but only secrets and plugins
had teardown in the prompt. Workspace-create probes leaked rows into
`workspaces` with sequential IDs aaaaaaaa- bbbbbbbb- cccccccc- dddddddd-,
each trapped in a restart loop on missing config.yaml. Four hourly runs,
four leaked workspaces.

Adds explicit step 4a: DAST TEARDOWN. Maintains three lists (workspaces,
secrets, plugins) populated as probes run, and iterates them at the end
with DELETE calls. Uses `|| true` so partial teardown failures don't
break the audit, but every created artifact gets a cleanup attempt.

Doesn't remove the cleanup the cron was already doing for secrets/plugins
— just formalises the pattern so workspace-create (and any future probe
surface) is covered by the same contract.

Related:
- #17 — rogue workspace restart loop (root cause was this)
- #26 — audit cron routing (this PR sits alongside that structure)
2026-04-13 22:05:06 -07:00
..
backend-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
competitive-intelligence initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
dev-lead initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
devops-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
frontend-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
market-analyst initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
pm initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
qa-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
research-lead initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
security-auditor initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
technical-researcher initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
uiux-designer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
.env.example initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
org.yaml chore(template): Security Auditor DAST must clean up its own test artifacts 2026-04-13 22:05:06 -07:00