A small agent-driven Canvas-to-Notion planner. SQLite is canonical state, one Codex session reconciles every active course, and Notion is a human-facing projection.
- Export the latest complete Canvas corpus.
- Import current Notion rows and highlight user changes.
- Give Codex full CRUD over an isolated SQLite copy.
- Validate and atomically promote the database.
- Diff, publish, and verify Notion.
Canvas is strictly read-only. Codex never receives Notion credentials.
All production validation is container-based.
docker build -t nus-course-planner .
docker run --rm nus-course-planner bun run healthcheck
docker run --rm --env-file .env -v nus-sync-data:/data -v nus-sync-codex:/codex-home \
nus-course-planner bun run sync
# Deployment-equivalent service with persistent SQLite and Codex volumes
docker compose up -d
docker compose exec planner bun run syncbun run sync stops after producing /data/runs/<run>/notion-diff.json.
bun run sync:publish applies and verifies that diff once the live Notion
schema migration is authorized.
bun run notion:schema reads the live schema and prints required additions,
removals, and type corrections without changing Notion.
See the shared planner guide, local sync-agent instructions, and the approved specification.