refactor(persona): run gating, model and posting as separate jobs
Merged
DO
15d ago+479+479+012345678901234567890123456789-49-49-01234567890123456789
Summary
Splits the persona runtime reusable into three jobs, each on its own runner:
| Job | Does |
|---|---|
gate | Resolves the persona, runs the event pre-gate, resolves the posting identity, preflights its PAT |
run | Produces the advisory |
post | Posts the advisory; the only writer |
- Every job checks out
github.workflow_sha, with no persisted credentials. runhandspostone artifact file holding only the redacted advisory text, kept for one day.postchecks it before parsing it.- Each posting step gets only the PAT the persona's manifest names. An unset secret stays empty instead of falling through to another PAT.
persona-runner.ymlnames the secrets it passes instead of inheriting them.- The fleet pause still skips all three jobs. The registry and the
AGENTS.mdinventory are updated to match.
This goes live on merge: persona-runner.yml calls the reusable by local path.
Tests
Run locally at this head:
actionlinton both persona workflows;shellcheck --severity=warning scripts/*.sh scripts/lib/persona-runner.sh; the repo'scheck-*andvalidate-caller-inputsscripts. All pass.tests/persona_runner.bats(68/68),tests/test_fleet_pause_coverage.bats(60/60),tests/test_fleet_paused_run.bats,tests/fleet_monitor_run.bats,tests/test_persona_pr_pregate.bats,tests/resolve_persona_identity.bats,tests/test_persona_authz_preflight.sh,tests/persona_reach_check.bats,tests/caller_stub_freeze.bats,tests/dev-lead/unit/test_engine_mcp.bats,tests/dev-lead/unit/test_engine_models.bats. All pass.
š¤ Generated with Claude Code