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
A module that writes agent step/status to GitHub issue:
pubfnpublishComment(allocator: Allocator, issue_number: []constu8, message: []constu8) !void {
// GitHub REST API call// Comments become the live journal of agent work
};
Required event types:
"sandbox_created" — when issue-linked sandbox is provisioned
"deployment_started" — when Railway deployment begins
"deployment_succeeded" — when deployment completes
"deployment_failed" — when deployment fails
"step_completed" — when agent finishes a work step
"build_failed" — when build/test fails
3. Tri CLI Integration
Extend tri CLI to integrate with issue binding:
tri agent link <issue_number># Link current session to GitHub issue
tri agent unlink # Unlink current session
tri agent step <message># Write step to experience + publish to GitHub
Issue-Bound Sandbox Orchestration
Context
Originally, the goal was: GitHub issue ↔ sandbox container/service orchestration. What was completed:
issue → service_id/account_idin.trinity/railway_farm.json)What was NOT completed:
Problem Statement
Currently:
.trinity/experience/markdown filesThis creates a fragmented workflow where:
.trinity/experience/(where the steps are)Requirements
1. Canonical Issue-to-Sandbox Mapping
A module that provides:
.trinity/railway_farm.json2. GitHub Issue Comment Publisher
A module that writes agent step/status to GitHub issue:
Required event types:
"sandbox_created"— when issue-linked sandbox is provisioned"deployment_started"— when Railway deployment begins"deployment_succeeded"— when deployment completes"deployment_failed"— when deployment fails"step_completed"— when agent finishes a work step"build_failed"— when build/test fails3. Tri CLI Integration
Extend
tri CLIto integrate with issue binding:When
tri agent stepis called:.trinity/experience/<timestamp>_<issue_number>.md.trinity/current_issue.jsonwith linked issue4. Sandbox Lifecycle Hooks
On issue creation/deletion/close:
Implementation Notes
.trinity/railway_farm.jsonas source of truth for mappingsOut of Scope
Related: #484 (partial completion), #505 (Zig 0.15 migration)