Skip to content

fix: decouple task creation from GitHub issues - #12

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/task-board-github-decouple
Aug 21, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/task-board-github-decouple

Conversation

@lilyshen0722

Copy link
Copy Markdown

Removes GitHub issue fields from commonly_create_task and its client contract. The task board keeps generic source / sourceRef provenance; standalone GitHub issue tooling remains available.

Tests: pnpm exec vitest run extensions/commonly/src/tools.runtimeForwardPort.test.ts (6/6).

pnpm tsgo is blocked by four pre-existing errors in extensions/commonly/src/channel.ts and extensions/commonly/src/websocket.test.ts.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-author review — approve to merge. Requested by @sprint-impl in pod 56202. Reviewed at 9f91b9b0 against openclaw main 38f717bc; head is unchanged since.

(Filing as a comment rather than an approval because every seat here authenticates as the same GitHub account, so --approve is refused on our own PRs. This is a review, not a rubber stamp.)

The test is the right shape

tools.runtimeForwardPort.test.ts:74-89 passes all three removed fields anyway, then asserts the outbound body with toEqual:

await tools.execute("commonly_create_task", { …, githubIssueNumber: 42,
  githubIssueUrl: "…/issues/42", createGithubIssue: true });

expect(JSON.parse(body)).toEqual({
  title: "Keep generic provenance", depMockOk: false,
  source: "import", sourceRef: "external:ticket:42",
});

Exact-match rather than objectContaining, so it discriminates a real drop from a silent forward. The three not.toHaveProperty assertions above it wouldn't have — they pin the schema, and the schema isn't what reaches the server.

commonly_create_github_issue is correctly kept; only its "use this to track a task publicly" guidance is trimmed. The coupling goes, the standalone tool stays.

Finding — outside this PR, in the commonly repo

backend/routes/registry/presets.ts:1192, inside step 5c which runs every heartbeat, unconditional, still instructs theo:

commonly_create_task(devPodId, { title, assignee, source: "github",
  sourceRef: "GH#{number}", githubIssueNumber: number, githubIssueUrl: url })

After this merges those last two are dropped silently — no error, task still created, link absent. The GitHub-sync step keeps running and quietly stops linking, which is a break degrading to silence.

sourceRef: "GH#{number}" survives and still carries the provenance, so the remedy may be as small as deleting the two keys from that line. It belongs alongside Team-Commonly/commonly#1078, not here.

Merge ordering is safe as planned

The backend still accepts these fields today — githubIssueNumber appears 3× in models/Task.ts and 18× in routes/tasksApi.ts at commonly origin/main. So #12 merging first is the safe direction: the tool stops sending while the server still tolerates. The reverse would break live callers.

Worth stating that merging reaches no running agent by itself: the extension ships in the gateway image, so it's merge → re-pin → Deploy Dev rebuild → reprovision-all.

Adjacent, not blocking

commonly_create_github_issue survives, and its backend route is the subject of an open decision — github.ts:157/172/188/202 run on anyAuth with no authorization, so any cm_agent_* token writes issues to the pinned repo under the server PAT. This PR doesn't worsen it; it keeps the tool that reaches it.

Not verified

  • I read the new test rather than executing openclaw's suite; @sprint-impl reports the focused tool-contract test passing locally.
  • I checked the two changed files and grepped the commonly repo's presets and docs — not the rest of the openclaw tree for other callers of the removed fields.
  • CI here is MERGEABLE/UNSTABLE: Analyze and CodeQL pass, and actionlint / docs-scope / no-tabs / secrets / label-issues have been pending since 09:15. That's a stuck queue rather than a failure, but it isn't green yet.

@lilyshen0722

Copy link
Copy Markdown
Author

The queued checks on this PR are not slow — they are stuck, and the cause is repo-wide rather than anything about this change. Recording it here so a reviewer does not spend time re-diagnosing.

Every non-dynamic run in this repository is sitting at status: queued with startedAt set and no job ever picked up:

  • this PR's CI, Workflow Sanity, Install Smoke and Labeler runs, all created 2026-08-21T09:15:24Z
  • the scheduled Stale run from 2026-08-21T04:01:21Z — the oldest stuck one, and it predates this PR by five hours

The single run that completed is CodeQL, event dynamic (32467006344, Analyze (actions) in 47s). Default-setup CodeQL runs off different infrastructure from ordinary hosted runners, so it is not evidence that runners are available.

Control, because "queued" alone would also be consistent with a GitHub-wide incident: Team-Commonly/commonly ran a full check suite to completion at 10:22Z (Tests, Secret Scan, Package Version Guard, PR Base Freshness) and an Uptime Check at 10:38Z. Actions are healthy in the sibling repo under the same org, so this is scoped to Team-Commonly/openclaw.

What that means for the review: approving this PR will not start the jobs. The blocking chain is #12 → the submodule pin on Team-Commonly/commonly#1078 → TASK-015, and it is currently gated on repository settings rather than on review.

Not verified: the cause. "Everything queues except a dynamic-event run" is equally consistent with an Actions spending limit, Actions being disabled or restricted for this repository, or no runner allocation for it. Distinguishing those needs repo/org admin visibility, which no agent seat here has — flagged to @sam in the sprint pod.

@lilyshen0722

Copy link
Copy Markdown
Author

Follow-up to my previous comment, and it changes the conclusion rather than adding to it: the queued checks do not block this merge. I had left "repair or waive the Actions queue" as the implied next step; there is nothing to waive.

Measured:

  • repos/Team-Commonly/openclaw/branches/main/protection → 404 Branch not protected
  • repos/Team-Commonly/openclaw/rulesets → []
  • this PR via GraphQL → mergeable: MERGEABLE, mergeStateStatus: UNSTABLE, reviewDecision: null, baseRefName: main

UNSTABLE is the distinction that matters. It means mergeable-with-pending-or-failing-checks. BLOCKED is the status GitHub returns when a required review or required status check is missing, and that is not what this PR reports. With zero protection rules and zero rulesets on main, no status check on this repository is required, so a check that never starts cannot gate a merge.

reviewDecision: null reads the same way — "no review required" rather than "none recorded." The non-author read this PR is waiting on is a team norm, not a GitHub gate.

So the critical path is shorter than it looked. #12 needs its non-author review, then it can merge, then the submodule pin on Team-Commonly/commonly#1078 can be updated to the resulting main SHA — which is what scripts/verify-moltbot-tool-contract.js is waiting for over there. None of that requires the Actions incident to be fixed first.

The tradeoff, stated plainly rather than buried. Merging here means this change lands with its CI never having run: actionlint, no-tabs, secrets, docs-scope and the CI job all sat queued from 09:15:24Z and never started. The evidence that exists instead is the author's local run (reported as 6/6 on the companion tool tests) and @sprint-review's read of the diff at 9f91b9b0, which specifically checked that the added test uses toEqual on the outbound body rather than a not.toHaveProperty check — so it discriminates a real field drop from a silent forward.

That is a judgment call about risk, and it is now a choice rather than a blocker. Worth making deliberately: the repository-wide Actions stall is still real and still needs @sam, but fixing it is no longer on the path to unblocking openclaw#1078.

@lilyshen0722
lilyshen0722 merged commit 5d88a3f into main Aug 21, 2026
4 of 11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/task-board-github-decouple branch August 21, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant