Find the owner before making a change#
| Change you need | Start in | Also review |
|---|---|---|
| Coconut displayed total | services/forecast-service.ts / allowance/reserve service |
Provider dashboard and reports/tests |
| Coconut planning decision | month-planning-service.ts, database/monthPlan.ts |
Historical audit, sync adapters |
| Shared split/balance | shared-expense-service.ts |
Mirror reconciliation and membership policies |
| Banana meal choice | planning-service.ts, selectors, preferences |
Scarcity/rotation tests, pinned/leftover handling |
| Banana list quantity | shopping-list-service.ts, pantry service |
Home separation, units and generated/manual rows |
| AI output support | ai/schemas.ts, prompts, parsers |
Provider application and fixtures; never bypass services |
| Retailer markup change | Matching deals/<store>.ts |
Saved fixtures, registry and cache-failure behavior |
| App schema change | App SQLite migration | Central Supabase migration, serializers, RLS, OAuth policies |
| Account validation/flow | Website account-core.js / account.js |
Auth configuration and recovery events |
| Delegated access | Central OAuth validator + Coconut OAuth module | Server guard/restrictive policies and SQL tests |
| Wiki content | wiki/content/ |
Navigation metadata, source links and build tests |
Safe local reading order#
- Read the repository's
AGENTS.md, specification and relevant release plan. - Find the screen and provider operation involved.
- Follow repository calls to stored rows and service inputs.
- Read the corresponding tests for expected behavior.
- For remote issues, inspect serialization, identity and server policies.
- Check working-tree changes before assuming the latest commit is the entire baseline.
The file inventories and Banana inventory list source modules and named exports. They are navigation aids, not autogenerated claims that every export is a stable external API.
Available checks#
From Coconut:
npm test
npm run typecheck
npm run lint
npm run export:web
npm run export:hosted-web
From Banana:
npm test
npm run typecheck
npm run lint
npx expo export --platform web
From seedworkslab.github.io:
npm test
npm run check
From wiki:
npm ci
npm run check
npm run audit:sources
npm run preview
audit:sources additionally needs the sibling app/backend repositories in the same workspace; the standalone wiki build and CI do not.
These commands document available entry points. Preparing the wiki did not run app release scripts, publish artifacts, apply SQL or exercise real user accounts.
Troubleshooting reference#
Coconut: data missing after sync#
Verify active account and dataset binding first. Check the local row UUID, whether a change was queued, its serialized parent references, remote RLS and pull watermark. Then follow pull FK repair and provider refresh.
A missing child can be a missing-parent problem, not a network problem. A full sync rereads historical rows for repair, but is not permission to discard a device's database.
Coconut: browser database is locked#
Close the other Coconut tab/window holding the Web Lock. Retry opening; if VFS initialization already failed, reload. Do not clear site data, delete OPFS or open the same account in multiple competing tabs to work around ownership.
Banana: unsuitable or repeated meals#
Check preference-filtered planner inputs, meal settings, available times and candidate count. Rank order prioritizes unused candidates before raw score, and warnings explain insufficient diversity. Ensure the history used is actual recipe use and that pins/batches were counted.
Banana: shopping list differs between devices#
Compare underlying slots, servings, homes and pantry—not just cached generated rows. Verify manual items and separate checked-item identities. Generated rows are intentionally not synchronized as independent records.
Banana: offers vanished or refresh is partial#
Inspect the store ID/provider mapping, robots/fetch result, saved markup fixture and scrape_runs. A partial parse should preserve the last good cache. Check validity windows separately from scrape timestamp.
OAuth: login fails before consent#
Verify exact production origin/client/callback, central session, seed_oauth_sso_ready result and loaded PostgREST hook. Do not disable readiness checks to make the screen proceed.
OAuth: callback rejected#
The callback must return to the initiating tab with its one-time transaction, correct state and unexpired verifier. Restart login after a replay/expired callback. Do not log or paste codes/tokens while investigating.
Backend: schema or RPC denied#
Separate four questions: is the schema exposed, are grants present, does owner/membership RLS pass, and does OAuth client authorization permit the route? For RPCs, inspect definer privileges and independent wrapper checks.
Data safety is non-negotiable#
Never wipe/reset/recreate the Android emulator, uninstall the apps, clear app data or delete browser storage as a routine debugging step. Real manually entered records may exist nowhere else.
Use read-only inspection, isolated fixtures, temporary test profiles and the owner's approved acceptance process. Backup restore is destructive and requires explicit authorization.
Do not copy the workspace's SQL data dump, .env files, tokens, private account records or cached transcripts into this public wiki.
Release and version caveats#
Package metadata, app release metadata and published tags need not be identical. For example, inspected package versions are not a reliable summary of the latest user-facing Coconut/Banana release.
Inspect repository release configuration and published artifacts before writing version claims. Do not run release.sh, bump versions, commit, tag or push merely to validate a documentation change.