commit
3cac890ce9
57 files changed
+4043
No files matched your search
@@ -0,0 +1,67 @@
|
||||
# 01 — Bootstrap and declaration SDK
|
||||
|
||||
Implementation status: initial bootstrap and declaration subset VERIFIED, 2026-11-25.
|
||||
See [STATE](../agent-workflow/STATE.md), [SDK contract](../SDK.md) and
|
||||
[accepted review](../agent-workflow/REVIEW.md). Native loading, execution and
|
||||
self-hosting belong to subsequent plans.
|
||||
|
||||
## Requirements and ownership
|
||||
|
||||
- Requirements: R-001, R-002, R-003, R-004, R-005, R-006, R-017.
|
||||
- Delivery phase: Initial delivery.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: Approved requirements and architecture preflight; no native engine prerequisite.
|
||||
- Implemented scope: CMakeLists.txt, cmake/, include/vbs/build.hpp, src/build.cpp, src/main.cpp, src/describe.cpp, tests/, root description/profile files and build-support/. T-001 completed and returned ownership to root.
|
||||
|
||||
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
|
||||
|
||||
- Build a small CLI and description SDK with CMake>=4 and GCC16/C++26. Pin VoidLibrary to 9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5 using the public HTTPS repository. An explicit local-source override is a development convenience, not the committed default.
|
||||
- Select Configuration and, when tests are enabled, Testing plus their actual transitive closure. Disable the dependency's own suite/benchmarks and build the selected modules statically. Do not overwrite unrelated parent CMake settings.
|
||||
- CLI help/version succeed; invalid and future native operations fail clearly. Use the real Void::Argparse parser and account for its help-as-error return convention.
|
||||
- The SDK records data without fetching, expanding globs or invoking compilers. Index/owner handles remain valid when record containers grow and reject cross-project references.
|
||||
- Compile root build.cpp, optional profile definitions and a real cpp/hpp helper into vbs_describe. A host-compiled program receives target compiler/profile facts and emits a versioned JSON description. It is an example harness, not a runtime project loader.
|
||||
- Expose a public umbrella header. Record source kind/spelling, target kind/visibility, typed dependency options, source identities, profile context and local/imported links. Serialization must escape correctly and preserve bool/integer/string distinctions.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Create CMake targets and dependency selection, with useful unsupported-host diagnostics.
|
||||
2. Implement minimal SDK records/handles and CLI contracts, then the real descriptor and profile/helper example.
|
||||
3. Add JSON/handle/context tests and CTest process-contract tests using Void::Testing for SDK cases.
|
||||
4. Run local and pinned-source clean builds, inspect actual registration, format exact sources, and obtain integrated review.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- No source dependency edits or files generated into its checkout.
|
||||
- No native-build or TOML support implied by data declaration methods.
|
||||
- Reject duplicate/empty identifiers and contradictory dependency sources; avoid silent selection defaults for unknown profiles.
|
||||
- No unregistered test success: verify expected test names/count, not just the aggregate executable exit.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. CLI no-args/help/version exit 0; unknown and unsupported requests exit 2 with useful text.
|
||||
2. Same host executable emits different correct debug/release and GCC/Clang graphs.
|
||||
3. Handle operations after container growth; invalid cross-project link and duplicate IDs fail.
|
||||
4. JSON roundtrip with quotes, backslashes, control characters and typed options.
|
||||
5. Local override and clean pinned upstream configuration/build/CTest succeed.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
Current scaffold commands are in README.md and tasks/T-001.md. Run CMake build + CTest; inspect the actual SDK runner and generated registrations. Native build commands are not acceptance commands for this milestone.
|
||||
|
||||
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::Configuration/Argparse, Void::Testing, and existing Data support. Keep the CMake test scanner only for the seed; native replacement belongs to plan 18.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 02 — Native C++ configuration frontend
|
||||
|
||||
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-002, R-003, R-004, R-014.
|
||||
- Delivery phase: Core native engine.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 01; toolchain identity from 04; configuration capture/state primitives from 05/07; seed action execution from 06.
|
||||
- Proposed exclusive implementation scope: src/config/, include/vbs/config/, tests/config/; root owns public SDK/protocol changes and shared build registration.
|
||||
|
||||
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
|
||||
|
||||
- Construct the seed compilation graph without running project code: root build.cpp, optional build.profiles.cpp, default SDK profile implementation when absent, filesystem-discovered build-support/**/*.cpp and explicit repeated --build-source paths. Header depfiles and helper membership are inputs.
|
||||
- Compile against a fixed SDK with the host toolchain. Newly declared project packages cannot supply headers for this executable. Package-based configuration extensions require a separately approved future bootstrap mechanism.
|
||||
- Generate an SDK driver with separate profile-discovery and graph-evaluation requests. Resolve profile inheritance and installed target toolchains in the parent before evaluating build(Project&) once for each effective context.
|
||||
- Provide target OS, architecture, compiler and effective options as runtime SDK facts. Host preprocessor macros never stand in for target selection. Separate seed-compilation identity from target-context evaluation identity.
|
||||
- Use a dedicated bounded result channel/file with protocol version, request identity, context and complete graph. Logs cannot corrupt results. Validate before installing a generation.
|
||||
- Reuse a valid compiled description but reevaluate each reconciliation initially. Track SDK-mediated reads and namespace queries; arbitrary C++ remains trusted and complete hidden-I/O tracking is not promised.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Version the seed request/result envelopes and freeze SDK runtime context types.
|
||||
2. Implement filesystem helper selection and a CMake-independent seed recipe using the action engine.
|
||||
3. Implement profile discovery, target capability resolution and per-context evaluation.
|
||||
4. Validate protocol/graph responses, report source locations/origins, and integrate with build and metadata-only modes.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Compilation failure, crash, malformed response, wrong protocol/request/context, timeout or invalid graph fails current configuration.
|
||||
- A prior graph may remain for diagnostics/editor stale status, never masquerade as current success.
|
||||
- Snapshot captures work from archives without .git; include helper manifest in exported source packages.
|
||||
- Metadata mode may execute trusted local C++ but schedules no project/package actions.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Add/delete a helper cpp or included hpp; description recompiles; non-Git exported archive yields equivalent graph.
|
||||
2. One host executable emits distinct GCC/Clang and cross-target configurations.
|
||||
3. Build.cpp attempting to depend on unresolved package headers gets a clear bootstrap diagnostic.
|
||||
4. Crashing/noisy/truncated/mismatched configuration result cannot replace a valid generation.
|
||||
5. Target-context or SDK/toolchain change never reuses the wrong evaluated graph.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW future fixtures under tests/config/ run through the project's test target. Exercise native configuration via vbs build and vbs compdb watch only after those commands exist. Record seed recompilation and graph-generation counts.
|
||||
|
||||
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 process/serialization/Result facilities through verified adapters. Potential upstream candidate: stable bounded protocol and configuration-observation helpers.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 03 — Targets, usage requirements and action graph
|
||||
|
||||
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-002, R-003, R-018, R-019.
|
||||
- Delivery phase: Core native engine.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 01/02 description model; interface contract with 04 toolchains and 13 imported targets.
|
||||
- Proposed exclusive implementation scope: src/graph/, include/vbs/graph/, tests/graph/; shared SDK and action schema changes belong to root.
|
||||
|
||||
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
|
||||
|
||||
- Explicit target kinds cover executable, static/shared/interface/object libraries, custom producers and test registrations. Conventional source sets are selectors over src/source and include, with overrides; do not infer target type from a main function.
|
||||
- Expand source selectors deterministically and retain membership as an input. Explicit missing files fail; a new matching file joins the target. Exclude configuration sources and owned output roots from automatic product discovery.
|
||||
- Model compile usage visibility separately from link requirements. Static private implementation libraries can still be required at the final link; preserve ordered archives, flags and groups rather than sorting or globally deduplicating them.
|
||||
- Lower target descriptions to typed compile/archive/link/generator actions and artifacts with one producer. Explicit generated prerequisites establish first-build ordering; an old depfile is not a substitute.
|
||||
- Reject action cycles and output collisions, including relevant canonical path aliases and source/output overlap. Model valid static link groups separately from execution dependency cycles.
|
||||
- Freeze an immutable graph generation per resolved profile. Selected target closure controls execution, while configured enabled targets remain available for editor projection.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement typed records and origin-rich validation for names, references and source selection.
|
||||
2. Resolve public/private/interface compile and link requirements with deterministic traversal.
|
||||
3. Lower generators and normal C/C++ products to actions, then validate producer ownership and action DAG.
|
||||
4. Add selected-target closure, stable graph identities and explain/diagnostic records.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Conflicting requirements identify both origins; do not silently overwrite incompatible toolchain/profile facts.
|
||||
- Missing generated producer or a discovered unordered generated input triggers replan or an error, not retrospective success.
|
||||
- Removing an object must regenerate the archive without stale members.
|
||||
- Unsupported arbitrary shell behavior is an explicit custom action, not hidden parsing of command strings.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Public/private/interface exposure, transitive static link requirements and archive ordering.
|
||||
2. New/removed/renamed selected sources, missing explicit sources, custom layouts and duplicate aliases.
|
||||
3. First-build generated headers; cycles, producer collisions and source/output overlap.
|
||||
4. Selected app target builds only required closure; database still covers other configured targets.
|
||||
5. Delete a source defining a symbol and verify it disappears from the static archive.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW future graph unit fixtures compare semantic action records and diagnostics, not incidental IDs. Integration fixtures compile/link executable outputs through both supported target drivers once 06 is available.
|
||||
|
||||
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
|
||||
|
||||
Evaluate Void graph/container primitives against required invariants; graph algorithms can reuse verified generic components without coupling the public SDK to their storage.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 04 — Profiles, target selection and toolchains
|
||||
|
||||
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-003, R-011, R-015, R-019.
|
||||
- Delivery phase: Core native engine.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 01/02 profile protocol; 03 action/usage types; platform operations in 06.
|
||||
- Proposed exclusive implementation scope: src/toolchain/, include/vbs/toolchain/, tests/toolchain/; profile public schema 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
|
||||
|
||||
- Resolve named C++ profiles with explicit inheritance and overrides, rejecting unknown parents and cycles. Built-in debug/release defaults are reproducible; target language standard is independent of the C++26 host.
|
||||
- ProfileContext contains target/build machine facts, resolved compiler family/path/identity, sysroot/stdlib and effective flags/features. Evaluate build.cpp separately for each selected context.
|
||||
- Model target selection as the requested target/profile combinations, validating all names before scheduling. Keep mutable outputs, response files, generated files, PCH/BMI and foreign trees isolated below each profile identity.
|
||||
- Identify drivers, helpers, sysroots, configured search roots, options and relevant environment. Version text alone is insufficient. Support installed cross-toolchain descriptions without accidentally executing target binaries during probes.
|
||||
- Generate structured argv and response files via GCC/Clang adapters. Detect language standard, depfile/scanner and requested optimization/sanitizer capabilities using bounded probes.
|
||||
- Begin with observed GCC16.2 and Clang23.1.3 target environments. Older versions and other systems enter the matrix only after tests establish support; never silently downgrade an explicitly requested feature.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement profile resolution and canonical effective-context identities.
|
||||
2. Implement host/target driver discovery and capability cache keyed by complete toolchain context.
|
||||
3. Add command generation for normal compile/archive/link and response-file handling.
|
||||
4. Expose cross-toolchain settings and coordinate overall jobs across selected profiles; connect modern feature drivers in 08.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Missing compiler/helper/sysroot or incompatible library ABI is a diagnostic, not an unannounced compiler fallback.
|
||||
- Do not use host preprocessor conditionals to select target-specific flags.
|
||||
- Do not hold a global build lock that prevents independent profiles, but serialize competing writers to one profile.
|
||||
- Explicit unsupported flags/features fail before expensive builds where possible.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Same source built in debug/release and GCC/Clang profiles has isolated outputs and correct argv.
|
||||
2. Changing compiler binary, sysroot, flags, response contents or relevant environment invalidates identity.
|
||||
3. Cross profile probe never runs a target-only executable on the host.
|
||||
4. Unknown profile, inheritance cycle and incompatible sanitizer/LTO settings fail clearly.
|
||||
5. Paths with spaces and long argv preserve exact compiler arguments.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW future driver fixtures plus actual GCC/Clang compile/link probes run under dev cpp-gcc and dev cpp. Log target-driver versions and feature outcomes separately from host bootstrap success.
|
||||
|
||||
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 process/path helpers with explicit error results. Capability caching belongs in VBS; reusable process and environment wrappers are upstream candidates.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 05 — Immutable snapshots and mutation tracking
|
||||
|
||||
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-002, R-007, R-014.
|
||||
- Delivery phase: Core correctness foundation.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 03 SourceSet/Artifact contracts; 04 toolchain/search-root identity; platform and state primitives in 06/07.
|
||||
- Proposed exclusive implementation scope: src/snapshot/, include/vbs/snapshot/, tests/snapshot/; filesystem identity schema coordinated by root.
|
||||
|
||||
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
|
||||
|
||||
- Represent content, logical paths, relevant file metadata, namespace membership, symlinks and negative lookup guards in InputSnapshot. Include the configuration source set as well as selected product and toolchain inputs.
|
||||
- Capture through private copies or isolated reflinks. Hash captured bytes with SHA-256, then revalidate source contents and namespace before sealing. Use bounded retry and report an unstable tree. Never hardlink mutable originals.
|
||||
- Define the consistency boundary precisely: immutable captured bytes are guaranteed, not a globally atomic filesystem instant. Concurrent capture tests must not assume a single transaction across arbitrary filesystems.
|
||||
- Canonicalize compiler-visible metadata using the selected reproducibility epoch; incorporate path maps and other supported observable facts into action identity. Explicit nondeterministic modes cannot reuse action results.
|
||||
- Track include/search directory membership so a new earlier candidate or __has_include result invalidates consumers even when prior depfiles omit it. System/toolchain roots need explicit identity and lookup coverage.
|
||||
- Resolve internal symlinks safely and require declared external roots; detect loops/escape attempts. Exclude repository metadata, build outputs and credentials by default. Generated outputs enter as separately sealed producer artifacts.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Freeze path/namespace/metadata policies and the snapshot manifest format.
|
||||
2. Implement robust capture, content verification, symlink handling and publication of sealed manifests.
|
||||
3. Add content/lookup invalidation and integration of compiler-discovered dependencies.
|
||||
4. Add immutable generated-input promotion and conservative fallback for unmodeled/opaque actions.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Permission/stat/read errors are errors, not silently missing files.
|
||||
- Partial capture or changed membership never becomes a successful snapshot.
|
||||
- No source/output overlap; no capture of the tool's own changing output namespace.
|
||||
- Full hidden-I/O tracking is not claimed; cache eligibility requires a complete declared input model.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Same-size restored-mtime edits, add/delete/rename, atomic replacement and symlink retargeting.
|
||||
2. Header shadowing and newly true __has_include invalidate affected actions.
|
||||
3. Edit inputs during capture/execution; sealed inputs stay unchanged and new epochs see edits.
|
||||
4. Macro values __DATE__/__TIME__/__TIMESTAMP__/__FILE__/source_location agree between cached and uncached execution under the selected policy.
|
||||
5. Escape/loop/permission failures, generated headers, archive-without-Git capture and no hardlinks to editable inputs.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW deterministic filesystem fixtures inject capture interleavings and compare actual compiler results. Measure scan/reflink/copy cost separately; do not replace content checks with unqualified metadata shortcuts to meet a benchmark.
|
||||
|
||||
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/Result utilities where verified. Candidates: streaming cryptographic digest, transactional file operations and reliable recursive observation; direct focused wrappers allowed meanwhile.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 06 — Native execution, scheduling and process lifecycle
|
||||
|
||||
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-007, R-014, R-019.
|
||||
- Delivery phase: Core native engine.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 03 validated actions; 04 driver commands; 05 immutable inputs; 07 success/publication protocol.
|
||||
- Proposed exclusive implementation scope: src/execution/, src/platform/, include/vbs/execution/, tests/execution/; root coordinates shared platform APIs.
|
||||
|
||||
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
|
||||
|
||||
- Schedule ready action nodes under a configurable global job budget and per-profile ownership. Dependents run only after all required producer artifacts are validated and published.
|
||||
- Invoke executables through typed argv/cwd/environment, never implicit shell concatenation. Resolve absolute executables before launch and include the resolution in identity.
|
||||
- Use explicit Void process APIs for spawn/communicate so exec failure, signal exit, timeout, cancellation and output overflow remain distinguishable. Drain both streams without deadlock and keep logs bounded without losing diagnostic state.
|
||||
- Add a Linux lifecycle boundary that retains ownership of ordinary descendants through TERM, grace, KILL and reap. The pinned Child::terminate can return after leader exit; a supervisor/ownership implementation must prove the early-leader case before acceptance.
|
||||
- Stage complete output sets. Validate files and dependency outputs before promoting artifacts or success records. Newly discovered unordered producer dependencies require replan/error; failed output is not usable merely because it exists.
|
||||
- Do not hold global SQLite/cache transactions over child execution. Coordinate per-key claims and detect reentrant dependency/build cycles instead of deadlocking on nested tools.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement process result/error mapping, streaming, argument fidelity and isolated temporary/output paths.
|
||||
2. Implement profile/action ownership and ready-queue scheduling with bounded concurrency.
|
||||
3. Implement cancellation/supervision and verify descendants cannot write after cancelled work returns.
|
||||
4. Integrate output/dependency validation, publication ordering, failures and diagnostic event streams.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- On fail-fast stop new work, cancel only owned processes according to policy and preserve useful logs.
|
||||
- No destructive cleanup outside managed directories; interrupted work stays uncommitted.
|
||||
- Crash, timeout, capture overflow, invalid dependency metadata and missing outputs have different diagnostics.
|
||||
- Deliberately detached or undeclared external writers are outside the ordinary-child guarantee and cannot be represented as hermetic actions.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. argv/environment/cwd quoting; large concurrent stdout/stderr; exec failure versus program exit127.
|
||||
2. Leader exits while grandchild ignores TERM; cancellation waits through escalation and prevents later output writes.
|
||||
3. Parallel DAG ordering, missing outputs, signal failure, timeouts and two invocations competing for one profile.
|
||||
4. Crash between output staging/publication/state commit and successful conservative recovery.
|
||||
5. Generated dependencies first build and late-discovered unordered producer rejection.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW subprocess helper fixtures run with isolated temp roots and bounded deadlines. Execute real compiler DAG fixtures after lifecycle tests; collect child termination evidence, not merely the parent exit code.
|
||||
|
||||
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::Process explicit spawn/communicate, optional async services only after source/runtime validation. Robust descendant lifecycle and bounded independent stream handling are potential upstream work.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 07 — Transactional state and local artifact cache
|
||||
|
||||
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-007, R-014, R-015.
|
||||
- Delivery phase: Core correctness foundation.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 03 action schema; 04 identities; 05 manifests; coordinated protocol with 06 publication.
|
||||
- Proposed exclusive implementation scope: src/state/, src/cache/, include/vbs/state/, tests/state/; root owns schema migrations and shared version constants.
|
||||
|
||||
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
|
||||
|
||||
- Store successful action identities, discovered inputs, artifact digests, graph generations and ownership claims in transactional state. Use a verified Void::Sqlite adapter with prepared statements, explicit transaction boundaries and schema versioning.
|
||||
- Use SHA-256-addressed immutable blobs/manifests. An action key includes command order, environment policy, toolchain, inputs, lookup guards, output expectations and metadata/path policy.
|
||||
- Keep reusable artifact cache separate from dependency binary packages and user install destinations. Verify expected outputs and relevant blob integrity; missing or externally changed outputs invalidate reuse.
|
||||
- Publish objects before committing references. Recovery can discard/rebuild uncommitted outputs, collect orphaned objects and repair projection pointers; it must not invent a successful record.
|
||||
- Coordinate short write transactions and per-action/profile leases. GC considers active runs and reachable generations/locks, and cannot remove in-use artifacts or another project's uncontrolled files.
|
||||
- Treat opaque BMI/PCH and other path-sensitive artifacts conservatively: include physical path/toolchain context unless relocation has a tested format-aware proof.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Verify Sqlite implementation semantics needed for rollback, errors, concurrency and migrations; add local adapter tests.
|
||||
2. Implement versioned schema, CAS I/O and action identity canonicalization.
|
||||
3. Integrate success publication/recovery and explicit corruption/schema-mismatch behavior.
|
||||
4. Add retention, quota, GC and explainable reuse/miss diagnostics.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Database busy/corrupt/newer-schema cases have explicit recovery/error paths; do not silently delete user data.
|
||||
- No success record for failed, cancelled, truncated or partially published action.
|
||||
- Never put credentials or unrestricted process environments into lock/log/state records.
|
||||
- Clock-dependent/custom opaque actions are nonreusable unless their declared model provides the required determinism.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Crash injection before/after every publication boundary; resume yields correct outputs.
|
||||
2. Corrupt/missing blobs, modified outputs, schema migration rollback and concurrent writers.
|
||||
3. Identity changes for command ordering, flags, response files, toolchain, env, headers and namespace guards.
|
||||
4. GC under active builds; quota failure; no deletion outside owned cache.
|
||||
5. No-op build performs no target actions while retaining required input verification.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW SQLite/CAS unit tests and crash subprocess fixtures. Compare cold/clean/warm/unchanged builds for output behavior and actual action counts; cache-hit percentage alone is not correctness evidence.
|
||||
|
||||
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::Sqlite, Binary/Data helpers as suitable, focused SHA-256 adapter. Upstream candidates include transactional publication and bounded serialization; validate rather than assume header promises.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 08 — Modules, header units and compiler features
|
||||
|
||||
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-003, R-011, R-015.
|
||||
- Delivery phase: Full v1 compiler capability.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 03 graph; 04 capability drivers; 05 snapshots; 06 dynamic scheduling; 07 cache identity.
|
||||
- Proposed exclusive implementation scope: src/toolchain/modules/, src/features/, tests/features/; common toolchain contracts 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
|
||||
|
||||
- Use compiler-supported dependency scans (P1689 for named modules) to establish providers/imports before compilation. Scan generated sources only after their producer completes. Detect duplicate providers, missing imports and module cycles with context.
|
||||
- Map named modules, partitions and explicit header-unit declarations to typed artifacts/actions. Clang's named-module scanner must not be assumed to discover header units; provide explicit header-unit sources and import mappings.
|
||||
- Keep BMI/CMI/PCH products isolated by compiler/stdlib, profile, macros/options, input identity and required physical path context. Do not assume such binaries can be moved or shared across compilers.
|
||||
- Implement PCH, unity batching, LTO and sanitizer options through capability-checked drivers. Exclude module translation units from unity. Validate incompatible combinations and preserve per-file overrides.
|
||||
- Cover standard-library module use through actual compiler/stdlib probes. A requested capability is either tested/supported or explicitly rejected; do not silently turn it off.
|
||||
- Make scan, BMI, PCH and generated unity actions visible to state/scheduler/diagnostics. Editor projection must distinguish real supported commands from missing prerequisite readiness.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement named-module scanning/collation and dynamic graph integration.
|
||||
2. Add module partition/standard-library cases and per-context artifact naming.
|
||||
3. Add explicitly declared header units with driver-specific mappings.
|
||||
4. Implement PCH/unity/LTO/sanitizers incrementally with separate capability and invalidation fixtures.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Invalid scans or unsupported format/version fail clearly.
|
||||
- No importer runs before a required BMI; stale module artifacts cannot survive changed provider/options.
|
||||
- ASan/TSan and other unsupported combinations fail configuration.
|
||||
- A successful compilation database export does not prove clangd supports the compiler's extensions.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Provider edits/additions/deletions, partitions, transitive imports and missing/duplicate/cyclic modules.
|
||||
2. Header units, macros, profile changes and generated module sources.
|
||||
3. Cross-profile/compiler BMI/PCH isolation; no reuse of incompatible artifacts.
|
||||
4. Unity exclusion, per-file flags, LTO linker matching and sanitizer runtime tests.
|
||||
5. Cold parallel versus sequential builds produce equivalent observable programs.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW real compile/link/run fixtures in GCC16.2 and Clang23.1.3 environments, recording compiler+stdlib versions and capability matrix. Test supported combinations; distinguish explicit unsupported cases from regressions.
|
||||
|
||||
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
|
||||
|
||||
Reuse graph/scheduler/state primitives, not an independent module executor. Compiler-specific scanning belongs in VBS; generic graph facilities may use VoidLibrary.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 09 — Compilation databases and editor selection
|
||||
|
||||
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-003, R-008, R-014.
|
||||
- Delivery phase: Core developer experience.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 02/03 configured graph; 04 typed compiler commands; 05 path mapping; 07 generation publication; 08 feature metadata when selected.
|
||||
- Proposed exclusive implementation scope: src/editor/, include/vbs/editor/, tests/editor/; project selection state schema 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
|
||||
|
||||
- Emit standard JSON command objects using argv arrays, logical source file, working directory and output. Cover all enabled configured targets in a profile even when execution selects a subset; preserve multiple meaningful commands for a source.
|
||||
- Build a typed projection from physical snapshot execution paths to editable sources and compatible immutable generated views. Project response files structurally. Never replace arbitrary macro/string contents. Preserve exact execution records separately.
|
||||
- Maintain immutable editor generations and per-profile compile_commands.json. A managed build-root pointer and optional project-root alias select the current generation without overwriting unrelated user files.
|
||||
- Assign project-level monotonically ordered selection tickets. Single-profile builds reserve intent and publish after valid configuration. Multiple profiles require --editor-profile from their selection. Manual use creates a newer request; watchers refresh without selecting.
|
||||
- Coordinate short publication locks with revision checks. Older compilation/configuration completion cannot replace newer metadata. Recover stale filesystem pointers from authoritative state after crashes.
|
||||
- Publish valid metadata independently of target success. Missing generated inputs have readiness diagnostics; invalid/unresolved graphs retain a clearly stale previous generation rather than fabricated commands.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement deterministic standard JSON export from typed compile records.
|
||||
2. Implement logical/physical mappings and immutable generated editor views.
|
||||
3. Implement selection tickets, managed alias ownership and atomic publication/recovery.
|
||||
4. Connect build/manual use/metadata watch and add diagnostics for stale or unrepresentable commands.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Reject ambiguous opaque path rewriting rather than corrupt arguments.
|
||||
- A failing compile does not undo a valid editor selection; failed configuration does not silently select stale data.
|
||||
- Do not remove a generation while clangd or an active selection/run can still reference it.
|
||||
- Do not mix debug headers/BMIs with release or another graph generation.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Spaces/Unicode/quotes, response files, duplicate source commands, generated headers and module flags.
|
||||
2. Single/multiple-profile selection, explicit manual switch and reverse-order completion races.
|
||||
3. Atomic replacement readers never observe truncated JSON; crash recovery repairs pointers.
|
||||
4. Adding/deleting/renaming sources refreshes metadata even when an unrelated compile fails.
|
||||
5. Selected target subset leaves other configured editor entries available; user-owned root file preserved.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW JSON and race fixtures plus actual clangd parse checks for supported toolchains/features. Record database validity separately from editor support. Exercise planned vbs compdb use/watch only after implementation.
|
||||
|
||||
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 data/path utilities behind correctly escaped serialization. Follow Clang JSONCompilationDatabase specification; no shell-command parser as the primary representation.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 10 — Reconciliation, build watching and metadata watching
|
||||
|
||||
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-007, R-008, R-014.
|
||||
- Delivery phase: Core developer experience.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 02 configuration; 05 observations; 06 execution; 07/09 generations; 13 read-only provider metadata mode.
|
||||
- Proposed exclusive implementation scope: src/watch/, include/vbs/watch/, tests/watch/; src/cli integration transferred explicitly after bootstrap.
|
||||
|
||||
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
|
||||
|
||||
- Implement one-shot build, rebuilding watch and compdb watch over the same graph/snapshot reconciliation pipeline. Do not install an always-on daemon as an implicit side effect.
|
||||
- Filesystem notifications trigger work but never prove cleanliness. Reconcile content and namespace periodically, after overflow, watcher failure, directory replacement and subscription changes. Coalesce bursts without losing final state.
|
||||
- Full watch may execute required build/dependency actions. Metadata-only watch may compile/evaluate trusted local descriptions and use known native scans/probes, but never fetch, update locks, run foreign configure/install or schedule project/package builds.
|
||||
- Read cached provider metadata only when its freshness guards remain valid. Otherwise publish needs-build/stale status and await an explicit full operation. Direct user C++ remains trusted, not sandboxed.
|
||||
- Observe active selection changes so the default metadata watcher follows the editor profile without stealing selection. Explicit profile watchers can refresh unselected generations safely.
|
||||
- Exclude owned generated/cache outputs from source-change feedback loops while separately observing published metadata needed by the editor. If command bytes are unchanged, avoid needless database rewrites while updating observation status.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Implement event sources, debouncing and periodic reconciliation with injectable clocks/events.
|
||||
2. Add graceful stop, watch reattachment and overflow/failure recovery.
|
||||
3. Integrate full-build and strict metadata-only operation capabilities.
|
||||
4. Add clear CLI progress/exit/status diagnostics and selection-change handling.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Stat/permission errors are not absence; continuous edits produce bounded retry/status instead of false success.
|
||||
- Watch mode survives a target compile failure and reacts to the next edit.
|
||||
- Metadata mode never silently broadens to a full provider build to make its database look current.
|
||||
- No uncontrolled child remains after watch cancellation.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Atomic saves, new/deleted directories, rename storms, event loss and deliberate queue overflow.
|
||||
2. Same-size preserved-time edits detected by reconciliation.
|
||||
3. Metadata-only fixture has foreign configure side-effect marker; marker must remain absent.
|
||||
4. Invalid build.cpp/dependency changes yield stale status; repaired inputs recover.
|
||||
5. No source-output feedback loop, unnecessary compiler launch or selection theft; Ctrl-C reaps children.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW deterministic fake-event tests plus real temporary-directory integration tests with bounded deadlines. Measure convergence/action counts; avoid flaky exact-sleep assertions. Later CLI integration uses vbs watch and vbs compdb watch.
|
||||
|
||||
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 SystemAsync richer rescan APIs may help after implementation validation. Basic polling FileWatcher alone cannot satisfy the content/recursive guarantees; upstream watcher improvements are candidates.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 11 — Dependency declarations, native solver and lockfile
|
||||
|
||||
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-003, R-006, R-009, R-014.
|
||||
- Delivery phase: Native package management.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 02 context-specific declarations; 04 host/target contexts; shared package metadata contract with 12/16.
|
||||
- Proposed exclusive implementation scope: src/package/model/, src/package/solver/, src/package/lock/, tests/package/; root owns vbs.lock schema and public dependency types.
|
||||
|
||||
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
|
||||
|
||||
- Normalize inline C++ and explicitly loaded TOML1.0 files to one model: alias, registry/package or source identity, version constraints, builder, typed options/features and build/target role. Use toml++ behind a loader adapter so future Void TOML support can replace it.
|
||||
- Preserve origin file/line or C++ declaration labels for diagnostics. Compatible transitive version requirements combine; duplicate contradictory source identities/options fail instead of silently overriding. Manifest paths and contents are configuration inputs.
|
||||
- Implement deterministic PubGrub-style SemVer solving in C++. Keep one version per package identity per resolution context, with build-machine and target-machine graphs distinct. Registry authority belongs to identity; no implicit cross-registry fallback.
|
||||
- Choose deterministic version ordering and explain incompatibility causes. Features/options participate in constraints and package identity; do not combine incompatible build choices merely because their version matches.
|
||||
- Use a versioned generated lock payload containing exact revisions/releases/content digests, nodes/edges, features/options and context/declaration fingerprints. Never store credentials. Multiple profiles can have separate contexts inside one project lock.
|
||||
- A first ordinary build may create an absent lock; --locked prevents modification. Existing incompatible declarations require explicit deps resolve/update. Publish with project-wide coordination, revision comparison, revalidation and atomic replacement. Every build pins one immutable payload.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Freeze normalized dependency/context records and loader diagnostics; implement TOML/C++ equivalence fixtures.
|
||||
2. Implement SemVer/range semantics and deterministic solver with conflict explanations.
|
||||
3. Implement context-aware lock serialization, validation and explicit resolution/update operations.
|
||||
4. Add atomic concurrent publication and immutable build lock capture; integrate provider/fetch requests only after solving.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Malformed/unknown manifest fields and unsupported combinations fail with locations.
|
||||
- Offline mode cannot silently query registries; missing verified data is an actionable prerequisite.
|
||||
- Two concurrent profile updates cannot overwrite each other; retry/re-resolve on a revision conflict.
|
||||
- Changed declarations/options/platform facts cannot run actions under an incompatible lock.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Equivalent C++/TOML declarations yield equivalent normalized graphs; boolean/integer/string options remain typed.
|
||||
2. Range/prerelease/diamond/conflict cases; compare solver against exhaustive enumeration for small generated graphs.
|
||||
3. Multiple profiles and build/target contexts do not leak settings; registry identity prevents substitution.
|
||||
4. Concurrent updates preserve contexts or report a conflict; edited manifest invalidates before actions.
|
||||
5. A running build uses one lock revision even if another operation updates the project lock.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW solver/property tests, lock race subprocess fixtures and offline fake-registry tests. Future CLI commands deps resolve/update and --locked are acceptance interfaces only after implementation. Keep deterministic resolution fixtures independent of live network state.
|
||||
|
||||
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 Result/Data/Text primitives where semantics match; toml++ initially. Native SemVer solver and package policy remain VBS-owned. TOML/validated semantic-version utilities are candidates for VoidLibrary.
|
||||
|
||||
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).
|
||||
@@ -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).
|
||||
@@ -0,0 +1,67 @@
|
||||
# 13 — CMake, Meson and Conan providers
|
||||
|
||||
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-008, R-009, R-010, R-014.
|
||||
- Delivery phase: Foreign dependency interoperability.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 04 toolchains; 05/07 source identities/state; 06 processes; 11/12 resolved dependencies; 03 ImportedTarget contract.
|
||||
- Proposed exclusive implementation scope: src/providers/cmake/, src/providers/meson/, src/providers/conan/, tests/providers/; common provider interface 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
|
||||
|
||||
- Initially run foreign tools in isolated source/profile/toolchain contexts and import artifacts plus complete consumer requirements. Do not translate their build graph into native actions in this milestone.
|
||||
- ImportedTarget includes public/system include paths, definitions/options, ordered link requirements, static implementation dependencies, runtime artifacts, generated prerequisites, configuration mapping and module capabilities.
|
||||
- Use CMake>=4.2 File API for configured target/artifact facts plus evaluated consumer-interface probes/exports. File API target/build dependencies are not automatically complete transitive public link metadata.
|
||||
- Use configured Meson introspection for targets/build options and exported pkg-config or explicit interface data for consumers. Use Conan2 component-aware generated metadata and separate build/host contexts; do not flatten components indiscriminately.
|
||||
- Where complete interface data is unavailable, require an explicit typed interface description and diagnose the missing fields. Never guess usage requirements from filenames or scrape compile_commands as a complete graph.
|
||||
- Provider input identity includes source contents, build definitions, tool versions, options, toolchain and dependencies. Changed immutable source identities use invalidated/fresh managed build state so foreign timestamp shortcuts cannot retain wrong binaries.
|
||||
- Define metadata-only operations as reads of validated cached exports/introspection. Never invoke CMake configure, Meson setup, Conan install, nested generators or builds from compdb watch.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Freeze provider requests, imported interfaces, freshness guards and metadata-only capability contract.
|
||||
2. Implement CMake build/import with representative target/interface fixtures.
|
||||
3. Implement Meson and Conan2 adapters with their own availability/version probes and fixtures.
|
||||
4. Add imported target graph integration, explicit overrides, compdb merging/projection where valid and cancellation/recovery.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Missing executable/provider version is a prerequisite diagnostic; Conan absence is not a successful empty import.
|
||||
- Unknown metadata semantics require explicit support or a clear unsupported result.
|
||||
- Do not expose mutable provider build paths as immutable shared artifacts until publication validates them.
|
||||
- Nested bridge/provider operations must not deadlock on project/package locks.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Public/private/interface requirements, static transitive links, generated headers and ordered link flags.
|
||||
2. Debug/release and GCC/Clang imports remain isolated; ABI mismatch fails.
|
||||
3. Edit foreign source with preserved timestamp/size and verify changed output.
|
||||
4. Provider errors/cancellation/reconfiguration failures never publish partial imports.
|
||||
5. Metadata-only fixture cannot execute configure side effects; stale status is explicit.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW tiny CMake/Meson/Conan fixture projects build and link a native consumer. Test real supported versions and record their identities. Add the first VoidLibrary provider fixture, but do not edit its checkout.
|
||||
|
||||
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 process/path/data facilities. Official references: CMake File API, Meson IDE-integration/introspection docs and Conan2 CppInfo/custom-generator docs; keep adapter version contracts explicit.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 14 — CMake-facing dependency integration
|
||||
|
||||
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: Package-manager adoption.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 11/12 native package resolution; 13 imported interfaces; 15 package exports.
|
||||
- Proposed exclusive implementation scope: cmake/bridge/, src/package/export-cmake/, tests/cmake-bridge/; root owns bridge/CLI protocol compatibility.
|
||||
|
||||
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
|
||||
|
||||
- Ship VbsDeps.cmake as a dependency integration module. Provide new vbs_declare_dependency and vbs_make_available helpers with FetchContent/CPM-style declaration/use separation; do not claim exact macro-level drop-in compatibility.
|
||||
- Allow CMake consumers to use native registry packages and pinned sources without authoring build.cpp. Normalize requests to the same model/lock protocol as native projects.
|
||||
- Resolve/fetch/build only during explicit full dependency operations initiated by the CMake bridge. Generate package-config/imported-target files from typed interfaces, preserving transitive requirements, configuration mappings and runtime artifacts.
|
||||
- Use structured request/result files or argv with correct escaping; avoid shell interpolation. Include requester toolchain/profile/build-target contexts so a host-native package is not substituted into a cross build.
|
||||
- Share verified package blobs while keeping mutable CMake and provider build directories isolated. Define reentry/cycle diagnostics and no global transaction held over a nested child process.
|
||||
- Support locked/offline operation and clear vbs executable/version discovery. Missing vbs is a prerequisite, not permission to download an arbitrary unpinned binary.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Freeze helper signatures and versioned native CLI request protocol.
|
||||
2. Implement model normalization and generation of imported targets/config files.
|
||||
3. Integrate multi-config/cross-context mapping and package lock ownership.
|
||||
4. Write consumer examples and test nested dependency/error/cancellation behavior.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Conflicting declarations identify both CMake origins; no silent first-writer version selection.
|
||||
- Avoid unescaped CMake lists/semicolons, quotes and paths.
|
||||
- No native-build-language requirement added to the consuming CMake project's own targets.
|
||||
- Unsupported interface features fail rather than drop needed transitive flags.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. CMake executable consumes a native package, a CMake source package and a Meson source package.
|
||||
2. Multiple declarations deduplicate compatible requests and diagnose incompatible ones.
|
||||
3. Multi-config/debug-release/cross-toolchain mapping and offline/locked repeatability.
|
||||
4. Paths with spaces, quotes and semicolons; version mismatch and missing vbs diagnostics.
|
||||
5. Nested package use does not deadlock or overwrite another build's artifacts.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW ordinary CMake consumer fixtures configure/build/run against the installed bridge and CLI, separate from building VBS itself. Trace which resolver/provider executes; no production registry needed.
|
||||
|
||||
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
|
||||
|
||||
Reuse the native package model and exporter; do not implement a second solver in CMake. CMake code remains dependency glue permitted by the user.
|
||||
|
||||
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).
|
||||
@@ -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).
|
||||
@@ -0,0 +1,67 @@
|
||||
# 16 — Hosted package registry service
|
||||
|
||||
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-012, R-014.
|
||||
- Delivery phase: Full v1 registry.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 11 package identity/solver metadata; 12 source/binary formats; 15 exports; API frozen before 17 UI.
|
||||
- Proposed exclusive implementation scope: registry/service/, registry/include/, tests/registry-service/; root owns API/schema versions and migrations.
|
||||
|
||||
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
|
||||
|
||||
- Implement a separate C++ service, initially one node with filesystem content-addressed artifacts and SQLite metadata. Use Void facilities where verified; no compulsory third-party hosted service.
|
||||
- Version the API around package search, release metadata, source/binary download, publish, yank, users, roles, tokens and audit records. UI and CLI use this same API.
|
||||
- Published release bytes are immutable. Repeating identical publication can be idempotent; different bytes for an existing identity conflict. Yanking changes availability policy without rewriting locked history.
|
||||
- Publishing requires authenticated scoped authority and package ownership. Provide reader/publisher/admin roles, private/public visibility policy, bounded tokens and revocation. Store token hashes, not bearer secrets; use established password/session primitives where accounts require them.
|
||||
- Stream uploads to private staging, enforce configurable size/entry/quota limits, validate hashes and archive/manifest paths, then publish blobs before transactionally recording references. The server never executes uploaded build recipes.
|
||||
- Development binds to loopback; eventual deployment uses an explicitly configured reverse-proxy TLS/public origin and trusted proxy policy. HTTPS + configured registry authority + authenticated publication and hashes define initial trust; standalone publisher signing is not silently promised.
|
||||
- Implement audit records with secret redaction, integrity checks, orphan collection and consistent metadata/blob backup/restore. Runtime credentials stay outside committed and Nix-store payloads.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Verify required HTTP/storage/security Void APIs and freeze API/errors/authentication schemas.
|
||||
2. Implement read/index/download operations and native client interoperability against local fixtures.
|
||||
3. Implement authenticated publication/yank, transactional blobs, ownership/roles/tokens and audits.
|
||||
4. Add quotas/recovery/backup, harden request parsing and run independent security-oriented review before any exposure.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Never trust a supplied filename, archive path, digest, role or forwarded header without validation.
|
||||
- Failed/revoked authorization cannot expose private metadata or content; publish cannot overwrite release bytes.
|
||||
- No cache/registry credential in locks, diagnostics, browser URLs or audit payloads.
|
||||
- No actual server deployment or public exposure follows merely from code/review completion.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Role/package authorization matrix, private read isolation, token expiry/revocation and privilege escalation attempts.
|
||||
2. Immutable/idempotent/conflicting publication, invalid digest, interrupted upload and concurrent same-version publish.
|
||||
3. Oversized/malformed archives, traversal/symlink cases and quotas.
|
||||
4. Crash between blob publication/metadata commit; backup/restore preserves releases and ownership.
|
||||
5. Malicious recipe upload never executes server-side; logs/audits contain no secrets.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW local HTTP service fixtures with ephemeral ports, private test credentials and isolated storage. Run migration/restore and concurrent-client tests. Deployment needs a separate environment/authorization record.
|
||||
|
||||
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/Sqlite/Crypto/Security/Log where contracts suffice; established focused libraries are allowed for gaps. Authentication and robust HTTP/streaming primitives are candidates for upstream reuse.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 17 — Registry web administration
|
||||
|
||||
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-012.
|
||||
- Delivery phase: Full v1 registry.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 16 stable authenticated API/error model; 12/15 package metadata shapes.
|
||||
- Proposed exclusive implementation scope: registry/web/, tests/registry-web/; API changes requested from service owner, never made silently.
|
||||
|
||||
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
|
||||
|
||||
- Provide a browser interface for package search, release detail, source/binary variants, publish/yank, user/role/token management, audit history and storage administration.
|
||||
- Use ordinary HTML/CSS/JavaScript assets served with the C++ service. Keep runtime business logic and authorization in the service; no independent browser-side solver or privileged policy.
|
||||
- Use authenticated sessions with HttpOnly cookie handling, origin/CSRF protection for mutations and server-side role checks. Never persist privileged bearer tokens in public URLs or rendered logs.
|
||||
- Render package descriptions, names, filenames and diagnostics as untrusted text. Apply escaping/content policies; show integrity and compatibility metadata without executing package content.
|
||||
- Design loading, empty, unauthorized, expired-session, validation/conflict, upload-progress and server-error states. Keyboard navigation, labels, focus management and accessible confirmation/status messages are required.
|
||||
- Publishing/yanking and role/token changes show the affected package/version/user and server result. Do not present an optimistic success before durable publication; double submissions must be safe.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Create package browsing/search/detail flows against API fixtures.
|
||||
2. Add authenticated session/navigation and role-aware administration views.
|
||||
3. Implement upload/publish/yank and user/role/token/audit/storage workflows.
|
||||
4. Run browser/accessibility/security-state fixtures and integrate real service end-to-end tests.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- Hidden buttons do not establish authorization; every mutation is checked server-side.
|
||||
- Expired/revoked sessions cannot leave stale privileged controls functioning.
|
||||
- Malformed server responses produce recoverable errors without rendering raw unsafe HTML.
|
||||
- No required paid UI service or public hosting is introduced.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Browse/search/empty/error states and keyboard-only workflows.
|
||||
2. Login/logout/session expiry; reader/publisher/admin access and direct unauthorized request attempts.
|
||||
3. XSS payloads in all displayed package metadata; CSRF rejection on mutations.
|
||||
4. Successful/failed/interrupted uploads, duplicate clicks, conflicting publish and yank recovery.
|
||||
5. User/role/token changes, token shown only at creation, redacted audits and storage quota errors.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW browser automation plus real local service integration, with test runner versions pinned in the future harness. Do not call a mock UI proof of backend authorization. Public deployment remains separate.
|
||||
|
||||
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
|
||||
|
||||
The same C++ registry API owns data and security. Void HTML/text helpers may assist server rendering; avoid duplicating escaping/auth mechanisms across layers.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 18 — Native self-hosting and VoidLibrary migration
|
||||
|
||||
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-001, R-004, R-005, R-006, R-013.
|
||||
- Delivery phase: First native adoption.
|
||||
- Intended configured role: astra_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: 02-07 native core; basic 11-13 dependency support; 08 when required by selected sources; 15 exported closure.
|
||||
- Proposed exclusive implementation scope: root build.cpp/build.profiles.cpp, build-support/, recipes/VoidLibrary/, tests/selfhost/ after explicit ownership transfer; no automatic external repository writes.
|
||||
|
||||
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
|
||||
|
||||
- CMake produces stage0 only. Stage0 uses the native description to build stage1; stage1 builds stage2 in a fresh directory and builds the required VoidLibrary closure natively.
|
||||
- Keep the initial description aligned with real target/source/dependency requirements, then replace its CMake Void provider with an approved native recipe. Source remains pinned; a recipe in this repository can exercise an external immutable checkout without editing it.
|
||||
- Translate VoidLibrary module selection and transitive/optional dependencies into native targets. Preserve aliases, compile definitions/features, platform requirements, installation/export behavior and static/shared distinctions.
|
||||
- Replace CMake-only test registration for strict native stages. Preserve current discovery semantics and test names/counts while avoiding equal-basename collisions with stable path-based generated identities; use a supported upstream registration API when available.
|
||||
- Later stages may use the already supplied external compiler/SDK prerequisites but must not invoke CMake or reuse bootstrap-produced project/Void artifacts. Instrument this boundary in tests.
|
||||
- Compare normalized graph behavior, executed acceptance fixtures and outputs. Bit-identical binaries are not required without a separately established reproducible-build contract.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Make the native frontend build the tool's own graph and tests with imported dependencies.
|
||||
2. Add a pinned native VoidLibrary module recipe and required test registration generator.
|
||||
3. Build stage0->stage1->stage2 with isolated directories and artifact provenance checks.
|
||||
4. Run mutation, clean rebuild, packaging and installed-consumer comparisons; document migration gaps before wider Void adoption.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- A wrapper that calls CMake for the tool's own compilation is not self-hosting.
|
||||
- Using old stage outputs or CMake-generated test shims cannot satisfy strict clean native stages.
|
||||
- Do not claim all VoidLibrary modules work because a minimal closure does; track expanded library coverage explicitly.
|
||||
- Changes to the actual VoidLibrary repo need a separate owned assignment, not incidental edits.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Clean staged rebuilds and same test suite run by stages1/2.
|
||||
2. Trap CMake invocation in strict stages; isolate old build artifacts so accidental reuse fails.
|
||||
3. Edit tool source/helper/profile, add/remove selected source, delete output, cancel and recover.
|
||||
4. Native module selection/export/test registration matches the baseline for the adopted VoidLibrary closure.
|
||||
5. Same test names/counts and relevant consumer behavior before/after migration.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
NEW self-host harness records tool/stage identities, commands, provenance and actual tests. Initial CMake bootstrap results do not satisfy this gate. Expand VoidLibrary acceptance from required closure to wider module matrix explicitly.
|
||||
|
||||
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
|
||||
|
||||
Native recipe consumes verified VoidLibrary APIs. Native test-registration and build-export conveniences may later be contributed upstream under separate scope.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 19 — Quality, performance and CI
|
||||
|
||||
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-005, R-007, R-008, R-011, R-014, R-015, R-016.
|
||||
- Delivery phase: Every milestone and full v1 hardening.
|
||||
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: Each feature's concrete contracts; 01 supplies initial test harness. Future CI environment must be inspected before workflow activation.
|
||||
- Proposed exclusive implementation scope: tests/integration/, tests/adversarial/, benchmarks/, CI workflow files under a separately approved owner; root owns acceptance evidence.
|
||||
|
||||
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
|
||||
|
||||
- Use deterministic unit/property tests for models and algorithms, subprocess integration for lifecycle/recovery, real compiler fixtures for semantic correctness and browser tests for registry UI.
|
||||
- Test initial GCC16.2 and Clang23.1.3 target drivers separately from the GCC16 host build. Record stdlib/toolchain identities and capability exceptions; a skipped unsupported matrix entry is not a pass.
|
||||
- Maintain mutation, snapshot, negative-lookup, generated-input, module, compdb-race, lock-race, provider and registry failure suites. Inject failures at publication boundaries and compare with clean execution.
|
||||
- Use Void::Testing where appropriate and verify nonzero registered test cases. Test code itself is reviewed; assertions must check observable outcomes rather than merely repeat implementation steps.
|
||||
- Benchmark clean/no-op/single-source/transitive-header/source-set/module/profile/cache/watch scenarios on documented fixture sizes. Track hashing/capture work and compiler launches separately; no unmeasured numerical SLA.
|
||||
- Add CI only for verified runner/toolchain provisioning. Avoid copying secrets into source artifacts, cache logs or Nix store inputs. Preserve exact failed commands and unrun prerequisites.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Establish test conventions, isolated resources and required feature acceptance mappings.
|
||||
2. Add deterministic adverse fixtures alongside each implementation, not as a final cleanup phase.
|
||||
3. Define measured benchmark baselines and nonflaky regression thresholds from observed variance.
|
||||
4. Configure CI with pinned prerequisites, sanitizer jobs, artifact/log retention and clean self-host checks after local evidence.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- No success from zero tests, ignored child status, skipped compiler matrix or absent tools.
|
||||
- Do not weaken assertions to hide architecture bugs or retry infrastructure errors as if code were invalid.
|
||||
- After two failed repair cycles on one issue, preserve evidence and route changed-hypothesis diagnosis to Astra.
|
||||
- Fresh adversarial review remains required even when automated tests pass.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Harness deliberately failing/zero-registration cases are detected.
|
||||
2. Failure-injection fixtures fail when publication/cancellation protections are removed.
|
||||
3. Benchmarks report reproducible fixture/toolchain/context and distinguish cache warmup.
|
||||
4. CI cannot pass after skipping required compiler or stage-self-host checks.
|
||||
5. Documentation/requirement mapping and task ownership stay consistent with observed source.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
Use actual project commands from README once present; each future fixture/runner gets concrete discovered commands in its task spec. Initial acceptance is CMake + CTest local/pinned source, not an invented native vbs command.
|
||||
|
||||
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 Testing/TestingMock/Time/observability where validated. Generic deterministic failure-injection and reporting utilities may become upstream candidates.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,66 @@
|
||||
# 20 — Later native foreign execution and platform ports
|
||||
|
||||
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-010, R-015.
|
||||
- Delivery phase: After full-v1 foundations.
|
||||
- Intended configured role: astra_planner at XHigh; fresh astra_reviewer acceptance.
|
||||
- Dependencies: Stable 03-08 action/toolchain contracts and proven 13 adapters; separate implementation approval/task contracts for each supported slice.
|
||||
- Proposed exclusive implementation scope: Future src/providers/translation/, platform-specific driver/backend directories and compatibility fixtures; planning read-only until precise implementation ownership is assigned.
|
||||
|
||||
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
|
||||
|
||||
- Native graph translation is a later goal, distinct from v1 run-and-import. Initially retain foreign tools for configuration/evaluation while translating only a documented complete subset of resulting actions for native execution.
|
||||
- Do not treat CMake codemodel, Meson introspection or compile_commands as a complete action graph. Custom commands, depfiles, generated files, pools, response files, dynamic module edges, environments and ordering need explicit evidence.
|
||||
- Prototype a bounded configured-generator export/import route and prove semantic equivalence against the original tool. Unsupported graph constructs cause a diagnostic or explicit foreign-provider fallback, never silent omission.
|
||||
- Conan is a package/recipe system; native execution concerns supported underlying builder actions or reusable binary packages. Do not promise arbitrary Python recipe translation.
|
||||
- Add Windows/MSVC and macOS/Apple Clang through platform/toolchain interfaces after Linux correctness is stable. Cover process lifecycle, path/case semantics, watcher loss, loader/install behavior and module/debug formats.
|
||||
- Remote action caching and distributed workers remain deferred options, not registry binary distribution. They require separate trust, transport, platform execution and complete-input contracts before adoption.
|
||||
|
||||
## Implementation sequence
|
||||
|
||||
1. Inventory foreign metadata coverage with small official-tool fixtures and record unsupported constructs.
|
||||
2. Choose one bounded translation subset and freeze its completeness/compatibility contract before implementation dispatch.
|
||||
3. Compare native and original execution under source/generator/environment/module mutations.
|
||||
4. Port platform primitives and compiler drivers with native CI evidence, preserving shared invariants rather than conditional approximations.
|
||||
|
||||
## Failure behavior and boundaries
|
||||
|
||||
- No marketing claim of replacing arbitrary CMake/Meson logic without a tested compatibility boundary.
|
||||
- Unknown actions or incomplete dependencies cannot be dropped to make a build appear successful.
|
||||
- No cross-platform support inferred from compilation alone; lifecycle/filesystem behavior needs real hosts.
|
||||
- No remote service deployment, credentials or expanded source exposure assumed.
|
||||
|
||||
## Acceptance scenarios
|
||||
|
||||
1. Supported subset yields equivalent outputs and rebuild decisions under adversarial mutations.
|
||||
2. Unsupported custom/dynamic rule produces an explicit result or selected fallback.
|
||||
3. Foreign generated headers, response files and module actions preserve order.
|
||||
4. Windows/macOS native process cancellation, paths, watcher recovery, installation and compiler feature matrix.
|
||||
5. No regression in Linux/context isolation when platform backends are introduced.
|
||||
|
||||
## Verification and integration gate
|
||||
|
||||
This is a planned research/implementation sequence. No translator or platform test command exists yet. Each slice needs discovered original-tool commands, native equivalence fixtures, planner preflight and independent final review before claims.
|
||||
|
||||
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 platform capabilities may expand before these ports; re-inspect the pinned version then. Generic process/watch/path improvements should be considered for upstream use rather than duplicated blindly.
|
||||
|
||||
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).
|
||||
@@ -0,0 +1,180 @@
|
||||
# Architecture and cross-subsystem contracts
|
||||
|
||||
Status: approved design; the initial implementation is the bootstrap only.
|
||||
See [requirements](REQUIREMENTS.md), [delivery graph](README.md), and the
|
||||
[preflight record](../agent-workflow/PREFLIGHT.md). Proposed types and commands below
|
||||
are future contracts unless README explicitly lists them as implemented.
|
||||
|
||||
## Layers and control flow
|
||||
|
||||
1. The CLI selects a project/build root, requested profiles and targets.
|
||||
2. A seed recipe captures configuration sources and builds a host executable from
|
||||
build.cpp, optional build.profiles.cpp and build-support helpers.
|
||||
3. Profile discovery returns declared profiles; the engine resolves inheritance,
|
||||
installed toolchains and capabilities.
|
||||
4. The same host executable evaluates build.cpp separately for each effective
|
||||
ProfileContext. It emits a versioned declarative graph, not engine callbacks.
|
||||
5. The resolver validates or creates the lock and imports dependency interfaces.
|
||||
6. The engine captures the relevant source/include namespace, then lowers targets
|
||||
into actions, scans module dependencies and orders generated prerequisites.
|
||||
7. The scheduler executes only required actions against immutable inputs. Outputs
|
||||
become immutable artifacts after validation; successful state references them.
|
||||
8. Editor projection derives a per-profile compilation database from the configured
|
||||
graph. Selection/publication does not wait for every target to compile.
|
||||
9. Watch drivers request new reconciliations. They do not introduce another
|
||||
invalidation algorithm or silently bypass dependency restrictions.
|
||||
|
||||
The configuration executable is compiled using the fixed installed SDK and local
|
||||
helpers. A project dependency cannot be required just to compile its declaration.
|
||||
The host compiler, target compiler and build-machine tools are separate identities.
|
||||
|
||||
## Core records
|
||||
|
||||
| Record | Meaning and owner |
|
||||
| --- | --- |
|
||||
| ProfileDefinition / ProfileContext | User declarations versus resolved compiler/platform/options facts; frontend/toolchain |
|
||||
| ProjectDescription | Targets, source selections, symbolic dependencies and context; configuration frontend |
|
||||
| Target / UsageRequirements | Product kind, compile/link visibility, ordered requirements; graph layer |
|
||||
| SourceSet / NamespaceObservation | Explicit paths or selector membership, symlinks and absence/lookup guards; input layer |
|
||||
| InputSnapshot | Immutable manifest and materialized captured bytes with deterministic metadata; snapshot layer |
|
||||
| ToolchainIdentity | Driver/helper/sysroot identities, capabilities and relevant environment; toolchain layer |
|
||||
| Action / Artifact | Typed argv/env/cwd, inputs, outputs, prerequisites and success identity; execution layer |
|
||||
| ImportedTarget | Consumer requirements, artifacts, configuration mapping and freshness obligations; provider |
|
||||
| ResolvedGraph / LockRevision | Exact package graph per profile/build-target context and immutable lock payload; packages |
|
||||
| GraphGeneration / EditorGeneration | Validated immutable descriptions and editor projections; metadata layer |
|
||||
| SelectionTicket | Project-wide ordering of explicit/implicit editor selection; editor coordinator |
|
||||
|
||||
Shared schemas and public headers have one owner per wave. Freeze their versions
|
||||
before parallel dependent implementation; changes invalidate affected task contracts.
|
||||
|
||||
## Profiles and paths
|
||||
|
||||
One build root contains profiles/<profile-id>/ with independent mutable outputs and
|
||||
generation directories. Internal state and immutable CAS live below .vbs/ in that
|
||||
build root. Project-local .vbs/ coordinates the selected editor build root/profile.
|
||||
Source, build and package paths have distinct logical namespaces.
|
||||
|
||||
Serialize execution within a profile initially. Different profiles may execute
|
||||
concurrently under one job budget. Never share mutable object files, BMIs, PCHs,
|
||||
response files, provider build trees or generated headers between incompatible contexts.
|
||||
|
||||
Configuration helpers are discovered by filesystem selection, not git ls-files.
|
||||
Their content and membership enter the seed compilation identity; package source
|
||||
manifests retain them. Optional profile sources are discovered before the seed build,
|
||||
so no package-resolution cycle is needed to find profile definitions.
|
||||
|
||||
## Snapshots and freshness
|
||||
|
||||
Capture declared source/include/search roots, source membership, relevant metadata
|
||||
and symlink resolution. Track absent candidates that could change include/library
|
||||
lookup. Depfiles alone are insufficient for a newly created shadowing header.
|
||||
Compiler helpers, sysroots and immutable external roots require an explicit identity.
|
||||
|
||||
Private copies or isolated reflinks materialize inputs. Never hardlink mutable source
|
||||
files. Revalidate the captured namespace/contents before sealing; bounded retries
|
||||
report an unstable tree. This freezes admitted bytes; without a filesystem primitive
|
||||
or cooperating writers it does not prove a single atomic instant across every file.
|
||||
|
||||
Generated output sets are staged, validated and sealed before dependents execute.
|
||||
Opaque actions and undeclared I/O are outside the complete-input guarantee and cannot
|
||||
reuse results as if their inputs were fully modeled. C++ descriptions are trusted
|
||||
native code; process isolation and snapshots are not a sandbox.
|
||||
|
||||
A reproducibility epoch (default zero) is part of action identity. Canonicalize
|
||||
snapshot timestamps, use SOURCE_DATE_EPOCH/TZ/locale policies and capability-tested
|
||||
path maps. Include other supported observable metadata in identity. Explicit
|
||||
wall-clock/nondeterministic modes disable both cache and incremental reuse for
|
||||
affected actions. Test __DATE__, __TIME__, __TIMESTAMP__, __FILE__, __BASE_FILE__
|
||||
and source-location behavior against uncached execution.
|
||||
|
||||
## Publication, persistence and cancellation
|
||||
|
||||
Successful process exit is necessary but not sufficient: validate required outputs,
|
||||
dependency metadata and discovered ordering before recording reusable success.
|
||||
No output may have multiple producers or overlap editable source paths.
|
||||
Removed source objects must disappear from archive membership.
|
||||
|
||||
Use transactional state behind a Void::Sqlite adapter after its guarantees have
|
||||
been verified. Publish complete artifact/generation objects before committing
|
||||
references. Recover orphaned objects or stale filesystem pointers conservatively.
|
||||
SQLite authority and filesystem projections must have a replayable recovery rule.
|
||||
|
||||
Never hold a global database transaction across a compiler or foreign tool.
|
||||
Coordinate per-key build claims without recursive deadlocks; diagnose dependency
|
||||
cycles and re-entry into the same active context. Cancellation stops scheduling,
|
||||
terminates owned process groups, reaps children and withholds success publication.
|
||||
The pinned Void process API needs additional handling when its group leader exits
|
||||
before descendants; test that exact case instead of assuming group cleanup.
|
||||
|
||||
## Editor view
|
||||
|
||||
Retain exact physical execution records. EditorCommand is an explicit projection
|
||||
onto editable source paths and compatible immutable generated views. Rewrite typed
|
||||
path operands, including response-file projections; do not blindly replace strings
|
||||
inside definitions or unknown flags. Path-sensitive binary artifacts cannot be
|
||||
relocated on faith: include physical/toolchain identity unless proven safe.
|
||||
|
||||
Per-profile compile_commands.json covers configured enabled targets, even when a
|
||||
build selects only one. Include host-description commands where tooling can represent
|
||||
them. Standard JSON arguments are preferred to shell command strings.
|
||||
Compilation-database validity is separate from clangd support for compiler extensions.
|
||||
|
||||
A single-profile build reserves a ticket and publishes selection after successful
|
||||
configuration. Compilation failure does not undo it. Multi-profile requests require
|
||||
--editor-profile from the selected profiles. Manual use creates a newer ticket.
|
||||
Watchers update generations but never steal selection. Revision checks stop late
|
||||
work from publishing over a newer request. Atomic pointers expose complete generations;
|
||||
unrelated user-owned project-root files are never overwritten.
|
||||
|
||||
## Watch modes
|
||||
|
||||
Full build/watch may configure and build dependencies. compdb watch may rebuild and
|
||||
evaluate trusted local descriptions and run known native probes/scanners, but reads
|
||||
only validated cached foreign metadata and existing locked package data. It does not
|
||||
fetch, update a lock, run CMake configure/Meson setup/Conan install or run generators.
|
||||
User C++ can have its own side effects; no sandbox claim is made.
|
||||
|
||||
Invalid descriptions, stale provider metadata or missing generated inputs produce
|
||||
explicit stale/readiness diagnostics. Keep a previous valid database identifiable as
|
||||
previous, never fabricate current commands. Valid source-set changes can publish
|
||||
before target compilation succeeds. Events are hints; periodic content/namespace
|
||||
reconciliation and overflow recovery provide correctness.
|
||||
|
||||
## Package and foreign boundaries
|
||||
|
||||
C++ and TOML declarations normalize to one model. Compatible transitive constraints
|
||||
solve together; conflicting identities/options have origin diagnostics. Resolution
|
||||
contexts distinguish profile and build/target machine. Registry authority is part
|
||||
of identity to prevent silent substitution across registries.
|
||||
|
||||
A first ordinary build may create a missing lock; --locked forbids changes. Existing
|
||||
incompatible declarations require explicit resolution. Solve outside a short
|
||||
publication lock, then compare revisions, revalidate declarations/contexts and atomically
|
||||
replace. Retry/re-resolve competing updates rather than lose other profile contexts.
|
||||
Every build pins one immutable lock payload/hash.
|
||||
|
||||
Foreign providers return complete typed usage requirements or require explicit
|
||||
descriptions of gaps. CMake File API, Meson introspection and Conan CppInfo are
|
||||
inputs, not automatic proof of complete public interfaces. Changed immutable source
|
||||
identities must invalidate opaque provider results even when timestamps match.
|
||||
No inference from a library filename alone; preserve order, static implementation
|
||||
link dependencies, generated prerequisites and configuration mappings.
|
||||
|
||||
Registry binary packages are not the local action cache. Binary compatibility
|
||||
includes toolchain/stdlib ABI, target/CPU, linkage, profile features, sanitizer/LTO
|
||||
settings and dependency closure. Published release bytes are immutable; yanking
|
||||
changes selection policy. Authentication + configured HTTPS + hashes define initial
|
||||
trust; hashes alone do not authenticate publishers.
|
||||
|
||||
## VoidLibrary reuse and gaps
|
||||
|
||||
The pinned source provides Configuration, System, Testing, Data and other relevant
|
||||
modules. Reuse verified APIs, not roadmap promises. The simple FileWatcher is a
|
||||
polling hint, not sufficient recursive/content correctness. Explicit process APIs
|
||||
preserve failures that legacy helpers can discard. Current test discovery is a CMake
|
||||
generator and must be replaced for strict native self-host tests.
|
||||
|
||||
Candidates for later upstream work: robust descendant lifecycle, recursive rescan
|
||||
signals, streaming cryptographic hashing, transactional file publication, TOML,
|
||||
and a supported native test-registration interface. Local focused wrappers are
|
||||
allowed; no cross-repository edits are implicit.
|
||||
@@ -0,0 +1,96 @@
|
||||
# Roadmap and delivery graph
|
||||
|
||||
The current deliverable is a compiling bootstrap and declaration SDK plus these
|
||||
detailed plans. Full native execution and the rest of v1 are subsequent milestones.
|
||||
For implemented behavior and commands, start with the [project README](../../README.md).
|
||||
|
||||
Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md),
|
||||
[decisions](../agent-workflow/DECISIONS.md), [approved scope](../agent-workflow/APPROVED_PLAN.md).
|
||||
Do not infer implementation status from a plan's existence.
|
||||
|
||||
## Per-part implementation plans
|
||||
|
||||
| Part | Delivery phase | Intended role |
|
||||
| --- | --- | --- |
|
||||
| [01 — Bootstrap and declaration SDK](01-bootstrap-sdk.md) | Initial delivery | sol_implementer |
|
||||
| [02 — Native C++ configuration frontend](02-configuration-frontend.md) | Core native engine | astra_implementer |
|
||||
| [03 — Targets, usage requirements and action graph](03-targets-action-graph.md) | Core native engine | sol_implementer |
|
||||
| [04 — Profiles, target selection and toolchains](04-profiles-toolchains.md) | Core native engine | sol_implementer |
|
||||
| [05 — Immutable snapshots and mutation tracking](05-snapshots-invalidation.md) | Core correctness foundation | astra_implementer |
|
||||
| [06 — Native execution, scheduling and process lifecycle](06-execution-scheduling.md) | Core native engine | astra_implementer |
|
||||
| [07 — Transactional state and local artifact cache](07-state-local-cache.md) | Core correctness foundation | astra_implementer |
|
||||
| [08 — Modules, header units and compiler features](08-modern-cpp.md) | Full v1 compiler capability | astra_implementer |
|
||||
| [09 — Compilation databases and editor selection](09-compilation-database.md) | Core developer experience | sol_implementer |
|
||||
| [10 — Reconciliation, build watching and metadata watching](10-watchers-cli.md) | Core developer experience | sol_implementer |
|
||||
| [11 — Dependency declarations, native solver and lockfile](11-dependencies-solver-lock.md) | Native package management | sol_implementer |
|
||||
| [12 — Acquisition, source packages and binary packages](12-fetching-packages.md) | Native package management | sol_implementer |
|
||||
| [13 — CMake, Meson and Conan providers](13-foreign-providers.md) | Foreign dependency interoperability | sol_implementer |
|
||||
| [14 — CMake-facing dependency integration](14-cmake-bridge.md) | Package-manager adoption | sol_implementer |
|
||||
| [15 — Installation, exports and package consumption](15-install-export.md) | Product distribution | sol_implementer |
|
||||
| [16 — Hosted package registry service](16-registry-service.md) | Full v1 registry | astra_implementer |
|
||||
| [17 — Registry web administration](17-registry-ui.md) | Full v1 registry | sol_implementer |
|
||||
| [18 — Native self-hosting and VoidLibrary migration](18-self-host-voidlibrary.md) | First native adoption | astra_implementer |
|
||||
| [19 — Quality, performance and CI](19-quality-performance-ci.md) | Every milestone and full v1 hardening | sol_implementer |
|
||||
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | After full-v1 foundations | astra_planner |
|
||||
|
||||
Each plan contains concrete interfaces/behavior, ordered work, dependencies,
|
||||
exclusive ownership proposals, failure boundaries, acceptance cases and verification
|
||||
gates. Future paths and commands are marked as such. A full linted task contract
|
||||
against the actual HEAD is still required before dispatch.
|
||||
|
||||
## Milestones and dependencies
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["01 Bootstrap / SDK"] --> B["02 Configuration + 03 Graph + 04 Profiles"]
|
||||
A --> C["05 Snapshots + 07 State"]
|
||||
B --> D["06 Native execution"]
|
||||
C --> D
|
||||
B --> E["09 Editor metadata"]
|
||||
C --> E
|
||||
D --> F["10 Build / metadata watching"]
|
||||
E --> F
|
||||
A --> G["11 Solver / lock + 12 Packages"]
|
||||
D --> H["13 Foreign providers"]
|
||||
G --> H
|
||||
H --> I["18 Native self-host / VoidLibrary"]
|
||||
F --> I
|
||||
D --> J["08 Modern C++"]
|
||||
G --> K["15 Install / exports"]
|
||||
H --> K
|
||||
K --> L["14 CMake bridge"]
|
||||
G --> M["16 Registry API"]
|
||||
M --> N["17 Registry UI"]
|
||||
I --> O["19 Integrated v1 hardening"]
|
||||
J --> O
|
||||
L --> O
|
||||
N --> O
|
||||
O --> P["20 Later translation / OS ports"]
|
||||
```
|
||||
|
||||
The arrows describe integration prerequisites, not permission to let one worker
|
||||
change another's files. Interfaces can be developed with fixtures before all runtime
|
||||
dependencies exist; acceptance waits for real integration. Self-hosting can begin
|
||||
with a required dependency closure, then broaden through explicit library coverage.
|
||||
|
||||
## Release gates
|
||||
|
||||
1. Initial delivery: repository/docs, linked CLI, compile-tested SDK descriptor,
|
||||
real tests, local and pinned dependency builds, fresh integrated review.
|
||||
2. Native core: immutable snapshots, correct action execution, profile isolation,
|
||||
selection/refresh and input mutation tests.
|
||||
3. First adoption: clean stage0->stage1->stage2 and native VoidLibrary closure.
|
||||
4. Full v1: all selected modern compiler features, package/foreign/CMake bridge,
|
||||
install/export, registry service/UI and adverse-case coverage.
|
||||
5. Later: separately bounded native foreign translation and platform ports.
|
||||
|
||||
Remote build caches/distributed workers are outside v1. The hosted registry and
|
||||
binary-package distribution remain inside v1; they are not the same feature.
|
||||
|
||||
## Evidence and coordination
|
||||
|
||||
See [STATE](../agent-workflow/STATE.md), [TASKS](../agent-workflow/TASKS.md) and
|
||||
[VERIFICATION](../agent-workflow/VERIFICATION.md). Root owns shared schemas/pins and
|
||||
integration. Use configured XHigh roles, conservative concurrency and fresh
|
||||
read-only reviews. Preserve source exclusions and do not publish or deploy as a
|
||||
side effect of finishing a milestone.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Requirements and acceptance ledger
|
||||
|
||||
Status: approved requirements, 2026-11-25. Approval covers the initial repository,
|
||||
detailed plans and bootstrap skeleton. Full v1 is a sequence of later implementation
|
||||
milestones; planning a capability does not mark it implemented.
|
||||
|
||||
| ID | Requirement | Acceptance boundary | Plans |
|
||||
| --- | --- | --- | --- |
|
||||
| R-001 | Native C++ implementation using VoidLibrary; C++26/GCC16 host | Real linked Void APIs; explicit module/dependency closure | 01, 06, 07 |
|
||||
| R-002 | Ordinary cpp/hpp build logic, conventional and custom layouts | Compiled build.cpp/helpers; explicit sets and live glob membership; no bespoke interpreter | 01, 02, 03 |
|
||||
| R-003 | Selected targets and multiple profiles in one build root | Separate GCC/Clang target contexts and artifacts; selected target/profile combinations; no host-preprocessor confusion | 02, 04, 09 |
|
||||
| R-004 | Compiling, honest bootstrap with CMake permitted | CLI help/version/errors, SDK example and tests; no false native-build success | 01 |
|
||||
| R-005 | Meaningful tests and independent verification | Registered nonzero tests, adverse fixtures, compiler matrix, fresh review of integrated code | 01, 19 |
|
||||
| R-006 | Reproducible bootstrap dependency source | Exact VoidLibrary commit, default upstream mode and explicit local override both verified | 01, 12 |
|
||||
| R-007 | Content-verified mutations and immutable execution inputs | Add/delete/rename, restored timestamps, symlinks, include shadowing, capture races and generated inputs handled | 05, 06, 10 |
|
||||
| R-008 | Automatically current, selectable compilation databases | Per-profile databases, latest-build/manual selection, independent metadata watcher, atomic updates and honest stale status | 09, 10 |
|
||||
| R-009 | Native packages, version resolution and TOML declarations | Common C++/TOML model, solver, context-aware locks, local/Git/archive/registry sources, source/binary packages and offline use | 11, 12 |
|
||||
| R-010 | Foreign build consumption and CMake-facing dependency API | Initial native-tool execution + complete imports for CMake/Meson/Conan; new FetchContent/CPM-style bridge; later native translation | 13, 14, 20 |
|
||||
| R-011 | Full modern C++ in v1 | Named modules/partitions/header units, PCH, unity, LTO, sanitizers with actual capability checks | 08 |
|
||||
| R-012 | Hosted registry with browser administration | C++ API, accounts/roles/tokens, immutable releases, source/binary storage, audits, backup and UI workflows | 16, 17 |
|
||||
| R-013 | Native self-hosting and VoidLibrary first adoption | Clean stage 0 -> 1 -> 2; native tool and required VoidLibrary closure/tests; no CMake/project-artifact reuse after seed | 18 |
|
||||
| R-014 | Correct persistent state and failure recovery | Strong identities, checked publication, crash recovery, corruption detection, no failed/cancelled success records | 05, 06, 07, 11 |
|
||||
| R-015 | Linux-first and local cache first | GCC16.2/Clang23.1.3 initial target matrix; Windows/macOS later; no remote build cache or distributed workers in v1 | 04, 07, 20 |
|
||||
| R-016 | Durable and executable engineering plans | Each part has interfaces, dependencies, ownership, failure behavior, implementation steps and observable tests | All |
|
||||
| R-017 | MIT project license | Repository license and copyright notice present | 01 |
|
||||
| R-018 | Installable/exportable products and dependencies | Relocatable package metadata, transitive requirements and runtime library handling | 15 |
|
||||
| R-019 | Native executor and normal C/C++ targets | Executable/static/shared/header-only/object libraries, generators, tests, usage propagation and ordered actions | 03, 06 |
|
||||
|
||||
## Product decisions
|
||||
|
||||
- Build logic and profile definitions stay in C++. TOML is dependency data.
|
||||
- Sources may use include/ plus src/ or source/, explicit files, globs or custom layouts.
|
||||
Discovery reacts to untracked files too; Git membership is not the selection rule.
|
||||
- Native executor, one-shot builds and opt-in rebuilding watch; a separate metadata
|
||||
watcher keeps editors current without engine-scheduled target/package builds.
|
||||
- Multiple profiles share a build root but never mutable object, BMI/PCH or generated
|
||||
products. A single-profile build changes editor selection after valid configuration;
|
||||
multiple profiles require an explicit editor profile.
|
||||
- Immutable snapshots were selected over merely checking editable files after a build.
|
||||
A sealed captured tree is not a claim of a globally atomic filesystem instant.
|
||||
- Native package manager, hosted registry and web administration are required for full v1.
|
||||
The CMake bridge is also required, not just a C++ equivalent of FetchContent.
|
||||
- Local artifact caching is included; remote build caching and distributed execution
|
||||
are deferred. Registry binary distribution is a different capability.
|
||||
- Foreign graphs are initially built by their existing tools; native translation is later.
|
||||
- Reuse VoidLibrary broadly; focused dependencies/wrappers are allowed. Record reusable
|
||||
gaps for possible upstream implementation; do not make incidental upstream edits.
|
||||
- First migration targets are VBS itself and VoidLibrary, not all Void repositories at once.
|
||||
|
||||
## Acceptance language
|
||||
|
||||
A plan is complete when its contracts and dependencies are usable for implementation.
|
||||
Code is complete only when its behavior exists. Verified requires observed checks
|
||||
against the integrated files. Released/deployed requires a separate action and authority.
|
||||
|
||||
The bootstrap does not satisfy the future executor, package, snapshot, editor watcher
|
||||
or registry requirements merely because it can describe their data. Keep that distinction
|
||||
in help output, README, task status and test reports.
|
||||
Reference in new issue
Block a user