summaryrefslogtreecommitdiffstats
path: root/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-18 08:23:14 +0000
committeraur-build <aur-build@localhost>2026-11-18 08:23:14 +0000
commiteefbefed9cbea6b2edef65900fbe6cb6da0b48e4 (patch)
tree1249788a49812fc15b644687af7c1384f94ba236 /.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
parenta6b652985f40cf022d6c522415c36fad13bc663d (diff)
downloadaur-build-eefbefed9cbea6b2edef65900fbe6cb6da0b48e4.tar.gz
aur-build-eefbefed9cbea6b2edef65900fbe6cb6da0b48e4.zip
http: surfaces driven by live state — staleness, downgrades, deps, rebuild (I6)
Attention, the package page and the builds page now answer real questions instead of rendering empty tables: - Attention lists outdated dependencies derived from the recorded world snapshots, naming the dependency that moved, what the artifact was built against and what the index holds now; also missing dependencies and downgrades (AUR offering a lower version than we serve), which is an announcement for a human, not a build request. - The package page shows depends-on from the recipe we actually serve and needed-by from the packages whose recipes name it, plus staleness and the aur_commit timeline, each release linking into cgit at that exact commit. - Builds rows carry the version they are about, in both the live and the recently-finished table. - A manual rebuild reuses the approved source identity and mints no approval (I6); the test asserts the approval count is unchanged before and after the rebuild runs. - A paused subscription is not observed at all: detection returns Paused without polling, so pausing a broken package stops it opening reviews. - Staleness stays computed on read (§10.2). Nothing stores a stale flag, so nothing can serve a stale lie. Also: dep-client fixture added for dependency pairs.
Diffstat (limited to '.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md')
-rw-r--r--.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md46
1 files changed, 28 insertions, 18 deletions
diff --git a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
index 3e04e56..c228f43 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": 3247406,
- "activeSeconds": 6929
+ "tokensUsed": 4907415,
+ "activeSeconds": 9918
},
"sisyphus": false,
"createdAt": "2026-11-17T20:43:24.440Z",
- "updatedAt": "2026-11-18T07:29:00.016Z",
+ "updatedAt": "2026-11-18T08:23:09.937Z",
"activePath": ".pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md",
- "revision": 310,
+ "revision": 527,
"scheduler": {
"version": 1,
"owner": "01a1eb32-2e3f-757c-a79a-21ac993facc5",
@@ -100,7 +100,7 @@
{
"id": "task-p1",
"title": "P1 — VCS / computed pkgver detection (§5.2, §3)",
- "status": "pending",
+ "status": "complete",
"subtasks": [
{
"id": "task-p1-stageA",
@@ -121,10 +121,14 @@
{
"id": "task-p1-notices",
"title": "Non-publishable change handling: pin_drift, recipe drift, digest drift → notice / integrity_alert (§5.2, §5.3, I11)",
- "status": "pending",
- "verificationContract": "pin-drift fixture yields a notice and no candidate; digest-drift fixture yields a high-severity integrity_alert and no candidate; SKIP-on-non-VCS is flagged as a risk signal; nothing publishable is silently dropped."
+ "status": "complete",
+ "verificationContract": "pin-drift fixture yields a notice and no candidate; digest-drift fixture yields a high-severity integrity_alert and no candidate; SKIP-on-non-VCS is flagged as a risk signal; nothing publishable is silently dropped.",
+ "completedAt": "2026-11-18T07:29:10.456Z",
+ "evidence": "tests/notices.rs: 8 tests — digest-drift fixture → high-severity integrity_alert + no candidate, pin-drift → info notice + no candidate, recipe drift → warning, skip-checksum → HIGH risk signal 'skip-"
}
- ]
+ ],
+ "completedAt": "2026-11-18T07:30:36.958Z",
+ "evidence": "All three P1 children complete: Stage A probe (every VCS source, #tag/#commit, short-circuit), Stage B resolution (pin capture, cache on pkgbase+recipe_hash+tip, cooldown, concurrency cap), notices+ri"
},
{
"id": "task-p2",
@@ -134,20 +138,26 @@
{
"id": "task-p2-http",
"title": "tiny_http server, templating, thread-local readers, CSRF + session gate",
- "status": "pending",
- "verificationContract": "Thread-per-connection server renders all §12 routes; every POST requires a CSRF token; handlers never use the write connection; pages render with JS disabled."
+ "status": "complete",
+ "verificationContract": "Thread-per-connection server renders all §12 routes; every POST requires a CSRF token; handlers never use the write connection; pages render with JS disabled.",
+ "completedAt": "2026-11-18T08:06:45.433Z",
+ "evidence": "tests/http.rs (14 tests, all pass): every_surface_renders covers all §12 routes on a live tiny_http server; every_post_requires_a_csrf_token asserts 403 for missing and forged tokens with zero rows wr"
},
{
"id": "task-p2-inbox",
"title": "Inbox + diff panels + advisory risk scoring (§6, §7.1b)",
- "status": "pending",
- "verificationContract": "Review detail renders recipe / version / source-digest / upstream / source / dependency / build-env / install-hook panels, all based on accepted→candidate; risk signals computed and shown inline; base and aur_commit displayed with an AUR cgit link; first_introduction renders the full recipe with the subtle accent and no diff pane."
+ "status": "complete",
+ "verificationContract": "Review detail renders recipe / version / source-digest / upstream / source / dependency / build-env / install-hook panels, all based on accepted→candidate; risk signals computed and shown inline; base and aur_commit displayed with an AUR cgit link; first_introduction renders the full recipe with the subtle accent and no diff pane.",
+ "completedAt": "2026-11-18T08:07:10.624Z",
+ "evidence": "src/review/diff.rs now emits all eight §6 panels (recipe, version, source-digest, upstream, source, dependency, build-env, install-hook), each computed accepted→candidate; commit ab8d33d. tests/http.r"
},
{
"id": "task-p2-approve409",
"title": "Optimistic-concurrency approve/reject + bulk operations (§7.1a, §7.4)",
- "status": "pending",
- "verificationContract": "Approve POST with a stale identity_hash/diff_digest returns 409 and re-renders the current diff with an explanation; bulk approve refuses high-risk items without per-item confirmation; reject requires a note and is re-openable."
+ "status": "complete",
+ "verificationContract": "Approve POST with a stale identity_hash/diff_digest returns 409 and re-renders the current diff with an explanation; bulk approve refuses high-risk items without per-item confirmation; reject requires a note and is re-openable.",
+ "completedAt": "2026-11-18T08:07:36.401Z",
+ "evidence": "tests/http.rs: a_stale_approval_is_a_409_that_renders_the_current_diff (upstream moves mid-review → 409, body explains the ground moved, re-render shows the new 9.9 version, zero approval rows written"
},
{
"id": "task-p2-surfaces",
@@ -223,7 +233,7 @@
"blockCompletion": true,
"proposedAt": "2026-11-17T20:39:23.165Z"
},
- "currentTaskId": "task-p1-notices"
+ "currentTaskId": "task-p2-surfaces"
}
# Goal Prompt
@@ -256,14 +266,14 @@ 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: 1h55m29s
-- Tokens used: 3.2M (3,247,406) tokens
+- Time spent: 2h45m18s
+- Tokens used: 4.9M (4,907,415) tokens
## Tasks
<!-- blockCompletion: true -->
- [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
- [x] task-p0: P0 — walking skeleton + test harness (§17 P0, §16a) — evidence: All P0 children complete: schema+writer actor, shims+corpus, mirror watcher, approval semantics+CLI, 10-step pipeline with signed atomic publish, invariant index. 81 tests pass, clippy clean, 7 commit
-- [ ] task-p1: P1 — VCS / computed pkgver detection (§5.2, §3)
+- [x] task-p1: P1 — VCS / computed pkgver detection (§5.2, §3) — evidence: All three P1 children complete: Stage A probe (every VCS source, #tag/#commit, short-circuit), Stage B resolution (pin capture, cache on pkgbase+recipe_hash+tip, cooldown, concurrency cap), notices+ri
- [ ] task-p2: P2 — review surface (§12, §13, §6)
- [ ] task-p3: P3 — durability (§8.2, §8.3, §8.4)
- [ ] task-p4: P4 — staleness, retention, metrics (§10, §15)