docs/architecture.md - 30k-ft architectural guide (gc-toolkit) (tk-d6imi)#225
Open
zook-bot wants to merge 1 commit into
Open
docs/architecture.md - 30k-ft architectural guide (gc-toolkit) (tk-d6imi)#225zook-bot wants to merge 1 commit into
zook-bot wants to merge 1 commit into
Conversation
New central `docs/architecture.md`: a 30,000-ft map of how gc-toolkit's capabilities are implemented and cohere. Organized as the pack's two flows (Attention — the Bead-Universe Operating Model, epic tk-q4xaj; and Delivery — filed bead → landed change) plus three support layers (engine health, fork & upstream, doc & knowledge cohesion) on one composition substrate (gastown imported wholesale + additive bare-name fragment-append patches). Each entry carries delivers / pattern / plays-with / defined-in, and closes with the consistency-map forward lever. Every "where defined" was verified against the real files at the current tip; corrections folded in vs the scoping brief: the operative Helm surface is assets/scripts/gc-helm.sh (services/helm is the emerging successor); the merge-gate is a composable head-bound check-set landed by the single-writer merge-skill, not an unconditional refinery auto-merge; the fork/upstream layer is keeper-fronted, polecat-executed, refinery-landed; doc-keeper is a formula-role on the polecat pool, not a standing agent, and its audits target the agent-brief docs. Carries the required docs/ Scope section and frontmatter. Also files specs/tk-d6imi/requirements.md as the durable decision record for this bead (local tier per docs/file-structure.md).
Contributor
Author
|
Codex signoff (pre-open, comment-only — not an approval): Codex pre-open review: COMMENTReviewed branch Verdict: Ready to merge. No blocking findings. Coverage:
Artifact: |
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.
Summary
Brief — write
docs/architecture.md(gc-toolkit)Goal
Write a new central
docs/architecture.md: a concise, 30,000-ft architecturalguide to how gc-toolkit's concepts are implemented. It names the core
features the pack delivers, the architectural pattern behind each, how they
play together, and where each is defined — so the repo reads as one coherent
system and both what's built and what's built next can be checked for
consistency against it.
Audience & altitude
what the pack is and how it's implemented. NOT a contributor how-to.
tutorialize. No code, no config syntax, no CLI-flag references, no
file-line detail in prose.
architecturally, not "where to put your change."
micro-structure. Each pattern is a phrase; interplay is a line; resist
expanding into how-to.
Distinctness (one doc per subject — link, don't duplicate)
foundation.md= the why (beliefs/goals) → link.roadmap.md= the where-to (direction/primitives) → link.README.md= pitch/install;file-structure.md= filing conventions → link.architecture.md= how it's built & how it coheres (patterns + interplayOrganizing spine: two flows + support, on one composition substrate
The pack exists to run two flows; everything else supports them, all wired
by one substrate.
Flow 1 — Attention (the Bead-Universe Operating Model; epic
tk-q4xaj)Pre-advance work before it claims human attention.
hand-off → resident single-bead host.
proactivepool runningmol-first-reaction(cheap read →first-reaction card → flag to Helm; sheds first under session pressure;
mr-only for any code) → Helm attention board (board-weighted surface) →
bead-host (resident conversation owning one bead).
agents/proactive,formulas/mol-first-reaction.toml,services/helm,agents/bead-host.Flow 2 — Delivery (filed bead → landed, live change)
integration-branch graduation (multi-bead) + two-sided merge-gate (human
approval + codex-review-at-live-head) + refinery auto-merge + post-merge
fast-forward sync of live rig checkouts.
refinery landing →
reconcile-rig-checkouts(merged→live).template-fragments/convoy-integration-branch,docs/work-bead-state-machine.md,doctor/check-merge-gate-drop+check-pr-prep-*,orders/reconcile-rig-checkouts.toml,docs/rig-checkout-reconciler.md.Support layer — Engine health (keep the flows running unbabysat)
formulas/mol-*-patrol.toml,template-fragments/layered-startup-discovery,overlays/cycle-recycle,doctor/check-*.Support layer — Fork & upstream (live alongside gascity without forking it)
diverging from upstream IS the candidate; no held branches/labels) +
keeper-mediated rebase/land + commit-body-as-review-packet.
packs/gascity-keeper,template-fragments/upstream-engagement,docs/gascity-local-patching.md.Support layer — Doc & knowledge cohesion (keep what's written true, incl. this doc)
historical) + automated drift/memory audits.
docs/file-structure.md,formulas/mol-doc-keeper-*.toml,orders/doc-keeper-*.toml.Composition substrate — how all of the above is wired & where each lives
patches (never fork, never whole-file mirror) + opt-in sub-packs for
rig-specific doctrine.
pack.toml([imports.gastown];[[patches.agent]]fragmentlists),
template-fragments/*,packs/gascity-keeper/.*-thread) vs patched-imported gastown roster (mayor/deacon/polecat/refinery/
witness); dog intentionally not vendored (
agents/DOG-NOTE.md).Steward
mechanikowns the pack's evolution; edits to versioned content flow throughbeads to polecats (dispatch-don't-edit). Mention briefly, don't expand.
Per-capability entry contract
For each capability: what it delivers · the architectural pattern that
implements it · how it plays with the rest · where it's defined. A small
two-flows diagram (ASCII or mermaid) is welcome IF it aids the at-a-glance "how
they play together" — optional, keep it minimal.
Forward lever (keep it light — a few sentences, NOT a routing tree)
Close with a short note: the doc is the consistency map — new capabilities
should slot into one of these flows/layers and reuse its pattern; that's how
"what gets built next" stays coherent.
Verification (accuracy is the point of a cohesion doc)
You are doing the file-level survey — the code wins. Correct any pattern name
or definition-site this brief got wrong.
pack.toml, the fragments, theformulas, the docs). If a claimed pattern isn't how it actually works, fix the
doc.
Deliverables (both committed on your branch)
docs/architecture.md— the guide (central tier; standard frontmattername/description per
file-structure.md).specs/<this-bead-id>/requirements.md— this brief as the durable decisionrecord (local tier; per the filing-documentation rule it must not live only
as a bead comment).
Acceptance criteria
docs/architecture.mdexists; central-tier frontmatter; ~1–2 pages; scannable.entry carries delivers / pattern / plays-with / defined-in.
foundation.md,roadmap.md,file-structure.md,work-bead-state-machine.md,gascity-local-patching.md; references epictk-q4xaj.specs/<bead-id>/requirements.mdcommitted.Process
Implementation notes
Implemented: docs/architecture.md (30k-ft architectural guide, two flows + 3 support layers + composition substrate; delivers/pattern/plays-with/defined-in per capability; Scope + frontmatter) and specs/tk-d6imi/requirements.md (decision record). All definition-sites verified against files at tip; base ff'd to e843524. Branch polecat/tk-d6imi @ 57592f6.
Refinery handoff
tk-d6imi(task, P2)polecat/tk-d6imimain57592f62; PR opened codex-green.