Repository navigation
Description
Problem or Motivation
GitHub Agentic Workflows use a "safe outputs" pattern: the agent job holds a read-only token, and a separate step validates each write before it runs. Our implement Job gives the agent shell a worktree in the same pod as the session token of the Job (#2695 describes the gap). We have not compared the two designs.
Proposed Solution & Architectural Design
Write a short comparison, as a research note in the repository. It names the token, the process and the write path of the implement Job, and of a safe-outputs job. It lists which write the Job makes (push, PR, comment, label) and whether a validated step could make it. The result is a proposal for #2695, or a statement that the current design is enough.
Do not adopt GitHub Agentic Workflows: it runs on GitHub Actions runners, and our jobs run in the cluster.
Target Subsystem
docs/, src/devops_cli/roadmap/implement_run.py.
Existing Tool Considered
GitHub Agentic Workflows (github/gh-aw). One third-party source reports general availability on 2026-10-28; no GitHub source confirms it. Cost: about 20k tokens for the note.
Alternatives check of 2026-11-05: not-applicable.
Class: docs, no search.
Tool: none found.
Proposed design
Problem statement
The implement Job gives the agent shell a worktree in the same pod as the Job process that holds the GitHub App installation token, and the project has not compared that write path with the safe-outputs pattern of GitHub Agentic Workflows. The issue's target path is wrong: the module is src/devops_cli/roadmap/implement/implement_run.py, not src/devops_cli/roadmap/implement_run.py. This issue adds a research note that compares the two designs and ends with a proposal for #2695, or a statement that the current design is enough.
Acceptance criteria
Requirement: Research note is a new file
The change SHALL add the new file docs/research/safe-outputs-vs-implement-write-path.md and SHALL change no file under src/.
Scenario: New file in the change
- WHEN A reader lists the files that the change adds or edits.
- THEN The file
docs/research/safe-outputs-vs-implement-write-path.mdis among the added files and no file undersrc/is edited.
Requirement: Implement Job write path
The note SHALL name the token, the process and the write path of the implement Job, and SHALL cite src/devops_cli/roadmap/implement/implement_run.py.
Scenario: Implement Job section
- WHEN A reader opens the implement Job section of the note.
- THEN The section names the GitHub App installation token, the Job process, the agent shell and each write path, and cites
src/devops_cli/roadmap/implement/implement_run.py.
Requirement: Safe-outputs write path
The note SHALL name the token, the process and the write path of a safe-outputs job.
Scenario: Safe-outputs section
- WHEN A reader opens the safe-outputs section of the note.
- THEN The section names the read-only agent token, the agent process and the separate permission-controlled job that validates and executes each write.
Requirement: Write inventory
The note SHALL list each write of the implement Job and state whether a validated step could make it.
Scenario: Write table
- WHEN A reader opens the write inventory of the note.
- THEN The inventory has one row each for push, pull request, comment and label, and each row states whether a validated step could make the write.
Requirement: Proposal for #2695
The note SHALL end with a proposal for #2695 or a statement that the current design is enough.
Scenario: Conclusion
- WHEN A reader opens the conclusion of the note.
- THEN The conclusion gives a proposal for feat(roadmap): run the implement agent shell in a real sandbox #2695 or states that the current design is enough, with the reason.
Requirement: No adoption of GitHub Agentic Workflows
The note MUST NOT recommend the adoption of GitHub Agentic Workflows.
Scenario: No adoption
- WHEN A reader searches the note for an adoption recommendation.
- THEN The note contains no recommendation to adopt GitHub Agentic Workflows and states that it runs as GitHub Actions workflows, while our jobs run in the cluster.
Existing Tool Considered
No tool or library covers the need of writing the comparison; the alternatives check ran and returned not-applicable for a docs item with no tool. GitHub Agentic Workflows (github/gh-aw, https://github.com/github/gh-aw) is the open, maintained design to compare, not a tool to adopt: it compiles each agentic workflow into a standard GitHub Actions workflow and runs the agent through GitHub Actions, while our jobs run in the cluster. Its safe-outputs reference documents the pattern (https://github.github.com/gh-aw/reference/safe-outputs/, fetched 2026-11-09). The change builds no code: the note costs about 20k tokens and one short session.
Key questions
- Does the target path
src/devops_cli/roadmap/implement_run.pyexist at the commit?: No. The commit holds no such file. The implement Job's module issrc/devops_cli/roadmap/implement/implement_run.py:docs/roadmap/package-layout.mdlistsimplement_rununderimplement/, and the module docstring at line 1 states the write path. The note and every criterion cite the real path. [sources: src/devops_cli/roadmap/implement/implement_run.py:1, docs/roadmap/package-layout.md:12] - Is the missing path
docs/research/safe-outputs-vs-implement-write-path.mda false premise?: No. The path is the file that this issue asks to create, so it is absent by design, anddocs/research/is not yet a directory of the repository. The change creates the directory and the file. The stage return's claim thatsrc/devops_cli/roadmap/implement_run.pyis a file of the commit is wrong (see the first question), but the code it describes exists underimplement/, so the issue's premise holds. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py:1, docs/roadmap/package-layout.md:12]- Chosen: Treat the absent path as the deliverable and say so in the criteria. The issue asks to create the file, so a premise check must not apply to it; the criterion now states that the change adds the file.
- Rejected: Treat the absent path as a false premise. This would block every item that creates a new file.
- Where does the research note live?: At
docs/research/safe-outputs-vs-implement-write-path.md. A newdocs/research/directory keeps a comparison separate from the ADRs, which record decisions in force, and fromdocs/roadmap/, which documents each roadmap job. (proposed)- Chosen: A new
docs/research/directory. The note is a comparison that ends in a proposal, so it is neither a decision in force nor a job page. - Rejected:
docs/roadmap/. That directory holds one page for each roadmap job, and the note compares two designs. - Rejected:
docs/adr/. An ADR records a decision in force, and the note ends with a proposal for feat(roadmap): run the implement agent shell in a real sandbox #2695.
- Chosen: A new
- Which writes does the implement Job make, with which token and process?: The Job opens the draft pull request and pushes the branch and each
wip:commit, sets the title and body of the pull request and marks it ready, comments the outcome of each step and the reason of a stop, and sets Status In Progress, In Review or Blocked. It never merges. The token is the GitHub App installation token: one repository,issues,pull_requests,contentsandworkflowswrite andchecks,actionsandmetadataread, one hour. Every git, GitHub and gh call runs in the Job process, never in the agent shell; a git or gh child gets the token in its environment while it runs. [sources: src/devops_cli/roadmap/implement/implement_run.py:8, src/devops_cli/roadmap/implement/implement_run.py:14, src/devops_cli/roadmap/implement/implement_run.py:34, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md:19, CONTEXT.md:142] - What does a safe-outputs job do?: The agent job holds no write permission: it requests each action through structured output, and separate permission-controlled jobs validate and execute the permitted requests. The handlers cover issues, comments, pull requests and labels, with per-operation limits. The GitHub repository says agent jobs are read-only and sandboxed by default and configured writes are applied through validated safe-outputs jobs with scoped permissions. The fetched pages give no general-availability date, so the note states none. [sources: https://github.github.com/gh-aw/reference/safe-outputs/, https://github.com/github/gh-aw]
- Which write path should the note recommend for feat(roadmap): run the implement agent shell in a real sandbox #2695?: Keep the Job process as the only writer. Every git, GitHub and gh call already runs there, never in the agent shell, and the Job makes each of the four writes outside the agent. A validated safe-outputs step would add a second process and token for the same writes, and it runs as GitHub Actions workflows. The gap that feat(roadmap): run the implement agent shell in a real sandbox #2695 names is the token, not the write path: the token is in the environment of a git or gh child, a process of the same user can read it through
/proc, and a hook runs inside a git child with the token. The note should propose that feat(roadmap): run the implement agent shell in a real sandbox #2695 add the real sandbox for the shell that the project already plans, and should not adopt GitHub Agentic Workflows. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py:4, CONTEXT.md:142, k8s/README.md:688, k8s/README.md:689, https://github.github.com/gh-aw/reference/safe-outputs/, https://github.com/github/gh-aw]- Chosen: Keep the current Job-process write path. The runner is the sandbox and the Job process already makes every GitHub write outside the agent shell; feat(roadmap): run the implement agent shell in a real sandbox #2695 adds the real sandbox for the shell.
- Rejected: Add a validated safe-outputs step. It adds a second process and token for the same four writes, and the token exposure needs a sandbox rather than a second writer.
- Rejected: Adopt GitHub Agentic Workflows. It compiles to GitHub Actions workflows, and our jobs run in the cluster.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
docsprefix of the title gives the type.(roadmap)scope of the title gives the scope.It is a research note that informs a future design decision and blocks no other work.It clarifies whether a simpler validated-step design could replace the sandbox, saving or confirming the effort of #2695.The body scopes it as a short note naming tokens, processes, and write paths; no code change is needed.Both concern the implement Job token boundary, but #2695 asks for a code change (real sandbox) while the candidate asks for a written comparison note that informs that decision.devops-cli-service commentedon Nov 2, 2026
Status set to Ready at ac16675 (see proposed design in issue body).
devops-cli-service commentedon Nov 3, 2026
The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.
Evidence:
probe: "The path
docs/research/safe-outputs-vs-implement-write-path.mdis no file of the staging commit. No commit in the history deleted or renamed it." — this is a path the issue asks to create, so it is no false premise. The premise of the issue holds:src/devops_cli/roadmap/implement_run.pyis a file of the staging commit and its module docstring states the write path that the issue says was never compared with safe outputs.fix(roadmap): a placeholder reply of a model moves no item (#3542)
devops-cli-service commentedon Nov 5, 2026
Alternatives check: not-applicable
Class: docs. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-05. A person decides what this means for the item. The check changes no label and closes no issue.
[-]docs(roadmap): compare the safe-outputs pattern of GitHub Agentic Workflows with the write path of the implement Job[/-][+]docs(roadmap): Compare safe-outputs with the implement Job write path[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 101 characters, and the limit is 60. The type and the scope stay.
docs(roadmap): compare the safe-outputs pattern of GitHub Agentic Workflows with the write path of the implement Jobdocs(roadmap): Compare safe-outputs with the implement Job write pathdevops-cli-service commentedon Nov 9, 2026
Status set to Ready at 681529b (see proposed design in issue body).
dan-petty commentedon Nov 13, 2026
The owner approved the roadmap pipeline split on 2026-11-13 (tracker #5482). The approved design decides this comparison: it takes the safe-outputs pattern, and not gh-aw itself, because gh-aw runs on GitHub Actions, which the design rejects as the engine. #5506 builds the pattern (a model container with no credential and a write container that applies typed writes with caps) on the alternatives unit.
I close this item as not planned, because #5506 replaces it.