Skip to main content

Repository source memory sizing

The evidence archives (*.tar.gz, *.log.gz, *.json.gz) that the index files and prose below name were removed from git on 2026-11-10 (core#4419); retrieve them from history at the previous commit, git show d339b527c:docs/runbooks/repository-source-memory/<file>. dev-calibration.jsonl.gz and tenant-calibration.jsonl.gz stay because memory-sizing.json pins them by sha256 as the input to the committed memory caps.

These are provisional limits derived from measured whole-service processes, not a passing acceptance receipt. Calibration 2 completed both profiles and all scenarios, with zero service-process/cgroup swap. It FAILED the host-wide no-swap requirement: host pswpin/pswpout changed. Calibration 3 excluded preparation and concurrent diagnostic builds; it also failed due to host swap-in. The failed receipts are preserved rather than relabelled. Final current-head and merge-group acquisition-memory proof must pass all scenarios, host/process/cgroup no-swap, identity, cleanup and enforced-cap checks before these values are accepted.

For each service/profile the candidate is ceil-to-16-MiB(1.25 × max(process VmHWM, cgroup memory.peak) + 32 MiB): CE 400 MiB and Knowledge 96 MiB. RSS/HWM and cgroup populations are separate; the larger peak selects the cap. This is measured headroom, not a provider-size assumption. The calibration samples and full workload/receipt are gzip JSON artifacts; no binary, certificate or private key is included.

CE executes real source acquisition plus concurrent real generation with owned synthetic dependency leaves; final Release remains closed. Knowledge exercises its actual whole process and client against synthetic exchange/decode, not a successful production source hop. The tenant profile uses synthetic ordinary TLS material; core #4187 remains an operational prerequisite. Memory sampling excludes native healthcheck children and includes collector overhead. Isolated-fakes exercises the native health child under the same cap and checks OOM/restart separately.

Calibration used the recorded cached Go 1.26.9 toolchain path and flags; its precise source identity and all commands are in calibration-receipt.json.gz. It is historical sizing input, never current-head proof. Final proof uses reposource_memoryproof builds and self-/proc/cgroup collection, portable to the existing DinD CI boundary. Production ordinary builds contain no control endpoint or source-release bypass.

Calibration 2 predates the strengthened server-side four-caller entry barrier and per-scenario sampling intervals. Its raw workload does not satisfy those final checker requirements either. Its peaks are historical sizing input only; the final capped producer must independently prove the current barrier, every workload and every sample interval.

The historical calibration workload named its org-unit-ID receipt field teams; the final producer/checker use unit_ids to state the actual identity and satisfy the legacy-reference guard. Historical samples remain unchanged and supply only sizing peaks. They are not current-schema workload acceptance and are not silently converted or relabelled. Render, isolated and G2a receipt schemas are unaffected.

The historical local render/mutant bundles predate architect review5564697450. Their selector check used a self-referential literal and did not establish upgrade compatibility; retain them as historical diagnostics, not current selector acceptance. Current proof independently renders the actual Git base, compares all existing selectors, and requires a real-render dropped-label mutant. Current checker self-tests total28 and semantic mutants total4 compiled/5 render; the older bundles retain their original22,24 or27 selftests and original mutant rosters without relabelling.

QA A1 adds explicit offline sample/cap/head-binding violations. Each named rejection is pinned separately (including process/cgroup swap, host sampling/interval swap, HWM/cgroup peaks, swap allowance, OOM/restart/stopped, cadence, sample floor and ledger head). These fixtures prove checker discrimination only; they are not actual process or hosted memory acceptance. Eight individually neutralized predicates must produce named RED and restore to GREEN.

The hosted historical b93d run exposed dropped runner cache selectors before any service started. The process builder now retains only GOPATH/GOMODCACHE/GOCACHE in addition to its existing safe allowlist and records resolved cache paths; GOPROXY=off and credential/DSN exclusion remain enforced. A deterministic nondefault-cache child-process witness pins that boundary. The complete-G2 CI-only step bound is65minutes after measured G2a41m53 plus historical process modes already exceeded55minutes (coordinator disposition core#4185 comment6255651546). This is a scheduling estimate, not an actual complete-run pass or an extension of product/test/waiter/queue limits.

The historical335 Python lane exposed a test-only portability error: setup-python’s executable needed LD_LIBRARY_PATH after the witness intentionally sanitized it. The witness now uses existing /bin/sh, keeps28tests and production env unchanged, and pins2positive/11negative child controls plus missing-cache RED/restoredGREEN. The original CI error is preserved in local-cache-shell-correction.tar.gz. No library-path inheritance or new dependency was introduced.

2026-11-05 local proof readiness reconciliation​

G3c test readiness is available after source-qualified 44 Go and 11 worker literal cases, KnowledgeBoot plus Sweeper eight and tenant two auxiliary children, original18 E2 semantic mutations at a0447777 and original27 semantic mutations at f5c21711. This is composed source-qualified evidence, not a single final-head 55-case run. Ten unchanged Go proof consumers accepted the retained raw package receipts. Fresh worker11 and its strict source-bound consumer passed at f5 with current-proto generated inputs before exact protocol restoration; the generated tested digest is not the restored-tree digest.

Evidence: /tmp/repository-capability-readiness-4405-20261105; /tmp/repository-capability-root-e2-20261105/result.json; /tmp/repository-capability-root-original27c-20261105/root-terminal-audit.json; /tmp/repository-capability-worker-receipt-20261105/result.json. Baseline2 overall failure and earlier failed mutation/fixture/capacity attempts remain preserved. Later f5 changes from E2 a044 are only two SQL mock fixtures and journals. This readiness update changes metadata/documentation only; the coordinator completed it after the author model-capacity failure. Commit publication remains separate.

All four prior REQUEST_CHANGES verdicts remain historical and require fresh independent review. Hosted same-composed-head18 and later producers, CI-host pg_dump, full G2 deployment/process proof, carried unmerged #4224 G3a reconciliation, executed CI and beta acceptance remain outstanding. Flags stay OFF; no activation or publication occurred. Root owns delivery.