Skip to content

Docs cleanup: snake_case, state diagrams, slim README, .claude/ ignored#15

Merged
turtlemonvh merged 3 commits into
masterfrom
ai/cleanup-and-state-diagram
May 3, 2026
Merged

Docs cleanup: snake_case, state diagrams, slim README, .claude/ ignored#15
turtlemonvh merged 3 commits into
masterfrom
ai/cleanup-and-state-diagram

Conversation

@turtlemonvh
Copy link
Copy Markdown
Owner

@turtlemonvh turtlemonvh commented May 2, 2026

Summary

Earlier in this branch (already in PR #15)

  • State machine diagrams for tasks and workers (now in docs/task_flow.md)
  • .claude/ ignored — only ever holds per-developer state. Removed the tracked lock file
  • Backlog additions: claude-code/codex task wrappers, MCP server, AI tool authoring guide, install-time auto-start, task scheduling

New in this push

  • Snake_case docs: Api.mdapi.md, NextUp.mdnext_up.md, TaskFlow.mdtask_flow.md, TaskTypeDefinitions.mdtask_type_definitions.md. Updated Go test comments that referenced the old paths.
  • State diagrams moved from design.md to task_flow.md where they sit next to the existing state definitions and flow narrative. Fixed two endpoint typos I had in the original diagrams (PUT /task/:id/run not /start; PUT /worker/:id/stop not POST).
  • API doc refreshed to match the actual routes in server/server.go. Added /version, /config/, /ops/status/, log/tail endpoints. Added a sync reminder in CLAUDE.md.
  • README aggressively trimmed: kept tagline, install, a 60-second start (both curl and CLI to honor the RESTy promise), and links into docs. Moved detailed examples to docs/usage.md.
  • docs/README.md index so visitors land on a navigable page.
  • Relative links throughout the docs so local previews resolve.

Test plan

  • go build ./... clean
  • go test ./server/ ./worker/ passes (test comments updated)
  • No remaining absolute links to internal repo content
  • Mermaid diagrams render correctly on GitHub (visual check)
  • CI passes

🤖 Generated with Claude Code

turtlemonvh and others added 2 commits May 2, 2026 08:26
Append mermaid stateDiagram-v2 diagrams for task and worker
lifecycles to docs/design.md. Task diagram shows the API endpoints
that drive each transition; worker diagram covers the simpler
running/stopped model with an aside on lost-but-not-deleted workers.

Add .claude/ to .gitignore — only ever holds per-developer state
(settings.local.json, scheduled_tasks.lock). Remove the tracked
lock file.

NextUp additions: claude-code/codex task wrappers, MCP server
wrapper, AI tool instructions for authoring task types, optional
auto-start service registration in install scripts, and task
scheduling (notBefore + cron). Updated the existing diagram entry
to reflect that state machines are now done.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename docs/ files to snake_case for consistency: Api.md → api.md,
NextUp.md → next_up.md, TaskFlow.md → task_flow.md,
TaskTypeDefinitions.md → task_type_definitions.md. Update Go test
comments that referenced the old paths.

Move task and worker state-machine diagrams from design.md to
task_flow.md, where they live alongside the existing flow narrative
and state definitions. Fix two endpoint typos in the diagrams I
wrote earlier: PUT /task/:id/run not /start, PUT /worker/:id/stop
not POST. Slim design.md back to origin/goals/architecture.

Bring docs/api.md up to date with the actual routes in
server/server.go: add /version, /config/, /ops/status/, log/tail
endpoints. Add a sync reminder in CLAUDE.md so the doc doesn't
drift the next time routes change.

Aggressively trim the main README: keep tagline, install, 60-second
start (with both curl and CLI submit to honor the RESTy promise),
links into docs. Move detailed curl/CLI examples, file uploads,
scripted submissions, and the task type schema deep-dive to a new
docs/usage.md.

Add docs/README.md as a landing index. Use relative links throughout
the docs so local previews resolve.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turtlemonvh turtlemonvh changed the title Add state machine diagrams, ignore .claude/, expand backlog Docs cleanup: snake_case, state diagrams, slim README, .claude/ ignored May 2, 2026
Drop the "stub" disclaimer — the page now covers everything a user
needs to author a task type. Replace the inaccurate "bash is the
only executor" line with a table listing the four supported modes
(bash, cmd, powershell, arbitrary -c executor) and a pointer to
blanket task-validate. Add a windows_echo example so cmd usage is
visible alongside bash.

Add a Docker task type idea to next_up.md: either a first-class
executor = "docker" with image/mounts fields, or a shipped bash
example that wraps docker run. Lean toward example-first; promote
if usage warrants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turtlemonvh turtlemonvh merged commit 36953cc into master May 3, 2026
1 of 2 checks 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.

1 participant