Skip to content

Decision: the cgis GitHub App is a credential, not a product — revisit after #302 and #246 #305

Description

@zaebee

Recording a call made on 2026-07-31 so it doesn't get relitigated from scratch.

The question that came up — should cgis become its own GitHub App, a review agent you install on a repo? — is really two questions with opposite answers.

Decided: App as credential and identity — yes, done

Shipped in #304. A GitHub App token replaces both GITHUB_TOKEN (whose PRs park their checks in action_required forever) and the PAT that was the first instinct. It is scoped to the repo, lives an hour, rotates itself, and belongs to the App rather than to a person.

Cheap: no hosting, the token is minted inside the workflow. The identity is a real side benefit — reviews posting as cgis[bot] rather than github-actions[bot] matters now that an architecture audit is a paid offering (docs/AUDIT.md).

Setup is a repo variable CGIS_APP_ID and secret CGIS_APP_PRIVATE_KEY; see #304.

Not yet: App as an installable review agent

The blocker is not infrastructure. It is that guardian's output is not yet measurable, let alone good.

Evidence from the first production runs after guardian was restored (#300):

There is also an unanswered business question: today's runs cost 13–20K tokens each. On someone else's repository, somebody pays for that inference. That is pricing and rate limiting, not engineering, and it needs an answer before installation is offered to anyone.

Re-evaluation trigger

Revisit when #302 (frozen-finder replay, so results are reproducible) and #246 (a settled finder+skeptic operating point) are both closed. Until there is a repeatable measurement, a product discussion is an argument about taste.

Related ambition already parked in Vision (parked): #45 (SaaS autodoc), #51 (autonomous background agent), #67 (semantic intelligence infrastructure). This decision does not block them — it sequences them behind a working measurement.

What would change the answer early

  • Finder variance drops to something defensible on a fixed input.
  • A paying user asks for multi-repo installation specifically (distribution pull, rather than a technical push).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions