GitHub App Actuator
The actuator performs an already-authorized GitHub effect. It does not decide
what should happen, and the proposing agent never receives a GitHub credential.
Choose an authorized publication path
Existing authenticated gh and Git credential helpers may perform authorized
GitHub actions within task scope. Verify the account, repository and exact
head/base without printing credentials, then report actual authorship. This
ordinary path needs no separate exception or additional approval, including
when Fleetbot is unavailable. Keep required checks, review and normal protected
merge/queue rules; release and deployment still require their own task scope.
Never extract, copy, print or export credentials.
Choose the App actuator when its bot attribution and signed receipts are
useful. The requirements below govern that protected path. Never claim an App
receipt or bot authorship for ordinary authenticated gh publication.
Protected App boundary
agent proposal -> exact one-use grant -> protected actuator -> GitHub App token
| |
| +-- revoked
+-- signed read-back receipt
- In the protected actuator path, the operator's PAT, OAuth token,
pdu_ account bearer, browser session, and
ambient gh login are never publication inputs.
- The GitHub App private key and installation token never enter agent memory,
environment variables, command arguments, Git credential helpers, logs, or
returned tool data.
- The actuator accepts a fixed operation and bounded structured fields, not a
shell command, URL, arbitrary HTTP request, or Git configuration.
- Every grant binds the responsible actor and session, repository, operation,
exact head/base, content digest, expiry, nonce, signing-key generation, and
roadmap item or explicit sidequest reason.
- One logical mutation produces one durable receipt. An ambiguous response is
resolved by exact read-back, never by a blind retry.
Same-UID policy files are guidance, not confinement. A durable installation must
run the credential custodian as a separate OS identity or remote service and
deny the agent account access to its keychain, private key, and service secrets.
Use the App actuator
- Finish and validate a coherent commit in a linked worktree. Fetch and
reconcile before publication; keep inherited repository hooks inert when the
local Port Daddy halt requires that.
- Prepare the exact structured operation. Supported contract operations are
pull-request.publish, pull-request.update, pull-request.ready,
pull-request.request-reviewers, pull-request.comment,
pull-request.review-reply, pull-request.resolve-review-thread,
pull-request.enqueue, and
pull-request.inspect.
- Submit it only through the configured Fleetbot actuator. The canonical
contract is
lib/github-publisher-contract.ts; the protected Relay executor
is POST /v1/fleetbot/publish. Do not invent a shell/CLI substitute.
- Require the returned receipt to identify
port-daddy[bot], the exact
repository and operation, source and GitHub head SHAs, responsible
actor/session, roadmap scope, verification time, and token-cleanup result.
- Read the provider state again. Match exact head/base, PR number/state, comment
marker, or queue state as appropriate. Preserve the receipt with the work.
- Continue owning the PR: answer reviews through the actuator, add tests, keep
CI green, and verify the immutable merge result.
Current admission status
The Relay publisher now rejects the former pdu_ account-bearer path. GitHub
Actions can enroll an Ed25519 workload identity through OIDC, read a bounded
standing publisher-grant snapshot, sign an exact capability, and verify the
Relay-signed receipt. The protected workload client is
../../scripts/fleetbot-workload.mjs;
the reviewed-code smoke is
../../.github/workflows/fleetbot-workload-smoke.yml.
Do not overstate that foundation. The client exposes enrollment, read-only
inspection, and typed requests for PR comments, review replies,
ready-for-review, reviewer requests, merge-queue enrollment, and new-PR publication
from a bounded committed-source package;
../../.github/workflows/fleetbot-actuator.yml
is the protected reviewed-code entry point for those writes. Its steady-state
write path does not request OIDC or exchange identity again. Source presence is
not deployment evidence: publishing is available only after the environment,
grant operation, workload key, Relay receipt key, and deployed Relay version are
verified together. Comments and review replies may target an ordinary
same-repository PR at its capability-bound exact head; readiness, reviewer,
enqueue and update operations remain restricted to uniquely receipted
Fleetbot-owned branches. New publication creates such a branch from its
capability-bound source tree and base; it does not adopt an existing ordinary
branch. Phase A verifies the GitHub dispatcher; its
agent and session fields remain explicitly labeled as dispatcher-supplied until
the proposal broker admits them from durable identity state. Local harnesses do
not yet have a proposal broker.
For new publication, use the offline package builder
../../scripts/fleetbot-publication.mjs
and the protected workflow's publish operation. Follow
../../docs/operations/fleetbot-source-publication.md.
The proposed source is data, never runner code. Publication creates a new
governed App branch; it does not adopt an ordinary branch or authorize closing
its predecessor. Verify the signed source head, App branch and exact Git tree,
then the provider PR/commit readback. A source package is not a grant or proof
that the protected deployment is configured. New publication uses the same
pre-effect manifest and recovery-only path below; never retry its mutation job.
The protected actuator prepares and uploads a signed, non-secret recovery
manifest before its first mutation attempt. Do not rerun that mutation job:
GitHub's upload-artifact tracker documents attempt-one artifacts becoming
unavailable after a rerun begins
(actions/upload-artifact#585).
Instead, dispatch the separate protected Fleetbot receipt
recovery workflow with the original run id. It retrieves the original-run
artifact and calls only POST /v1/fleetbot/publisher-receipts/recover with a
fresh domain-separated read proof. Recovery returns an already finalized,
Relay-signed receipt. It never reads the current PR, obtains a GitHub token,
consumes another mutation capability, or calls the publish endpoint. Missing,
running, failed, ambiguous, corrupt, and legacy-unbound intents stop without a
fallback write. This recovers loss of Relay's final response; it does not claim
that an ambiguous GitHub effect is safe to retry. Never blind-retry a write.
Recovery currently requires the original publisher grant, workload identity,
signing-key generation, and Relay receipt key to remain current. Expiry,
revocation, or rotation fails closed; artifact retention does not extend
authority. Planned cross-rotation recovery requires the separately reviewed
key-lineage phase rather than accepting an untrusted historical key.
Never copy the Actions workload seed into
Codex, Claude Code,
Antigravity, Gemini, Agy,
or a local helper to bridge that gap. Follow
../../docs/plans/FLEETBOT-AGENT-ACTUATOR-ROLLOUT.md.
Ordinary authenticated gh does not satisfy the protected actuator boundary;
report its actual author and provider readback, never App-publication evidence.
Missing actuator
Use existing authenticated gh or Git credential helpers for authorized work
when available. Report actual authorship and verify exact provider state. If no
authorized publication path is available, preserve the commit, branch, exact
base/head, prepared PR body or comment and missing operation for a recoverable
handoff. Do not invent an App receipt or retry an uncertain write blindly.
Personal-credential retirement ceremony
Run this ceremony only when the operator explicitly asks to retire a personal
credential. Ordinary publication does not require logout or credential removal.
The retirement request must name the final allowed operation.
- Publish the cutover through
port-daddy[bot] and verify bot authorship and
exact provider state.
- Remove the operator login from every agent-visible
gh host configuration,
Git credential helper, environment injection, launcher, and CI secret.
- Revoke the credential at GitHub. Local
gh auth logout alone is not remote
revocation.
- Rotate any credential ever printed, copied into a prompt, exposed to a
same-UID process, or stored in an agent-readable file.
- Verify without printing secrets: no
GH_TOKEN/GITHUB_TOKEN; no authenticated
gh auth status; no credential returned for GitHub; unauthenticated /user
returns 401; the App actuator can still perform a separately authorized test.
- Record only token kind, storage location removed, revocation timestamp,
verification results, and actor. Never record a token or recoverable prefix.
Reject these shortcuts
- Broadening task authorization into unrelated GitHub mutations, release,
deployment or an admin bypass.
- Passing the App private key to a helper running as the agent.
- Treating token expiry as proof of revocation.
- Commenting as the operator and adding a bot signature in the text.
- Retrying a timed-out write without provider read-back.
- Re-running a mutation after losing Relay's final response instead of sending
the original run id to the separate receipt-recovery workflow.
- Claiming a policy prompt prevents credential use by a malicious same-UID process.
App-path completion evidence
- GitHub mutation author is the configured App, not the operator.
- Exact mutation state and responsible-agent provenance read back.
- Installation-token cleanup is confirmed or explicitly ambiguous.
- No personal credential was supplied to the agent or actuator request.
- For a retirement: local removal and GitHub-side revocation are both proven.
1---2name: github-app-actuator3description: >-4 Publish authorized GitHub effects through Port Daddy's optional attributable5 GitHub App actuator while keeping App credentials inside its protected6 custodian. Use when App authorship and signed receipts are useful or when7 diagnosing Fleetbot publication. Ordinary existing authenticated gh and Git8 credential helpers may also perform task-authorized GitHub actions without a9 separate exception. NOT authority to start the halted local Port Daddy runtime.10license: Apache-2.011allowed-tools: Read,Write,Edit,Bash,Grep,Glob12metadata:13 source: https://skillmd.com/skills/curiositech/github-app-actuator14 category: Agent & Orchestration15 tags:16 - github-app17 - fleetbot18 - actuator19 - credential-isolation20 - pull-request21 provenance:22 kind: first-party23 owners:24 - port-daddy25 pairs-with:26 - skill: agent-pr-authoring27 reason: Defines the PR lifecycle whose external mutations this actuator performs.28 - skill: agentic-zero-trust-security29 reason: Reviews credential custody, replay, scope, and same-UID isolation.30---3132# GitHub App Actuator3334The actuator performs an already-authorized GitHub effect. It does not decide35what should happen, and the proposing agent never receives a GitHub credential.3637## Choose an authorized publication path3839Existing authenticated `gh` and Git credential helpers may perform authorized40GitHub actions within task scope. Verify the account, repository and exact41head/base without printing credentials, then report actual authorship. This42ordinary path needs no separate exception or additional approval, including43when Fleetbot is unavailable. Keep required checks, review and normal protected44merge/queue rules; release and deployment still require their own task scope.45Never extract, copy, print or export credentials.4647Choose the App actuator when its bot attribution and signed receipts are48useful. The requirements below govern that protected path. Never claim an App49receipt or bot authorship for ordinary authenticated `gh` publication.5051## Protected App boundary5253```text54agent proposal -> exact one-use grant -> protected actuator -> GitHub App token55 | |56 | +-- revoked57 +-- signed read-back receipt58```5960- In the protected actuator path, the operator's PAT, OAuth token, `pdu_` account bearer, browser session, and61 ambient `gh` login are never publication inputs.62- The GitHub App private key and installation token never enter agent memory,63 environment variables, command arguments, Git credential helpers, logs, or64 returned tool data.65- The actuator accepts a fixed operation and bounded structured fields, not a66 shell command, URL, arbitrary HTTP request, or Git configuration.67- Every grant binds the responsible actor and session, repository, operation,68 exact head/base, content digest, expiry, nonce, signing-key generation, and69 roadmap item or explicit sidequest reason.70- One logical mutation produces one durable receipt. An ambiguous response is71 resolved by exact read-back, never by a blind retry.7273Same-UID policy files are guidance, not confinement. A durable installation must74run the credential custodian as a separate OS identity or remote service and75deny the agent account access to its keychain, private key, and service secrets.7677## Use the App actuator78791. Finish and validate a coherent commit in a linked worktree. Fetch and80 reconcile before publication; keep inherited repository hooks inert when the81 local Port Daddy halt requires that.822. Prepare the exact structured operation. Supported contract operations are83 `pull-request.publish`, `pull-request.update`, `pull-request.ready`,84 `pull-request.request-reviewers`, `pull-request.comment`,85 `pull-request.review-reply`, `pull-request.resolve-review-thread`,86 `pull-request.enqueue`, and87 `pull-request.inspect`.883. Submit it only through the configured Fleetbot actuator. The canonical89 contract is `lib/github-publisher-contract.ts`; the protected Relay executor90 is `POST /v1/fleetbot/publish`. Do not invent a shell/CLI substitute.914. Require the returned receipt to identify `port-daddy[bot]`, the exact92 repository and operation, source and GitHub head SHAs, responsible93 actor/session, roadmap scope, verification time, and token-cleanup result.945. Read the provider state again. Match exact head/base, PR number/state, comment95 marker, or queue state as appropriate. Preserve the receipt with the work.966. Continue owning the PR: answer reviews through the actuator, add tests, keep97 CI green, and verify the immutable merge result.9899## Current admission status100101The Relay publisher now rejects the former `pdu_` account-bearer path. GitHub102Actions can enroll an Ed25519 workload identity through OIDC, read a bounded103standing publisher-grant snapshot, sign an exact capability, and verify the104Relay-signed receipt. The protected workload client is105[`../../scripts/fleetbot-workload.mjs`](../../scripts/fleetbot-workload.mjs);106the reviewed-code smoke is107[`../../.github/workflows/fleetbot-workload-smoke.yml`](../../.github/workflows/fleetbot-workload-smoke.yml).108109Do not overstate that foundation. The client exposes enrollment, read-only110inspection, and typed requests for PR comments, review replies,111ready-for-review, reviewer requests, merge-queue enrollment, and new-PR publication112from a bounded committed-source package;113[`../../.github/workflows/fleetbot-actuator.yml`](../../.github/workflows/fleetbot-actuator.yml)114is the protected reviewed-code entry point for those writes. Its steady-state115write path does not request OIDC or exchange identity again. Source presence is116not deployment evidence: publishing is available only after the environment,117grant operation, workload key, Relay receipt key, and deployed Relay version are118verified together. Comments and review replies may target an ordinary119same-repository PR at its capability-bound exact head; readiness, reviewer,120enqueue and update operations remain restricted to uniquely receipted121Fleetbot-owned branches. New publication creates such a branch from its122capability-bound source tree and base; it does not adopt an existing ordinary123branch. Phase A verifies the GitHub dispatcher; its124agent and session fields remain explicitly labeled as dispatcher-supplied until125the proposal broker admits them from durable identity state. Local harnesses do126not yet have a proposal broker.127128For new publication, use the offline package builder129[`../../scripts/fleetbot-publication.mjs`](../../scripts/fleetbot-publication.mjs)130and the protected workflow's `publish` operation. Follow131[`../../docs/operations/fleetbot-source-publication.md`](../../docs/operations/fleetbot-source-publication.md).132The proposed source is data, never runner code. Publication creates a new133governed App branch; it does not adopt an ordinary branch or authorize closing134its predecessor. Verify the signed source head, App branch and exact Git tree,135then the provider PR/commit readback. A source package is not a grant or proof136that the protected deployment is configured. New publication uses the same137pre-effect manifest and recovery-only path below; never retry its mutation job.138139The protected actuator prepares and uploads a signed, non-secret recovery140manifest before its first mutation attempt. Do not rerun that mutation job:141GitHub's upload-artifact tracker documents attempt-one artifacts becoming142unavailable after a rerun begins143([actions/upload-artifact#585](https://github.com/actions/upload-artifact/issues/585)).144Instead, dispatch the separate protected **Fleetbot receipt145recovery** workflow with the original run id. It retrieves the original-run146artifact and calls only `POST /v1/fleetbot/publisher-receipts/recover` with a147fresh domain-separated read proof. Recovery returns an already finalized,148Relay-signed receipt. It never reads the current PR, obtains a GitHub token,149consumes another mutation capability, or calls the publish endpoint. Missing,150running, failed, ambiguous, corrupt, and legacy-unbound intents stop without a151fallback write. This recovers loss of Relay's final response; it does not claim152that an ambiguous GitHub effect is safe to retry. Never blind-retry a write.153Recovery currently requires the original publisher grant, workload identity,154signing-key generation, and Relay receipt key to remain current. Expiry,155revocation, or rotation fails closed; artifact retention does not extend156authority. Planned cross-rotation recovery requires the separately reviewed157key-lineage phase rather than accepting an untrusted historical key.158Never copy the Actions workload seed into159Codex, Claude Code,160Antigravity, Gemini, Agy,161or a local helper to bridge that gap. Follow162[`../../docs/plans/FLEETBOT-AGENT-ACTUATOR-ROLLOUT.md`](../../docs/plans/FLEETBOT-AGENT-ACTUATOR-ROLLOUT.md).163Ordinary authenticated `gh` does **not** satisfy the protected actuator boundary;164report its actual author and provider readback, never App-publication evidence.165166## Missing actuator167168Use existing authenticated `gh` or Git credential helpers for authorized work169when available. Report actual authorship and verify exact provider state. If no170authorized publication path is available, preserve the commit, branch, exact171base/head, prepared PR body or comment and missing operation for a recoverable172handoff. Do not invent an App receipt or retry an uncertain write blindly.173174## Personal-credential retirement ceremony175176Run this ceremony only when the operator explicitly asks to retire a personal177credential. Ordinary publication does not require logout or credential removal.178The retirement request must name the final allowed operation.1791801. Publish the cutover through `port-daddy[bot]` and verify bot authorship and181 exact provider state.1822. Remove the operator login from every agent-visible `gh` host configuration,183 Git credential helper, environment injection, launcher, and CI secret.1843. Revoke the credential at GitHub. Local `gh auth logout` alone is not remote185 revocation.1864. Rotate any credential ever printed, copied into a prompt, exposed to a187 same-UID process, or stored in an agent-readable file.1885. Verify without printing secrets: no `GH_TOKEN`/`GITHUB_TOKEN`; no authenticated189 `gh auth status`; no credential returned for GitHub; unauthenticated `/user`190 returns 401; the App actuator can still perform a separately authorized test.1916. Record only token kind, storage location removed, revocation timestamp,192 verification results, and actor. Never record a token or recoverable prefix.193194## Reject these shortcuts195196- Broadening task authorization into unrelated GitHub mutations, release,197 deployment or an admin bypass.198- Passing the App private key to a helper running as the agent.199- Treating token expiry as proof of revocation.200- Commenting as the operator and adding a bot signature in the text.201- Retrying a timed-out write without provider read-back.202- Re-running a mutation after losing Relay's final response instead of sending203 the original run id to the separate receipt-recovery workflow.204- Claiming a policy prompt prevents credential use by a malicious same-UID process.205206## App-path completion evidence207208- GitHub mutation author is the configured App, not the operator.209- Exact mutation state and responsible-agent provenance read back.210- Installation-token cleanup is confirmed or explicitly ambiguous.211- No personal credential was supplied to the agent or actuator request.212- For a retirement: local removal and GitHub-side revocation are both proven.