Skip to content

Comments

[WIP] Update documentation to match current implementation#4

Merged
MinecraftFuns merged 3 commits intomainfrom
copilot/update-documentation-repository
Feb 9, 2026
Merged

[WIP] Update documentation to match current implementation#4
MinecraftFuns merged 3 commits intomainfrom
copilot/update-documentation-repository

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

  • Inventory existing documentation and compare with code
  • Update README.md and docs/ to match current behavior
  • Add docs/docs_drift_report.md summarizing drift findings
  • Verify documentation changes
Original prompt

You are an autonomous Go codebase documentation maintenance agent.

Mission

  • Bring the repository docs fully up to date with the actual implementation.
  • Assume the current docs have drifted. Treat the codebase as the source of truth.
  • You have full autonomy to edit existing docs and create new docs as needed.
  • Do not change product behavior. Only change code if it is required to keep docs truthful (for example, fixing misleading comments or adding missing docstrings), and if you do change code, keep it minimal and justify it.

Scope

  • Primary target: README.md (the PromptPipe docs shown in this chat are likely the current README).
  • Secondary targets: any existing docs under docs/, internal module docs, examples, sample configs, and deployment notes.
  • If the repo lacks structured docs, create a docs/ folder and split large sections into focused documents, then link them from README.

Non-negotiables

  • No guessing. If a claim cannot be confirmed from code, tests, or config defaults, either (a) verify it by reading code and updating the doc accurately, or (b) remove it, or (c) mark it explicitly as “Not implemented” or “TBD” with a pointer to what would need to exist in code.
  • Every endpoint, field name, flag, env var, default, and behavior described must match what the code actually does.
  • Examples must be runnable or clearly marked as illustrative only.

High-level workflow (do all steps)

  1. Repository inventory
  • Identify all doc surfaces: README, docs/, examples/, cmd help output, comments that function as docs, any OpenAPI/Swagger files, any markdown in .github/, etc.
  • Produce a quick map: “Doc file -> what it claims”.
  1. Code as source of truth
  • Find and read these likely sources (adjust based on repo reality):
    • API routes and handlers (often internal/api)
    • Data models (often internal/models)
    • Config and env var parsing (often cmd/* main.go and internal/config)
    • Scheduler/timer implementation (internal/flow or internal/scheduler)
    • Storage layer and DB schema/migrations (internal/store, migrations/)
    • WhatsApp integration (internal/whatsapp) and whatsmeow DB usage
    • GenAI integration and prompts (internal/genai, prompts/)
    • Conversation flow implementation and endpoints (internal/flow/conversation or similar)
  1. Build a “truth table” and reconcile drift
    For each documented item, verify it in code and reconcile:
  • API endpoints
    • List all actual routes (method + path).
    • For each route: request body schema, query params, response schema, status codes, error format, auth (if any), id formats, pagination (if any).
    • Compare with current docs and update accordingly.
  • Scheduling
    • Determine how schedules are represented in code (cron string vs structured object vs both).
    • Confirm time zone behavior, defaults, and validation.
    • Confirm timers endpoints (if they exist) and their semantics.
  • Conversation flow
    • Confirm the 3 bot architecture is real: components, state transitions, enrollment endpoints, recovery semantics, timeouts and delays, persistence.
    • Confirm “structured reasoning” behavior (JSON {thinking, content}, debug surfacing) exists in code, and document the real toggle or lack of it.
  • Storage and databases
    • Confirm what is stored in the app DB, what is stored in the whatsmeow DB.
    • Confirm supported databases (SQLite, Postgres) and any constraints.
    • Confirm actual DSN env var names, precedence rules, file paths, and default filenames.
  • Configuration
    • Enumerate all env vars and CLI flags actually supported.
    • Confirm defaults and precedence (flags vs env vs defaults).
    • Remove any env var in docs that does not exist in code, or add it to code only if it is clearly intended and missing (prefer doc fix over code change).
  • Features list
    • Confirm each feature is implemented.
    • Remove or reword anything aspirational or outdated.
  1. Update and restructure docs
  • Rewrite README to be accurate, minimal, and navigable.
  • If README is too large, move details into docs/:
    • docs/api.md: endpoints, schemas, examples
    • docs/configuration.md: env vars, flags, precedence, examples
    • docs/storage.md: DBs, schema notes, migrations, backups
    • docs/flows.md: flow types, generator interface, built-in generators, custom flows
    • docs/conversation.md: conversation flow, bots, state machine, troubleshooting
    • docs/development.md: build, test, lint, local run, contributing
    • docs/troubleshooting.md: common operational issues (whatsmeow login, DB locked, time zone, etc)
    • docs/security.md: handling keys, OpenAI key, PII considerations, operational hygiene (only if relevant)
  • Ensure cross-links work and Table of Contents is updated.
  • Keep language concrete and implementation-aligned. Prefer references to exact files and structs where helpful.
  1. Add machine-checkable artifacts when useful (only if worth it)
  • If feasible, add an OpenAPI spec (openapi.yaml) derived from the actual handlers and models, and link it from README.
  • Add...

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@MinecraftFuns
Copy link
Contributor

@copilot please complete the remaining tasks

Co-authored-by: MinecraftFuns <25814618+MinecraftFuns@users.noreply.github.com>
@MinecraftFuns
Copy link
Contributor

@copilot please complete the remaining tasks

Co-authored-by: MinecraftFuns <25814618+MinecraftFuns@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 9, 2026

@copilot please complete the remaining tasks

Completed the remaining documentation fixes and verification in f609160.

@MinecraftFuns MinecraftFuns marked this pull request as ready for review February 9, 2026 18:02
@MinecraftFuns MinecraftFuns merged commit d61d91d into main Feb 9, 2026
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