Skip to content

docs: align user docs and repo docs with implementation#7

Merged
fullstackjam merged 1 commit into
mainfrom
docs/align-with-implementation
May 17, 2026
Merged

docs: align user docs and repo docs with implementation#7
fullstackjam merged 1 commit into
mainfrom
docs/align-with-implementation

Conversation

@fullstackjam
Copy link
Copy Markdown
Contributor

Summary

Audit of all docs (src/docs/ + repo-level) against the actual code; fixed every inaccuracy found.

  • README.md — fix CI badge URL (deploy.ymlci.yml); replace fictional tag-based "Deployment" section with the actual push-to-main flow; list all 5 D1 tables.
  • RELEASE.md — deleted. It described a tag-based release process that doesn't exist; push-to-main auto-deploys via ci.yml.
  • CLAUDE.md — add missing scripts (lint, validate, install:hooks); fix table count (4 → 5, add config_revisions); correct packages-enrichment description; cross-link AGENTS.md + docs/HARNESS.md.
  • src/docs/api-reference.md — substantial rewrite. Every endpoint shape (request/response/status) corrected against actual handlers; rate-limit table fixed (CONFIG_READ/CONFIG_WRITE/SEARCH all 30/min); removed fabricated X-RateLimit-* headers (only Retry-After is sent); split dashboard /api/configs/:slug from CLI /:username/:slug/config; fixed install endpoint Content-Type.
  • src/docs/config-options.md — document validation limits (custom_script 10K, dotfiles_repo HTTPS + 500, alias 2–20 chars + reserved words, packages 500/200); fix base_preset default (developer, not "none"); document snapshot.macos_prefs[].host.
  • src/docs/personal.md — remove false "Dotfiles cloned and linked" line from the first install transcript (no dotfiles_repo is configured at that point).
  • src/docs/teams.md — correct visibility guidance: private is owner-only (403 for other users), so teams should use unlisted.
  • src/docs/snapshot.md — "Before installing" → "Before applying" in the restore section.
  • src/docs/what-is-openboot.md — spaced em-dash for style consistency.

Test plan

  • npm run check — 0 errors (pre-existing warnings only)
  • npm run validate ran in pre-push hook on push
  • After merge: spot-check /docs/api-reference, /docs/config-options, /docs/snapshot render correctly on openboot.dev

Out of scope

Findings that live in the Go CLI repo (openbootdotdev/openboot) and need to be verified there, not here:

  • bash -s -- snapshot invocation in quick-start.md/snapshot.md — depends on upstream scripts/install.sh.
  • OPENBOOT_* env vars listed in env-vars.md.
  • Backup filename scheme in faq.md.
  • Oh-My-Zsh merge behavior in dotfiles-shell.md.

Also flagged but not fixed in this PR: src/lib/server/validation.ts:30 — comment claims a dotfiles host whitelist, but the regex doesn't enforce one. Code-side mismatch, separate fix.

🤖 Generated with Claude Code

Reviewed all user-facing docs (src/docs/) and repo-level docs against
the actual code and fixed inaccuracies surfaced by the audit:

- README.md: fix CI badge URL (deploy.yml → ci.yml); replace tag-based
  "Deployment" section with the actual push-to-main flow; list all 5
  D1 tables instead of 2.
- RELEASE.md: delete (described a tag-based release process that does
  not exist; push-to-main auto-deploys per ci.yml).
- CLAUDE.md: add missing scripts (lint, validate, install:hooks); fix
  table count (4 → 5, add config_revisions); correct packages
  enrichment description; cross-link AGENTS.md + docs/HARNESS.md.
- src/docs/api-reference.md: rewrite to match the actual handlers —
  every endpoint shape (request/response/status), correct rate limits
  (CONFIG_READ/WRITE/SEARCH all 30/min), remove fabricated
  X-RateLimit-* headers, split dashboard /api/configs/:slug from CLI
  /:username/:slug/config, fix install endpoint Content-Type.
- src/docs/config-options.md: document validation limits — custom_script
  10K, dotfiles_repo HTTPS + 500, alias 2-20 chars + reserved words,
  packages 500/200; fix base_preset default; document
  snapshot.macos_prefs[].host.
- src/docs/personal.md: remove false "Dotfiles cloned and linked" line
  from the first install transcript (no dotfiles_repo configured yet).
- src/docs/teams.md: correct visibility guidance — private is
  owner-only (403 for other users), teams should use unlisted.
- src/docs/snapshot.md: "Before installing" → "Before applying" in the
  restore section.
- src/docs/what-is-openboot.md: spaced em-dash for style consistency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullstackjam fullstackjam merged commit 6bcc6ec into main May 17, 2026
8 checks passed
@fullstackjam fullstackjam deleted the docs/align-with-implementation branch May 17, 2026 04:02
fullstackjam added a commit that referenced this pull request May 17, 2026
Separates concerns so badges reflect reality:
- ci.yml (name: CI) — runs on PR + push to main, plus repository_dispatch
  for contract updates. One job (check): type check, tests + coverage,
  build, contract schema validation.
- deploy.yml (name: CD) — triggered via workflow_run after CI succeeds on
  main. Builds, applies D1 migrations, deploys via wrangler-action, runs
  the health check + smoke test + post-deploy contract round-trip.

README now shows two badges (CI + CD); previously one ambiguous "CI / Deploy"
workflow had a single badge that didn't tell the reader whether the issue
was a failed test or a failed deploy.

Also addresses post-merge review findings on #7:
- api-reference.md List Configs example: drop user_id, custom_script,
  dotfiles_repo, forked_from, created_at — getUserConfigs does not SELECT
  them (see src/lib/server/db/configs.ts:80).
- api-reference.md Get Current User: add avatar_url back — getCurrentUser
  selects it (src/lib/server/auth.ts:58,70).
- api-reference.md install endpoint auth note: replace the vague
  "browser-friendly auth flow" mention with the actual behavior
  (404 on the page route for non-owners; no interactive prompt).

HARNESS.md: point the post-deploy rows at deploy.yml; clarify the
push-to-main → workflow_run → deploy chain in the "not in the harness"
section.

required-checks.txt is unchanged: `check` and `validate-commits` still
exist as job names in ci.yml and conventional-commits.yml.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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