diff options
| author | aur-build <aur-build@localhost> | 2026-11-18 07:16:36 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-18 07:16:36 +0000 |
| commit | 0b3cb443e70b46ec61455255c3ddfc2a26997613 (patch) | |
| tree | 457d5e0bf3b1733b79829de3c146e1cabcc85e8c /.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | |
| parent | d7c386a703a9b69211d83854547218d6e1da9a51 (diff) | |
| download | aur-build-0b3cb443e70b46ec61455255c3ddfc2a26997613.tar.gz aur-build-0b3cb443e70b46ec61455255c3ddfc2a26997613.zip | |
watch: two-stage VCS watcher — ls-remote probe, pkgver() resolution, pin capture (§5.2)
Stage A probes every VCS source in source=() with git ls-remote,
respecting #commit/#tag/#branch fragments, and returns one UpstreamPin
per source. If the tip set equals the accepted release's pins, nothing
can have changed and Stage B never runs — the common case costs one
round trip per source and no clone. svn/hg have no cheap universal probe,
so they are reported as unprobed and force Stage B rather than being
silently treated as unchanged.
Stage B runs only on movement: it fetches into a persistent vcs_cache
(rather than re-cloning a multi-gigabyte upstream daily), runs makepkg
--vercheck, and captures the pins from the clone it already has. Results
are cached on (pkgbase, recipe_hash, upstream_tip) with a per-pkgbase
cooldown, and a process-wide slot cap bounds concurrent resolutions.
The resolved epoch:pkgver-pkgrel plus the pins go into identity_hash, so
a different commit is a different thing to approve.
Also fixes a misclassification the new path exposed: a VCS source's
digest is its pin, so upstream movement showed up as an integrity_alert.
Integrity events are now restricted to fixed downloads; VCS movement
under a frozen pkgver is pin_drift, as §5.2 specifies.
New fixtures git-multi (two upstreams) and git-tagged (#tag pin). 10
tests in tests/vcs.rs.
Diffstat (limited to '.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md')
| -rw-r--r-- | .pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md index f11d934..900925a 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": 2375516, - "activeSeconds": 5307 + "tokensUsed": 2777693, + "activeSeconds": 6191 }, "sisyphus": false, "createdAt": "2026-11-17T20:43:24.440Z", - "updatedAt": "2026-11-18T07:01:26.894Z", + "updatedAt": "2026-11-18T07:16:29.726Z", "activePath": ".pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md", - "revision": 253, + "revision": 288, "scheduler": { "version": 1, "owner": "01a1eb32-2e3f-757c-a79a-21ac993facc5", @@ -43,7 +43,7 @@ { "id": "task-p0", "title": "P0 — walking skeleton + test harness (§17 P0, §16a)", - "status": "pending", + "status": "complete", "subtasks": [ { "id": "task-p0-schema", @@ -88,10 +88,14 @@ { "id": "task-p0-invariants", "title": "Executable invariant tests I1/I2/I4/I5/I8", - "status": "pending", - "verificationContract": "cargo test includes: post-run query proving no index entry lacks an approval (I1); multi-detection fixture proving the diff base is the last accepted version (I2); kill-mid-publish leaving the old index intact (I4); restart-resumes-at-next-incomplete-step with no duplicate side effects (I5); index set equals accepted-release pointers (I8)." + "status": "complete", + "verificationContract": "cargo test includes: post-run query proving no index entry lacks an approval (I1); multi-detection fixture proving the diff base is the last accepted version (I2); kill-mid-publish leaving the old index intact (I4); restart-resumes-at-next-incomplete-step with no duplicate side effects (I5); index set equals accepted-release pointers (I8).", + "completedAt": "2026-11-18T07:01:31.398Z", + "evidence": "tests/invariants.rs: 10 named invariant tests pass as post-conditions on real runs (I1 approval trace, I2 base after 5 detections, I3 recipe pin, I4 byte-identical index after mid-publish crash, I5 re" } - ] + ], + "completedAt": "2026-11-18T07:02:29.831Z", + "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" }, { "id": "task-p1", @@ -214,7 +218,8 @@ ], "blockCompletion": true, "proposedAt": "2026-11-17T20:39:23.165Z" - } + }, + "currentTaskId": "task-p1-stageA" } # Goal Prompt @@ -247,13 +252,13 @@ 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: 1h28m27s -- Tokens used: 2.4M (2,375,516) tokens +- Time spent: 1h43m11s +- Tokens used: 2.8M (2,777,693) 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 -- [ ] task-p0: P0 — walking skeleton + test harness (§17 P0, §16a) +- [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) - [ ] task-p2: P2 — review surface (§12, §13, §6) - [ ] task-p3: P3 — durability (§8.2, §8.3, §8.4) |
