Shareable reports

A shareable report is a read-only page of one session that anyone with its link can open, without a dashboard account. It shows what the session did: its tool calls and commands, the goal critic’s verdict, the risk assessment, and the change with the step that wrote each block of it.

Reports exist for the people who review kōjō’s pull requests but cannot sign in to the dashboard: outside contributors, and anyone reading a public repository. The pull request’s description links each block of changed lines to its step on the report when the session may have one.

This page covers where links come from, what the page shows and leaves out, which sessions may have a report, and how links are signed, expire and are revoked. The security side is summarised in Security.

A shareable report of a session: the kōjō header with the date the link works until, the session's title, a row of facts (status, outcome, cost, tokens, duration, steps, start), a note on what the page is, the summary, the goal critic's report and the request, and on the right the risk assessment, the pull request and the list of what the page leaves out.
The top of a report, in the light theme. The page follows the reader's light or dark preference.
Where Who Link
A pull request’s description kōjō, when it opens a pull request or writes its description again (a change across repositories, a follow-up round) Each block of changed lines links <report>#step-<n>; the closing line names the session on the dashboard and the report
Share on a session’s page in the dashboard Operators A new link, shown with its expiry, and a Copy link button
kojo sessions report <session> Operators A new link on standard output
POST /api/v1/sessions/{id}/report Operators A new link and its expiry, as JSON (HTTP API)
kojo_session_report_link Operators The same, over MCP

A link is <server.public_url>/r/<token>. It is served by kojo serve on the same port as the dashboard and the webhooks, so it works wherever the forges already reach kōjō. Each link a person makes is audited as report.link, with its expiry and without the link.

kojo sessions report <session> --html <file> (and GET /api/v1/sessions/{id}/report) writes the same page to a file instead, under the same rules, audited as report.export. The file holds no link and does not expire.

What the page shows

  • The session’s title, repository, issue or pull request, status, outcome, cost, tokens, duration, number of steps and start time.
  • The summary and the goal critic’s report, as Markdown with every character escaped and no link made clickable.
  • The request: the trigger and surface and, when it came from the repository’s own forge (an issue or a comment on it, as visible as the repository), its text and who asked.
  • The risk assessment: level, score and the reasons of the rules that fired.
  • The pull requests the session opened.
  • Every step in replay order, as a tree. A tool call shows its tool, its purpose, its arguments and its output; a command shows the command, its output and its exit code; a goal check shows its command and output; the goal critic shows its verdict, the unmet criteria and the judge’s feedback; a model turn shows its model, tokens and cost. A step that wrote lines of the change lists them.
  • The change, file by file, with each changed line linked to the step that wrote it. #step-<n> in the address places the page on that step.
  • When the link stops working, and a link to the session on the dashboard for maintainers.

What the page leaves out

The page shows a field only when the report knows it is safe to show. Credentials never reach a sandbox, a step or the database, so none can be shown; these are left out because they can say more than the change does:

Left out Why
Prompts and their instructions, the orchestrator’s and subagents’ own text, and the task the orchestrator gave each subagent A model’s text can repeat its instructions, and the conversation holds team memory and the messages people sent. The tool calls and their purpose say what each step did.
What memory_search found and what memory_save stored Team and personal memory is internal.
Messages people sent the session, and their authors They were written to maintainers, not to readers of the repository.
The request’s text and who asked when it came from chat, the dashboard, the CLI, MCP or a schedule, and a title that came from there (the page says Session <id> unless the session opened a pull request) That text was written in a private place, and a dashboard login is an email.
On GitLab, the output of get_issue, list_issues, get_pr and get_review_comments (their arguments and purpose stay) GitLab returns confidential issues and internal notes to kōjō’s bot even on a public project.
Sandbox steps’ details: images, egress lists, sandbox IDs; kit setup commands and their output Kits name credentials and registries; images and egress lists describe the infrastructure.
The arguments and output of a tool the report does not know (the orchestrator’s own tools, tools added by other surfaces) Only the workspace tools, the session’s own forge tools and set_output are known to show the repository’s data and nothing else.
The config revisions the session ran with, the session’s error detail, and the error text of steps other than tool calls, commands and the critic They can name credentials, hosts and internal services.
In what is shown: the user and password part of URLs, and the name in a credential placeholder (kojo-placeholder-<name>) A sandbox’s proxy settings carry its proxy token as http://<id>:<token>@proxy, and a command that prints its environment prints them and the placeholders.

The page lists these on itself too, under Left out of this page.

Which sessions may have a report

The day-2 object settings/reports decides, per repository:

Mode Reports for
public_repos (default) Sessions on a repository that was public when the session ran
all Sessions on any repository. A report of a private repository is as private as its link.
off None

A session counts as public only when it read its repository from the forge and the forge said it was public, every linked repository it cloned was public, and, for a dry run, it named no reference repository (a dry run may clone a private reference next to a public repository). A session that stopped before it read its repository is not known to be public, and counts as private.

Whatever the mode, a session never has a report when:

  • its request was confidential: a GitLab confidential issue or internal note (the Confidential Issue Hook and Confidential Note Hook deliveries);
  • it ran a skill marked confidential, such as security-audit. The core records this when the skill starts, so a session that stops inside the skill counts too, and a skill with the name of a confidential built-in skill counts whatever a repository’s copy of it says;
  • it is a self-improvement session, or it is about no repository.

The rules apply when a link is made and again each time one is opened, against the settings of that moment. Turning settings/reports off for a repository stops every link to its sessions at once, and a link of a session that later runs a confidential skill stops working.

Why public_repos is the default: on a public repository the code, the change and the pull request are public already, and the report shows how the change was made, with the rest left out. Without it, the links of a pull request’s description lead to a sign-in page for most of the people who read it. A private repository needs an admin’s choice, because a link can be forwarded.

A link carries a token the server signs. kōjō stores no token, and so needs no table for them.

Content A version byte, the session’s revocation count, the expiry (to the second) and the session ID, followed by the first 16 bytes of their HMAC-SHA256, in URL-safe base64 without padding: about 90 characters
Key HMAC-SHA256 of the label kojo/report-link/v1 under server.auth.session_secret. Every replica with the same secret reads every link. Without a session secret kōjō makes no link: pull request descriptions link the dashboard only, the API answers 503, and kojo doctor warns (session reports).
Lifetime settings/reports.ttl: default 720h (30 days), at least 1h, at most 8760h. A person can ask for a shorter one (ttl in the API and MCP, --ttl in the CLI). A link keeps the expiry it was made with.
Revocation An admin revokes every link to a session’s report made so far: Revoke all links in the Share dialog, kojo sessions report <session> --revoke, DELETE /api/v1/sessions/{id}/report or kojo_session_report_revoke. Links in pull request descriptions stop working too; a link made afterwards works.

Revoking appends a report.revoke entry to the audit log. A token carries the number of such entries its session had when the token was made, and works while that number is unchanged. The audit log is append-only, so a revocation cannot be undone. A session’s links can be revoked 1,000 times; after that no link can be made for it.

Changing server.auth.session_secret ends every link, as it ends every sign-in.

Opening a link checks, in order: the signature, the expiry, the revocation count, that the session exists, and the rules above. A link that fails any of them gets a page that says why (not valid, expired, revoked, no longer shared), with status 404.

The page

The page is one HTML document: its style is inline, it has no script and it loads nothing. Every answer of /r/ carries:

Header Value
Content-Security-Policy default-src 'none'; style-src 'sha256-…'; img-src data:; base-uri 'none'; form-action 'none'; frame-ancestors 'none': the page’s own style, by its hash, and nothing else
Referrer-Policy no-referrer, so following a link from the page does not hand the token to another site
X-Robots-Tag noindex, nofollow, noarchive, also as a robots meta tag
X-Content-Type-Options nosniff
X-Frame-Options DENY
Cache-Control no-store, so a revoked link is not served from a cache
Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy same-origin

Every piece of text that came from outside or from a model is HTML-escaped by Go’s html/template, and a link whose URL is not http or https, such as javascript:, is replaced. Nothing kōjō logs or audits holds a token.

Bound Value
Steps listed 1,000; the page says how many more there are
One argument of a tool call 600 bytes
One output 3,000 bytes, keeping its start and its end
Summary and critic report 20,000 bytes each
The change 1 MiB of the diff
Reports rendered at once, per server 8; past that, 503 with Retry-After: 5
The steps of a report with one edit_file step open, showing its input, its output and the lines of the change it wrote, highlighted because the link pointed at it; below, the change with the step number that wrote each changed line in the left column.
A step opened from a link of the change: its arguments, its output, and the lines it wrote. In the change, #13 marks the lines step 13 wrote.
Scroll to move. + - zoom, 0 fit, Esc close.100%