refactor(persona): run gating, model and posting as separate jobs

Merged
DO
15d ago
+479-49

Summary

Splits the persona runtime reusable into three jobs, each on its own runner:

JobDoes
gateResolves the persona, runs the event pre-gate, resolves the posting identity, preflights its PAT
runProduces the advisory
postPosts the advisory; the only writer
  • Every job checks out github.workflow_sha, with no persisted credentials.
  • run hands post one artifact file holding only the redacted advisory text, kept for one day. post checks 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.yml names the secrets it passes instead of inheriting them.
  • The fleet pause still skips all three jobs. The registry and the AGENTS.md inventory are updated to match.

This goes live on merge: persona-runner.yml calls the reusable by local path.

Tests

Run locally at this head:

  • actionlint on both persona workflows; shellcheck --severity=warning scripts/*.sh scripts/lib/persona-runner.sh; the repo's check-* and validate-caller-inputs scripts. 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