Skip to content

TypeScript prototype: isolated bun build --compile binary, embedded skills, and Ticket run through Harness session #1836

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Parent

#1831

What to build

Set up the isolated TypeScript prototype directory (strict tsconfig.json with strict: true, noUncheckedIndexedAccess: true, and zero any/as assertions) and test-selection routing so changes inside the TypeScript prototype directory run only its typecheck and bun test suite without running the full Rust suite, and ordinary Rust changes do not run the TypeScript prototype suite. Deliver a standalone bun build --compile Linux executable (thirdshift <Issue URL>) that embeds the Factory skills and executes the opening half of a Ticket run: pre-flight checks (Origin match, open issue, Trusted account check), applying the Claim (in-progress), creating the Worktree with linked Factory skills excluded from git status, and running a streaming JSON Harness session with process-group SIGINT → SIGTERM → SIGKILL escalation on interruption.

Acceptance criteria

  • The repository's affected-test selector routes changes confined to the TypeScript prototype directory to tsc --noEmit and bun test in that directory without running the full Rust test suite, and changes outside the TypeScript prototype directory do not require or run the TypeScript prototype suite.
  • The TypeScript prototype compiles via bun build --compile into a single standalone Linux executable that embeds the Factory skills and links them into a created Worktree while excluding them from git status.
  • Running the executable on an Issue URL performs pre-flight checks (Origin match, open issue, Trusted account), applies the in-progress Claim label (replacing ready-for-agent if present), creates the issue Worktree and branch, writes the issue file, and invokes the Harness session with stdin null and streaming JSON parsing.
  • Interrupting a running Ticket run escalates SIGINT → SIGTERM → SIGKILL to the Harness process group and finishes Claim ending cleanly.
  • End-to-end CLI tests in bun test using temporary git repositories and fake gh and Harness executables verify pre-flight failures, Claim labelling, Worktree skill linking, streaming session execution, and process-group signal termination.

Blocked by

  • None (can start immediately)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions