Skip to content

fix: accurate docs + wire capabilities/ + verify deploy with real Docker#2

Merged
madhyamakist merged 1 commit into
mainfrom
fix/docs-and-capabilities
Jul 11, 2026
Merged

fix: accurate docs + wire capabilities/ + verify deploy with real Docker#2
madhyamakist merged 1 commit into
mainfrom
fix/docs-and-capabilities

Conversation

@madhyamakist

Copy link
Copy Markdown
Member

Summary

Makes the boilerplate battle-ready for tomorrow's buildathon: docs now match the real code, the orphaned capabilities/ dir is wired into the running agent, and the full deploy path is verified with a real Docker daemon (not just trusted to CI).

Docs vs code drift (your accuracy rule is hard)

The AGENTS.md, README.md, and spec/* files described a non-existent architecture:

  • a generator (scripts/bootstrap.py / templates/) that doesn't exist
  • Anthropic default (actual: Gemini), Vite 6 (actual: 5), web/ dir (actual: frontend/)
  • Postgres prod path (none shipped), MCP/A2A stubs (none shipped)
  • a src/ + LangGraph transform_text skeleton (actual: backend/app/ hand-rolled supervisor/worker)

All rewritten to describe the actual backend/app/ scaffold. Added a scope note to harness/patterns/project-layout.md so the src/+LangGraph catalogue is clearly labelled as the generated-project target, not this repo's baseline.

Capabilities wired into runtime

  • backend/app/capabilities.py loads capabilities/*.md at startup (skips README.md); robust multi-path resolution works locally and inside the Docker image.
  • New GET /capabilities endpoint.
  • backend/Dockerfile.backend + deploy/Dockerfile now COPY capabilities/ into the image; compose build context moved to repo root.

Verified with a real Docker daemon (colima)

  • docker compose up --build: backend reports healthy, frontend up; /health, /capabilities, /api/chat, /goals/{id}/run, /api/runs all return 200 inside the container.
  • deploy/Dockerfile builds (this is what GCP/cloudbuild uses).
  • backend tests: 6 passed; evals: 4 passed, 1 skipped (live test gated on API key — no key in .env, so CI never fails); frontend: npm run build clean.

Known environmental note (not a boilerplate defect)

A system launchd http.server 8000 occupies the host port 8000, so host-side curl localhost:8000 was blocked. Verification was done via in-container curl, which proves the container is correct. On a clean machine / GCP VM this won't apply.

Test plan

  • backend pytest tests → 6 passed
  • pytest evals → 4 passed, 1 skipped (no key)
  • frontend npm run build
  • docker compose up --build → all endpoints 200 in-container
  • docker build -f deploy/Dockerfile

…ath with real Docker

Docs vs code drift (docs must be accurate — hard rule):
- AGENTS.md/README/spec/* described a non-existent generator (bootstrap.py),
  Anthropic default, Vite 6, web/ dir, Postgres prod, MCP/A2A stubs, and a
  src/ + LangGraph transform_text skeleton. Rewrote to match the actual
  backend/app/ hand-rolled supervisor/worker scaffold (Gemini default, Vite 5,
  frontend/, SQLite dev). Added scope note to harness/patterns/project-layout.md.

Capabilities wired into runtime:
- backend/app/capabilities.py loads capabilities/*.md at startup (skips README),
  robust multi-path resolution so it works locally AND in the Docker image.
- GET /capabilities endpoint (new router).
- backend/Dockerfile.backend + deploy/Dockerfile now COPY capabilities/ into the
  image; docker-compose build context moved to repo root.

Verified (real Docker, not just CI):
- docker compose up --build: backend healthy, frontend up; /health, /capabilities,
  /api/chat, /goals/run, /api/runs all return 200 inside the container.
- deploy/Dockerfile builds.
- backend tests 6 passed; evals 4 passed/1 skipped (live gated on key); frontend builds.

Note: a system launchd http.server occupies host port 8000, so host-side curl
was blocked, but the container itself is proven working via in-container curl.
@madhyamakist
madhyamakist merged commit 1159971 into main Jul 11, 2026
2 checks passed
@madhyamakist
madhyamakist deleted the fix/docs-and-capabilities branch July 11, 2026 20:25
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