Skip to content

v2.2.0

Choose a tag to compare

@tieubao tieubao released this 09 Oct 19:36
· 14 commits to master since this release

COMPAT (contract surfaces, per forge kit-versioning.md)

  • Ledger grammar: unchanged. lanes.d plan format: unchanged. Export schema: unchanged (1).

  • Seam keys (new surface, additive, MINOR): [knowledge] root, [wrap] before, [wrap] activity_log, [precedent] registry, PROSE_RAG_BIN; every default keeps the kit working with nothing filled. bin/config seams [--check] reports them.

  • prose_rag module: the vendored crate is gone; recall now needs context-kit's prose-rag binary on PATH or PROSE_RAG_BIN. With neither, the hook stays silent and index skips; only an explicit query errors with the install hint.

  • Overlay floors: unchanged (learning-kit and context-kit declare >= 2.0; both keep passing their contract tests against this cut).

  • prose-rag: the module is an ADAPTER (SPEC-250). bin/prose-rag resolves $PROSE_RAG_BIN (a regular executable file) then prose-rag on PATH, the order config seams already reports for that row, and execs it; the vendored Rust crate under lib/prose-rag/rust is deleted, because context-kit owns the engine (cargo install --path src/prose-rag) and two builds of one engine drift. The three no-engine exits are unchanged: hook exits 0, an unconfigured index exits 0, any other verb prints an install hint naming context-kit's crate and exits 1. New tests/test-prose-rag-adapter.sh.

  • config: named cross-kit seams (SPEC-249). A [knowledge] root key (operator or kit-root only; empty means repo-local .claude/memory) tells the engine where the context tree lives; a ## Seams join table in lib/config/module-registry.md tags each seam with a kind and the overlay that fills it; bin/config seams [--check] reports every seam as default|filled|unresolved|absent without executing a target, fenced the way the consumers fence (realpath under HOME, no symlink, no relative path), and --check gives an installer a one-bit exit. _env_val guards every indirect env expansion in config.sh against a forged registry name.

  • wrap: Step 7 learn owns the process half of session distill (SPEC-249): the DEBT marker via significance-classify.sh record, new-tool candidates through precedent find --json into the staging buffer, and one memory note per own-mistake incident under bin/wrap knowledge-root. New verbs wrap knowledge-root <repo> (fenced root, repo-local fallback) and wrap stage (paths and fences in bash, the write in staging-format.py stage, which dedupes over staging and board with a Unicode-aware key). Every wrap writer resolves the post-worktree-copy path before fencing it. commands/onboard.md and commands/adopt.md name the overlays and their seams.

  • sync: new --filter <app>:intake_skip_re=<regex> keeps a foreign app item on the app whatever intake says (body regex, MULTILINE). An adopted item with no in-scope tag scope-exits on the next tick and closes on the app, which is right for junk tickets and wrong for one that has its own lifecycle there: a member-facing support ticket carries a thread: line, and archiving it made the support desk tell the member their ticket was solved. intake_ok checks the skip first; a bad regex fails the parse.

  • wrap: step 5 removes the session's own EnterWorktree worktree once wrap scan proves its branch squash-merged and the tree is clean (ExitWorktree remove with discard_changes: true, then git branch -D); the old rule kept it and asked, which left a finished worktree behind on every wrap. Keep now applies only to a dirty, unproven, or gh-less worktree, named in Left alone.

  • config: an operator-owned kit.toml now sits between the project .kit.toml and the kit-root kit.toml (SPEC-248). kit_config_operator() resolves ${KIT_CONFIG_OPERATOR:-${XDG_CONFIG_HOME:-$HOME/.config}/dwarves-kit}/kit.toml; kit_config_get reads project > operator > kit-root > default and kit_config_get_root reads operator > kit-root > default, because the operator file lives on the operator's machine and never rides inside a pull request. Per-operator paths such as wrap.activity_log and precedent.registry now survive a kit upgrade instead of living in the kit checkout. New [wrap] before consumer key names a skill /kit:wrap invokes before step 0, whose report lines fold in after the report's FYI line; /kit:wrap also gained its trigger phrases.

  • wrap: new /kit:wrap, the session-scoped landing step after ship (SPEC-246). lib/wrap/wrap.sh + bin/wrap ship five verbs (scan, apply, merge, log, default-branch), porting the operator's repo-wrapup scripts and session-closeout Phase 2 into the kit: board rows flip, the operator's own green PRs merge one at a time under gates (base is the default branch, mergeable, checks green, no unresolved threads, no open dependents per SPEC-065), a workflow_dispatch deploy gets a headSha check, branches and worktrees tidy under proof (an ancestor deletes with -d, a squash-merge proof deletes with -D, nothing forced), the default branch pulls --ff-only, and an activity line prepends through the new [wrap] activity_log consumer key. /kit:wrap is the only caller of /kit:retro off a ship-ledger fact. commands/start.md and commands/retro.md name it.

  • precedent: bin/precedent find now answers "done before?" over two corpora. The records surface (specs, ADRs, retros, verification, run ledger) is unchanged and byte-parity pinned; the new inventory surface scans what has been BUILT (tools, scripts, bin, cli, _meta wrappers, experiments, memory notes, skills, feature registries, the kit's own verbs, ~/.claude/skills, ~/.local/bin, launchd plists, wrangler crons) with AND scoring, secret redaction, a 240-char cap, and a DATA marker. Sources beyond the repo and the kit come from a consumer registry (repo | scripts | skills | crons | memory rows; --registry > PRECEDENT_REGISTRY > kit.toml [precedent] registry > the XDG default). --explain <label> prints a hit's header, confined to the scanned roots. lib/precedent.sh (root orphan) is gone; /kit:assign and /kit:grill call bin/precedent find. Ported from ops-toolkit's repo-sweep whathas (SPEC-245).

  • docs: onboarding golden-path pass (ID-400). README leads with the two-command plugin install +
    /kit:onboard + /kit:start, module list stays below the fold; new docs/QUICKSTART.md; the
    bash installer is relabeled a maintainer/power path; a "disclose gaps, don't hide them" principle
    in docs/PHILOSOPHY.md generalizes /kit:onboard section E's honest-disclosure convention.

  • agents: new devops-triage subagent, on-demand production error-alert triage (evidence-first, read-only, bounded verdict); ambient twin lives in ops-toolkit tools/alert-triage/

Fixed

  • Queue launcher pre-flights the /goal 4000-char cap. Interactive /goal refuses
    anything over 4000 chars, but the launcher never checked before typing, so an over-budget
    pointer opened a real window, typed a silently-rejected goal, and sat idle forever with no
    journal entry. QUEUE_GOAL_CHAR_LIMIT (default 4000) is now checked before any window
    opens; an over-budget pointer fails fast to journal error with the reason named.
  • test-queue.bats sandboxes its ledger root; NC2/NC6/NC7 un-failed. The suite sandboxed
    the journal but not the run files, so guard counters leaked into the operator's real
    ~/.local/state and accumulated across local runs until the SPEC-221 breaker trip rewrote
    the NCs' expected stalled into error stagnation_detected, machine-local, invisible on
    fresh checkouts. KIT_LEDGER_DIR now points at the per-test sandbox, a T13 tripwire pins
    the resolver, and the leaked files were cleaned. The ID-463 class, state-dir edition.
  • Queue launcher no longer strands a row on a dropped Enter (SPEC-217). _mux_submit's
    still-pending check matched the literal /goal at the prompt, but a long typed goal
    renders tail-first in the input box, so the string never appears there. A dropped Enter
    read as submitted and the row sat idle with no journal entry, reproduced on 3 consecutive
    live #auto runs, each needing a manual Enter to unstick. Detection is now "any prompt
    line still carries content", errs toward re-Entering rather than toward a false submit.
  • tests/test-meta.sh no longer rewrites the tree it runs in. feature-registry.sh's
    generate() unconditionally called sync_counts(), so the freshness check, which
    regenerates to a throwaway temp path purely to diff, silently rewrote README.md and
    docs/architecture.md on every run, masking the exact drift it had just flagged.
    sync_counts now fires only when generate writes the real file in place. Also fixes the
    drift itself: /kit:gauntlet was missing from README's command table and
    docs/architecture.md's V-phase inventory; a pristine run is now 809/809 and leaves the
    tree byte-identical (checksummed before/after, plus an independent negative control).

Added

  • Auto review-fix loop on the full lane (SPEC-231). The multi-lens review now runs by
    default, not on request: /kit:execute drives /kit:review-team (the three specialist
    lenses plus the kit-default advisor, in one pass) after build on the full lane, and the
    spec stage runs a default design-time critique plus advisor over-suggest before validate.
    Findings sort convergent-first (a defect two or more lenses agree on outranks single-lens
    taste), and the review re-runs over each fix batch up to two rounds, because a fix batch
    can reopen the bug it fixed. The verdict stays advisory (auto-run, not auto-block), and a
    lane gate keeps the cost on the full lane only. Foundation: docs/patterns/review-fix-loop.md.
  • slop-stripper agent: the behavior-preserving AI-slop strip pass (kit ID-402). Resolves the
    deslop absorption contradiction (2026-06-11 pinned-kits called it a duplicate of the simplify +
    maintainability-lens surfaces; the 2026-07-25 absorption survey scored it ABSORB). Both were
    right about different halves: the DETECT half (the 5-item checklist) duplicates the review lenses
    and the slop-cleaner hook, but the FIX half, an edit-capable, behavior-preserving strip pass that
    applies surgical edits before merge, had no home in the kit. Every existing surface is
    detect-only by design (review lenses are read-only, ADR-0005; slop-cleaner nudges and never
    auto-fixes; fix-agent only fires on verifier FAIL:fixable and its anti-patterns forbid
    "improving" unflagged code). The new agent re-implements the deslop mechanism from az-skills
    (no license; original prose, source cited) and lands as an OPT-IN step on /kit:review-team's
    decision gate: the operator's judgment is the gate, then /kit:verify before /kit:ship.
  • Test-plan coverage advisory at the ship boundary (ID-466). The test plan fed
    /kit:execute's verify steps but nothing at the gate traced the proof back to the matrix.
    New proof-gate.sh coverage <spec> [proof.md ...] subcommand parses both matrix dialects
    (numbered # column and the older category form, ordinal fallback) and reports
    OK / NO-MAP / UNMAPPED: <rows>; the ship-gate emits a warn-only [advisory] when a
    spec with a ## Test plan has no ## Test plan coverage map in its proof doc, or the map
    leaves rows unmapped. Detect-not-dictate: never blocks, and a spec without a test plan owes
    nothing new. Owed shape documented in docs/verification/README.md. Third live #auto
    queue-watcher run, filed and shipped the same day (PR #366).

Fixed

  • Board-sync id-collision guard (ID-309). plan_sync's title-prefix link step trusted a
    matching id alone as proof of identity; a repaired board row whose id had been reused by a
    spoke-born item (minted while the row was invisible to parse_board) could get silently
    overwritten, retitled, and flipped to a wrong status by the unrelated spoke item. The link
    step now refuses to adopt a spoke item whose title disagrees with the board row's, emitting
    a collision note naming both titles instead. next_id already scanned raw board text (not
    parsed rows) so it needed no change. Second live run of the SPEC-217 #auto queue watcher,
    unattended end to end, PR #344.

Added

  • docs/impl-playbook/ ships in the kit itself, review-team agents cite it by stable path.
    security-reviewer, code-reviewer (architecture + test-coverage lenses), infra-reviewer,
    frontend-reviewer, and test-writer now cite ~/.claude/dwarves-kit/docs/impl-playbook/<file>.md
    at the checklist item each rule backs (OWASP/ASVS for security, Fowler's pyramid for test
    layering, coding-hygiene for the architecture lens, Cloudflare specifics for infra). The
    content used to be the maintainer's personal, machine-local reference; moved into the repo
    and generalized so every adopter's citations resolve, not just the maintainer's own machine.
    install.sh deploys the directory to the stable install path on both the full-install and
    plugin-compat paths, with a matching --uninstall removal step.

Fixed

  • tests/test-install-compat.sh now sandboxes $HOME (ID-463). The suite ran install.sh
    with only CLAUDE_DIR overridden; the compat branch it exercises writes a CLI shim straight
    to $HOME/.local/bin for every known module, so on 2026-08-01 a real run clobbered 4 live
    shims (board, prose-rag, session, worktree-provision), retargeting them at a mktemp
    dir that vanished on test exit and broke a live hook. Both install.sh invocations in the
    suite now get their own throwaway HOME, plus a tripwire assertion that fails if any
    dwarves-kit-managed shim in the real ~/.local/bin ever points back into the test's own
    $TMPDIR. First unattended, end-to-end run of the SPEC-217 #auto queue watcher: self-grill,
    sanitized prompt, runaway guards, and the draft-PR-by-default posture all fired for real,
    producing draft PR #342.

Added

  • backlog-reconcile skill: the audit-loop pattern's 4th SDLC instance (SPEC-225).
    General-purpose (every /kit:adopted repo, not maintainer-only): audits a repo's
    _meta/BACKLOG.md Active queue against reality, a row's Status verdicted against its
    Target artifact spec's own Status: header, or a git-log match for (tiny, no spec)
    rows, and ships fixes via PR. Mirrors topology-drift's Tier1-mechanical/Tier2-model-delta
    shape, reuses lib/board/backlog.sh and agents/audit-scanner.md unchanged.
  • Two cheap guardrails on the autonomous run queue (SPEC-224 / ID-461). Both ride channels
    SPEC-221 already built, so the diff is small and adds no process. (1) DRAFT-PR-BY-DEFAULT on the
    unattended path: the queue never runs gh itself, so _goal_line appends a clause to the typed
    /goal line telling the launched run to open its PR as a draft (gh pr create --draft) and stamp
    a provenance footer naming the run ([unattended orchestrator run; journal <path>; slug <s>]),
    mirroring OpenHands' model-overridable draft=True. queue run --ready (or QUEUE_PR_READY=1)
    is the escape hatch that opens a normal PR. Interactive /kit:ship never calls _goal_line, so
    it is untouched. (2) A per-row and queue-wide SPEND CEILING on a self-reported tool-call count: the
    run writes TOOL_CALLS: <n> into its SPEC-221 <slug>.status file, and the conductor reads it on
    the poll it already does. QUEUE_MAX_TOOL_CALLS stops a row (verdict stalled, the shared journal
    reason set to a new value spend_ceiling) after its observed turn; QUEUE_MAX_TOTAL_TOOL_CALLS
    aborts the remaining rows after the current one ships (SWE-agent's two-tier split). Both default 0
    (disabled, matching SWE-agent's per_instance_call_limit=0), so the shipped overnight behavior is
    byte-identical until an operator opts in. The ceiling is composed OR-style with the wall-clock
    QUEUE_TIMEOUT_SECS (first-to-trip wins); self-report is a guardrail, and the wall-clock is the
    non-gameable backstop. Claim-leases (the row's third idea) were scoped out: SPEC-221's beat-file
    presence already IS the in-flight claim (DEC-003) and its reaper is the lazy expiry.
  • An untrusted-input pass on the autonomous run queue (SPEC-223 / ID-459). The #auto path
    types a pointer file's body into a --dangerously-skip-permissions session, and the board row is
    what selects that file, so on the watcher-planned path that body is untrusted text rather than an
    operator-authored prompt. lib/queue/sanitize.sh adds sanitize_cell, an ORDERED pipeline where
    each step closes a bypass the previous one leaves open: HTML-entity decode (single and double
    encoded), an invisible-codepoint strip by Unicode PROPERTY (\p{Cf} plus
    \p{Default_Ignorable_Code_Point}, never an enumerated list), ANSI strip, control strip (a
    newline would submit the prompt early, so removing it is a security property here), HTML-comment
    DELETION, code-fence stripping (gh-aw exempts fences to protect patches; a goal prompt has no
    patch, so the exemption is inverted and nothing is exempt), pipe escaping (a board row is a
    markdown table), an https-only URL allow-list with a percent-decode preamble, and a size cap that
    truncates with a VISIBLE marker instead of rejecting. The typed prompt is then framed by an
    untrusted-content preamble and fenced with explicit begin/end markers. queue.sh run gains
    --sanitize-prompt (implied by --from-boards); watch-board.sh --apply forwards it. A
    hand-authored tsv is unchanged, because operator authorship is the trust boundary the pointer
    allow-list already uses. A run that writes a protected path (.claude/*, CLAUDE.md,
    AGENTS.md, .github/*, _meta/BACKLOG.md, tunable via QUEUE_PROTECTED_GLOBS) ends gated
    instead of shipping: DETECTION, not prevention, since nothing in bash sits between a
    skip-permissions session and the filesystem. A host without the sanitizer skips the row with a
    named reason and opens no window. Proof: docs/verification/notes-sanitization.md (52 assertions,
    a negative control per section, three live revert-to-RED probes, and a security round whose
    Critical finding, an enumerated invisible-character list broken by U+034F, is fixed and now
    regression-tested). Deferred with a tripwire: gh-aw's read-only-agent plus safe-outputs plus
    model-judge separation, which becomes real work the day a second person can edit a watched board
    or the loop ingests text the operator did not author.
  • Runaway guards on the autonomous run queue (SPEC-221 / ID-460). Three mechanisms, all
    hanging off per-slug sidecar files under <log-dir>/queue-runs/, and none of them a daemon:
    the reaper runs on the queue watch tick the operator already invokes. (1) A stale-window
    watchdog: the conductor touches a heartbeat every poll, a beat older than 10 minutes reports
    an orphan and refuses to plan the slug, and one older than 60 minutes writes a verdict
    (honoring the run's own EXIT_SIGNAL if it finished), increments the stall counter, and
    schedules a jittered 5-15 minute retry; the third stall writes an empty retry_after, which
    is the quarantine. This closes the case where a dead conductor process left NO journal row and
    the row was re-planned forever. (2) A circuit breaker: consecutive no-progress and repeated-error
    counters trip to error reason stagnation_detected with a 30-minute cooldown, with four
    escape hatches (repo moved, self-reported files changed, an explicit completion, and a run that
    stopped to ASK freezes the counters rather than counting as stagnation). (3) A dual-condition
    exit gate: a run may write an explicit EXIT_SIGNAL: true|false, which always outranks pane
    prose; false keeps the run going even against a RUNNER_DONE pane, and a present-but-malformed
    signal is never a completion. With no status file, completion detection is byte-identical to
    before. Also: _slug_ok now rejects / (the slug names a sidecar file), and the progress check
    no longer lets git -C "" silently read the operator's current directory.
  • Self-answer mode + the backlog watcher, the orchestrator-loop pilot (SPEC-217 / ID-457).
    /kit:grill gains an explicit self-answer mode for autonomous runs: it activates only when
    the driving row carries the operator-set #auto tag, and every self-answered question lands
    as a debt-ledger row (question, answer, why) that learn debt collect surfaces at paydown;
    the rule is "never decide invisibly", interactive lanes untouched. queue watch
    (lib/queue/watch-board.sh) is a filter in front of queue run: it plans queued rows
    tagged #auto that pass the pointer allow-list plus a symlink-aware containment pass, dedups
    against the queue journal (done/gated are terminal), dry-run by default, budget cap
    forwarded to the queue. Side fix: _pointer_allowlist_reason no longer glob-expands its
    pattern loop against the cwd, which had broken legitimate --from-boards pointers when run
    from the repo root.
  • Spec template gains ## Picture, the pre-build twin of visual proof (SPEC-214 / ID-454).
    A spec's ## Picture section (ASCII/box-drawing diagram of the pieces + arrows, never
    mermaid) sits between ## Solution and ## Design, required non-empty on full-lane specs,
    encouraged elsewhere. A UI-shaped spec points it at a /kit:prototype branch + variant
    instead of drawing ASCII. /kit:spec-validate Reviewer 4 (Scope Critic) gains a mechanical
    presence check (full-lane only) plus a lens question: does the picture agree with
    ## Task Breakdown. Both bullets are advisory; Reviewer 6 stays the only reviewer that can
    refuse VALIDATED. Proven the same way SPEC-122's ## Design check is proven, a
    fixture-based structural test (tests/test-picture-section.sh) since the reviewer itself is
    prompt text, not code.
  • GUIDE.md, the end-user owner's manual (SPEC-216 / ID-456). docs/GUIDE.template.md
    is a fill-in skeleton (what this does / how to use it / what to do when it breaks, one
    page, ELI10 register) for products with an end user who is not the builder. /kit:ship
    gains a warn-not-block check applying that same "has an end user" test; /kit:docs's
    scan step keeps GUIDE.md in scope on doc-drift passes. No renderer, no new command;
    libraries and infra are exempt by the same test.
  • /kit:wayfind: the file-based decision map (SPEC-207 / ID-450). User-invoked
    pre-cycle intake shape for efforts too foggy for one session, ported from
    mattpocock/skills wayfinder (MIT) onto files + the board: _meta/megagoals/<slug>/map.md
    (Destination / Decisions-so-far gists / fog / out-of-scope) + typed decision tickets
    (research|prototype|grilling|task) routing to the kit's own machinery; claim-by-header,
    frontier = open unblocked unclaimed, one ticket per session (research fan-out excepted),
    the agent never answers its own grill questions. Map clear hands off to /kit:spec or a
    ROADMAP.md beside the map, never straight to execute. One umbrella board row per map.
    Tracker-native storage stays parked (2026-07-25 tripwire unchanged). WORKFLOW.md gains
    the wayfind intake paragraph + SPEC-206's Prototype phase-table row.
  • /kit:prototype: the throwaway-spike beat (SPEC-206 / ID-448). Opt-in beat beside
    /kit:design, ported from mattpocock/skills prototype (MIT). The question decides the
    shape: logic branch (pure portable module driven by a full-frame TUI) or UI branch (3-5
    structurally different variants on one route via ?variant=, prod-gated floating
    switcher). Validated decision folds into the owning brief/spec; the prototype survives
    as a primary source on a prototype/<name> branch, never in master. HITL by contract.
    Executor for wayfind prototype tickets (ID-450).
  • Fowler smell baseline + review-team dispatch safeguards (SPEC-205 / ID-449). The
    architecture lens (agents/code-reviewer.md) and solo /kit:review carry Fowler's
    12-smell baseline (Refactoring ch.3, via mattpocock/skills code-review, MIT) with
    three binding rules: repo standard overrides, every smell a labelled judgement call,
    skip what tooling enforces. /kit:review-team fails fast (git rev-parse + non-empty
    diff) BEFORE dispatching subagents, and its report summary states totals + worst issue
    PER LENS, never a single cross-lens winner (the SPEC-081 merge machinery is unchanged).
  • Multi-vendor sub-goal dispatch (ID-390). A mega-goal sub-goal can declare
    Harness: codex (or pi / opencode) in its goal file to run on a non-Claude
    CLI, billing that vendor's quota instead of the Claude one while Claude stays the
    coordinator. New lib/queue/harness.sh resolves a vendor to its headless argv +
    prompt-delivery mode (facts read off each installed CLI, not a copied table);
    orchestrate.sh wires it via _harness_of / _run_one_session_vendor. Drives
    each vendor's real non-interactive mode (codex exec, pi --print,
    opencode run), so the exit code is real, unlike the prior-art TUI-puppeting
    approach (AI-Builder-Club open-agent-teams) it was evaluated against. Opt-in,
    OFF by default:
    gated by [mega].enabled_agent_clis, read from the KIT-ROOT
    install kit.toml ONLY (never a project .kit.toml, which rides inside an untrusted
    PR and could self-enable a vendor). Grounded completion is unchanged and
    vendor-independent: a vendor sub-goal advances only when it flips its ROADMAP box.
    Fail-closed: an unknown or not-enabled harness is a pre-flight STOP, never a silent
    claude fallback; Effort: is charset-validated so it cannot inject argv flags or
    break out of codex's TOML config; an argv-mode prompt is newline-guarded so a
    leading - is never parsed as a flag. Non-claude sub-goals run the plain path only
    (no token accounting / stream tail / stall watchdog; WARNed, not silent). Also
    admits the fable tier, which a stale allowlist had been rejecting pre-flight.
    Design + proof: docs/verification/harness-adapter.md; review-round hardening
    (1 CRITICAL + 4 HIGH) in docs/implementation-notes/multi-vendor-dispatch.md.
  • skills/memory-tidy, the judgment half of the memory plane. Pairs with the
    read-only stats memory-sweep scanner (SPEC-136): evidence-required per-note
    verdicts (KEEP / MERGE / STALE / UNSURE) via agent fan-out, danger check for
    notes whose advice contradicts current policy, index rebuild with parity
    checks, all confined to a worktree branch and shipped as a PR (the operator's
    approval gate). Consumer cadence toggle [features].memory_tidy in kit.toml
    ([consumer], default off); the scheduled runner lives consumer-side
    (ops-toolkit tools/memory-tidy/). CONTRIBUTING gains an "Introducing a
    component" convention (naming, description discipline, registration,
    evidence) so new skills/commands/agents never land as unregistered file
    drops. First production run: tieubao/ops-toolkit#972.
  • sync one-way insert-only push to a foreign team board (notion-taskboard
    app, SPEC-003, implements ops-toolkit ID-138). Pushes a repo's board rows out
    to a team-OWNED Notion board (create page, never update, never read for merge,
    board file never written); fields are set only on page-create so team edits are
    never overwritten, and the local sync-state map is the identity index. Status/
    Priority/Weight map to the team board's own option names via .kit.toml [sync]
    config, so the team schema is never mutated. The two-way mesh and its four live
    adapters are untouched (create_only is a separate path, and the two-way
    board parser stays ID--only; only the one-way READ path accepts any
    [A-Z]+-\d+ prefix, e.g. dfoundation DF-NN, and it never mints or writes
    board ids). The sink validates every mapped option against the target's
    schema before any create, so it never auto-creates an option on the team
    board; state is checkpointed after each create so a mid-batch failure never
    re-pushes a page.

Changed

  • bridge module folded into sync (zero live consumers at fold time: no
    bridge=on rows, no snapshot, module off). Legacy mirror/status/writeback
    verbs stay runnable with a deprecation note until the SPEC-002 P2 port (ID-290),
    which must carry the row_hash git-wins conflict rule and the live-probed Hermes
    reachable-state map.
  • board promote write path hardened (kit ID-288): flock single-writer lock
    (stable-inode lockfile in tmpdir), read-after-lock, 4-cell row validation, atomic
    replace. Closes the parallel-session duplicate-ID and malformed-row minting that hit
    the ops-toolkit board on 2026-07-16.

Added

  • sync.mode = cron: scheduled board sync (kit ID-289). Wires the
    [sync] mode key (previously [reserved]) to a real per-repo macOS
    LaunchAgent: lib/sync/deploy/macos/install refuses to render or load
    anything unless the target repo's own .kit.toml sets mode = "cron"
    (any other value is a clean, named refusal); the installed launcher also
    re-checks mode live on every scheduled run and skips cleanly once a repo
    un-opts-in. New sync.interval_secs key (default 3600) sets cadence. One
    LaunchAgent per adopted repo (not a kit-weekly job -- sync is per-repo by
    nature). Tests: tests/test-sync-cron-install.sh +
    tests/test-sync-cron-launcher.sh.
  • sync module: two-way board↔apps sync (SPEC-001/SPEC-002 P1). The ops-toolkit
    backlog-sync engine graduates into the kit as registered module sync (stage: Shape,
    formerly leg Specify -- renamed by ID-292, see below)
    at lib/sync/: board sync mirrors an adopted repo's BACKLOG.md to Apple Reminders /
    Notion / Hermes kanban / Multica with per-app three-way merge (board wins; app
    deletions tombstone; inbox intake with #inbox quarantine). Config on the ADR-0034
    layer: .kit.toml [sync] (apps, per-app keys, audience filters only_tags /
    skip_tags / intake, scope_exit_cap), resolved in cmd_sync via the one TOML
    reader; the python engine takes flags only. Filtered rows freeze two-way and close on
    the app (scope-exit) with a cap + --allow-scope-exit override. Plain-words
    vocabulary: profile/app/board (was edge/surface+spoke/hub); legacy config aliases
    kept. Tests: tests/test-sync.sh (engine, fake transports) +
    tests/test-sync-dispatch.sh (both board conventions, legacy alias, error
    paths). Proof: lib/sync/docs/proof-of-done.md.
  • Plain words rule (CONTRIBUTING.md) + ranked jargon inventory
    (docs/research/2026-07-16-plain-words-inventory.md); rename backlog: ID-291 (cheap
    cluster), ID-292 (shipped below), ID-293 (big cluster, parked).
  • The five legs renamed to Shape/Build/Watch/Check/Learn (ID-292). Specify,
    Execute, Observe, Govern become Shape, Build, Watch, Check (Learn
    kept); the container word leg becomes stage. ADR-0034 amended per its own lock
    (decision 3's as-decided table left unrewritten); lib/config/module-registry.md
    carries the old names as a one-release parenthetical alias, README/architecture/
    data-flow/MANUAL/kit-contract/onboard docs and the registry-lint assertions in
    tests/test-meta.sh swept to the new vocabulary. Docs-first: no module or
    code-identifier renames.
  • Model-routing enforcement pinned + proven (SPEC-116). Resolves orchestrate-hardening
    open-fork 3: the enforcement site is lib/queue/orchestrate.sh (_route() + the serial/wave delegate
    dispatch sites, which already existed under SPEC-087), not lib/classify/route-suggest.sh (a decompose-time
    suggester with no dispatch-time call site, so it structurally cannot contradict an explicit
    Model: field). The no-Model:-field fallback tier is confirmed as "inherit the parent session's
    tier" (SPEC-107). tests/test-model-routing.sh proves the default-applied positive case for
    opus/sonnet/haiku on the serial path plus one case on the concurrent wave path, and the fallback
    negative control. No lib/ behavior change; this is a proof + documentation pin.

Full changelog: https://github.com/dwarvesf/dwarves-kit/blob/master/docs/CHANGELOG.md