commit
3cac890ce9
57 files changed
+4043
No files matched your search
@@ -0,0 +1,66 @@
|
||||
# 12 — Acquisition, source packages and binary packages
|
||||
|
||||
Implementation status: planned, except the initial bootstrap when marked verified in
|
||||
[STATE](../agent-workflow/STATE.md). This document is an implementation contract,
|
||||
not a report that the capability exists.
|
||||
|
||||
## Requirements and ownership
|
||||
|
||||
- Requirements: R-006, R-009, R-014, R-015.
|
||||
- Delivery phase: Native package management.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 11 resolved immutable identities; 05 snapshots; 07 artifact primitives; 13 builders; 16 registry protocol for hosted distribution.
|
||||
- Proposed exclusive implementation scope: src/package/fetch/, src/package/archive/, src/package/binary/, tests/package-fetch/; root owns package manifest versions.
|
||||
|
||||
Before dispatch, reconcile these paths with the real HEAD, write a full task spec,
|
||||
lint it, and transfer shared-file ownership explicitly. Paths that do not yet exist
|
||||
are NEW. Source-disjoint work still coordinates shared state, ports and build directories.
|
||||
|
||||
## Design and interfaces
|
||||
|
||||
- Support explicit local paths, exact Git revisions, checksummed archives and registry releases. Materialize into managed dependency storage, never modify external source checkouts. Network operations are full dependency/build operations, not metadata-watch work.
|
||||
- Verify immutable source identity before use. Source package manifests retain build.cpp, optional profiles, selected helper cpp/hpp and declared source/include inputs, so exported sources work without .git.
|
||||
- Use bounded streaming downloads and extraction. Validate paths, link targets, entry sizes/counts, duplicate/colliding paths and archive traversal before publishing extracted content. Interrupted downloads remain uncommitted.
|
||||
- Separate source identities from built binary variants. Binary identity includes target, compiler/helpers, stdlib ABI, linkage, CPU/features, profile options, sanitizers/LTO and relevant dependency closure.
|
||||
- Treat BMI/PCH and other opaque path-sensitive products as toolchain/path-specific. Reject incompatible binaries; build from allowed sources or fail clearly. Binary package distribution is not remote action-cache support.
|
||||
- Use runtime credential providers/configuration outside committed manifests/locks. Verify HTTPS and configured registry authority; redact authentication from progress/error records.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement source-provider adapters with deterministic identities and managed staging.
|
||||
2. Implement verified archive materialization and complete source-package manifests.
|
||||
3. Implement binary variant compatibility and source-build fallback through provider/native actions.
|
||||
4. Add offline cache reuse, interrupted transfer recovery, concurrency ownership and bounded cleanup.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- No extraction outside the destination, overwriting source files, credential leakage or permissive TLS fallback.
|
||||
- A digest verifies bytes, not publisher identity; transport/registry trust is separate.
|
||||
- Mutable local source changes invalidate provider builds even with unchanged mtimes.
|
||||
- A failed source build cannot publish a usable binary package.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Pinned Git/local/archive variants, wrong hashes, truncated downloads and offline reuse.
|
||||
2. Traversal, absolute paths, symlink escapes, collisions and extraction quota failures.
|
||||
3. Same bytes exported from checkout/archive retain configuration helpers without Git.
|
||||
4. ABI/compiler/CPU/sanitizer/dependency mismatch never selects a binary optimistically.
|
||||
5. Concurrent fetches and cancelled builds leave no published partial package.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW local HTTP/Git fixture repositories and malicious-archive fixtures; no production endpoints required. End-to-end native/provider package tests use isolated directories and verified identities. Record actual source fallback versus binary selection.
|
||||
|
||||
Acceptance requires observed results for these scenarios, the affected regression
|
||||
suite, reviewed cross-component contracts, and a fresh independent review. Record
|
||||
unrun checks and environment limitations; tests passing alone do not waive an invariant.
|
||||
No merge, push or deployment is authorized by a review verdict.
|
||||
|
||||
## VoidLibrary reuse and upstream candidates
|
||||
|
||||
Void Net/Archive/Crypto facilities only after bounded-stream/extraction/TLS capabilities are verified. Focused adapters are allowed; reusable safe extraction and digest streaming can later move upstream.
|
||||
|
||||
Shared invariants and input/publication policies are defined in
|
||||
[ARCHITECTURE](ARCHITECTURE.md); requirement authority is
|
||||
[REQUIREMENTS](REQUIREMENTS.md). Return implementation evidence to
|
||||
[VERIFICATION](../agent-workflow/VERIFICATION.md).
|
||||
Reference in new issue
Block a user