Skip to content

Local builds wait only for their person and close after a week idle - #38

Merged
ndbroadbent merged 1 commit into
mainfrom
local-builds-waiting
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
local-builds-waiting

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Local builds belong to the person whose run they were. From the adoption check: Talira's stale local build #2 sat in everyone's waiting list.

  • Who made a build: builds.created_by_user_id (migration 000041) is set when a person's token creates the build, on REST POST /api/v1/builds with a vcu_ token and MCP create_build with a user's token or OAuth. A project token leaves it empty.

  • Waiting lists: whoami's waiting_for_review and list_builds with waiting_for_review: true show a local build only to the person who made it (Model::waits_for). Other members and project tokens see CI builds only.

  • Idle local builds: builds:expire closes a local build that has waited a week with nothing happening (no review, comment or snapshot change), with the note "Closed without review: a local build, idle for 7 days." It stays in the build list, and a new local run waits afresh.

  • Docs, "Repositories without pull requests":

    • someone has to review main's builds, and the repo's AGENTS.md should say who;
    • the recommended setup is review mode with the agent that pushed reviewing its push;
    • wait only where a deploy mustn't go out with an unreviewed change, and only if someone reviews within the timeout;
    • local builds show only in their person's lists and close after a week idle.

    list_builds' waiting_for_review doc says the same. Skills regenerated, plugin 0.1.38 (Docs: GitHub App and required-check gaps found adopting VisualCI in our own repos #37 has 0.1.37).

Test: the owner's local build and a CI build both waiting.

  • The owner sees both in whoami and in list_builds, and the two lists agree.
  • Another member and a project token see only the CI build.
  • After 8 idle days, close_idle_local closes the local build with the note and leaves the CI build.

MCP and API request tests pass on docspring-dev; clippy and fmt are clean.

Review: the MCP tools-list JSON snapshots change (the waiting_for_review description). No screenshots change.

… builds.created_by_user_id (migration 000041) from a person's token (REST, MCP); whoami and list_builds' waiting_for_review show a local build only to its person; builds:expire closes local builds idle 7 days with a note; docs: who reviews main's builds, review mode recommended, wait only with a reviewer; plugin 0.1.38
@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #161 · 2 changed, 10 added, 300 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

PR #38: waiting_for_review description now mentions local builds; 10 new JSON snapshots from the local-build visibility and 7-day close spec.

This PR vs base: nothing since #157, across 2 builds

Snapshot Before After
json/mcp/lists_the_tools_each_kind_of_token_can_use/tools-list-project-token (changed) text text, see the build
json/mcp/lists_the_tools_each_kind_of_token_can_use/tools-list-user-token (changed) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/create_build (added) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/create_build-2 (added) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/list_builds (added) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/list_builds-2 (added) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/list_builds-3 (added) text text, see the build
json/mcp/a_local_build_waits_only_for_its_person_and_closes_after_a_week_idle/list_builds-4 (added) text text, see the build
and 4 more in the build

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit 87d598e into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the local-builds-waiting branch December 2, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant