bootstrap

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-11-25 01:32:43 +03:00
commit 3cac890ce9
57 files changed
+4043

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
# Approved implementation contract
Date: 2026-11-25
Approval: user said "Implement the plan" after the complete proposal.
Current delivery: repository initialization, detailed plans and compiling
bootstrap skeleton. The full product is a staged roadmap, not the claimed
capability of the first skeleton.
Baseline: empty project directory except .serena metadata; no prior Git HEAD.
Preflight: V-001-R1 READY after five contract corrections (see PREFLIGHT.md).
Technical default choices remain subject to evidence during implementation;
material scope changes require a recorded decision.
VoidBuildSystem proposed delivery and contracts (NEW; no files implemented).
Current delivery: initialize local Git main/MIT, preserve .serena metadata, add ignore rules; create README and project AGENTS, durable docs/agent-workflow state/decisions/tasks/verification plus docs/roadmap requirements/architecture/index and a detailed plan per subsystem. Add a C++26/GCC16 CMake>=4.0 bootstrap, vbs --help/--version using Void::Argparse::Parser, selected VoidLibrary Configuration+Testing module closure pinned at 9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5, static linkage for bootstrap, own-library tests disabled. Allow an explicit local-source override for the inspected checkout without modifying it. Add minimal declaration-only SDK, root build.cpp plus helper compiled by CMake into an example harness; test target/profile/dependency records and graph protocol version. The example includes the optional profile-definition callback and tests separate GCC/Clang evaluation contexts. No application execution, solver, watchers or registry claim in this skeleton; unsupported commands fail. Root CMake file is solely bootstrap, root build.cpp will become native self-build. Conventional and explicit helper membership and all included headers enter the configuration identity and package source manifest, so the same descriptor builds from a Git checkout or exported source archive with no .git. All functionality below gets separate detailed implementation plans, not implemented in current delivery. No remote creation, commit, push or deployment.
Confirmed product: native Linux-first executor; host and build description C++26/GCC16, target GCC/Clang separate; no bespoke build language. Out-of-process void build(vbs::Project&) compiled against SDK and local helpers; seed compilation uses filesystem-discovered build-support/**/*.cpp, never Git tracking, plus explicit --build-source inputs; optional build.profiles.cpp defines void profiles(vbs::Profiles&) and otherwise SDK debug/release defaults apply; symbolic dependency handles avoid needing project packages to compile its declarations. The generated SDK driver first supports a profiles-discovery mode invoking the optional profiles callback, or SDK defaults. Root resolves profile inheritance and installed target toolchains/probes, then invokes the same host-compiled description executable once per selected effective ProfileContext. void build(vbs::Project&) observes project.profile()/project.toolchain()/project.target() runtime facts from that context; ordinary C++ preprocessor macros describe the host compiler and are not target selectors. Each evaluation emits its concrete graph, then providers resolve and actions lower for that context. Host-compilation identity and per-profile evaluation identities are separate. The profile callback cannot consume unresolved project packages. Recompile description on its source/header/toolchain changes; reevaluate configuration each graph reconciliation initially. Arbitrary C++ is trusted; no sandbox/complete hidden-I/O guarantee.
Explicit target kinds: executable/static/shared/header-only/object libraries/custom actions/tests/install/export. Conventional include and src/source roots with explicit/glob/custom overrides and opt-in module-directory discovery; target kinds are declared, never guessed from a main function. Source membership is input, including additions/deletions/renames. Custom actions declare input/output files, command argv, environment and toolchain. Generated prerequisites must precede consumers, usage requirements distinguish visibility and preserve static private-link requirements/link order. No output collisions or action cycles.
Profiles: effective options/toolchain/dependency context identify a profile; debug/release defaults and C++ custom profiles. Several requested targets and profiles build as the selected combination. Mutable products/state/editor generations are isolated below build/profiles/<profile>; immutable CAS may be shared under build/.vbs. Serialize execution per profile initially; allow profiles in parallel, with one overall concurrency budget. Compiler PCH/BMI/object/output directories never overlap.
Snapshots: SHA-256 content identities, declared source/include/search roots and namespace membership, relevant symlinks and negative lookups. Compiler-visible deterministic metadata is part of the contract: an explicit reproducibility epoch (default Unix epoch zero) is included in action identity; set SOURCE_DATE_EPOCH, TZ=UTC and LC_ALL=C, canonicalize snapshot file timestamps to that epoch, and use capability-tested structured path-prefix maps for __FILE__/__BASE_FILE__/source_location/debug paths. Generated inputs get the same deterministic metadata policy. Time/path macro fixtures must show cached/uncached equivalence. Unsupported deterministic drivers fail the requested capability rather than silently weakening it. An explicit wall-clock/custom nondeterministic action mode disables both cached and incremental result reuse for affected actions. Private copies/reflinks, no hardlinks to editable sources; capture plus full revalidation with bounded retries before sealing immutable manifest. It freezes captured bytes, not a promise of atomic cross-file filesystem time. No implicit secret, repository metadata or build-output capture; external symlinks require declared roots. Generated outputs become immutable inputs after successful producer validation. Compiler/helper/sysroot environment identity must be covered; opaque non-declared actions are noncacheable and outside closed-input guarantee. Opaque paths cannot silently escape snapshot mapping.
State/execution: transactional state via Void::Sqlite after its adapter is validated; content-addressed local cache, verified outputs, generation-based publication and crash recovery. SHA-256 via focused crypto adapter, candidate future VoidLibrary reuse. Direct argv process APIs, stdout/stderr drains and bounded logs, cancellation must kill ordinary descendants even if leader exits early. Known VoidLibrary cleanup gap handled by local Linux lifecycle wrapper and upstream-candidate record; no incidental upstream edit. Never mark partial/failed/cancelled outputs successful. Opaque binaries such as BMI/PCH include physical path/toolchain identity unless proven relocatable.
Compdb: standard per-profile JSON with arguments/file/directory/output for all configured enabled targets even when only subset builds. Physical snapshot executions stay in exact execution records; editor projection maps structured path operands to editable sources and graph-compatible generated views, never string-replaces arbitrary flags. Root build/compile_commands.json and a managed project-root alias select a complete immutable generation. Preserve any unrelated existing user-owned file. Publish atomically with request tickets/revision checks and a project-level selector lock so stale operations cannot overwrite newer selections. Single-profile build reserves selection on acceptance and publishes after valid configuration; compile failure does not undo it. Multiple profiles require --editor-profile (one of selected profiles) before work. Explicit compdb use is a newer selection request. Watchers refresh their profile but do not steal selection.
Automatic refresh: vbs build reconfigures/refreshes as necessary; vbs watch rebuilds; vbs compdb watch refreshes without engine-scheduled project-target/package builds, network fetches, lockfile writes or foreign configuration. It may compile/evaluate the trusted local build description and run known native compiler scanners/probes. It only reads validated cached provider exports/introspection and lock/package metadata; it never invokes CMake configure, Meson setup, Conan install, arbitrary generators or package builds. Changed provider inputs requiring such work yield an explicit needs-build/stale diagnostic. Arbitrary user C++ in the local description is trusted and may have its own side effects; no sandbox promise is made. File events are hints with periodic content/namespace reconciliation and overflow recovery. Deletion/addition/rename/profile/flag/manifest changes refresh metadata before target compilation. Missing generated artifacts get readiness diagnostics. Invalid config or unavailable/unresolved deps retain last valid DB with explicit stale/error status; never fabricate current commands or silently use incompatible generated outputs.
Modern C++ v1: named-module P1689 scanning/dynamic ordering, partitions/cycle diagnostics, explicitly declared header units (Clang scanner currently only supports named modules), profile-specific BMI/PCH ownership, PCH/unity/LTO/sanitizers and compiler/stdlib capability probes. Module TUs excluded from unity; unsupported combinations fail explicitly. Test GCC16.2 and Clang23.1.3 target drivers using actual commands, and supported lower compiler baselines can be broadened later. Target language standard is independent of host.
Dependencies: C++ inline declarations and vbs.deps.toml (TOML1.0 via toml++ initially) share source/provider/package/option records. Fields examples already shown to user: git/rev/builder/options or package/version; local path/archive checksummed sources and Conan provider also supported. Explicit load calls permit custom manifest filenames. Reject conflicting duplicate identities/values with origin diagnostics; compatible transitive version constraints solve jointly. Native deterministic PubGrub-style SemVer solver, one version per identity per profile and build/target context; configured registry authority is part of identity. vbs.lock stores exact sources, hashes, features/options/contexts, no credentials. A normal first build may create an absent lock; --locked disallows that. Existing incompatible declarations/options/contexts fail before actions and require explicit deps resolve/update; compatible pinned dependencies never silently upgrade. Project-wide lockfile publication uses a short project mutex plus compare-and-swap of the source lock revision, atomic replacement and revalidation of declaration/context fingerprints. Solving may happen outside the lock, but a changed revision triggers re-resolution/revalidation rather than overwriting another profile update. Each build pins one immutable lock payload/hash with its captured inputs; running builds never mix revisions. Offline mode reuses only verified data. Fetch transport/auth uses existing supported mechanisms; archive extraction and symlink/path traversal guarded. Native binaries keyed by toolchain/target/stdlib/ABI/options/linkage/CPU/sanitizers/LTO/dependency closure; incompatible binary uses source build or clear failure. Binary distribution is not remote build-cache scope.
Foreign providers: initially invoke CMake/Meson/Conan2 in isolated per-source/profile/build directories and import typed usage/artifact/prerequisite metadata. Use CMake>=4.2 File API plus evaluated consumer-interface probes/exports, Meson configured introspection plus exported pkg-config/interface data, Conan2 component-aware generator with distinct build/host contexts. Require explicit interface description for gaps, never guess from a library filename or assume introspection is universally lossless. During full build operations their mutable source inputs/build definitions trigger reconfigure/rebuild as needed; metadata-only operations use the restricted read-only provider mode above. No direct re-execution of their source code in native engine yet. Provide new VbsDeps.cmake helper for FetchContent/CPM-style dependency declarations; resolve with native package manager, generate imported targets/package configs. No exact drop-in compatibility claim. Dependency CMake/TOML/Python adapters do not become native build languages.
Registry v1 included: separate C++ HTTP service with immutable releases/source+binary blobs, filesystem CAS, SQLite metadata, versioned API, scoped publishing tokens, package ownership and reader/publisher/admin roles. Existing configured registry HTTPS+authenticated publication+content digests are v1 trust boundary; standalone publisher signing is future, not silently promised. Loopback development binding, reverse-proxy TLS deployment model; no actual exposure/deployment in current task. Web admin required: package/version search/detail, publish/yank operations, users/roles/tokens/audit/storage administration. Plain web assets served by C++ service use same auth API; HttpOnly session handling/CSRF/escaping and upload validation/quotas covered. Do not introduce a required third-party hosted service. Plan backup/restore and atomic blob/metadata publication.
Detailed roadmap documents: Bootstrap and SDK; configuration frontend; target/usage graph; profiles/toolchains; snapshots/invalidation; execution/scheduling; state/local cache; modules and compiler features; compilation database/editor selection; build+metadata watchers/CLI; TOML/model/solver/lock; fetching and binary packages; install/export; CMake/Meson/Conan providers; CMake-facing bridge; registry server; registry web UI; testing/benchmarks/CI; self-hosting and VoidLibrary migration; later native foreign graph translation/platform ports. Each gets goals/non-goals, architecture/interfaces, dataflow/invariants/failures, Void reuse/upstream candidates, dependency DAG, exclusive write ownership/configured role, implementation sequence and testable acceptance/commands with truthful status.
Phases: initial docs+bootstrap; core native/snapshots/profiles/compdb; native self-host through stage0->stage1->stage2 and VoidLibrary native migration; full modern C++ and package/adapters/bridge; registry API/UI and full-v1 hardening. Some are parallel after frozen contracts. All selected v1 features remain release gates; later native graph translation, Windows/macOS and remote caching/distributed execution are separately planned future work. Translator must prove complete graph support for a documented subset or explicitly use foreign fallback; compile_commands is not a build graph.
Initial checks (NEW planned after files exist): dev cpp-gcc -c cmake -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DVBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary ; dev cpp-gcc -c cmake --build build/bootstrap ; dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure ; CLI help/version/error and SDK example tests. Local override/path is test convenience, committed defaults pin upstream. Validate both default pinned upstream fetching in a separate clean bootstrap directory and the local override, without widening permissions on a fetch failure. Review actual nonzero generated test registration and count because Void tests use CMake scanner; unique test stems avoid known collision. A future native C++ registration generator replaces CMake during strict self-host testing. No full project build/test yet; root observed syntax-only GCC check success for Void Argparse/Testing headers + reflection, and tool versions. Strict native self-host stages rebuild VBS plus its required VoidLibrary closure in clean stage directories, run tests, and demonstrate no CMake use or reuse of bootstrap-produced project artifacts after the shim stage. No bit-identical binary claim is required. Future adversarial tests include time/path macro equivalence, concurrent lock updates and changed declarations, no-Git helper discovery, forbidden foreign configure during metadata watch, per-profile target facts, snapshot mutation/symlink/header shadowing, removed archive members, modules, selector races/crash recovery, TOML conflicts/solver oracle/lock/offline/ABI, foreign public/private linkage, registry auth/uploads/XSS/CSRF, stage self-hosting.
+48
View File
@@ -0,0 +1,48 @@
# Decision ledger
All dates: 2026-11-25. CONFIRMED means user-selected; APPROVED DEFAULT means root
technical choice included in the approved plan; REVISED records preflight corrections.
| ID | Status | Decision and consequence |
| --- | --- | --- |
| D-001 | CONFIRMED | Linux first, native executor, GCC/Clang target drivers; other desktop OSes later. |
| D-002 | CONFIRMED | C++26/GCC16 host baseline matching VoidLibrary. |
| D-003 | CONFIRMED | Ordinary build.cpp with cpp/hpp helpers; root may choose internal API. |
| D-004 | CONFIRMED | Conventional include/src/source plus explicit/glob/custom layouts. |
| D-005 | CONFIRMED | Core targets plus modules/header units/PCH/unity/LTO/sanitizers in full v1. |
| D-006 | CONFIRMED | Reliable one-shot builds and explicit rebuilding watch. |
| D-007 | CONFIRMED | Content verification and immutable execution input snapshots. |
| D-008 | CONFIRMED | Multiple selected targets/profiles coexist inside one build directory. |
| D-009 | CONFIRMED | Per-profile compile databases, manual swapping, automatic refresh and independent metadata watcher. |
| D-010 | CONFIRMED | Editor selection follows latest single-profile build; multiple profiles need explicit editor-profile. |
| D-011 | CONFIRMED | Native package manager owns version solving and source/binary packages. |
| D-012 | CONFIRMED | Dependency declarations in C++ and parsed files such as TOML. |
| D-013 | CONFIRMED | CMake/Meson/Conan run-and-import first; native foreign graph translation later. |
| D-014 | CONFIRMED | Both C++ convenience dependency API and CMake-facing FetchContent/CPM-style integration. |
| D-015 | CONFIRMED | Hosted registry service plus web administration required. |
| D-016 | CONFIRMED | Void-first with focused extra dependencies/wrappers; mark upstream candidates. |
| D-017 | CONFIRMED | Local cache first; remote build cache/distributed workers deferred. |
| D-018 | CONFIRMED | Self-hosting required; CMake shim allowed for seed; self + VoidLibrary first adoption targets. |
| D-019 | CONFIRMED | Initial delivery includes detailed plans and compiling bootstrap skeleton. |
| D-020 | CONFIRMED | MIT license; use existing dev / dev cpp-gcc environment. |
| D-021 | APPROVED DEFAULT | CLI vbs; separate configuration process with versioned declarative protocol. |
| D-022 | REVISED | Profile discovery then per-context evaluation; host preprocessor is not a target selector. |
| D-023 | REVISED | Helpers selected by filesystem membership, including archive/no-Git operation. |
| D-024 | REVISED | Canonical timestamps/epoch/path mapping; nonreuse for nondeterministic actions. |
| D-025 | REVISED | Atomic revision-checked project lock updates and one immutable lock revision per build. |
| D-026 | REVISED | Metadata watcher never runs foreign configure/build/install/fetch or lock updates. |
| D-027 | APPROVED DEFAULT | SHA-256 identities, SQLite adapter, TOML1.0/toml++ and native PubGrub-style solving planned. |
| D-028 | APPROVED DEFAULT | C++ registry with filesystem CAS and SQLite; ordinary browser assets use same authenticated API. |
| D-029 | APPROVED DEFAULT | Loopback development, reverse-proxy TLS for eventual hosting; deployment separately authorized. |
| D-030 | APPROVED DEFAULT | Compdb editor projection is distinct from exact snapshot execution records. |
| D-031 | APPROVED DEFAULT | Source bootstrap pin 9931c5f; static selected Void modules; no incidental VoidLibrary changes. |
## Approval and deferred actions
The user approved the complete proposal with "Implement the plan". This authorizes
the initial local delivery described in APPROVED_PLAN.md, not a claim that the entire
v1 roadmap is finished. No remote repository, commit, push, deployment or changes to
the global Nix-managed agent installation have been requested.
No deadline, paid infrastructure or performance SLA was supplied. Prefer measured
correctness first; document measurements before promising numerical performance.
+36
View File
@@ -0,0 +1,36 @@
# Architecture preflight
Date: 2026-11-25. Mode during review: read-only planning.
Configured roles: astra_planner and astra_researcher at XHigh; fresh
astra_reviewer at XHigh. Runtime model identity was not independently exposed.
No application diff existed during preflight.
P-001 mapped the native engine, action/input invariants and self-host stages.
R-001 inspected VoidLibrary 9931c5f and identified process-cleanup, basic-watcher,
test-registration and hashing/persistence boundaries.
P-002 reconciled immutable snapshots, package/registry scope, profiles and
editor projection with the bounded bootstrap.
## V-001: CHANGES_REQUIRED
| Finding | Required correction | Disposition in V-001-R1 |
| --- | --- | --- |
| P1 compiler-visible time/path inputs | Explicit epoch, canonical timestamps, path mappings, nonreuse for nondeterministic actions | Resolved at contract level |
| P1 shared lock updates and stale declarations | Project coordination, compare revisions, atomic publication, validate context, pin one lock payload per build | Resolved at contract level |
| P2 helpers outside Git checkout | Filesystem membership plus source manifests and explicit helper inputs | Resolved at contract level |
| P2 metadata-only provider side effects | Only cached foreign metadata; no foreign configure/build/install/fetch; explicit stale status | Resolved at contract level |
| P2 host/target evaluation semantics | Profile discovery followed by separate evaluations with runtime target/toolchain facts | Resolved at contract level |
## V-001-R1: READY — preflight only
The reviewer found all five previous issues resolved and no new material
blockers. This is approval of planning contracts, not runtime correctness,
implementation acceptance, release, push or deployment.
It requires later integrated-diff review and observed build/test evidence.
Source evidence: assigned VoidLibrary source/headers/CMake files at the pinned
HEAD, with stale/partial graph results checked against source. No full build
or runtime tests were run during preflight. The root's syntax-only GCC probe
passed; it did not establish linkage or runtime behavior.
Final implementation review will be recorded separately.
+68
View File
@@ -0,0 +1,68 @@
# Integrated review and finding dispositions
Scope: initial bootstrap, declaration SDK, tests and complete planning documents.
Baseline: unborn main; actual added files were reviewed, not an empty git diff.
Reviewer: configured astra_reviewer at XHigh, independent of implementation.
Runtime model identity was not independently reported. No source changes were made
by the reviewer. Task contracts: [V-002](tasks/V-002.md), [V-002-R1](tasks/V-002-R1.md).
## V-002 — CHANGES_REQUIRED
The reviewer inspected actual code, tests, README/SDK contracts and all twenty
plans. It found no P0/P1 defects and one P2 encoding defect. Existing bootstrap
behavior, selected dependency pin/modules, meaningful test registration and honest
current/future boundaries were accepted subject to that correction.
The reviewer directly ran all four CMake contract scripts against the pinned
bootstrap executables: exit 0, initially 15 SDK cases, 16 CLI cases, four runtime
contexts and six descriptor error cases. It checked dependency HEAD/cleanliness,
generated linkage/registration and prior build evidence. It did not repeat a fresh
configure/build; root and worker supplied that observed evidence.
### P2: invalid UTF-8 could escape through JSON serialization
The original quote() escaped ASCII controls but copied other bytes unchanged.
A nonempty target name containing 0xff therefore produced a result that strict
UTF-8 consumers could not decode. Void's JSON parser did not independently validate
those raw bytes, so the original roundtrip test could miss the problem.
Root reproduced this before editing: a compiled SDK harness exited 0 and emitted
bytes rejected by Python's strict UTF-8 decoder. Root then added centralized UTF-8
validation before quoting, preserved valid Unicode, rejected malformed sequences
with std::invalid_argument and documented the encoding boundary. No new dependency
was added. The SDK remains a declaration subset with no path transcoding policy.
Two new SDK cases cover valid multibyte boundaries and 21 malformed sequences
across names, source paths, option keys/values and profile flags. Registration/count
checks now require 17 cases. Both build modes and all four CTest checks passed after
the change. An independent one-off Python oracle agreed on 71,803 inputs, including
every one/two-byte string, explicit boundaries and deterministic random samples.
Disposition: correction implemented and verified by root; accepted by V-002-R1.
## V-002-R1 — READY
The independent reviewer inspected the changed validator, tests, registration and
encoding contract. It confirmed bounds/unsigned-byte handling, rejection of malformed
Unicode, preservation of valid scalars and central validation for every JSON string.
No new material findings; the original P2 is resolved.
It independently ran RunSdkTests.cmake and SdkRegistration.cmake against the pinned
binary, both exit 0: 17/17 cases and expected registrations. A separate read-only
Python subprocess check of the existing oracle passed 26 inputs (11 valid roundtrips,
15 exact rejections, including 0xff). An initial reviewer wrapper assertion omitted
the harness's prefix marker; inspecting output and correcting that assumption fixed
the check without a product change.
The reviewer checked both final build and CTest logs: local and pinned modes passed
4/4. It did not repeat rebuilds/formatting/full CTest or root's larger oracle; those
remain root-observed evidence. Conclusions use actual source because graph coverage
is stale. The reviewer changed no files and is now closed. No further correction
review was required. Initial delivery is accepted; no unresolved P0/P1/P2 findings.
## Acceptance boundary
A READY result applies to this initial milestone only. Native builds, automatic
metadata/profile selection, dependencies/TOML resolution, watchers, registry and
self-hosting remain future implementation. Review never authorizes staging, commit,
push, deployment or unrelated changes.
+40
View File
@@ -0,0 +1,40 @@
# Development state
Updated: 2026-11-25
Branch: main
HEAD: unborn; no commits
Stage: VERIFIED — initial bootstrap and documentation complete
Baseline: only .serena metadata existed; it is preserved and ignored.
Git initialized locally. No remote configured, no staging/commit/push authorized.
## Completed delivery
- Root: integrated source inspection, verification evidence and final acceptance.
- T-001: compiling bootstrap and declaration SDK complete; source ownership
returned to root. The configured sol_implementer worker is closed.
- README, SDK contract, requirements, architecture and twenty plans are written.
- V-002 found one P2 UTF-8 serialization defect; root reproduced and corrected it.
V-002-R1 returned READY with no remaining material findings. See REVIEW.md.
- Both implementation and review workers are closed. No active file ownership
remains outside root; no required initial-delivery work remains.
## Next milestone
Implement the native configuration frontend and prerequisite graph/profile models
from plans 02–04, with the snapshot/state contracts from 05/07. Prepare new scoped
tasks against the actual repository and obtain the next milestone's scope approval.
The existing initial approval does not mark future features complete. No unanswered
decision blocks the delivered bootstrap and plans.
## Confirmed boundaries
See APPROVED_PLAN.md and PREFLIGHT.md. The initial skeleton must report its
limited capabilities honestly. Native execution, TOML resolution, snapshots,
watching, packages, registry and self-hosting remain roadmap work.
## Evidence
Local-source and independent pinned-upstream bootstrap builds passed. Each ran
four CTest checks; the final SDK suite executes 17 cases. Exact-source formatting and
documentation/requirement checks passed. See VERIFICATION.md for commands,
provenance and limits. No native build or native self-host has run.
+35
View File
@@ -0,0 +1,35 @@
# Task graph and ownership
Baseline: main, unborn HEAD. Shared checkout; workers do not have isolated worktrees.
| Task | Status | Owner | Exclusive writes / dependencies |
| --- | --- | --- | --- |
| T-ROOT-INIT | COMPLETE | Root Astra | Git initialization, LICENSE, AGENTS.md, ignores; preserves .serena |
| T-DOC | COMPLETE / VERIFIED | Root Astra | README.md; docs/SDK.md; twenty plans; workflow records; integrated review accepted |
| T-001 | COMPLETE / VERIFIED | sol_implementer (configured XHigh), now closed | 19 source/config/test files; full spec in tasks/T-001.md; ownership returned to root |
| T-INTEGRATE | COMPLETE / VERIFIED | Root Astra | Actual additions inspected, local + pinned builds, test evidence, source override integrity; review correction verified |
| V-002 | CHANGES_REQUIRED, resolved by R1 | Fresh astra_reviewer (configured XHigh) | One P2 UTF-8 defect; root correction in source/tests/docs; see REVIEW.md |
| V-002-R1 | READY / CLOSED | Same independent astra_reviewer | Correction and 17-case registration accepted; full linted spec in tasks/V-002-R1.md |
T-001 owns root CMake/shared SDK during bootstrap only. After handoff, root serializes
changes to those interfaces, dependency pins and generated registrations. Worker
used build/worker-bootstrap; root used build/bootstrap-pinned. No active worker
owns source writes. All workers are closed; root accepted the initial milestone.
Role routing is configured, not independently model-verified. Later roadmap work
requires new assignments; these completed tasks grant no continuing write ownership.
## Subsequent implementation waves
The numbered roadmap documents specify interfaces, prerequisites and proposed
bounded ownership. They are not live worker assignments. Write and lint a complete
task contract against the then-current HEAD before dispatching any future wave.
A: bootstrap -> native frontend + graph + profiles + snapshots/state.
B: those contracts -> scheduler + compiler drivers; compdb can use graph fixtures.
C: native core + basic dependency import -> staged self-host and VoidLibrary.
D: complete modern C++ + solver/fetch/packages + all foreign adapters/CMake bridge.
E: package/API contracts -> registry service -> administration UI; v1 hardening.
F: explicitly scoped foreign graph translation and additional OS ports.
Use Astra for tightly coupled snapshot/execution/module risks; Sol for bounded
features; fresh reviewers for preflight and final integrated acceptance.
+155
View File
@@ -0,0 +1,155 @@
# Verification record
Record cwd, exact command, exit status, results and limits. Planned checks are not
evidence. Never treat a zero-test run as test success.
## Planning evidence (observed)
- VoidLibrary local main and remote main matched
9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5; tracked tree clean.
- dev cpp-gcc exposed GCC16.2.0, CMake4.4.4, Ninja1.13.2, Meson1.12.1.
- dev cpp exposed Clang23.1.3. Conan was absent from cpp-gcc.
- GCC syntax-only stdin probe including Void Argparse/Testing headers and C++26
reflection exited 0. It did not link or execute a program.
- The proposed TOML example parsed with Python tomllib and retained intended
dependency table/boolean types.
- Architecture review V-001-R1 READY, preflight only.
## Initial implementation
- cwd /home/faumaray/Projects/VoidBuildSystem:
git init -b main -> exit 0, unborn main.
- T-001 tasklint -> exit 0. Semantic contract checked by root.
- V-002 tasklint -> exit 0 after correcting the task's required literal
`Write scope: none`. Semantic contract checked by root.
- V-002-R1 tasklint -> exit 0; root checked semantics and scope.
- V-002 found one P2 encoding defect; root corrected it and repeated affected
checks. V-002-R1 returned READY; no material findings remain. See REVIEW.md.
## Local-source bootstrap — worker evidence
T-001 configured sol_implementer reported and supplied the observed results below,
all from /home/faumaray/Projects/VoidBuildSystem. Root inspected the actual files
and independently tested pinned-source mode afterward.
```sh
dev cpp-gcc -c cmake -S . -B build/worker-bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DVBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure
```
All three exited 0; CTest passed 4/4. The override's tracked source remained clean.
Void Testing headers produced missing-field-initializer warnings, without test or
build failures. No dependency code was changed to suppress them.
## Pinned upstream bootstrap — independent root evidence
Same cwd. Default HTTPS FetchContent populated a separate clean build directory:
```sh
dev cpp-gcc -c cmake -S . -B build/bootstrap-pinned -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure
git -C build/bootstrap-pinned/_deps/voidlibrary-src rev-parse HEAD
git -C /home/faumaray/Projects/VoidLibrary diff --stat HEAD
```
All exited 0. The initial asynchronous build's final status was unavailable after
context handoff, so root repeated the build command: Ninja reported no work to do
and exited 0. CTest then passed 4/4. The fetched HEAD was exactly
9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5; the local source's tracked diff was empty.
Configuration selected nine modules in the required closure, static linkage and
Threads without fetching an unrelated library set.
## Behavior verified
| Check | Observed coverage |
| --- | --- |
| vbs_sdk_tests | Final 17 cases executed and passed: records, typed options, validation, source spelling, vector growth, owner lifetime, cross-owner rejection, JSON/control/UTF-8 handling and example contexts |
| vbs_sdk_registration | Expected named cases listed; a named JSON case executed; zero registration cannot pass |
| vbs_cli_contract | 16 exact exit/stdout/stderr contracts, including no args/help/version and unsupported/invalid requests |
| vbs_description_contract | Four debug/release × GCC/Clang runtime contexts, expected JSON contents/types, six error contracts |
Before review, root also ran `build/bootstrap-pinned/bin/vbs_sdk_tests --no-color`: exit 0,
15 discovered and 15 passed. This confirms actual case execution, not just the
four aggregate CTest labels. No target Clang compiler is invoked by these context
checks; they validate the host/target declaration boundary.
## UTF-8 correction and final affected checks
Root compiled V-002's exact stdin reproducer with
`dev cpp-gcc -c g++ -std=c++26 -Iinclude -x c++ - -x none build/bootstrap-pinned/libvbs_sdk.a -o build/bootstrap-pinned/utf8-repro`.
Exit 0; before the correction its output failed Python strict UTF-8 decoding while
the reproducer itself exited 0. This established the review finding at runtime.
After correction, root repeated the following, each exit 0:
```sh
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure
```
Build output was captured in each directory's review-build.log. Both CTest runs
passed 4/4, with the expanded 17-case suite. The exact-file clang-format check below
also passed again. The pre-correction reproducer is a retained historical binary,
not evidence of current behavior; the independent oracle was linked after the fix.
Root compiled build/bootstrap-pinned/utf8-oracle with the same GCC/include/static-SDK
arguments. Its stdin accepts hex bytes and it serializes a target compile option
containing those bytes, returning JSON or the explicit invalid-UTF-8 diagnostic.
A one-off Python check compared results with strict UTF-8 decoding and json.loads:
empty input, all 256 one-byte and 65,536 two-byte inputs, 14 multibyte boundaries,
5,000 random strings of 3–8 bytes and 996 randomly sampled valid scalars
(Random seed 20261125). Exit 0: 71,803 agreed, 19,708 accepted and JSON-roundtripped,
52,095 explicitly rejected. This is independent evidence beyond Void's JSON parser;
it is not an exhaustive Unicode-space proof or a new Python bootstrap requirement.
## Formatting and documentation
Root ran this exact-file check, exit 0:
```sh
dev cpp-gcc -c clang-format --dry-run --Werror include/vbs/build.hpp src/build.cpp src/main.cpp src/describe.cpp build.cpp build.profiles.cpp build-support/defaults.cpp build-support/defaults.hpp tests/SdkDeclarations.cpp tests/ExampleContexts.cpp
```
A read-only Python check enumerated README.md, AGENTS.md and docs/**/*.md; checked
relative Markdown link destinations; asserted twenty numbered plans and their
seven required sections; compared plan R-IDs with REQUIREMENTS.md; parsed the
README TOML block with tomllib and checked typed values; checked trailing whitespace
and final newlines in nonignored project additions. Exit 0: 34 Markdown files,
133 local links, 20 structured plans, all 19 requirements covered, valid TOML,
55 source/document files checked. Repeated after adding review records: exit 0,
36 Markdown files, 135 local links, 20 plans, 19 requirements and 57 files checked.
All three persisted task contracts passed tasklint together. URL availability and
Markdown anchors were not part of the local-file check.
`git check-ignore build-support/defaults.cpp build/worker-bootstrap/bin/vbs`
listed only the build executable. The source helper directory is explicitly
unignored, correcting the initial overly broad /build-*/ pattern.
## Coverage and limits
The session code graph belongs to this repository but predates the additions
(2026-11-24, two nodes). search_graph found no SDK symbols. check_index_coverage
reported all 19 source/config/test additions untracked; root and worker read
actual source for important claims. No stale graph was treated as code evidence.
Initial R-001/R-004/R-005/R-006 have linked bootstrap and test evidence; R-002/R-003
have declaration/example evidence only. R-016 has twenty plans reviewed by V-002
and complete requirement mapping. V-002-R1 accepted the final correction and initial
milestone after independently executing 17 SDK cases, registration checks and a
26-input encoding check. Full details and evidence limits are in REVIEW.md.
R-017 has LICENSE. Other product requirements remain planned, not verified features.
Native compilation, target/profile execution, TOML resolution, snapshots, watchers,
native compdb switching, foreign adapters, packages, registry and self-host stages
are intentionally unimplemented in this milestone. Their planned tests have not run.
Conan is absent from the inspected dev environment. No remote repository, staging,
commit, push or deployment occurred. Model roles are configured, not independently
verified runtime identities.
Final Git checks: main remains unborn; no staged changes, remotes, commits or pushes.
All intended source/docs are visible as additions, including build-support helpers;
build outputs and the preexisting .serena directory remain ignored/preserved.
+57
View File
@@ -0,0 +1,57 @@
# Implement the compiling bootstrap and declaration SDK
Task ID: T-001
Role: sol_implementer
Status: APPROVED
## 1. Context and baseline
Root/cwd /home/faumaray/Projects/VoidBuildSystem, main, unborn HEAD. Root just initialized Git. Preexisting .serena metadata is preserved and ignored; no application files existed. Root created AGENTS.md, LICENSE, .gitignore and docs/agent-workflow records. Read those applicable instructions. User approved "Implement the plan": initial delivery is detailed plans plus a compiling bootstrap skeleton, NOT the entire future build engine. P-001/P-002 planning and V-001-R1 fresh preflight READY completed; records persisted. Requirements: R-001 C++/VoidLibrary, R-002 cpp/hpp descriptions, R-003 profiles/host-target split, R-004 honest bootstrap, R-005 tests, R-006 pinned source. All interfaces below are NEW.
## 2. Objective and deliverables
Create a real CMake-built vbs CLI, minimal declaration SDK, compile-tested root build.cpp/build.profiles.cpp with reusable helper cpp/hpp, a description harness emitting versioned JSON, and meaningful Void::Testing/CTest tests. Complete local-source bootstrap verification. Root separately writes all documentation and runs pinned-source integration.
## 3. Scope and non-goals
Implement only declaration/data recording and bootstrap infrastructure. Do not implement native compilation, snapshots, source glob expansion, automatic config compilation, solver, TOML loading, watchers, native compdb selection or registry. Do not fake those features. CLI native build/test/compdb/deps/watch requests must fail clearly with nonzero status. Do not modify VoidLibrary or global installation.
## 4. Files to inspect
AGENTS.md and docs/agent-workflow/APPROVED_PLAN.md/PREFLIGHT.md in new repo. Dependency /home/faumaray/Projects/VoidLibrary main HEAD 9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5, tracked clean, matches remote. Relevant verified paths: CMakeLists.txt (CMake>=4, C++26, selectable VOID_ENABLED_MODULES), cmake/Module.cmake, cmake/VoidTesting.cmake and VoidTestScanner.cmake, include/Void/Configuration/Argparse.hpp and src/Configuration/Argparse.cpp, src/Configuration/module.cmake, src/Testing/module.cmake, include/Void/Testing/Test.hpp and Assert.hpp, tests/standalone/Configuration/Argparse.cpp. Optional JSON test validator include/Void/Data/StrictJson.hpp already exists. Never inspect dependency .env/WG.conf/keys/.serena or other untracked data.
## 5. Write ownership and coordination
Write scope: CMakeLists.txt; cmake; include; src; tests; build.cpp; build.profiles.cpp; build-support; .clang-format
You share this checkout; root is writing README/AGENTS/LICENSE/ignores and all docs concurrently. Do not edit those or revert anyone's work. No commit/stage/push, branch switches, worktrees, activation/index changes or children. Your build artifacts belong only under build/worker-bootstrap; root uses separate build directories. Root owns shared files/pins after handoff.
## 6. Implementation or investigation approach
1. Inspect existing dependency APIs before coding. Use CMake>=4.0, project version 0.1.0, C++26, no extensions, GCC16+ host as supported bootstrap. Propagate required -freflection to own targets when using GNU>=16; useful early compiler diagnostics.
2. FetchContent default public HTTPS Git https://git.faumaray.com/Void/VoidLibrary.git at exact SHA 9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5 (not floating/shallow incompatible pin). VBS_VOID_SOURCE_DIR optional local source override, validate directory/CMakeLists and document bypass in diagnostic. Use explicit local MODULE selection Configuration;Testing (Testing only when VBS_BUILD_TESTS ON is reasonable), VOID_ENABLE_TESTING OFF, VOID_ENABLE_BENCHMARKS OFF, BUILD_SHARED_LIBS OFF for dependency without changing unrelated parent state. No root-wide dependency download/install outside build artifacts.
3. CLI uses actual Void::Argparse::Parser, help/version exit0, no args help0, invalid/unsupported requests exit2 and useful message. Parser returns help text as unexpected; treat standalone -h/--help as success deliberately. Avoid claiming help-listed roadmap commands are implemented.
4. Add a lightweight ordinary C++ SDK per interfaces below. Handles must survive vector growth, cannot accidentally refer to another Project, and cannot outlive or be silently rebound to moved owner storage. Prefer index+owner handles with owner nonmovable if simplest. No deferred graph callbacks crossing the process boundary.
5. Root build.cpp describes at least vbs_sdk static library and vbs executable, selected VoidLibrary dependency, source sets/public include dirs and link relationships. build.profiles.cpp defines debug/release defaults; build-support cpp/hpp supplies reusable helper. Context-dependent flag difference must be driven by runtime context.compiler, never host preprocessor.
6. Add vbs_describe example executable built by CMake from root descriptor, profiles and helpers. It accepts --profile debug|release and --compiler gcc|clang, constructs runtime context and emits graph JSON; it DOES NOT invoke those target compilers. Unknown profile/compiler exit2. It proves SDK/example boundary, not a general native configure command.
7. Use Void::Testing for SDK tests, explicit void_add_tests(target) loaded from dependency script when needed, with unique source stems. Add CTest CLI process contract checks checking exact exit/output, not WILL_FAIL alone. Inspect real runner options before testing registration count; assert at least the expected named cases execute.
8. Format exact owned C++ files with dev cpp-gcc -c clang-format -i <paths>, run local-source configure/build/ctest in assigned directory, fix issues within scope. No additional libraries needed for this skeleton.
## 7. Interfaces and data contracts
Public umbrella include/vbs/build.hpp, namespace vbs; free entry void build(vbs::Project&) and void profiles(vbs::Profiles&) for optional profile source; SDK supplies debug/release defaults when custom profiles absent in later native frontend.
Define explicit ProfileContext with name, compiler family (gcc/clang), target OS and architecture, effective compile options. Project::context() returns runtime facts. Profiles records distinct named profile descriptions. A helper resolves name + compiler override to an effective context, rejecting unknown names.
Project::executable(name), static_library(name), dependency(name), glob(pattern) are declaration operations. Target handles support sources(source set), include_directory(path, visibility), compile_option(string), link(local target or imported target, visibility). Default private linkage; visibility enum. Dependency handles support git(url, Commit{sha}), cmake(option map), package(id, range), target(exported_name). A SourceSet distinguishes explicit file and glob, retaining spelling without filesystem reads. Typed option values support string, bool and integer.
Use concrete records inspectable by tests. Reject duplicate/empty identifiers, invalid cross-project links and contradictory source-provider declarations. Full graph cycle/usage propagation belongs to later plan.
Graph serialization schema version 1: top-level schema_version, profile, targets, dependencies. Profile includes name/compiler/os/architecture and effective options. Targets include name/kind/source records/include directories/options/link records with visibility. Dependencies include name/source kind+location+revision OR package+version; builder and typed options. Escape JSON correctly; deterministic declaration order; integer schema_version (not string). Implement to_json(Project) or Project::to_json consistently and expose schema_version constant. Roundtrip tests with StrictJson can validate structure.
No TOML parser now: documentation will label project.dependencies("vbs.deps.toml") as planned. No filesystem enumeration or dependency download while constructing descriptors.
## 8. Dependencies and integration
Configuration closure observed: Core, Functional, System, Data, Time, LogState; Data also pulls Math; external Threads only. Testing optionally sees selected Configuration but no intentional Boost dependency. Verify actual CMake configuration. Root integrates final files and creates docs using your actual public names; return exact APIs/commands. root preflight has approved these bootstrap boundaries.
## 9. Edge cases security and performance
No shell command interpolation from user values. Avoid source-root writes for generated registrations, version information or compile_commands. Never hardcode /home/faumaray paths in defaults. Local override does not alter source dependency. File/test names must avoid scanner stem collisions. Reject malformed CLI input and cross-owner handles. Correctly escape quotes, backslashes, newline/control characters in JSON. Keep handles valid after additions. Installed/public configuration context is separate from target facts. Don't add silent fallbacks to downloaded/compiler versions.
## 10. Acceptance criteria
1. CLI builds/links with actual pinned/local VoidLibrary and implements help/version/error contracts.
2. Root example/helper/profile sources compile through CMake.
3. Same host-built descriptor emits different correct GCC/Clang and debug/release graph contents.
4. Serialization parses as schema v1, preserves typed option values and escaped strings; handles remain correct after container growth.
5. Real SDK tests register and execute nonzero cases; CLI process checks catch wrong exit status.
6. Unsupported native build/compdb/dependency/watch commands fail honestly.
7. No unowned files or external repository changes.
## 11. Verification commands and evidence
cwd /home/faumaray/Projects/VoidBuildSystem. Existing dev commands verified: dev cpp-gcc supplies GCC16.2/CMake4.4.4/Ninja1.13.2 and clang-format; dev cpp supplies Clang23.1.3. No old project runner existed. NEW commands once your scaffold creates targets:
dev cpp-gcc -c cmake -S . -B build/worker-bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DVBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure
Run actual executable paths discovered from generated targets (prefer build/worker-bootstrap/bin/vbs, vbs_describe, vbs_sdk_tests as runtime output locations). Record outputs and test count. These write only build artifacts plus your owned files. Root will independently verify pinned upstream mode. No Nix flake evaluation beyond user-authorized dev wrapper.
## 12. Constraints and stop conditions
Stop and report unexpected source mutation, scope conflicts, missing dependency APIs or unsupported compiler prerequisites. Do not weaken tests or fix VoidLibrary. After two failed repair cycles on the same issue, stop that approach and return errors/current owned diff so root can assign Astra re-diagnosis. No models/roles substitutions, no extra agents.
Graph source discovery for dependency: exact-file search only; index home-faumaray-Projects-VoidLibrary is stale/partial, use check_index_coverage for each relied source, verify reported missed lines directly and do not reindex. Keep active Serena project VoidBuildSystem.
## 13. Authorization and decisions
User approved full proposal with "Implement the plan"; current deliverable is docs + bootstrap. MIT confirmed. Root owns docs and integration. Jev sol_implementer candidate is compatible; role configured XHigh, runtime identity not independently verified. No deployment/stage/commit authorization.
## 14. Return format
Return T-001 DONE/BLOCKED/PARTIAL, files changed, public APIs and executable paths, actual commands/cwd/exit and test counts, deviations, unrun checks, residual risks, integration notes. Do not spawn children.
+66
View File
@@ -0,0 +1,66 @@
# Re-review the UTF-8 graph serialization correction
Task ID: V-002-R1
Role: astra_reviewer
Status: APPROVED
## 1. Context and baseline
Repository/cwd /home/faumaray/Projects/VoidBuildSystem, main, unborn HEAD; all additions remain untracked. You completed independent V-002 with one P2 finding: quote() could emit malformed UTF-8 JSON. No other material defects were found in the bootstrap and twenty plans. Root reproduced the defect and made the bounded correction below. This is a follow-up review by the same nonimplementing reviewer, not a new implementation assignment.
## 2. Objective and deliverables
Determine whether V-002's encoding defect is resolved without regression and whether the initial bootstrap/documentation milestone can now be accepted. Return READY, CHANGES_REQUIRED or INSUFFICIENT_EVIDENCE with actual source/test evidence. No file edits.
## 3. Scope and non-goals
Review changed serializer validation, encoding contract, tests and registration counts, plus their integration with previous CLI/description checks. Do not repeat the entire architectural review or require native engine features. V-002 remains the baseline review of unaffected files.
## 4. Files to inspect
src/build.cpp: new require_utf8() called by quote() for every serialized string/key.
include/vbs/build.hpp: to_json encoding contract comment.
tests/SdkDeclarations.cpp: json_preserves_valid_utf8 and json_rejects_malformed_utf8.
tests/RunSdkTests.cmake and tests/SdkRegistration.cmake: count 17 and two named cases.
docs/SDK.md: JSON encoding policy and non-UTF-8 path limitation.
Read docs/agent-workflow/tasks/T-001.md and V-002.md for original scope; actual pre-correction source was already reviewed by you. Root may update STATE/TASKS/VERIFICATION and persist the review disposition while you review.
## 5. Write ownership and coordination
Write scope: none
Shared checkout. Source, tests and SDK documentation are frozen during this review. Root owns all integrated files and is updating workflow records only. No stage/commit/push/reset/clean, branches, extra agents, Serena activation or reindex. Any extra repro requiring new files must be returned as text for root.
## 6. Implementation or investigation approach
Inspect validator bounds and Unicode scalar rules, preservation of valid bytes, no partial-return behavior and central quote coverage. Confirm rejection of stray/invalid leads, truncated sequences, invalid continuation, overlong forms, surrogates and values above U+10FFFF. Inspect tests as code, including valid boundary sequences, malformed strings in names/source paths/option keys/option values/profile flags and unchanged ASCII/control tests. Verify tests register/execute 17 bodies. Use bounded existing tests if helpful; do not repeat completed broad checks without a new concern.
## 7. Interfaces and data contracts
Schema_version remains 1. All serialized strings and keys must be valid UTF-8; Project::to_json() throws std::invalid_argument with "JSON string contains invalid UTF-8" on malformed encoding. Declaration methods may record raw bytes; failure occurs at serialization before returned JSON. Valid Unicode bytes are preserved and ASCII controls still escaped. This is a bug correction to valid JSON output, not a new source-encoding conversion. Non-UTF-8 filesystem paths require future explicit policy.
## 8. Dependencies and integration
SDK remains standard-library-only; no new runtime/test dependency was introduced. Existing Void::Json::Strict is used for structural roundtrip tests but is not treated as an independent UTF-8 validator. Root ran Python strict UTF-8/JSON as a one-off independent oracle against a compiled SDK harness in ignored build/bootstrap-pinned; Python is not a bootstrap dependency. Existing pinned/local VoidLibrary source remains unchanged.
## 9. Edge cases security and performance
Bounds checks must prevent truncated-input access. Unsigned byte handling must avoid signed-char errors. Reject surrogate/overlong/out-of-range scalars and preserve legitimate U+10FFFF and noncharacters. Empty UTF-8 strings are valid where the field otherwise permits them; declaration name validation remains separate. Validation is linear in string bytes; no normalization, replacement or silent transcoding. Ordinary user C++ remains trusted.
## 10. Acceptance criteria
1. V-002 P2 is demonstrably fixed: raw 0xff no longer crosses the JSON boundary.
2. Valid 1/2/3/4-byte boundary encodings and existing ASCII/control behavior are preserved.
3. Meaningful malformed-input tests and 17-case registration pass.
4. Both dependency modes still pass all four CTest checks; current header/docs match behavior.
5. No new material defects in changed code; findings have severity, trigger, expected/actual behavior and evidence.
## 11. Verification commands and evidence
All commands ran in /home/faumaray/Projects/VoidBuildSystem.
Before fix, root compiled your exact stdin reproducer against build/bootstrap-pinned/libvbs_sdk.a with dev cpp-gcc -c g++ -std=c++26 -Iinclude; program exit0 and Python strict decode failed as predicted.
After fix:
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2 -> exit0 (log build/bootstrap-pinned/review-build.log).
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2 -> exit0 (log build/worker-bootstrap/review-build.log).
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure -> exit0, 4/4.
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure -> exit0, 4/4.
Exact ten C++ source/header clang-format --dry-run --Werror command from V-002 -> exit0.
Independent harness build/bootstrap-pinned/utf8-oracle accepts newline-delimited hex bytes and emits one JSON line or "! JSON string contains invalid UTF-8". Root tested empty + every one/two-byte string + 14 boundary sequences + 5000 seeded random byte strings + up to 1000 random valid scalars (seed 20261125). 71803 cases agreed with Python strict decoding; 19708 accepted/JSON-roundtripped, 52095 rejected. Not a persisted application test or full Unicode-space proof.
Existing bin/vbs_sdk_tests and bin/vbs_describe/CLI paths remain valid in both build dirs. CTest LastTest.log contains actual counts and bodies.
## 12. Constraints and stop conditions
Read-only source/documents. No dependency or global installation changes. Correct graph project home-faumaray-Projects-VoidBuildSystem remains stale for new files; check coverage and use direct source for missed lines, without reindexing. Shared Serena project stays VoidBuildSystem. Report any verification needing extra authority; do not silently change models or claim runtime identity. Stop if a meaningful issue requires source changes; root owns correction.
## 13. Authorization and decisions
User's "Implement the plan" authorizes this local correction and review within the initial milestone. Root handled the small integration fix under workflow policy. You remain the independent configured astra_reviewer at XHigh and did not implement the correction. No external action, release or deployment is authorized.
## 14. Return format
Return V-002-R1 verdict; resolution of original P2; new findings if any; exact commands/results; evidence limitations and residual risks. State no files changed. Do not spawn children.
+67
View File
@@ -0,0 +1,67 @@
# Review the integrated bootstrap, declaration SDK and initial plans
Task ID: V-002
Role: astra_reviewer
Status: APPROVED
## 1. Context and baseline
Repository/cwd /home/faumaray/Projects/VoidBuildSystem, branch main, unborn HEAD. User approved initial delivery: local Git initialization, detailed subsystem plans and compiling bootstrap; full native engine is later. Baseline contained only preexisting .serena metadata, now preserved/ignored. All project files are newly added and untracked; git diff alone is empty and is not a valid view of the change. Read actual added files. T-001 sol_implementer has completed source work; root owns integrated tree. Previous V-001-R1 was architectural preflight only and does not substitute for this review. Relevant requirements: initial R-001..R-006, R-016, R-017; all other requirements need complete plans and honest future status.
## 2. Objective and deliverables
Perform an independent defect-oriented review of actual integrated code, tests and cross-file documentation contracts. Return READY, CHANGES_REQUIRED or INSUFFICIENT_EVIDENCE, with reproduced defects clearly separated from suspicions. Determine whether initial delivery is usable, truthfully documented and satisfies T-001 and approved scope.
## 3. Scope and non-goals
Review the bootstrap, SDK, example/harness, meaningful tests, documentation/roadmap coverage and dependency isolation. Do not implement features or require the full future native engine now. Do not redesign previously approved v1 choices unless a concrete contradiction prevents the plans from being implemented. Do not recommend merge/release/deployment; no external action is authorized.
## 4. Files to inspect
Read AGENTS.md; docs/agent-workflow/APPROVED_PLAN.md, PREFLIGHT.md, tasks/T-001.md, VERIFICATION.md and DECISIONS.md. Read actual CMakeLists.txt, cmake/VoidDependency.cmake, cmake/bootstrap_config.hpp.in, include/vbs/build.hpp, src/build.cpp, src/main.cpp, src/describe.cpp, build.cpp, build.profiles.cpp, build-support/defaults.cpp, build-support/defaults.hpp, .clang-format, .gitignore, LICENSE. Read tests/CMakeLists.txt, tests/SdkDeclarations.cpp, tests/ExampleContexts.cpp, tests/CliContracts.cmake, tests/DescribeContracts.cmake, tests/RunSdkTests.cmake, tests/SdkRegistration.cmake. Check README.md, docs/SDK.md, docs/roadmap/README.md, REQUIREMENTS.md, ARCHITECTURE.md and numbered 01-20 plans for scope coverage, implementable sequencing and truthful status. STATE/TASKS/VERIFICATION bookkeeping is being finalized by root and is not a source feature diff.
## 5. Write ownership and coordination
Write scope: none
Source/documentation edits are forbidden. Existing build artifacts may be read/executed. If a reproduction needs temporary source, return its exact text for root to execute rather than writing it.
Shared checkout; root concurrently performs documentation-link/requirement checks and updates workflow evidence. Source and product documents are frozen during your review. No Git stage/commit/push/reset/clean/branch changes, external repository edits, children, Serena reactivation or graph reindex. You are not alone in the checkout; do not revert or overwrite anything.
## 6. Implementation or investigation approach
1. Establish baseline from actual Git/status and task contract, then inspect added source files because no commit diff exists.
2. Check SDK owner/index lifetime, error mutation semantics, source/provider contradictions, typed options and deterministic valid JSON. Inspect CLI process errors and declaration context separation. Potential question from root: raw bytes above 0x7f are copied by the serializer; establish whether accepted strings can produce invalid UTF-8 JSON, with severity/contract impact based on evidence rather than an assumed defect.
3. Check pinned FetchContent and explicit override, static selected Void modules, dependency settings scope, generated file locations and host diagnostics.
4. Review tests as code: assertions/registration/counts and output/exit-status checks must test behavior, not only exit zero.
5. Check examples and roadmap preserve all confirmed requirements, with bootstrap limitations explicit. The root build.cpp is intentionally illustrative, not a complete executable self-build.
6. Use existing executables/tests to distinguish any suspected issue, keeping verification bounded. Return actionable corrections and exact paths/lines.
## 7. Interfaces and data contracts
Current NEW SDK contract is T-001 and docs/SDK.md: build(Project&), profiles(Profiles&), runtime ProfileContext, executable/static-library declarations, sources/includes/visibility/local/imported links, Git or package source with typed CMake options, schema_version=1 JSON. Project noncopyable/nonmovable; handles survive vector growth, reject cross-owner/expired use. Borrowed record references have normal vector lifetime. No glob expansion/fetch/compiler execution. CLI help/version/noargs succeed and unsupported native requests exit2. Description compiler selection is target context, not actual host compiler selection.
## 8. Dependencies and integration
VoidLibrary pin 9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5. Local override /home/faumaray/Projects/VoidLibrary matches this HEAD and tracked tree remains clean. Prefer fetched build/bootstrap-pinned/_deps/voidlibrary-src if surrounding dependency code is needed; inspect only specific relevant tracked source/CMake files. Exclude .env, keys, WG.conf, .serena and all external untracked data. Root integrates findings and owns shared schemas/pins. Do not rely on implementer summary without actual source inspection.
## 9. Edge cases security and performance
Relevant boundaries: invalid/unknown CLI input, unknown profile/compiler, type/range errors, quote/control/unicode strings, owner destruction, vector growth, cross-project references, duplicate declarations, unsupported native operations, zero-test false positives, generation outside source tree. No shell interpolation of user values. Ordinary C++ is trusted; no sandbox or complete hidden-I/O guarantee. No full performance SLA for this bootstrap. Future snapshots, lock concurrency, metadata-only foreign restrictions and editor selection races must remain documented contracts.
## 10. Acceptance criteria
1. Initial R-001..R-006: actual Void-linked bootstrap and compiled examples; correct CLI/SDK/protocol behavior; nonzero meaningful tests; both dependency modes supported and verified.
2. R-016: all selected v1 capabilities have distinct detailed plans with interfaces, dependencies, failures and acceptance, and current vs future status is unambiguous.
3. R-017: MIT file present; local Git initialized without staging/commit/push.
4. No material source/test/document contradiction or unintended dependency/source mutation.
5. Every finding has severity, location, trigger, expected/actual result, evidence and a bounded correction/check. A suspicion alone is not a reproduced bug.
## 11. Verification commands and evidence
cwd /home/faumaray/Projects/VoidBuildSystem. dev cpp-gcc provides GCC16.2.0, CMake4.4.4, Ninja1.13.2.
Observed worker local-source configure/build/ctest exit0 in build/worker-bootstrap. Four CTest checks cover 15 named SDK cases, 16 CLI cases, four profile/compiler combinations and six descriptor errors.
Root independently configured default HTTPS pin:
dev cpp-gcc -c cmake -S . -B build/bootstrap-pinned -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -> exit0.
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2 -> exit0; a final confirmation reported no work.
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure -> exit0, 4/4.
git -C build/bootstrap-pinned/_deps/voidlibrary-src rev-parse HEAD -> exact pin, exit0.
git -C /home/faumaray/Projects/VoidLibrary diff --stat HEAD -> empty, exit0.
dev cpp-gcc -c clang-format --dry-run --Werror include/vbs/build.hpp src/build.cpp src/main.cpp src/describe.cpp build.cpp build.profiles.cpp build-support/defaults.cpp build-support/defaults.hpp tests/SdkDeclarations.cpp tests/ExampleContexts.cpp -> exit0.
Existing executables: build/bootstrap-pinned/bin/vbs, vbs_describe, vbs_sdk_tests; same names under build/worker-bootstrap. Run only needed reproductions, not an unrelated matrix.
## 12. Constraints and stop conditions
No source or scratch-file edits; no secrets, global/Nix modifications, network publication, extra agents, hidden model substitutions. If exact configured role cannot run, report limitation. For graph use, project home-faumaray-Projects-VoidBuildSystem is correct but its 2026-11-24 index has only two nodes and none of the new C++ files. Prior search_graph for SDK found zero. Before relying on a file, check_index_coverage; read untracked/missed source directly, do not reindex. Serena session 0bd90d65 active project VoidBuildSystem is already confirmed; read its manual if you have not, but do not change shared active project. Stop a check if it would mutate unowned data; report missing evidence.
## 13. Authorization and decisions
User said "Implement the plan"; local bootstrap/documentation and tests/review are authorized. Exact configured astra_reviewer role at XHigh; runtime model identity should be described as configured unless independently reported. This review is fresh and independent of T-001. No merge/release approval is requested or implied.
## 14. Return format
Return V-002 verdict; concise summary; findings ordered by severity with exact file/line, trigger/impact/evidence/correction; acceptance evidence; commands/cwd/results; unrun checks and remaining risks. State no source files were changed. Do not spawn children.