Repository navigation
feat(workboard): project board targets, fresh-origin tickets, draft PRs on accept - #21
Merged
Merged
Conversation
…Rs on accept - Boards carry an operator-only orchestration.defaultTarget; new cards on the board copy it unless they bring a target, a workspace, or a session. - Node tickets fetch origin and branch from origin/HEAD (or baseRef); the host import fetches origin when it lacks the base commit. - Moving an imported node ticket from review to done pushes the commit and opens (or reuses) a draft PR, with the token from plugins.entries.workboard.config.github.repos keyed by the host clone's origin. Failures block the card; moving it to done again retries. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The dev loop's first live ticket (voice-diary #41) worked only through voice-diary-specific manual setup:
node-claudetarget, anddevcould not create node tickets itself.HEAD, and the host clone was never refreshed. After the first merged PR, tickets start from an old base and the bundle import fails on missing prerequisites.Solution
orchestration.defaultTargeton a board is copied into new cards on that board, including cardsdevcreates withworkboard_create/workboard_decompose. Cards with their own target,target: null, a non-scratch workspace, or a linked session keep theirs. It is set only throughworkboard.boards.upsert; the agent board tool's schema excludes it. It is stored inorchestration_json, so there is no SQL migration.git fetch originin the node clone and creates the ticket branch at the commitbaseRefresolves to (defaultorigin/HEAD), with no upstream tracking. The import fetchesoriginin the host clone when it lacks the base commit.reviewtodonepushes the imported commit from the host clone and opens a draft PR through the GitHub REST API, or reuses an open PR for the branch.published.plugins.entries.workboard.config.github.repos."<owner>/<repo>".token, a SecretRef (manifest secret input). The lookup is keyed by the host clone'sorigin, so board or card data cannot redirect the token. The token reaches git only as an environment-only auth header.doneagain retries.stats()moved fromstore-core.tstostore-boards.ts(it reads the same per-board aggregates aslistBoards) to keepstore-core.tswithin its line-cap ratchet.config/assertion-safety-baseline.txtshrinks by one forstore-core.ts.docs/plugins/workboard.md.Impact
github.repos.*.token(7 config paths; approved by the user).publishedin@openclaw/workboard-contract.0e028045(still in review) has one.Evidence
pnpm test extensions/workboard: 29 files, 410 tests pass. New tests:pnpm test extensions/workboard/src/node-ticket-handoff.test.ts --maxWorkers=1: about 50s wall time, mostly worker compile; the tests themselves take about 0.5s each.pnpm tsgo:extensionsandpnpm tsgo:extensions:testpass. oxlint on the changed files,check:import-cycles,check:bundled-channel-config-metadata,format:docs:check, anddocs:check-linkspass.--max-priority P1, gpt-6-sol): scoped-clean.main:check:test-mock-exports(unrelated agent and CLI tests),config:docs:check(fork config budget drift already 4547 > 4524 on main; this PR adds 7 paths), andplugins:inventory:check.0e028045,tomorrowflow/voice-diary) is the proof.🤖 Generated with Claude Code