Skip to content
rymiwePublic

About

Shared heraldry for quartermaster, conclave, bridgekeeper, bopeep and orderly

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

146 Commits

Folders and files

Repository files navigation

guild crest: a guildhall on a gold shield

The Workflow Guild

Six deterministic tools for agent workflows, and the heraldry they share.

quartermaster crest: an abacus on a red shield
quartermaster
conclave crest: a gavel on a purple shield
conclave
bridgekeeper crest: a lantern on a blue shield
bridgekeeper
bopeep crest: a crook on a green shield
bopeep
orderly crest: a gold bell on a black shield
orderly
thresher crest: a gear-toothed drum and a wheat stalk on a tenné shield
thresher
Tool What it does Motto
quartermaster Reads every seat's usage pools and routes work to whichever has headroom. Rationes finitae sunt: the rations are finite
conclave Seats a council of model voters on a brief; a judge returns one decision. Quot capita, tot sententiae: as many heads, as many opinions
bridgekeeper Hooks and gates on every step that leaves the machine: push, PR ready, review post and merge. Thou shalt not push
bopeep Shepherds every open pull request, yours and your team's, to its next step, and merges the safe ones. They will NOT come home on their own
orderly The orderly room board: the day's business on a browser new-tab page. Audite, audite: hear ye, hear ye
thresher Harvests small, sourced tasks from review leftovers and backlogs, winnows out the chaff, and turns each sheaf into a tiny PR. Triticum a palea: the wheat from the chaff

The style sheet

index.html is the full style sheet: crests, small-size tests, palette, and image-model prompts for the painted character crests. It is published with GitHub Pages at https://rymiwe.github.io/guild/.

Rules of the house

  • Three shared colors, one per tool. Parchment #efe4c8, ink #1d1a16, tarnished gold #b8892f, plus the tool's field color.
  • Thick, wobbly ink outlines. The wobble is an SVG displacement filter, so every crest gets it the same way.
  • The glyph must read at 16px. The painted character crests are for READMEs and pages; the glyph is for everything small.

Org config: .guild.json

The tools are public and carry no employer names. Every org fact (repo names, logins, ticket prefixes, persona names) lives in .guild.json files under the work root, which git never sees:

File Holds
<work root>/.guild.json Org-wide: persona names, colleague handles, author logins and emails, secret references (never values).
<work root>/<repo>/.guild.json Per repo: ticket prefixes, changelog route, CI workflow, lint allowances. List it in that checkout's .git/info/exclude.
  • The work root is each work_path_prefixes entry in ~/.config/work-account/config.json. Its work_github_owners say which repos are work. That file keeps those two keys only.
  • Lookup. Repo slug (an argument, or the origin remote) → owner must be a work owner → canonical checkout <work root>/<repo> → its .guild.json, then each parent's up to the work root. The nearer file wins; objects merge key by key. Clones and worktrees elsewhere read the canonical checkout's file.
  • Sections. Top-level keys are shared. A tool keeps its own keys under its name.
  • Fail closed. A missing or malformed file, or a missing key, exits 3 and names the file and key. No environment variable bypasses it. A tool that posts, merges or pushes loads the file itself and never treats "not work" as "config present".
  • No tool paths. One tool calls another by command name on PATH, and fails closed when it is absent.
  • No .guild.json in a tool repo. Tests use made-up names such as AcmeCorp.
  • One loader: guild-config in quartermaster. Shell callers run guild-config [--repo OWNER/NAME | --org] KEY; Python callers import it.
  • The roster. roster lists the tools, one per line. bopeep sync reads it, so a new tool joins sync by being added there.
  • Every command is a wrapper. Each tool's install.sh writes its commands as two-line guild-exec wrappers and --check compares their text; only guild-exec itself is a link.
  • Wrappers run the main checkout. A machine-local wrapper calls guild-exec TOOL PATH "$@" (quartermaster), which runs ~/code/TOOL/PATH only when that checkout is clean and on its default branch, and otherwise exits 3. Branch work goes in a worktree; bopeep sync fast-forwards the main checkouts.

A starting org file, with made-up values:

{
  "personas": ["Pat"],
  "colleagues": {"alex": "alex-gh"},
  "author_logins": ["you-gh"],
  "author_emails": ["you@example.com"],
  "secrets": {"review_token": "<a secret manager reference>"},
  "conclave": {"lint_names": ["Pat"]}
}

Grok Bot pace check

bin/grokbot-pace-check is an opt-in usage stop for routine pre-check scripts and bots. It reads quartermaster's seat-usage cache ($SEAT_USAGE_CACHE_DIR/latest.json, default ~/.cache/seat-usage/latest.json) and prints one line.

  • pace = % of the week's Grok Bot usage used ÷ % of the week elapsed, both at the reading's time. The unrounded pace is compared; it is rounded only for display.
  • One threshold, 1.1x. Above it the check exits 1 and the caller stops and reports the line to its owner. At or below it exits 0. There are no other tiers.
  • 5% floor. Below 5% of the week used, the check passes at any pace. Two hours after the reset, 1.1x is 1.3% used, so one busy session would otherwise stop every routine.
  • Fail closed. A missing, unparseable or incomplete meter, a bot_pct outside 0..100, a reading stamped more than 60 s in the future, a reading from a week that already reset, or a reading older than the staleness window exits 3. The window is 1 hour from as_of.grokbot; set --max-age-s or GUILD_PACE_MAX_AGE_S to change it.
grokbot-pace-check || exit "$?"   # preserve the checker’s exit code

Outcome ledger

bin/guild-ledger keeps one append-only record of what each tool decided and what happened next, in ${GUILD_LEDGER:-~/.local/state/guild/ledger.jsonl}. guild-ledger append writes one validated event from stdin and skips an id already present. guild-ledger backfill joins Conclave's posted review findings to GitHub over REST. guild-ledger-refresh.timer runs both backfills daily on BLD and pings on a failure. No wrapper is installed: run it from the Guild checkout. Schema, proxy and limits: docs/outcome-ledger.md.

Poteto watch

bin/poteto-watch is the deterministic BLD boundary for the Grok Bot automation that reads @poteto posts on X and opens small, tested draft PRs in public Guild repositories (guild plus roster). It enforces the personal-repo allowlist, kill switch (~/.config/guild/poteto-watch.off), grokbot-pace-check, idempotent post deduplication, daily/open PR caps, diff/secret/work-owner guards, true-check reporting, and guild-ledger logging. Standing instructions and rollout phases: docs/poteto-watch.md.

Changing a crest

index.html holds the source. Its hidden SVG sprite defines each glyph as a <symbol>.

  1. Edit the symbol in index.html.
  2. Run scripts/build-crests.py. It rewrites crests/*.svg. Standard library only.
  3. Copy the new file to the tool's repo as assets/logo.svg.

About

Shared heraldry for quartermaster, conclave, bridgekeeper, bopeep and orderly

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages