Files
Library/docs/agent-workflow/DECISIONS.md
T

95 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Decision ledger
Date: 2026-11-24. Baseline: `main` at `f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`.
## User-confirmed decisions
| ID | Decision | Status/source |
| --- | --- | --- |
| D-001 | Generic library spanning small foundations, complete modules, and full optional application platforms | CONFIRMED; discovery correction and follow-up answers |
| D-002 | Linux-first portable design | CONFIRMED |
| D-003 | Versioned modernization, with major-release breaks and migration guidance | CONFIRMED |
| D-004 | C++26 and reflection remain defining choices | CONFIRMED |
| D-005 | Full roadmap with phased delivery and expanded plans throughout | CONFIRMED |
| D-006 | General software infrastructure domain; no GUI/media/scientific/embedded platform expansion | CONFIRMED domain selection; general Math utilities remain in scope |
| D-007 | Prefer native implementations, deciding backend use separately for each module | CONFIRMED correction to blanket dependency choices |
| D-008 | Prioritize runtime/memory and separate workload profiles together | CONFIRMED combined selection |
| D-009 | Embedded and managed execution modes | CONFIRMED |
| D-010 | Include broad module completion, networked platform, and reloadable platform | CONFIRMED all three; sequencing follows dependencies |
| D-011 | First-class SQLite API using SQLite, plus a separate original Void engine | CONFIRMED explicit clarification |
| D-012 | Original engine starts with a transactional key-value core | CONFIRMED |
| D-013 | Full distributed platform roadmap in later phases | CONFIRMED |
| D-014 | Convenient C++ plugins plus a stable C boundary | CONFIRMED |
| D-015 | Standard-library-only foundation | CONFIRMED |
| D-016 | One expanded file per public module and new area | CONFIRMED |
| D-017 | Author the approved planning package now; feature implementation follows separately | APPROVED by “Implement the plan” after the proposal explicitly bounded that deliverable |
## Root-owned technical defaults
These are design choices made within the approved planning scope, not claims that the
user individually selected each algorithm or that any new implementation exists.
| ID | Choice and rationale | Contract |
| --- | --- | --- |
| D-018 | One authoritative owner for each shared interface; acyclic layered packages | C-01, C-13 |
| D-019 | Native level-triggered epoll sockets, bounded file workers, optional later io_uring | C-06; simple initial semantics and portable operation contract |
| D-020 | Original append WAL, ordered memory index, immutable sorted tables/checkpoints; serialized writer first | C-08; explicit durable core before concurrency/compaction expansion |
| D-021 | Preserve OpenSSL/libsodium for initial cryptographic implementations | C-06; native surrounding logic without changing cryptographic primitives |
| D-022 | Cooperative structured cancellation, one terminal completion, explicit admission bounds | C-03–C-05 |
| D-023 | Fixed-membership Raft first; deterministic core and separate replication adapters | C-12; avoid bootstrap cycles and unsupported reliability claims |
| D-024 | Quorum-confirmed consistent reads; stale reads explicit; no implied cross-shard transaction | C-12 |
| D-025 | Existing strict signed parsing, exact payloads, update commit markers, and frozen V1 remain protected | C-07, C-09, C-10 |
| D-026 | No deadline or staffing assumption; evidence-gated milestones | Delivery plan |
## Approved execution fallback
On 2026-11-24 the configured Sol model for T-DOC-104 reported capacity exhaustion before
starting the assignment. The user explicitly selected “Use configured Astra implementer.”
T-DOC-104 therefore uses the configured astra_implementer at XHigh with exactly the same
ten documentation files and task contract. The failed worker was closed. Other task
ownership and the documentation-only objective are unchanged. Model execution identity
remains configured rather than independently attested.
## Review decisions
- T-DISC-001: configured astra_planner completed the architecture investigation; source
and coverage gaps were reported. Runtime model identity was not independently attested.
- T-DISC-002: configured astra_researcher checked primary documentation for I/O,
persistence, consensus, and TLS; no runtime claims came from that research.
- T-PLAN-003: fresh configured astra_reviewer returned READY for plan-file authoring.
Its P3 distinction between future reference apps/proposed commands and existing
artifacts/evidence was incorporated. This was preflight, not review of written files.
Further decisions must identify affected contract IDs, compatibility impact, and the
plans requiring updates. Do not record a proposal as user approval.
## User-confirmed implementation decisions (2026-11-24)
| ID | Decision | Status/source |
| --- | --- | --- |
| D-027 | Execute in roadmap order: complete P0 baseline (`X-BASE-01`..`X-BASE-05`), then start P1 foundations (`Core`, `Functional`, `Time`, `Memory`, `Math`) | CONFIRMED by user |
| D-028 | Keep `docs/roadmap/` clean; author detailed per-task implementation specifications under `docs/agent-workflow/tasks/` prior to coding each wave | CONFIRMED by user |
| D-029 | Follow `MIGRATION.md` Wave A+B: keep 1.x public APIs and existing tests compiling/passing while introducing NEW APIs and adapters beside them | CONFIRMED by user |
| D-030 | Create dedicated git branch (`feat/roadmap-p0-p1-foundations`) and make focused commits per completed milestone/task; leave local untracked files (`.env`, `.serena/`, `WG.conf`, `keys`) untouched | CONFIRMED by user |
| D-031 | Proceed continuously across roadmap waves without pausing for confirmation between waves, and merge verified waves locally into `main` (without pushing to remote) | CONFIRMED by user |
| D-032 | Push verified `main` (and active feature branches) to `origin` (`git@git.faumaray.com:Void/VoidLibrary.git`) after each verified wave merge, superseding the local-only constraint in `D-031` | CONFIRMED by user ("dont forget to push") |
## Root decisions (2026-11-29)
These are root-owned sequencing decisions made under D-027/D-031 (continuous roadmap-order
execution without pausing between waves). They are not new user approvals.
| ID | Decision | Contract / rationale |
| --- | --- | --- |
| D-033 | Gap audit: `STATE.md`'s "all P2 modules complete" was inaccurate. Against the roadmap task tables, 2 P1 tasks (`M-FUNCTIONAL-03`, `M-TIME-03`) and 40 P2 tasks remain open; pre-roadmap headers (`Async/{Channel,EventBus,Observable,ParallelFor,ThreadPool}.hpp`, `Functional/{Retry,Memo}.hpp`, `Core/TypeMap.hpp`) are unchanged since `f1f9ba3`. | Roadmap order (D-027) and P2 outcome in `DELIVERY.md` |
| D-034 | Wave 11 is the execution-path backfill (`M-FUNCTIONAL-03`, `M-TIME-03`, `M-ASYNC-04`, `M-ASYNC-05`, `S-IO-03`, `S-IO-04`, `S-RUNTIME-02`, `S-RUNTIME-03`) on `feat/roadmap-p2-wave11`. The platform half of the former "Wave 11" note (`P-NETWORKED-*`, `P-RELOADABLE-*`, `S-RPC-05`) is deferred because `P-*-02` require these Runtime/Async/IO lifecycle gates. `S-RPC-04` may ride along only if the planner finds it ready and file-disjoint. | G-EXEC, G-IO; C-03–C-06 |
| D-035 | P0 characterization tasks (`M-*-01`, `S-ALGORITHMS-01`, `S-MEMORY-01`) are not scheduled as separate waves; each follow-on spec records its observed baseline instead. Distributed `-01`/`-02` planning tasks stay with P4. | Avoids documentation-only waves; evidence lives in each task spec |
| D-036 | Remaining foundation P2 tasks (Core, Functional-04..06, Containers, Math, Text, Data, Binary, Time-04/05, Algorithms, Unicode, Memory-05, Testing-04/05) form a later parallel wave after Wave 11. | Independent of the execution-path gate |
| D-037 | VoidForge upstream requests (received 2026-11-29 from the VoidForge session on the user's behalf; source `VoidForge/docs/agent-workflow/VOIDLIBRARY_GAPS.md`) are scheduled as an out-of-band wave after Wave 11 and before the D-036 foundation wave, following the `VL-001`..`VL-013` precedent: first `VL-STREAM-01` + `VL-PROC-01` (P0), then `VL-WASM-01`, `VL-TOML-01`, `VL-MCP-01` (P1; MCP after STREAM), `VL-WIN-01` when the Windows runner needs it, and `VL-LUA-01`/`VL-STORE-01` (P2) later. Signatures are VoidLibrary-owned; peer proposals are inputs, not approvals. | Peer request is not user approval of scope beyond scheduling; licensing question escalated to the user |
| D-038 | Wave 11 contracts adopted from `tasks/W11-PLAN-OUTPUT.md` as amended by `tasks/W11-PLAN-REV1-OUTPUT.md` after PREFLIGHT `tasks/W11-PREFLIGHT-OUTPUT.md` (CHANGES_REQUIRED: F1 P1, F2–F13 P2, P3 list). Accepted D-W11-01..04, 06..15; D-W11-05 modified per F9 (S-IO-03/opus owns the bounded shutdown core and poll-owner exclusion; S-IO-04/sonnet adds thin wrappers, `pump_until`, conformance). Root resolutions for F1 (file workers never call executors/user code except the injected syscall shim; `~Driver` is the only blocking teardown; destruction on a worker/inside a poll turn terminates with a diagnostic), F2 (epoll/eventfd close in backend destructor; `wake()` after shutdown is a no-op), F3–F6 (phase renumbering, per-call shutdown budgets, teardown in `~HostCore`, embedded borrowed resources never shut down), F7–F13 as in the addendum. Area plans `Functional.md`, `Runtime.md`, `IO.md` and `MIGRATION.md` updated per C-13. A1/B1 (Functional/Timer) may start before the PREFLIGHT re-review because the P1 is confined to IO/Runtime; re-review findings on F8/F12 are applied as corrections. | C-03–C-06, C-13; D-029 |
| N-001 | Note (not a decision of this session): the VoidForge session reports (2026-11-29, Forge D46) that the user granted permission to distribute VoidLibrary with VOID Forge, including Forge-motivated additions, with no relicensing. VoidLibrary still has no LICENSE file; any license file or wording remains a user decision to be confirmed directly in a VoidLibrary session. | Relayed by peer session; not user input in this session |
| D-039 | User reconfirmed in this session (2026-11-29, "i allow pushing to remote") that pushing to `origin` is allowed; consistent with D-032 (push verified `main` and active feature branches). `main` is pushed only after a wave is verified and merged, keeping it green for VoidForge, which tracks remote `main`. | CONFIRMED by user |
| D-040 | PREFLIGHT-2 (`tasks/W11-PREFLIGHT-2-OUTPUT.md`) returned CHANGES_REQUIRED with N1–N6 (P2) and P3 lines, no P0/P1. Root resolutions are the mandatory amendment `tasks/W11-CONTRACT-R2.md` (destruction blocks until complete; embedded ManualExecutor pumping; shutdown polling/loop rules; File fd state machine; channel timer callbacks use shared waiter state; EventBus destruction gating). A1/B1 continue with documentation-only corrections. The re-review of R2 happens on the B2/B3/B4/A2/A3 specs before each dispatch. | C-03–C-06; D-038 |
| D-041 | VoidForge wave order (after Wave 11, before the D-036 foundation wave): (1) `VL-STREAM-01`, `VL-PROC-01` (P0); (2) small P1 crypto/text items `VL-CRYPTO-01`, `VL-CRYPTO-02`, `VL-TEXT-01`, plus hygiene `VL-NET-W01`; (3) `VL-NET-02` (TLS client stream + SMTP); (4) `VL-WASM-01`, `VL-TOML-01`, `VL-MCP-01`; Sqlite items `VL-SQLITE-01..06` (G7 automatic-rollback detection first) after that. Root sequencing; peer requests are inputs, not user approvals. | D-037 |
| D-042 | W11-SPEC-REVIEW-1 (`tasks/W11-SPEC-REVIEW-1-OUTPUT.md`) findings S1–S9 (S-IO-03) and A1–A3 (M-ASYNC-04), all P2, adopted verbatim as mandatory amendments in the two specs. S9 resolution: S-IO-03 (B2) owns and tests the public inline wrappers `Driver::begin_shutdown/shutdown(options)/quiescent/shutdown_complete`; S-IO-04 (A4) keeps `run()`, `Pump.hpp`, SystemAsync conformance and tests. Amended text is checked by the fresh post-implementation review rather than a third pre-dispatch review, since it is the reviewer's own replacement text. Worktree dispatches start with `git merge --ff-only <stated HEAD>` (X-WF-01). | C-03–C-06; D-038, D-040 |