From 35274baac1ba87b44d88c2caf60c9a63042e522c Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 26 Apr 2026 15:13:18 +0200 Subject: [PATCH] =?UTF-8?q?docs(agents):=20update=20session=20close=20?= =?UTF-8?q?=E2=80=94=20sync=20endpoint=20+=20trailing=20slash=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace manual make fix-consistency instruction with direct curl call to POST /repos/repo-registry/sync. Fix trailing slash on tasks/{id}/ example. Co-Authored-By: Claude Sonnet 4.6 --- AGENTS.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e7a5d70..2575833 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -68,7 +68,7 @@ curl -s -X PATCH "http://127.0.0.1:8000/messages//read" \ ### Update task status (after workstreams are synced) ```bash -curl -s -X PATCH "http://127.0.0.1:8000/tasks//" \ +curl -s -X PATCH "http://127.0.0.1:8000/tasks/" \ -H "Content-Type: application/json" \ -d '{"status": "in_progress"}' ``` @@ -89,8 +89,15 @@ curl -s -X PATCH "http://127.0.0.1:8000/tasks//" \ **Close:** 1. Update task statuses in workplan files to match progress 2. Call `POST /progress/` with a summary of what was done -3. If workplan files changed, note that `fix-consistency` should be run from - the custodian machine: `cd ~/the-custodian/state-hub && make fix-consistency REPO=repo-registry` +3. If workplan files changed, sync them to the hub DB: + +```bash +curl -s -X POST "http://127.0.0.1:8000/repos/repo-registry/sync" | python3 -m json.tool +``` + +This runs the ADR-001 consistency check with `--fix` and returns a JSON report. +A `"result": "warn"` with only C-17 is normal (unpushed commits); no action needed. +A `"result": "fail"` means file/DB drift that could not be auto-fixed — read the issues list. ---