docs(plan): check off Task 20 — all 20 tasks complete

This commit is contained in:
DEls 2026-09-11 16:17:41 +02:00
parent 8eb256360b
commit 9b9d7097bb

View file

@ -3265,27 +3265,27 @@ git commit -m "perf(schema): index the columns every per-site query filters on"
- Modify: `docs/data-model.md`, `docs/data-flows.md`
- Modify: `src/lib/agent/load.ts`, `tools.ts`, `format.ts`
- [ ] **Step 1: Update the bootstrap script**
- [x] **Step 1: Update the bootstrap script**
Add `TIMESHEETS`, `FUEL_SHEETS`, `PLANT_HOURS_SHEETS`; rename `TIMESHEETS`→`TIMESHEET_ENTRIES` and `RECEIVED_ITEMS`→`DELIVERY_NOTE_ITEMS`; remove `PLANT`, `DATA_IMPORT_BATCHES`, `project_code` ×8 and `qty_outstanding`; add every index from Task 19 and the new queue fields on `purchase_orders`.
- [ ] **Step 2: Update the rules script**
- [x] **Step 2: Update the rules script**
`scripts/pb-relax-rules.py` enumerates 13 collections. Update the list: three added, two renamed, two removed.
- [ ] **Step 3: Repoint the agent layer**
- [x] **Step 3: Repoint the agent layer**
Task 18 Step 4 already moved the loaders off `data_import_batches`. What is left here is scoping: add `siteId` to the `list_*` tool schemas — with per-site roles coming, a tool that cannot scope by site is a tool that will have to be rewritten.
- [ ] **Step 4: Rewrite the two docs**
- [x] **Step 4: Rewrite the two docs**
`docs/data-model.md` §2 (the site-attribution table), §4 (collection reference) and §7 (schema drift) all describe the old shape. `docs/data-flows.md` describes five pipelines that no longer exist as written. Both are the first thing the next person reads — leaving them stale reintroduces exactly the problem this work set out to fix.
- [ ] **Step 5: Verify a fresh bootstrap**
- [x] **Step 5: Verify a fresh bootstrap**
Against a local PocketBase, run `scripts/pb-bootstrap-schema.py` on an empty instance and diff the resulting collection list against production. They must match.
- [ ] **Step 6: Commit**
- [x] **Step 6: Commit**
```bash
git add -A