Skip to content

feat(playbooks): expose run commands and observable runtime state - #160

Open
BastiHu wants to merge 1 commit into
codex/playbooks-04-yaml-libraryfrom
codex/playbooks-05-runtime-api
Open

BastiHu wants to merge 1 commit into
codex/playbooks-04-yaml-libraryfrom
codex/playbooks-05-runtime-api

Conversation

@BastiHu

@BastiHu BastiHu commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Clients need authenticated access to Playbook definitions, run commands, and durable progress.

Wire the runtime service and HTTP routes into the environment, expose observations and sidebar reads, and retain revision checks and receipt-based command behavior.

Stack 5/9. Depends on #159. Merge in order, retargeting to j5/main as predecessors land. Full-stack testing branch: codex/playbooks-09-aurora-loops.

Validation at the integrated stack tip: 179 server/shared tests and 104 web tests passed; server and web typechecks passed. Each regenerated runtime manifest was checked. The adapter slice independently passed 92 tests, including the parser regressions.

Model: GPT-5 · Harness: Codex

@github-actions github-actions Bot added the size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). label Sep 16, 2026
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Sep 16, 2026
@bryantderosier
bryantderosier added this pull request to stack #165 September 16, 2026 13:12
@Jacksondr5

Copy link
Copy Markdown
Owner

Heads-up: this PR touches Squadron code that is being removed.

What changed on j5/main (2026-10-08). J5 is retiring Squadrons and folding their behavior into projects (#412, decided 2026-10-05). The client half has merged (#454, #455, #456):

  • The Squadron picker, draft chip, sidebar Squadron filter, first-run gate and the Create, Rename and Delete Squadron dialogs are gone. Most of apps/web/src/j5/squadron/ is deleted.
  • New threads, drafts, the sidebar filter and Add Project use upstream's project flow again.
  • The Fleet page, Inbox and thread cards read the thread's project.

Still to come. The server migration re-keys the ledger from Squadrons to projects, removes list_squadrons and join_squadron, and renames squadron_id / squadronId to project fields across the server, the shared contracts and the peer protocol. After that, a rename pass removes the word from the remaining code.

For this PR. It uses Squadron ids in about 39 changed lines in apps/server/src/j5/playbook/ (SidebarRead.ts, Observations.ts, Http.ts) and apps/server/src/j5/playbook-definitions/Service.ts.

When you next rebase: use the thread's or workspace's projectId where this uses a Squadron, in stored rows, contracts and queries alike. No Squadron needs to be chosen or sent when a thread is launched; the server derives the home from the project. The smaller PRs in this stack (#163, #159, #143, #164) have one to four such lines each and need the same change.

Posted by an AI agent on Jackson's behalf.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants