Skip to content

docs: sync dewey weekly distill automation documentation #417

Open

Description

@jflowers

What changed in dewey

The weekly unattended distill automation (unbound-force/dewey#193, branch 018-weekly-distill-automation) automates the demotion side of curation: a scheduled run computes the deterministic distill scope from git, groups learnings by theme, and opens rolling per-theme review PRs — with no human interaction during the run. Trust still comes only from a human merge (merge-as-vouch, dewey #203).

This complements the interactive /dewey-distill command covered by #371 — this issue covers the unattended surface only.

User-facing elements to document

Opt-in GitHub Actions workflow template

  • dewey init scaffolds the inert .github/workflows/dewey-distill.yml.example (never overwriting an existing file)
  • Adopting it: cp .github/workflows/dewey-distill.yml.example .github/workflows/dewey-distill.yml, then create two labels: dewey-distill and human-gate
  • Prerequisites: CODEOWNERS coverage on .uf/dewey/compiled/** and the required code-owner review ruleset
  • Runs weekly (cron Monday 09:00 UTC); enforces the dedup invariant (at most one open dewey-distill-labeled issue, via a serializing concurrency group); creates the issue with no assignee (the GITHUB_TOKEN installation identity cannot resolve @me)
  • Least-privilege permissions: contents: read, issues: write only

gh-hud dispatch contract

  • Issue label dewey-distill
  • Re-trigger marker <!-- dewey-distill-trigger --> in comment bodies
  • Dispatch command /dewey-distill-auto #<num>, run as the autonomy agent (gh-hud owns the dispatch side)

New /dewey-distill-auto command (vs interactive /dewey-distill)

  • Unattended scope → group → rolling-PR pipeline
  • Never asks questions; never writes tier: validated (both rejected server-side)
  • --backlog-from YYYY-MM-DD: one-time backlog bootstrap bound
  • --dry-run: output-only preview that mutates nothing

New distiller agent

  • .opencode/agents/distiller.md, scaffolded by dewey init when .opencode/ exists (never overwriting)
  • Distinct from the curator agent: narrowed tool allowlist, question tool denied, validated writes denied server-side
  • Its bash allowlist carries only the two startup gates and gh issue comment — all git/gh mutations run server-side inside rolling_pr, confined to dewey-distill/* branches

Optional .uf/dewey/distill-policy.yaml

  • exclude_tags globs and exclude_stores names
  • Malformed entries warn-and-skip (never fatal)

Rolling per-theme review PRs

Backlog bootstrap runbook

  • /dewey-distill-auto --backlog-from <date> --dry-run preview, then the real run in a watched pane
  • Clean tracked-tree precondition (every run — dry or real — writes/requires a clean tree)

Affected pages

  • content/docs/projects/dewey.md — the Knowledge Lifecycle / Key Features sections need the weekly unattended automation alongside the interactive distill docs from docs: sync dewey distill documentation #371
  • content/docs/tutorials/dewey-knowledge-stores.md — natural home for the adoption runbook (workflow template, labels, CODEOWNERS, gh-hud contract, backlog bootstrap)
  • content/docs/reference/cli.md — dewey init scaffolding behavior (workflow template + agent files, never overwriting)
  • content/docs/reference/config.md — the optional .uf/dewey/distill-policy.yaml

Update checklist

  • New section: the opt-in workflow template and its adoption steps (copy, labels, CODEOWNERS + ruleset prerequisites, cron, dedup invariant, no-assignee note)
  • New page or section: /dewey-distill-auto vs interactive /dewey-distill — what differs, the --backlog-from and --dry-run flags
  • The distiller agent: narrowed allowlist, question denied, validated writes denied server-side
  • .uf/dewey/distill-policy.yaml reference (exclude_tags, exclude_stores, warn-and-skip semantics)
  • Rolling PR review-queue body format and the needs-human-resolution conflict label
  • Backlog bootstrap runbook (dry-run preview → real run, watched pane, clean-tree precondition)
  • Merge-as-vouch trust story linked to the trust-tiers docs (docs: sync dewey trust tiers documentation #414)
  • gh-hud dispatch contract (label, re-trigger marker, /dewey-distill-auto #<num> as the autonomy agent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions