Topics
Organize work as topics — one directory per piece of work under .goga/history/<year>/<topic>/, each usually living on its own git branch.
The topics domain is the work-tracker view of the history tree: it answers what is being worked on, where it lives, and how to get onto it. Which tasks it solves:
- See the work — the board (
goga topics board) is the cross-branch inventory of one year: one entry per topic with its own branch, its statuses, its hosting branches, and (with--info) its todo summary and its divergence marker against the configuredtopics.base_ref— or the--per-hostaudit view with one row per topic and hosting branch of the own-branched topics, and--jsonfor the machine-readable form. It reads branch trees without checkout, so the board sees committed work on every branch — and the working copy of the current one. - Start work — creation (
goga topics create) plants a branch with the topic's first artifact (the committedtodo.md) at an explicit base, or publishes it tooriginin one step. By default you stay on your branch — the quarantine commit never touches your working copy. - Enter the intent — the todo is the multi-line statement of the work, entered on the command line (
--todowith a value), piped into stdin (the value-less--todo), or in the external editor; it feeds thetodostatus and the board's--infocolumn. - Resume work — switching (
goga topics switch) resolves a branch name, a topic slug, or their prefix onto the hosting branch;goga pipeline <name> -t <identifier>runs the same resolution before a pipeline launch (see Pipelines). - Exchange work with the base —
goga topics updatebrings a topic up to its base (merge, rebase, or fast-forward undertopics.update.strategy), andgoga topics propagatedelivers a finished topic into its base and pushes it (merge, ff, or squash, one confirmation). Both are checkout-free for other topics — and the update of the current topic runs behind a read-only pre-flight — with a uniform rollback on every failure. - Deliver existing work —
goga topics publishpushes a topic's own branch tooriginas an operation of its own (pushed— the twin created or fast-forwarded from behind,up-to-date,remote-ahead; a diverged twin is a clean error). - Finish work — deletion (
goga topics delete) removes a topic's own local branch, itsorigintwin, and its directory in one confirmed step, or clear the merged topics of a year in one confirmed pass (goga topics clear) — every own-branched topic the base ref's tree already carries; a topic without its own branch is history and appears in no view.
Model
- A topic is identified by its slug — the normalized name (lowercase, non-ASCII dropped, anything outside
[a-z0-9]as-, repeat hyphens collapsed, edges trimmed:Feature/Foo_Bar→feature-foo-bar). - The topic directory is
.goga/history/<YYYY>/<slug>/; its artifacts (todo.md,prd.md, …) carry the topic's statuses (see History). - Every mutation is local except the
originnetwork set — the--publishpush, the delete push, the update publish push, the publication fetch and publication push ofgoga topics publish, the push inherent to every propagate, and the single targeted fetch of a base resolution. The exchange (update,propagate) needs git >= 2.40. - Domain errors are clean errors (exit 1, no traceback).
In this directory
- CLI — the full
goga topicscommand reference - Configuration — the
topics:section of.goga/config.yml - Hooks — hook points for tool packages
- API — the
goga.topicspackage facade