From 9b9d7097bb4d2f7d80cb5ef5584fbdddbff783ae Mon Sep 17 00:00:00 2001 From: DEls Date: Fri, 11 Sep 2026 16:17:41 +0200 Subject: [PATCH] =?UTF-8?q?docs(plan):=20check=20off=20Task=2020=20?= =?UTF-8?q?=E2=80=94=20all=2020=20tasks=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plans/2026-09-11-ingestion-restructure.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/superpowers/plans/2026-09-11-ingestion-restructure.md b/docs/superpowers/plans/2026-09-11-ingestion-restructure.md index 2fed325..e17a83d 100644 --- a/docs/superpowers/plans/2026-09-11-ingestion-restructure.md +++ b/docs/superpowers/plans/2026-09-11-ingestion-restructure.md @@ -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