Skip to content

feat(watch): classify dir-watch files as static share vs live watch - #131

Merged
scott merged 1 commit into
mainfrom
feat/130-classify-dir-watch
Sep 17, 2026
Merged

scott merged 1 commit into
mainfrom
feat/130-classify-dir-watch

Conversation

@scott

@scott scott commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

On dir-share adopt, classify each new .md for likelihood of change:

  • Report (and other one-shot docs) → static share (CreateShare(..., watch=false)). Do not register a child file watch. Appears in gander list, not gander status.
  • Plan, RFC, design, spec, or status: draftlive watch (watch=true + registerFile).

New hosted shares also get an additive type label (plan, rfc, draft, design, spec, report) merged into the existing label set. --no-labels stays empty; an existing reserved type is not swapped.

gander watch ~/reports is unchanged as the directory command; classification is per file. Local dir-local stays always-watch. Explicit gander watch report.md still watches (the user asked) but may still get label report.

MCP instructions tell agents to pick gander share --silent vs gander watch --silent from the same table for files, and not to double-gander a dir-watched tree or send --label <type>.

Closes #130

Test plan

  • go test ./...
  • go vet ./...
  • go build ./...
  • Classifier table: reports/ static, plans/ + status: draft watch, reports/draft-rfc.md watch (watch-signal wins), unknown README watch with no type, gander: share forces static under plans/
  • Labels: new plan gets plan (+ project if inferred); --label reviewreview and plan; existing type not swapped; --no-labels sends []; existing share omits labels
  • Static adopt does not call registerFile; watch adopt does; dir-local always registers

On dir-share adopt, classify each new markdown file as a live watch
or a static share. Stamp an additive type label on new hosted shares.

Closes #130
@scott
scott merged commit c7e74c7 into main Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: classify dir-watch files as static share vs live watch

1 participant