diff options
| author | aur-build <aur-build@localhost> | 2026-11-17 20:59:57 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-17 20:59:57 +0000 |
| commit | fd3ecf91686b11feea078531baeddb60e6941116 (patch) | |
| tree | 7e76c0d8a2041bf0d8d227939db9e55ea5b2afb5 /.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | |
| parent | 3762c7ce9f765283f47e5716b708e04590339375 (diff) | |
| download | aur-build-fd3ecf91686b11feea078531baeddb60e6941116.tar.gz aur-build-fd3ecf91686b11feea078531baeddb60e6941116.zip | |
feat: SQLite schema, migrations, single writer actor
The §11 data model as four migrations, plus the §11a concurrency model:
one writer thread owning the write connection (mutations arrive as
closures over a crossbeam channel, so SQLITE_BUSY is not part of the
design) and thread-local read-only connections under WAL.
Invariants that are database guarantees rather than conventions:
I7 partial unique index -> at most one pending_review per pkgbase
I3 UNIQUE(pkgbase_id, identity_hash) -> no duplicate candidates
I10 audit table rejects UPDATE and DELETE by trigger
§16 current_accepted_release_id moves only by compare-and-swap
Also: vercmp + dependency-string parsing (ALPM algorithm, no libalpm),
hash helpers including recipe_hash over the whole AUR tree, the clock
helper that stamps every write, and the config/root layout.
Part of P0 (DESIGN.md §17).
Diffstat (limited to '.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md')
| -rw-r--r-- | .pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md index 6041cfd..a54de59 100644 --- a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md +++ b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md @@ -5,14 +5,14 @@ "status": "active", "autoContinue": true, "usage": { - "tokensUsed": 85148, - "activeSeconds": 210 + "tokensUsed": 342691, + "activeSeconds": 955 }, "sisyphus": false, "createdAt": "2026-11-17T20:43:24.440Z", - "updatedAt": "2026-11-17T20:46:59.095Z", + "updatedAt": "2026-11-17T20:59:44.561Z", "activePath": ".pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md", - "revision": 16, + "revision": 57, "scheduler": { "version": 1, "owner": "01a1eb32-2e3f-757c-a79a-21ac993facc5", @@ -35,8 +35,10 @@ { "id": "task-setup", "title": "Provision toolchain (pacman rustup + devtools) and initialize git", - "status": "pending", - "verificationContract": "`rustup show` and `cargo --version` work; `git -C /workspace/aur-build log` contains an initial commit with DESIGN.md, .gitignore, and a scaffolded Cargo.toml that `cargo build` compiles." + "status": "complete", + "verificationContract": "`rustup show` and `cargo --version` work; `git -C /workspace/aur-build log` contains an initial commit with DESIGN.md, .gitignore, and a scaffolded Cargo.toml that `cargo build` compiles.", + "completedAt": "2026-11-17T20:48:20.900Z", + "evidence": "rustup 1.29.3 (pacman) + stable 1.100.0, devtools installed (mkarchroot/makechrootpkg present); git repo initialized on main with commit 3762c7c containing DESIGN.md, .gitignore, Cargo.toml; `cargo bu" }, { "id": "task-p0", @@ -203,7 +205,7 @@ "blockCompletion": true, "proposedAt": "2026-11-17T20:39:23.165Z" }, - "currentTaskId": "task-setup" + "currentTaskId": "task-p0-schema" } # Goal Prompt @@ -236,12 +238,12 @@ IF BLOCKED: stop and ask the user (e.g. no network for crates, toolchain uninsta - Status: running - Auto-continue: on - Sisyphus mode: no -- Time spent: 3m30s -- Tokens used: 85K (85,148) tokens +- Time spent: 15m55s +- Tokens used: 343K (342,691) tokens ## Tasks <!-- blockCompletion: true --> -- [ ] task-setup: Provision toolchain (pacman rustup + devtools) and initialize git — contract: `rustup show` and `cargo --version` work; `git -C /workspace/aur-build log` contains an initial commit with DESIGN.md, .gitignore, and a scaffolded Cargo.toml that `cargo build` compiles. +- [x] task-setup: Provision toolchain (pacman rustup + devtools) and initialize git — evidence: rustup 1.29.3 (pacman) + stable 1.100.0, devtools installed (mkarchroot/makechrootpkg present); git repo initialized on main with commit 3762c7c containing DESIGN.md, .gitignore, Cargo.toml; `cargo bu - [ ] task-p0: P0 — walking skeleton + test harness (§17 P0, §16a) - [ ] task-p1: P1 — VCS / computed pkgver detection (§5.2, §3) - [ ] task-p2: P2 — review surface (§12, §13, §6) |
