Agency and reviews

Putnami Agency reviews your changes and records shared audit attestations.

putnami cloud setup links the workspace; the /audit skill ships as @putnami/cloud agent content.

Every hosted call also checks your role on the workspace it acts on. Audit lookups need agency.index.read. Recording an audit attestation needs delivery.run.submit. A workspace member or admin holds both; a workspace viewer holds neither. A workspace key acts only in its own workspace. A key you own as a person holds no role, so it is refused.

Review a change

Putnami starts a review of a change when its pull request becomes ready for review, as set below. Your CI needs no step for it.

The review also checks the code against its intent: the feature declarations (putnami.features.json, features/*.json) and specs (specs/*.json) of the components the change touches and the pull request's title, description and the issues it closes or cites. Putnami gives the review that text. Code that contradicts a declared requirement or the pull request's text is a finding.

The subscription review that ran on a vendor subscription with a self-hosted review worker is removed, with its commands and permissions: an audit lookup needs agency.index.read, as above.

Set who reviews and what blocks

A workspace's factory settings live in Putnami Cloud, not in putnami.workspace.json. A workspace admin sets them in the workspace's Settings, section Factory, in putnami.app, or with the set_factory_settings MCP tool:

Setting Values Default
Review executor none, pusher-routine (the Claude routine of the person who pushed the pull request's head) none
Rebase executor none, pusher-routine (the Claude routine of the person who pushed a conflicting pull request), putnami-job (Putnami's own job, suspended: nothing runs) none
Review trigger ready-for-review: when a pull request becomes ready for review, then at each commit while it stays ready ready-for-review
Post observed findings true or false: Putnami's GitHub App posts the review findings your own CI uploads on the pull request, a line comment for each open high or critical finding and one summary comment, and resolves a comment once its finding is fixed or decided false
Post the observe summary true or false: after your own CI uploads a run, Putnami posts its summary on the pull or merge request, a check of its GitHub App or a commit status and a note of the GitLab connection, so the CI job needs no code host token. Set it in putnami.app; the MCP tool keeps it as stored false
Blocking thresholds The most open findings of each severity, critical, high, medium and low, a verdict lets through, 0 to 1000 none
Mission owner repository-owner, or one member repository-owner
Agent sessions' proposals workspace (the binding in putnami.workspace.json) or putnami (publish through Putnami Cloud) workspace

Each change is a new revision that names who made it, when, and through which MCP host. A change sent on an older revision than the current one is refused: read the settings again. Every member reads them with get_factory_settings. Secrets, budgets and routine triggers are not part of them. A client that does not send the rebase executor or the observe summary keeps the stored value.

Let the pusher's routine review each pull request

With the review executor pusher-routine, Putnami reviews each pull request of the workspace apart from your CI: when the pull request becomes ready for review, then at each new commit while it stays ready. Drafts and pull requests from forks are not reviewed, and your CI needs no step for it.

Putnami starts the Claude routine of the person who pushed the head, never another member's, on their own plan and with their own rights. Each commit is reviewed once: marking the pull request ready again on the same commit starts nothing more. The routine runs the review skill and reports its findings to Putnami: a severity, a title, a file, a line and an explanation for each. Putnami's GitHub App posts the high ones as line comments with one summary comment, resolves a comment once its finding is fixed, the change page shows them, and the blocking thresholds read them.

The review spends no CI minutes and no organization key: its tokens are those of the person's routine. To turn it on, each person registers their Putnami routine (below), then a workspace admin sets the review executor to pusher-routine in the workspace's Factory settings, or with set_factory_settings.

Let the pusher's routine rebase a conflicting pull request

When the merge queue finds a pull request in conflict with its base, and the rebase executor is pusher-routine, Putnami starts the Claude routine of the person who pushed the pull request's head: never another member's routine, never across organizations. The routine runs the rebase skill on its own plan and only proposes: it sends a patch series, never a push. Putnami builds it on the base, keeping each rebased commit's author, runs the gate on it, and its GitHub App moves the pull request's head to it only once the gate passes and only if nobody pushed meanwhile. A conflict fix is its own commit, authored by the App. A pull request with no conflict keeps GitHub's "Update branch".

Your Putnami routine

Each person keeps one Putnami routine per workspace, and Putnami starts it for every routine task of theirs: the review and the rebase of their pull requests, and the build of an issue they start from the backlog. The workspace lists extension:@putnami/cloud in agentArtifacts, so the repository holds the skills the routine runs.

The simplest way needs only putnami.app: click Start on an issue of the backlog. With no routine yet, a window connects it in two steps:

  1. Create the routine on claude.ai: New task, then Set up manually. The window gives each value in the form's order: the name, the one-line instructions, API as the trigger, a cloud environment whose setup script, which the window gives, installs Putnami in the checkout, and whose network reaches Putnami's hosts, then, under Advanced settings, the repository and the Putnami connector alone. Click Create and copy the trigger's Fire URL and token: claude.ai shows the token once. Or ask Claude Code, on your computer or on claude.ai/code, to set up your Putnami routine, then add the API trigger on the routine's page.
  2. Paste the URL and the token in the window. Putnami stores them, then starts the build.

From a terminal, the putnami-routine skill creates the same routine from your own Claude Code session at the workspace root: the repository, a saved prompt versioned with the skill, the narrowest tools its tasks need and the Putnami connector, which a build uses to publish its pull request. Then:

  1. On claude.ai, add an API trigger to the routine and copy its Fire URL and token.

  2. Store them with Putnami, the token from standard input:

    printf %s "$ROUTINE_TOKEN" | putnami agency trigger register \
      --url https://api.anthropic.com/v1/claude_code/routines/<routine>/fire --token-stdin

putnami agency trigger show shows the routine Putnami starts, never the token; trigger remove removes it. Putnami holds that trigger token only, never your claude.ai credentials.

The routine's saved prompt runs only the skills its allowlist names, rebase and build, and review once the routine's skills ship it, and refuses any other request: it reports the refusal to Putnami, which stops waiting for it at once, as below. The allowlist ships with the skill: what Putnami sends never widens it, and a new version of the skill reaches your routine through the repository it checks out. One routine shares its quota and fire cap across tasks: when it refuses to start, the task waits, as below.

A routine for one task still works: register it with --skill rebase (and show or remove it with the same flag). Its saved prompt runs the rebase skill on the request in its routine-fire-payload block, and it answers before your Putnami routine for that task.

When the person has neither trigger, the routine refuses to start (a quota, a fire cap, an error), or it sends nothing within 30 minutes, nothing runs: Putnami's own rebase job is suspended until it runs on its own small machines and queue, apart from CI. The pull request says that its rebase waits, and what fixes it.

Give Putnami jobs the organization's model key

Dedicated Putnami jobs, such as Putnami's own rebase job, call Anthropic with your organization's own API key. Putnami keeps it sealed under a key of your organization. A job never holds it: the job sends its model calls to Putnami, which adds the key, counts the run's tokens and model time, and stops the run once it reaches its budget.

An organization admin stores it from standard input, with an optional budget per run:

printf %s "$ANTHROPIC_API_KEY" | putnami agency model-key set --stdin
putnami agency model-key set --stdin --max-tokens 500000 --max-model-minutes 10 < key.txt

Without a budget, a run may spend 2,000,000 tokens and 15 minutes of model time. A run that reaches either limit stops and reports which one.

model-key status shows whether a key is stored, its generation and its budget per run, never the key. model-key revoke --expected-generation <n> --confirm revokes it, and every running job that uses it stops at its next model call. The Settings › Organization › Model key page in putnami.app does the same: the key goes in a masked field and is never read back. Every command needs the organization admin role at the organization of the workspace.

Next