Skip to content

docs: add troubleshooting guide and expand DEVELOPMENT.md#32

Merged
Gsbreddy merged 1 commit into
mainfrom
cursor/documentation-automation-system-dc3d
May 2, 2026
Merged

docs: add troubleshooting guide and expand DEVELOPMENT.md#32
Gsbreddy merged 1 commit into
mainfrom
cursor/documentation-automation-system-dc3d

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 2, 2026

Summary

Documentation-only PR covering three knowledge gaps identified by reviewing recently changed subsystems against the existing docs.

Why

The v1.0.3 release hardened several code paths (ingest edge cases, multi-provider diff, confidence tiers, policy accumulation) and the existing docs were updated to match. However, several developer-facing areas had no documentation:

  • Package extras (openai, anthropic, telemetry, all) are listed in pyproject.toml but never explained to users
  • scripts/smoke.sh existed with no documentation linking to it or explaining how it differs from flightdeck-quickstart-verify and examples/ci/ledger_gate.py
  • Adding a new SQLite migration has no documented workflow, despite migration version being a public contract
  • Common developer and operator failure modes are scattered across DEVELOPMENT.md and operations-and-policy.md with no consolidated reference

Changes

docs/troubleshooting.md (new)

  • Developer environment: Python version requirement, venv activation, Windows pytest temp dirs, ruff errors, quickstart-verify failures, schema drift, web static drift, Playwright setup
  • CLI/workspace: missing config, pricing table missing, diff confidence issues, ingest idempotency, policy failure diagnosis
  • Server: HTTP 401/403 on promote, events not appearing in diff, SecurityStatusBar error, doctor audit_seq gap
  • SDK: 400 on ingest (with error table), 409 on promote, retry semantics

DEVELOPMENT.md (updated)

  • Package extras table with openai, anthropic, telemetry, all — explains what each installs and notes that core does not import them at runtime
  • Smoke-test script comparison table: quickstart-verify vs scripts/smoke.sh vs examples/ci/ledger_gate.py
  • scripts/smoke.sh inline description (what it covers, what it omits vs quickstart-verify)
  • "Adding a SQLite migration" section: step-by-step (add apply() block, bump LATEST_SCHEMA_MIGRATION_VERSION, add doctor assertion, update docs table, run targeted tests) + migration constraints

Validation

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests — all checks passed
  • uv run python -m pytest — 93 passed
  • uv run python scripts/generate_schemas.py then git diff --exit-code schemas/ — clean (no model changes)
  • uv run flightdeck-quickstart-verify — OK
  • All documented behaviors verified against source (storage.py, ledger.py, tests/conftest.py, server/routes/actions.py)

Web static not rebuilt (no web/ changes).

Schema / Storage Impact

  • None

Risk

Docs-only. No code changes.

Notes

Codepaths covered: src/flightdeck/storage.py (migration pattern, LATEST_SCHEMA_MIGRATION_VERSION, FLIGHTDECK_USE_SYSTEM_TEMP), src/flightdeck/ledger.py (confidence labels, policy evaluation), src/flightdeck/server/routes/actions.py (_LOCAL_CLIENT_HOSTS), src/flightdeck/sdk/client.py (retry semantics), pyproject.toml (extras table).

Open in Web View Automation 

- docs/troubleshooting.md: new guide covering developer environment issues
  (Python version, venv activation, Windows temp dirs, ruff, quickstart-verify
  failures, schema drift, web UI static drift, Playwright setup), CLI/workspace
  issues (missing config, pricing table, diff confidence, ingest idempotency,
  policy diagnosis), server issues (auth errors, event not appearing in diff,
  SecurityStatusBar, doctor audit_seq), and SDK issues (400 on ingest, 409 on
  promote, retry semantics)

- DEVELOPMENT.md: document package extras table (openai, anthropic, telemetry,
  all) with when-to-use guidance; explain that core does not import any of them

- DEVELOPMENT.md: add smoke-test script comparison table (quickstart-verify vs
  smoke.sh vs ledger_gate.py) and explain what smoke.sh covers and omits

- DEVELOPMENT.md: add 'Adding a SQLite migration' section with step-by-step
  instructions (add apply block, bump LATEST_SCHEMA_MIGRATION_VERSION, doctor
  assertion, docs update, test commands, and migration constraints)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@Gsbreddy Gsbreddy marked this pull request as ready for review May 2, 2026 18:15
@Gsbreddy Gsbreddy merged commit 2ba9e33 into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the cursor/documentation-automation-system-dc3d branch May 2, 2026 18:15
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.

2 participants