• v0.8.0 fbc07a552e

    v0.8.0
    Some checks failed
    release / release (push) Successful in 4s
    test / changelog (push) Successful in 4s
    test / lint (push) Successful in 26s
    test / scripts (push) Has been cancelled
    Stable

    city-root released this 2026-11-12 19:27:23 +00:00 | 14 commits to main since this release

    Added

    • The apply order installs the changelog checker as changelog in REX_BIN_DIR, with a new command of the roles tool, roles changelog install <pin-file> <bin-dir>, that apply.sh calls in three lines. It is built at the version that changelog.pin in the city repository names (module@version, as sarak.sh/mikluko/changelog/v2@v2.0.1). It builds when the installed changelog is not that build, moves it into place only when the build succeeded, and, when the build fails, mails the Operator, keeps the old changelog and does not move the city directory. A city with no changelog.pin gets no changelog.
    • gc forgejo pr comment --repo <worktree> --pr <url|number> --body-file <path> posts one comment on a pull request as the account of the token, and with --json prints the comment's id and URL; an empty body is refused with exit status 2. The Worker's worker-rework skill uses it for the note that a round of rework is done, in place of a curl to the forge.
    • The roles pack carries the Researcher, roles.researcher: a pool of the city, at most two sessions, that takes a bead of any store routed to it with gc sling roles.researcher <bead>. It runs on an acp box in gc's full-auto mode and claims with gc hook --claim --drain-ack --json. Its formula mol-researcher-work and its skill researcher are not in the pack yet.
    • The Researcher's settings, roles/agents/researcher/overlay/per-provider/claude/.claude/settings.json, deny the Agent, Edit, Write and NotebookEdit tools, which the city's own allow list permits.
    • The Operator's startup prompt names the Researcher's pool, roles.researcher, beside the Worker's two.
    • tests/researcher.sh resolves the Researcher in a throwaway city and checks its agent, its prompt, its settings and the Operator's line.
    • The Researcher has Perplexity, its own and no other agent's: roles/agents/researcher/mcp/perplexity.toml defines the official MCP server, @perplexity-ai/mcp-server pinned to 1.3.0, which an acp session receives in its session/new request, so gc mcp list --agent roles.researcher shows it and the same command for the Worker or the Operator shows none. Its key is the file ~/.config/gascity-root/perplexity-token, read when the server starts and written into no tracked file; the README gives the bao command that makes it. Its allow list is to name perplexity_search and perplexity_ask and nothing else of Perplexity.
    • The researcher skill says Perplexity finds and is not a source: a claim in the findings cites the primary source that owns it, read with WebFetch or in a clone, never a Perplexity answer. It names the two tools the role may use to find where a claim lives (perplexity_search, perplexity_ask) and says perplexity_research and perplexity_reason are not available to it.
    • The researcher skill, the instructions of the Researcher role: it answers one question from primary sources and posts its cited findings as a comment on its bead; it comes from Matt Pocock's research skill, with its UPSTREAM file and MIT LICENSE.
    • The forgejo pack has a review order: for each pull request head whose checks have completed, it makes the review bead (labels service and review, review_round counted) and slings it to the rig's Reviewer, once per pull request and head, for a bead handed over in either shape.
    • The review order is off until FORGEJO_REVIEW=on is in its environment, and holds its review back until the schedule order has marked the bead unless FORGEJO_REVIEW_NEEDS_SCHEDULE=off is set.
    • A head whose checks have not started after half an hour becomes a bead for the Operator, with pr_event=checks_not_started.
    • gc roles view beads --rig <name> shows one rig's beads, and so does gc roles view beads started in a rig's directory or below it; started anywhere else it shows every rig, as it did.
    • gc roles view beads has the groups "in review" (a review bead of the bead is open), "in rework" (the bead has a pull request and a Worker holds it, the pool waits to, or its last review failed), "approved" (its last review passed) and "parked" (a count of the beads labelled parked).
    • The Worker's skill gives two rules to follow before it pushes, under "Handing over". The first: every sentence it wrote that states a fact about the code, in the README, the docs, a comment, the changelog fragment and the pull request's description, is checked against the commit it pushes, after its last change. The second: for each test it added or changed, it undoes the change the test is for, runs the test and sees it fail, then restores the change; the pull request's description says so and names any test for which it could not. tests/formula.sh holds the skill to both by their phrases.

    Changed

    • A Worker and the Reviewer run the checker as changelog from PATH and no longer build one. Where it is absent, a Worker runs no check, says so in the pull request and mails the Operator, one mail for the whole city while it is unarchived; the Reviewer says so in its review and sends no mail.
    • Breaking: the Worker and the Reviewer no longer set permission_mode = "unrestricted" in their option_defaults: they take the city's provider default. A city that sets none gets gc's builtin default for the provider, which at gc 6bd609f is unrestricted for claude (--dangerously-skip-permissions), so such a city sees no change; a city that sets a mode of its own, such as full-auto, now has it apply to both, and a city that wants the old mode for them alone patches roles.worker and forgejo.reviewer. The README's "Permission mode" section says so, and the Reviewer's patch there no longer sets permission_mode.
    • Breaking: the Operator's permission_mode is auto-edit (--permission-mode acceptEdits) in place of unrestricted. The file tools come back, AskUserQuestion keeps working, and the user is prompted in the Operator's tab for a call that no allow rule covers: a city must list in permissions.allow of the settings file gc passes to claude what the Operator may run without asking, or it is prompted for every Bash call. A city that wants the old mode patches roles.operator. The README's "Permission mode" section says so, and the deny-permission skill no longer says that the agents it denies run in bypass-permissions mode.
    • The Worker's skill and the Reviewer's prompt tell the agent to read with Read, edit with Edit and write a new file with Write, not through Bash, and that a call the session's allow rules do not cover comes back as a refusal, which is not the end of the run: it goes on another way, and says in its pull request or review what it could not do.
    • The Worker's skill no longer says that Claude Code asks for a permission on an rm -rf of a computed path "in bypass mode too": the command is stopped and comes back as a refusal, and the rules on scratch files and on the hand-over stay.
    • The Reviewer's formula (mol-forgejo-review) says the same of its rule on scratch files and rm: the command is stopped and comes back as a refusal, and a refusal of the rm would take the hand-over with it. Its phrases and the rule itself stay, and a test holds that the step no longer mentions bypass mode.
    • gc roles view beads shows what is in flight first: "with a Worker", "in review", "in rework" and "approved", one line for each bead with its pull request's number, before "waiting on you", "with the Operator", "queued" and "backlog".
    • gc roles view beads reads the claim mark of mol-worker-work (in_progress with worker_session) as a bead with a Worker, and shows the time the Worker took it instead of the step's title.
    • A bead assigned to the user that has a pull request in review, approved or in rework is no longer under "waiting on you" in gc roles view beads.
    • A bead labelled rework, or one with a pull request that is slung to a Worker again, is under "in rework" and no longer under "queued".
    • gc roles view beads reads the beads closed in the last day every 300 seconds, where it read them every 30, and at once when a bead leaves the list; VIEW_CLOSED_INTERVAL sets the interval.

    Fixed

    • CI no longer runs a gc binary on the registry's word for its checksum. test.yaml keeps the expected SHA-256 of the pinned gc beside GC_SHA, one per architecture (GC_SHA256_AMD64, GC_SHA256_ARM64), and runs the download only when it matches; the .sha256 file the registry served beside the binary is no longer fetched. A download that does not match, or that takes longer than 180 seconds (curl --max-time), falls back to building gc at GC_SHA, as an unpublished pin does. The lint and scripts jobs set cache: false on setup-go, so the runner's cache service, which answers 500 on every save, no longer leaves a warning. Changing GC_SHA now means changing the two checksums with it.
    • tests/formula.sh compiles mol-worker-work from the checkout whatever GC_CITY and GC_CITY_PATH say, and counts the step in bytes whatever the locale, as CI does, so a Worker can run it in its session and agree with CI; the Worker's skill and Part 6 of the formula now say that fixing what a review sent back is the work while watching the run afterwards is not.
    • The permission-request order mails each pending request on a host with jq 1.6, where it mailed none when its state file was missing or empty.
    • pr state no longer assumes the forge's pages hold 50 reviews: when a page of reviews comes back empty and the forge's total says more rows are left, it asks the forge for its page size (max_response_items in /api/v1/settings/api) and counts the rows against that, so a forge that caps a page below 50 cannot hide a review of the head behind pages of other accounts' pending reviews.
    • The merge order no longer closes a review bead as shipped, or hands it to the Operator, when its pull request merges or closes.
    • gc forgejo pr review posts the review again when the account's latest approval or request for changes of the head is the same event but the forge does not count it (official false). Before this it posted nothing and exited 12, not_recorded, so an approval made before the rule on the base branch named the account could not be replaced by the tool: only a repository admin's dismissal or a new head freed it. Now it posts, reads the new review back as for any review, and says posted when it counts. When the new review is not counted either, it exits 12 as before, with the new review in review and both ids in the message. A stale review is still not posted again. The same holds for a request for changes, which the forge counts by the same rule. The Reviewer's own look for a review of the head in mol-forgejo-review is unchanged.
    • The Reviewer's formula, mol-forgejo-review, carries the rules the Worker's skill got for scratch files and rm: scratch files go in a directory made with mktemp -d under $TMPDIR and stay there; the Reviewer never runs rm, with or without -r, whatever its path: not on a path that comes from a variable or a command substitution, and not inside a script passed to bash -c or env -i ... bash -c, where Claude Code cannot resolve a path, a literal one included (a test that needs a file gone makes a new directory for each case, checks the file out from a commit that lacks it, or overwrites it with >); it never puts an rm in the command that hands a bead over; and a refusal of such a command does not end its turn, so it goes on without the rm. Claude Code stops an rm on a path it cannot resolve with a permission prompt, bypass mode or not, and a Reviewer of claudeacp raised one on 2026-11-12 while it tried a changelog guard in a scratch repository, and one of rexcity on the same day ran rm .changelog/bad.md inside a bash -c script. The rule replaces the formula's "you remove nothing with rm -rf", which said nothing of rm without -r and was not held by a test. tests/reviewer.sh holds each rule by its phrase and fails if a command of the step runs an rm, inside a bash -c string or not. A review bead poured before the release keeps the old text, since the formula is poured into the workflow at the sling.
    • tests/view-mail.sh waits for the stopped stream of gc roles view mail to exit, so it no longer fails at random with "view mail left gc events --follow running".
    • The pane views read the size of the terminal they run on, with bash 3.2 as with bash 5, and read it again at every draw; COLUMNS and LINES are used only where stdout is no terminal. Under bash 3.2 the views had cut and capped nothing.
    • gc roles view mail no longer takes a message id that starts with - for an option of gc mail peek.
    • The one line a view prints when jq fails ends with a newline.
    • gc roles view mail shortens a name with characters of more than one byte as it does one of ASCII, under jq 1.6 and 1.7.
    Downloads