Files
Build-System/docs/roadmap/REQUIREMENTS.md
T
faumaray 3cac890ce9 bootstrap
Signed-off-by: faumaray <faumaray@gmail.com>
2026-11-25 01:32:43 +03:00

59 lines
5.5 KiB
Markdown

# 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.