commit
3cac890ce9
57 files changed
+4043
No files matched your search
@@ -0,0 +1,66 @@
|
||||
# 15 — Installation, exports and package consumption
|
||||
|
||||
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-009, R-010, R-018.
|
||||
- Delivery phase: Product distribution.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 03 usage model; 04 ABI/toolchain contexts; 06 artifacts; 11/12 package model.
|
||||
- Proposed exclusive implementation scope: src/install/, src/export/, tests/install/; export schema and generated files root-owned.
|
||||
|
||||
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
|
||||
|
||||
- Declare installation rules in C++ with explicit artifact/header/data destinations and component selection. Build into managed staging first; install only declared files.
|
||||
- Export native package metadata and generated CMake configs from the same typed usage requirements. Preserve public/system includes, definitions, ordered static/shared dependencies, configuration mapping and compatible module metadata.
|
||||
- Keep installed metadata relocatable where the artifact format permits. Do not leak build-only dependency directories, temporary snapshots or local absolute source paths as required consumer inputs.
|
||||
- Handle runtime shared libraries and platform loader paths explicitly. Static bootstrap linkage is not a promise that all user products are static.
|
||||
- Treat install prefixes as user-managed destinations with ownership manifests. Support staged packaging and predictable uninstall of owned files without deleting unrelated content.
|
||||
- Keep source/binary package manifests separate from the build lock; installation/export records identify the exact artifacts and compatibility context.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement typed install/export records and validated relative destinations.
|
||||
2. Implement staging, ownership manifests and conflict handling.
|
||||
3. Generate native and CMake consumer metadata, then add runtime-library closure handling.
|
||||
4. Add relocation/component/uninstall fixtures and integrate registry package publication preparation.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Reject path traversal, source overwrite, duplicate destination conflicts and unsupported relocations.
|
||||
- Never remove unrelated prefix files during uninstall/recovery.
|
||||
- An incomplete or incompatible module export cannot be advertised as usable.
|
||||
- Failed staging/publication does not leave metadata pointing to missing artifacts.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Install under a temporary prefix, relocate it and build a fresh native/CMake consumer.
|
||||
2. Static/private dependency propagation and shared runtime loading.
|
||||
3. Component selection, path conflicts, staged interruption and uninstall preservation.
|
||||
4. No references to temporary snapshot/build paths in supported relocated exports.
|
||||
5. Source and binary package variants retain correct profile/ABI metadata.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW integration consumers run in isolated prefixes with original build directories unavailable. Inspect exported references and actual program runtime behavior rather than just file presence.
|
||||
|
||||
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 filesystem/archive/data helpers after validation; reusable safe installation/manifest primitives are upstream candidates, package policy stays in VBS.
|
||||
|
||||
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