ADR-052: Approvals

Date: 2026-10-10 Status: Unpolished pre-0.999.0-polish-blocker

"There is an interactive element, It lets me approve something."

"approvals are attestations obviously" "And only through it's element" "APPROVALS INTEGRATE DIRECTLY WITH THE GITHUB APP"

The element

The Approvals element is @teranos/elements' (Rubidium, 1.14.0): a panel, a list to go through, every option visible, Jev's confidence arriving after the card, the checks as segments in the GitHub button, the countdown in the buttons, the film roll, the fragment a press breaks off. "The UI that we have now for the Approvals element is done. Its finished." QNTX is a host playing it with what the node says (web/ts/approvals-element.ts), reached from ⍟ by ROOT.

The record

An approval is lines in system about the pull request by its name, owner/repo#n, of its repository:

LineBySays
approval:askedthe node, from the App's webhookit waits at a head: repo, pull, sha, base, title, link, author
approval:checkedthe node, from the App's webhooka check on that head: sha, name, state, link
approval:answeredthe humanone press: sha, option, said
approval:mergedthe humanthe node merged it for them: sha, merge_sha
approval:closedthe node, from the App's webhookGitHub closed it, merged or not
approval:failedthe nodeGitHub refused the merge: sha, error

"I want to be able to change my mind": every press is one more line, and the latest about the head is what stands. A push moves the pull request to a new head, and the lines about the old one are history. The list is a fold of the lines (server/approvals.go), and the standing watcher standing-approval tells the page when one moved.

The answer

"Me, the human the logged in user." The answer is a route, POST /api/approvals/answer, no sigil and no tool, as the git credential is ([[ADR-048-Node-Agent]]): a sigil is a tool to whoever reaches it, and the agent reaches every tool.

The node merges as the App's installation where the repository is ([[ADR-043-CodeForge-service]]), at the head the human saw: GitHub refuses a merge whose sha moved. The merge is written down by the human.

The PR story

"The context in which you need to think of PR approvals is that these are always targeting main. And the checks are what occur on the PR itself, before we even want to present it as something to approve or not."

"Click 1 means merge after CI passes, press again to force merge. If we still wait for CI, the NO will cancel the yes. Press NO again and it's definitely NO."


Multiple places where an Approval Request can pop-up.

it depends

it depends on if you are using the App or not

it depends on if you are looking at a Chat right now

it depends on if you are in a Room and are okay with that Room Participants requesting Approval for something.

Approval's should only really be for things that only a human can resolve. It means that not every little PR needs to go through Human Approval. ChatGPT: The current server/approvals.go follows the earlier model.

Approval's are Human

Human time is expensive

There is a cost to putting something in front of a Human being.

A human being that sleeps can obviously not approve anything.

A human being that is having lunch, also cannot, and we aren't supposed to disrupt it's lunch or dinner.


Via Magic Island

"Push notifications is something I want though, especially for approvals" "the magic island"

Via Rooms

Not Started

Via Agent

Not Started