142 lines
9.1 KiB
Markdown
142 lines
9.1 KiB
Markdown
# Delivery phases and implementation gates
|
|
|
|
Status: future implementation roadmap. Writing these plans does not complete any
|
|
feature task. User-approved scope is recorded in [REQUIREMENTS.md](REQUIREMENTS.md).
|
|
No calendar estimates are implied; phase exits depend on evidence and capacity.
|
|
|
|
## Documentation delivery now
|
|
|
|
The current work authors the 26 module plans, 15 new subsystem plans, three platform
|
|
plans, and ten shared roadmap documents. The master index maps every agreed area.
|
|
Workflow records preserve the approved decisions, baseline, ownership and review.
|
|
|
|
Completion requires actual document coverage, valid links and source references,
|
|
coherent contracts, actionable tasks, a fresh integrated review, and disposition of
|
|
findings. Reference applications and new test infrastructure are specified, not built.
|
|
Future commands are labeled PROPOSED; executed baseline commands remain separate evidence.
|
|
|
|
## P0 — Reliable baseline and visibility
|
|
|
|
**Outcome:** maintainers can reproduce the current state and distinguish library defects,
|
|
test-environment assumptions, missing tooling, and unsupported configurations.
|
|
|
|
| Task | Work and owner recommendation | Acceptance |
|
|
| --- | --- | --- |
|
|
| X-BASE-01 | sol_implementer: replace process-test assumptions about `/bin/echo` and `/bin/cat` with controlled fixtures or explicit discovered commands | Process argv/stdin cases test the intended behavior on NixOS and conventional Linux; missing prerequisites produce useful diagnostics. |
|
|
| X-BASE-02 | sol_implementer: resolve pinned Boost/compiler warning incompatibility through dependency/version/system-header policy | Full warnings-as-errors build passes without blanket disabling warnings in owned code; supported dependency versions recorded. |
|
|
| X-BASE-03 | astra_implementer: reconcile public includes, target closures and selected-module tests | Minimal, full, installed, embedded, static and shared consumer cases isolate dependency requirements. |
|
|
| X-BASE-04 | sol_implementer: establish compiler/dependency and sanitizer capabilities | Feature probes and supported matrix drive skips/failures explicitly; unknown support is not success. |
|
|
| X-BASE-05 | sol_implementer: reproducible benchmark/fuzz/property harness and initial inventory | Raw baselines and workload manifests exist; no unmeasured optimization target is called achieved. |
|
|
|
|
Documentation baseline defects are recorded now. These repair tasks remain PLANNED.
|
|
P0 can overlap with design-only foundation work, but no release accepts an unexplained
|
|
failed check in its declared support matrix.
|
|
|
|
## P1 — Shared foundations and execution
|
|
|
|
**Outcome:** subsequent modules can agree on errors, ownership, clocks, allocation,
|
|
serialization, cancellation, I/O completion, and resource limits.
|
|
|
|
Complete G-ERROR, G-EXEC, G-IO, and G-DATA from [DEPENDENCIES.md](DEPENDENCIES.md).
|
|
Implement foundation tasks in Core, Functional, Memory, Containers, Algorithms, Math,
|
|
Text, Unicode, Time, Binary, and Data. Async/IO and minimal Runtime follow the common
|
|
clock and lifetime contracts. Testing grows the deterministic tools needed by those areas.
|
|
|
|
Critical-path executor and operation-lifetime changes go to astra_implementer; bounded
|
|
utilities, adapters, and independent tests default to sol_implementer. Each dispatch has
|
|
exclusive owned files, observed source baseline, exact API contract, and verification.
|
|
|
|
Phase acceptance includes self-contained headers, minimal consumers, cancellation races,
|
|
exactly one terminal operation result, no dangling frames/buffers, bounded admission, and
|
|
regression fixtures for existing strict signed data. General JSON/codec expansion must
|
|
not relax Update validation. Existing TLS/lifetime defects can receive focused repairs
|
|
before the full new API lands.
|
|
|
|
## P2 — Complete functional modules
|
|
|
|
**Outcome:** modules provide complete documented workflows with defined success,
|
|
failure, shutdown, and resource behavior, independently of platform compositions.
|
|
|
|
| Parallel stream | Main work | Prerequisite gate |
|
|
| --- | --- | --- |
|
|
| Network | Listener/HTTP/WebSocket transport, secure clients, pooling and streaming, RPC base | G-EXEC, G-IO, G-DATA |
|
|
| Storage | Original durable KV, Sqlite completion, snapshots, recovery and typed adapters | G-IO, G-DATA; G-STORE before higher persistence consumers |
|
|
| Lifecycle | Owning services, plugin host/C ABI, supervised FSM, reloadable configuration | G-EXEC; G-HOST before live replacement compositions |
|
|
| Operations | Log/Stacktrace, Observability, Resilience, System/IPC, Archive/Crypto/Security/Update | Relevant common contracts; no exporter/core dependency cycles |
|
|
| Quality | Testing/Mock, deterministic clocks, property/fuzz and fault injection, package consumers | Minimal framework independence maintained throughout |
|
|
|
|
The streams need not finish together. Ship completed coherent module sets while others
|
|
remain experimental. A documented limitation must be visible in capability reporting
|
|
and supported configuration tests; it cannot become an implicit success path.
|
|
|
|
## P3 — Networked and reloadable applications
|
|
|
|
**Outcome:** compose complete modules into optional runtimes/platforms with reference
|
|
workflows and operational procedures.
|
|
|
|
- NetworkedApplications: storage-backed service, streaming client/server, typed
|
|
configuration, trust setup, health, metrics, limits and graceful shutdown.
|
|
- ReloadableApplications: dependency-aware host, versioned C/C++ plugin paths, state
|
|
transfer, generation pinning, health validation and recovery/rollback.
|
|
- CLI/data-processing reference flow: use only the needed modules, demonstrating
|
|
small consumers and integration without a mandatory application framework.
|
|
|
|
Platform ownership does not include alternate copies of module logic. Integrate module
|
|
APIs, examples, startup policies and operational tools. Define deterministic startup
|
|
failure cleanup, overload behavior and shutdown deadlines. Reference examples are tested
|
|
as consumers and documentation examples, not trusted because the monolithic test passes.
|
|
|
|
Optimize measured workloads in all phases, with concentrated integration measurements
|
|
here. Tune connections, allocation/layout, batch size, contention and timers only with
|
|
the [performance acceptance rules](PERFORMANCE.md). Record resource tradeoffs explicitly.
|
|
|
|
## P4 — Distributed infrastructure and platform
|
|
|
|
**Outcome:** progress from durable local building blocks to replicated services through
|
|
bounded correctness claims and reproducible fault evidence.
|
|
|
|
1. Finish local durable Messaging/Scheduler behavior, RPC framing/versioning, and static
|
|
Discovery/bootstrap. Use explicit at-least-once and retry/dedup semantics.
|
|
2. Implement Coordination's deterministic fixed-membership Raft core with abstract ports;
|
|
test elections, quorum agreement, persistence order and partitions in simulation.
|
|
3. Implement Replication adapters and G-REPL: atomic data/applied-index/dedup updates,
|
|
quorum-confirmed reads, restart, log retention, snapshot creation and installation.
|
|
4. Complete single-group DistributedStorage and administrative backup/recovery tooling.
|
|
Only then add reviewed membership changes, shard routing and rebalancing.
|
|
5. Compose DistributedApplications with deployment examples, failure visibility and
|
|
bounded operational procedures. Production readiness requires evidence beyond unit
|
|
tests or deterministic simulation, including sustained and destructive recovery runs.
|
|
|
|
Single-node releases continue while P4 develops. Initial guarantees cover crash faults,
|
|
not malicious consensus participants. Quorum consistency does not imply minority write
|
|
availability, global transactions, or exactly-once external side effects.
|
|
|
|
## Implementation task readiness
|
|
|
|
Before executing any area task:
|
|
|
|
1. Reconcile its source baseline and requirements with the current branch and worktree.
|
|
2. Resolve its named prerequisite contracts and define exact owned paths and shared
|
|
resources. Persist and lint the full WHAT/HOW assignment.
|
|
3. For substantial implementation, obtain architecture planning and fresh technical
|
|
preflight. User approval of these documents is distinct from later scope selection.
|
|
4. Implement with the configured role, inspect actual changes, and obtain fresh
|
|
adversarial review. Resolve actionable findings and verify integrated behavior.
|
|
5. Record code-complete, verified, blocked or released accurately. Review does not
|
|
authorize commits, remote pushes, deployments or destructive operations.
|
|
|
|
After two unsuccessful repair cycles, stop that approach and obtain a changed diagnosis
|
|
with a distinguishing check. Do not hide failure by weakening tests or broadening scope.
|
|
|
|
## Release and rollback milestones
|
|
|
|
The first major-release integration groups intentional public API changes and migration
|
|
adapters. Later capabilities can ship as optional experimental modules until their gates
|
|
pass. Version public C ABI, wire schemas and disk formats independently where necessary;
|
|
a package version alone is not a compatibility check.
|
|
|
|
Release candidates require a support matrix, package/consumer validation, migration
|
|
examples, known limitations, performance evidence, and explicit rollback boundaries.
|
|
Native storage formats must refuse unsupported versions safely. Update and plugin
|
|
rollback must respect committed durable state. See [MIGRATION.md](MIGRATION.md).
|