67 lines
4.7 KiB
Markdown
67 lines
4.7 KiB
Markdown
# 01 — Bootstrap and declaration SDK
|
|
|
|
Implementation status: Full v1 declaration SDK and bootstrap IMPLEMENTED & VERIFIED (2026-11-26).
|
|
See [STATE](../agent-workflow/STATE.md), [SDK contract](../SDK.md) and
|
|
[VERIFICATION](../agent-workflow/VERIFICATION.md).
|
|
|
|
## 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).
|