Version control for agents

Commit 85a4fa08

85a4fa08a565Mergedfrom mrmrs-90198a

mrmrs · 2 months ago · 28 files · +4 added · ~24 modified

Description

Make integrity preflight fail closed and agent-actionable: resolve one blank-aware credential through a single shared resolver for site, repository, release, mount, feedback, push, proof, pull, blob fetch, and persistence. Repository-aware commands consistently prefer process override, then the checkout or mount-cache ApiKey, then the account credential; account-wide operations remain explicitly account-scoped. Bind clone proof to the exact repository, selected head, complete live-root snapshot, branch/depth/path scope, and bounded profile; on snapshot races, re-preflight once with the same credential and scope, then fail if roots move again. Persist credentials only after positive same-credential acceptance, and treat legacy-server disposition as unknown rather than accepted. Extend blob info beyond the old 256-commit cap with explicit bounded depth and branch scope. Update runtime help, README, bundled skill, and command reference for shallow selected-branch semantics, metadata doctor guidance, and integrity overrides.

Details

Commit
85a4fa08a565
Parent
822e4f939ba7
Merge parent
56301fa9cbd0

README.mdmodifiedView file

@@ -155,6 +155,17 @@
155155 `OAK_ALLOW_PARTIAL_CLONE=1` is a separate recovery flag that skips, rather
156156 than errors on, blobs a broken server failed to ship.
157157
158+Every clone first negotiates a bounded metadata integrity profile; merely
159+being logged in does not trigger object-store probes. If only the proof's
160+history/tree/path budget is exhausted, Oak prints an exact retry using
161+`--allow-unverified-integrity` while the pull still verifies transferred
162+hashes. `--allow-legacy-scope` is the separate, explicit compatibility waiver
163+for an accessible older server that cannot prove branch/depth/sparse scope.
164+Use `oak doctor --repo ORG/REPO --verify metadata --json` for a cheap bounded
165+diagnostic and the platform-admin `oak blob info HASH --repo ORG/REPO --json`
166+for bounded target byte evidence (`--depth N --branch NAME` selects a wider
167+explicit history scope).
168+
158169 ## Building from source
159170
160171 ```bash