You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FORGE's GitHub-native workflow will involve issue validation, command comments, dispatch requests, agent runs, branches, PRs, checkpoints, and reviews. If these events are only visible in transient GitHub Actions logs or chat sessions, the workflow will be hard to audit and resume.
FORGE needs a durable agent run log that links an issue to the requested agent, command, generated branch, dispatch state, PR, and final outcome.
Every accepted agent request creates or updates a durable run record. The record should survive chat/session loss and be easy for humans and future FORGE UI components to read.
The first version can be a repository-local JSONL or markdown-backed log. It does not need a database.
User Story
As a FORGE user,
I want every agent request and result to be recorded,
So that I can see what happened, resume interrupted work, and trace PRs back to issues and commands.
Requirements
Define a durable run record schema.
Store run records in a simple repository-visible location for MVP, for example:
.forge/runs/agent-runs.jsonl, or
.forge/runs/<issue-number>/<run-id>.json
Each run record should include:
run id
issue number
issue title
requested agent/runtime
requested action
requester
source comment id, where available
created timestamp
current status
branch name, where available
PR number, where available
blocked reason, where applicable
validation summary
Append or update run status as the workflow progresses.
Provide helper functions for creating and updating run records.
Ensure the command router and dispatcher can write to the run log.
JSONL file: simple append-only audit log, easy to inspect, harder to update in concurrent workflows.
One JSON file per run: easier to update, more files.
Markdown summary plus JSON details: more human-readable, slightly more maintenance.
Recommended MVP: one JSON file per run under .forge/runs/<issue-number>/<run-id>.json, plus a future index if needed.
GitHub Actions permission note:
If workflows commit run records back to the repository, they need contents: write. If run records are only posted as issue comments or artifacts, they may not. Keep permissions minimal per workflow.
Problem Statement
FORGE's GitHub-native workflow will involve issue validation, command comments, dispatch requests, agent runs, branches, PRs, checkpoints, and reviews. If these events are only visible in transient GitHub Actions logs or chat sessions, the workflow will be hard to audit and resume.
FORGE needs a durable agent run log that links an issue to the requested agent, command, generated branch, dispatch state, PR, and final outcome.
Parent Epic: #141
Desired Outcome
Every accepted agent request creates or updates a durable run record. The record should survive chat/session loss and be easy for humans and future FORGE UI components to read.
The first version can be a repository-local JSONL or markdown-backed log. It does not need a database.
User Story
As a FORGE user,
I want every agent request and result to be recorded,
So that I can see what happened, resume interrupted work, and trace PRs back to issues and commands.
Requirements
.forge/runs/agent-runs.jsonl, or.forge/runs/<issue-number>/<run-id>.jsonAcceptance Criteria
Out of Scope
Implementation Scope
Medium - multiple files or components
Technical Notes
Suggested JSONL shape:
{ "runId": "issue-123-20260703-001", "issueNumber": 123, "issueTitle": "[FEATURE] Example", "runtime": "claude-code", "action": "implement", "requestedBy": "Joncallim", "source": { "type": "issue_comment", "commentId": 123456789 }, "status": "requested", "branchName": "agent/issue-123-example", "prNumber": null, "blockedReason": null, "createdAt": "2026-07-03T00:00:00Z", "updatedAt": "2026-07-03T00:00:00Z" }Suggested status values:
Suggested helper API:
Storage options:
Recommended MVP: one JSON file per run under
.forge/runs/<issue-number>/<run-id>.json, plus a future index if needed.GitHub Actions permission note:
If workflows commit run records back to the repository, they need
contents: write. If run records are only posted as issue comments or artifacts, they may not. Keep permissions minimal per workflow.Reference:
https://docs.github.com/en/actions/tutorials/authenticate-with-github_token