120 lines
8.9 KiB
Markdown
120 lines
8.9 KiB
Markdown
# Validation and evidence gates
|
|
|
|
This document separates checks on the planning package, observed baseline evidence, and
|
|
future implementation validation. A written test scenario is not an executed test.
|
|
|
|
## Planning-package acceptance
|
|
|
|
The documentation delivery must pass:
|
|
|
|
1. Coverage: ten shared roadmap documents, 26 public module plans, 15 NEW subsystem
|
|
plans, and three platform plans match the master index. LogState obligations are
|
|
covered under Log and architecture.
|
|
2. Navigation: relative document/source links resolve; Markdown heading links resolve;
|
|
no link escapes into protected/private files or another repository.
|
|
3. Content: every area contains source-backed baseline or explicit NEW status, concrete
|
|
APIs/dataflow, backend choices, limits/failures, tasks/dependencies, tests, and migration.
|
|
4. Traceability: requirement IDs, shared-contract references and task IDs are coherent.
|
|
Feature tasks remain PLANNED; document-writing tasks use separate T-DOC IDs.
|
|
5. Truthfulness: commands are CURRENT, TEMPLATE for an existing interface, or PROPOSED
|
|
with prerequisites. Observed outcomes include failures/skips and unrun checks.
|
|
6. Review: fresh astra_reviewer inspects actual files and cross-plan contracts, not just
|
|
worker summaries. Actionable findings receive recorded dispositions and focused rechecks.
|
|
|
|
Root uses a read-only documentation checker to inventory files, resolve links, find
|
|
duplicate task definitions and unresolved placeholders, and report missing content.
|
|
Heuristics assist review; they do not prove the designs correct or justify padding text.
|
|
No application test is required merely because a Markdown plan changed.
|
|
|
|
## Observed baseline on 2026-11-24
|
|
|
|
Repository: `main`, `f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`.
|
|
Toolchain: GCC 16.2.0, CMake 4.4.4, Ninja. Fresh build directory:
|
|
`/tmp/voidlibrary-discovery-f1f9ba3`. Existing cached Boost 1.84 sources were reused;
|
|
no dependency download or tracked source modification was needed.
|
|
|
|
| Check | Observed result |
|
|
| --- | --- |
|
|
| All-module RelWithDebInfo configure | Passed after pointing FetchContent at existing cached Boost sources |
|
|
| All-module normal build | Passed, exit 0 |
|
|
| VoidTests | 1,250 discovered; 1,245 passed, 2 failed, 3 skipped |
|
|
| Failure cause | Process fixtures hard-code absent `/bin/echo` and `/bin/cat`; observed child exit 127 |
|
|
| Installed component consumers | Passed, 4.74 seconds in the observed run |
|
|
| CTest aggregate | Exit 8, one of two CTest entries failed; not a clean test run |
|
|
| Warnings-as-errors build | Failed in pinned Boost headers on GCC 16/C++26 deprecation warnings |
|
|
| Sanitizers, fuzzing, benchmarks, other OS/compiler combinations | Not run |
|
|
|
|
The process-test diagnosis is supported by
|
|
[the tests](../../tests/standalone/System/Process.cpp) and
|
|
[the exec failure path](../../src/System/Process.cpp). It is not a demonstrated defect
|
|
in the requested process operation itself. Intentional test-framework skip examples
|
|
must not be relabeled as implemented missing features.
|
|
|
|
## CURRENT commands and prerequisites
|
|
|
|
The following are the actual commands observed during discovery, with repository root
|
|
as cwd. Paths identify this session's environment, not a portable toolchain promise.
|
|
|
|
```sh
|
|
cmake -S . -B /tmp/voidlibrary-discovery-f1f9ba3 -G Ninja \
|
|
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DVOID_ENABLE_TESTING=ON -DVOID_WARNINGS_AS_ERRORS=OFF \
|
|
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
|
|
-DFETCHCONTENT_SOURCE_DIR_BOOST=/home/faumaray/Projects/VoidLibrary/build/_deps/boost-src
|
|
cmake --build /tmp/voidlibrary-discovery-f1f9ba3 --parallel 4
|
|
ctest --test-dir /tmp/voidlibrary-discovery-f1f9ba3 \
|
|
--output-on-failure --timeout 60
|
|
```
|
|
|
|
The separate warnings-as-errors configure used `-DVOID_WARNINGS_AS_ERRORS=ON`.
|
|
An initial offline configure without a populated Boost source directory failed as expected
|
|
from its prerequisite. `FETCHCONTENT_FULLY_DISCONNECTED` requires populated dependency
|
|
sources; it is not a first-install command. Portable build templates and dependency
|
|
resolution policy belong in [BUILD-AND-DISTRIBUTION.md](BUILD-AND-DISTRIBUTION.md).
|
|
|
|
## Future implementation test matrix
|
|
|
|
| Area | Required scenarios | Evidence gate |
|
|
| --- | --- | --- |
|
|
| Foundations/containers | Empty/boundary values, overflow, allocation failure, move-only values, alignment, deterministic seeds | Unit/property tests and minimal consumer/header checks |
|
|
| Parsing/serialization | Truncation, invalid Unicode, numeric range, duplicate keys, recursion/size bounds, round trips, schema upgrades | Seeded property tests, fuzz corpora, signed-document regression fixtures |
|
|
| Async/IO/runtime | Completion vs cancellation/deadline, queued/parked destruction, partial transfer, fd reuse, admission saturation, shutdown | Deterministic schedules plus sanitizer/stress evidence; exactly one terminal result |
|
|
| Network/protocol | Wrong-host/CA/expired TLS, redirects, partial frames, slow peers, body/header limits, connection reuse, graceful stop | Local fixture services/private CA, conformance/fuzz tests; no live public endpoint dependency |
|
|
| Native Storage | Torn/reordered/short writes, failed sync, disk full, partial commit, crash during recovery/compaction, held snapshots | Injected filesystem failures and restart matrix; acknowledged durable data survives, incomplete batches atomic |
|
|
| Sqlite | Prepared statement binding, transactions/rollback, migrations, busy contention, connection shutdown | Actual supported SQLite versions/modes; independent from original Storage tests |
|
|
| Service/plugin/FSM | Reentrant lifecycle, failed-start rollback, provider replacement with pins, ABI mismatch, losing child cleanup, fault termination | Cross-module tests with controlled plugins and executor schedules |
|
|
| Log/observability | Saturation, slow/failing sinks, flush races, reconfiguration, context lifetime, metric cardinality | Loss counters and total in-flight resource accounting under pressure |
|
|
| Archive/update/security | Traversal/symlink races, decompression limits, invalid signature/bytes, replay/expiry, durable activation and cleanup failure | Adversarial fixtures and crash recovery; preserve existing trust contracts |
|
|
| Messaging/scheduler | Duplicate delivery, lost acknowledgement, retries, expired work, restart, wall-clock changes | At-least-once/dedup semantics and bounded retention verified |
|
|
| Coordination/replication | Partitioned leader/minority, crash/restart, reordered/duplicated RPC, lost reply, snapshot installation | Deterministic reproducible histories, agreement checks, durable state/applied position consistency |
|
|
| Distributed storage | Single-group correctness, routing epochs, membership transitions, failed rebalance, backup/restore | Failure injection before multi-shard availability claims |
|
|
| Packaging/platforms | Minimal/full selection, add_subdirectory/find_package, shared/static, installed consumers, explicit capability gaps | Supported configuration matrix and runnable future reference-consumer checks |
|
|
|
|
## Sanitizer and platform policy
|
|
|
|
Use ASan/UBSan for supported compiler configurations and TSan for applicable concurrency
|
|
work; check toolchain compatibility before promising coverage. Sanitizers are separate
|
|
build configurations where combinations are unsupported. Fuzzing/property tests supplement
|
|
deterministic regressions; they do not replace lifetime reasoning or protocol review.
|
|
|
|
Linux is the first validated platform. Windows/macOS ports have explicit capability
|
|
matrices and platform-specific acceptance, including process APIs, file watching, shared
|
|
libraries and filesystem durability. A functional fallback is not automatically equivalent
|
|
to POSIX locking/fsync guarantees. Compiler/reflection support is probed per feature.
|
|
|
|
## Tasks and gate ownership
|
|
|
|
| ID | Planned work | Acceptance |
|
|
| --- | --- | --- |
|
|
| X-VALID-01 | Minimal consumer/header and package-closure matrix | Each supported module/profile has isolated compile/link/runtime evidence. |
|
|
| X-VALID-02 | Deterministic clock/executor and fault filesystem harness | Seeds reproduce failures; injected effects reach intended boundaries. |
|
|
| X-VALID-03 | Property/fuzz corpus pipeline for parsers/codecs/protocols | Corpus regressions retained; time/resource budgets enforced. |
|
|
| X-VALID-04 | Sanitizer/stress jobs and supported-toolchain matrix | Unavailable tooling is reported explicitly; failing supported jobs block the relevant gate. |
|
|
| X-VALID-05 | Distributed deterministic simulation and history validation | Partition/restart/snapshot scenarios falsify incorrect histories reproducibly. |
|
|
| X-VALID-06 | Reference-platform and release-candidate validation | Public examples consume installed packages and exercise upgrade/shutdown/recovery. |
|
|
|
|
Testing owns harness primitives; feature owners own behavior assertions; root integrates
|
|
cross-component scenarios. No universal percentage substitutes for coverage of failure
|
|
boundaries. Record command, cwd, revision, configuration, exit status, outcomes and
|
|
unrun checks in [verification evidence](../agent-workflow/VERIFICATION.md).
|