package manager: resolve git: and archive: sources #27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
std/projectreadsgit:,archive:andpath:sources, but only registry and path dependencies resolve;torbrefuses the others with "is not resolved yet" (compiler/src/cli/packages.trb,resolved). This issue resolvesarchive:sources and lays the shared groundwork (lock rows, resolver and cache plumbing);git:follows in a linked issue.Source
archive:row of the lock table: the URL and the content hash)--offline)Acceptance criteria
archive:source is downloaded, unpacked with the registry's safety checks (unpacked) and checked against its manifesthash:(the tree hash,sha256:...); a mismatch is an error naming both hashesproject.trbis read from the unpacked tree; its name must equal thesourcename; its dependencies join the resolution like those of apath:packagepackage "<name>", archive: "<canonical Uri text>", hash: "sha256:...";readLockandrenderLockround-trip it, ordering stays deterministic, existing locks are read unchanged--offline(or a warm cache) no network is touched, a cold cache gives the "would have to be fetched" errortorb install,build,check,lock --check,vendoraccept the source; a lock row that no longer matches the manifesthash:is reported as a mismatchfile:URL (no network): success, wrong hash, wrong package name, offline from cachedocs/tooling/project-lock-trb.md,project-trb.mdand PROJECT.md "As built" updated;skills/regeneratedSeed impact
None: ordinary compiler code on existing language features, no syntax change, no new native, no driver flag, no std name looked up by string. Lock format change is additive (new row kind), so no lock
languagebump.Dependencies
Uri) is closed and landed; nothing else blocks.git:issue, which reuses the lock and cache plumbing of this one.[loop:torbscript] intake: in scope (author orion, label loop). Resolution of
git:andarchive:sources; declares a dependency on #2 (to be checked in refine, the stated link looks off: #2 is the lint manifest setting). Touches the lock and fetching, seed impact to settle in refine. Release freeze for 0.1.0 (2026-10-06) holds new PRs, next: waiting (dependency on #2, confirm in refine)Orion (orion/infra#1391): the dependency named in the intake note, #2, is closed (lint: choose the rules in the manifest) and unrelated to package sources, as the note itself suspected. Nothing blocks refine; the loop picks this up again.
[loop:torbscript] claim refine by session:loop-torbscript-20261012 until 2026-10-12T10:23Z
git:sources #322[loop:torbscript] decided by the loop: (1) Size: archive and git together are too large for one PR (resolver, lock rows, fetch, cache, two fetch paths, tests, docs), so #27 is rescoped to
archive:plus the shared plumbing, andgit:is split into #322 (depends on #27). (2) Manifesthash:is the tree hash (sha256:form, same as registry archives), so the existingunpackedchecks and the content-addressed cache are reused and a mirror may recompress. (3) Lock row for archives:archive: "<canonical Uri text>", hash:, additive, no locklanguagebump, old locks read unchanged. (4) Fetching uses the existing curl/wget path offetch.trb; tests use afile:URL, no network. (5) Seed impact: none. (6) The stated dependency #26 is closed and landed; nothing blocks.git:sources #322[loop:torbscript] refine: ready (rescoped to
archive:and the shared plumbing,git:split to #322, tokens used ~60k), next: implement[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-12T14:25Z
[loop:torbscript] release: implement worker died on the account session limit before pushing a branch (resets 13:00 Berlin); respawning
[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-12T17:04Z
[loop:torbscript] implement: PR #329 open, CI green, next: review (merge gate)
PR: #329 (branch
loop/27-archive-sources, 2 commits on main7c1fcba3). CI run 895 green: bootstrap, tier A (incl. the package-manager transcript gate with the new archive-app section, andtorb vendor), tier B, tools, same-C, playground, VS Code extension, pdisc.Token usage: not metered exactly; about 0.4M since the last context compaction plus one full earlier context window.
git:sources #322