Files

14 KiB

Storage, operations, quality and networked platform plans

Task ID: T-DOC-104 Role: astra_implementer Status: APPROVED

1. Context and baseline

Repository/cwd /home/faumaray/Projects/VoidLibrary, main at f1f9ba375b. Tracked tree was clean; unrelated protected untracked .env, WG.conf, keys and .serena untouched. Parent now authors docs/roadmap and docs/agent-workflow in the shared checkout. User approved a detailed planning package with "Implement the plan"; the approved plan explicitly says feature implementation follows separately. Prior astra_planner architecture investigation and fresh astra_reviewer preflight READY completed. You implement documentation only. Requirements R-001 through R-016 in docs/roadmap/REQUIREMENTS.md are authoritative. Role configured Astra/XHigh; user explicitly approved this fallback after the Sol model reported capacity exhaustion. No further model substitution.

2. Objective and deliverables

Author all 10 exclusive Markdown files listed below as substantial, individually actionable plans grounded in existing source. Module plans cover existing capabilities and expansion; subsystem/platform plans clearly mark NEW designs. Deliver actual documents, not summaries or placeholders. Each includes source baseline, concrete capability backlog, proposed APIs/types/examples, dataflow/algorithms/ownership/failure behavior, backend rationale, performance/resource limits, ordered implementation tasks, validation and migration. Specific content emphasis: Storage is original native WAL + ordered memory index + immutable sorted checkpoint/table files, single serialized writer, atomic batches/preconditions, stable snapshots, ordered scans, bounded compaction, explicit fsync/manifest/unknown-outcome contracts and format evolution. SQLite is a separate first-class C API integration, not reimplemented SQL/file format. Specify WAL records/commit boundaries sufficiently to guide implementation with checksums/versioning/torn-write and corruption recovery, compaction crash ordering and snapshot retention. Log handles process-wide LogState, reentrant callbacks, bounded total in-flight memory, saturation/flush/failure. Observability hook-only lower dependencies, bounded cardinality and traces, context lifetimes. Testing/Mock add deterministic/property/fuzz capabilities with own framework regression checks, do not count intentional skip demos as broken feature work. Archive preserves anti-traversal limits and atomic workflows. Update exact signed bytes, strict profile and existing durable healthy commit point stay protected. Platform specifies future reference service workflows and operations using shared contracts.

3. Scope and non-goals

Only planning documents are implemented. No C++ changes, CMake/CI changes, new runnable applications, dependency installation, benchmark execution, Git commits/pushes, publishing or configuration edits. No edits to another worker's files. Do not reopen the user interview, narrow the approved breadth, or implement features while documenting them. Existing docs/short-url.md remains intact. Do not change shared contracts unilaterally.

4. Files to inspect

First read docs/roadmap/REQUIREMENTS.md, docs/roadmap/ARCHITECTURE.md, docs/agent-workflow/DECISIONS.md and /home/faumaray/.codex/skills/code-intelligence/SKILL.md. Inspect exact relevant headers under include/Void/{Log,Stacktrace,Testing,TestingMock,Archive,Update,Sqlite}, sources/module.cmake under src/{Log,Stacktrace,Testing,TestingMock,Archive,Update,Sqlite}, and tests/standalone/{Log,Stacktrace,Testing,TestingMock,Archive,Update,Sqlite}. These are real directories, not permission to traverse secrets. Adjacent explicitly identified shared source files are readable when necessary. CMakeLists.txt, cmake/Module.cmake and tests/CMakeLists.txt define current targets/tests; inspect only as needed, root owns cross-cutting analysis. New subsystems have no current source directory: label proposed paths NEW. Use scoped file inventory before citing any specific file not listed here.

5. Write ownership and coordination

Write scope: docs/roadmap/modules/Log.md; docs/roadmap/modules/Stacktrace.md; docs/roadmap/modules/Testing.md; docs/roadmap/modules/TestingMock.md; docs/roadmap/modules/Archive.md; docs/roadmap/modules/Update.md; docs/roadmap/modules/Sqlite.md; docs/roadmap/subsystems/Storage.md; docs/roadmap/subsystems/Observability.md; docs/roadmap/platforms/NetworkedApplications.md You are not alone in the codebase. All other files are non-owned, including shared roadmap root documents, workflow/task records, existing project docs and application/build/test files. Shared checkout is intentional; do not switch branches, reset, stash, clean, stage or commit. Edit only assigned Markdown files directly with apply_patch; create their parent directories if needed. Do not revert others' work. Root owns shared contracts and master integration. Return any conflict with exact evidence and proposed change to root.

6. Implementation or investigation approach

  1. Read shared contracts C-01..C-14 and preserve them. Root-owned decisions already select overall scope, boundaries and algorithms; fill bounded details for your assigned areas coherently.
  2. Confirm repo and codememory project home-faumaray-Projects-VoidLibrary identity/freshness with index_status. Query only scoped include/src/tests paths. Graph may contain protected data, so no whole-repo text/graph browsing. Use search_graph then trace_path/get_code_snippet for structure; inspect source for important claims. Call check_index_coverage for EVERY relied-on source file and directly read flagged missing ranges. If graph unavailable, use scoped source fallback and disclose. Serena manual must be read if used; project is already active VoidLibrary, do not change activation.
  3. For each document, ground existing features/tests and gaps before designing NEW additions. Cite portable relative source links from the file location, not absolute workstation paths. Keep source facts separate from design recommendations.
  4. Use sections tailored to the area but cover all deliverables. Each task gets a unique ID M--NN, S--NN, or P--NN, explicit dependencies, intended implementation scope, acceptance and role recommendation. Use phase P0 baseline, P1 foundations, P2 module completion, P3 initial platforms/optimization, P4 distributed. All feature tasks are PLANNED.
  5. Draft concrete representative NEW API/type shapes; preserve existing namespace facts and distinguish illustrative NEW code from compiling examples. Shared types are referenced to their owner, not independently redefined. Choose bounded sensible defaults and explain tradeoffs. Avoid unspecified "consider X or Y" where it changes implementation; select a design or explicitly stage alternatives behind a later named capability gate.
  6. Native-vs-external choices are per module. Retain current security primitives as initial implementations. Cite primary sources already supplied below; if new consequential library facts require research, use context7 skill resolving library id first, then official docs/web only, never submit private source.
  7. Cross-link shared architecture/performance/validation/migration and relevant area documents. Other workers may still be creating them; expected names in master contract below are valid planned links. Do not repeatedly check unfinished peers.
  8. Validate your own documents for ownership, meaningful content, source/path accuracy, unique IDs and no unresolved placeholders. Tell root any shared decision that needs reconciliation. Do not pad every file with repeated common text.

7. Interfaces and data contracts

Authoritative shared contracts: architecture C-01 foundation layers; C-02 Result/expected errors; C-03 std::stop_token+steady deadline and one completion; C-04 embedded/managed composition; C-05 bounds; C-06 IO/Net; C-07 general vs strict signed data; C-08 native Storage separate from SQLite; C-09 owning Service/Plugin/C ABI; C-10 FSM/Scheduler/Update commit; C-11 Log/Observability; C-12 distributed ownership/consistency; C-13 naming/migration; C-14 platforms. Existing names must be source-verified. NEW API illustrations do not claim existence. Detailed task IDs use area names uppercased (e.g. M-ASYNC-01, S-IO-01, P-RELOADABLE-01). Relative references to peers: ../modules/.md, ../subsystems/.md or ../platforms/.md; shared files ../ARCHITECTURE.md, ../REQUIREMENTS.md, ../DEPENDENCIES.md, ../DELIVERY.md, ../PERFORMANCE.md, ../VALIDATION.md, ../MIGRATION.md, ../BUILD-AND-DISTRIBUTION.md, ../DOCUMENTATION.md.

8. Dependencies and integration

Parent creates shared root documents and workflow records concurrently. Four worker packages have disjoint ownership. Existing modules planned: Core Functional Containers Math Text Data Async Time Log System Configuration Stacktrace Plugin Service Fsm Testing TestingMock Binary Archive Crypto Security Sqlite Resilience Update ShortUrl Net. NEW subsystems: Memory Algorithms Unicode IO Runtime Scheduler Storage IPC RPC Messaging Observability Discovery Coordination Replication DistributedStorage. Platforms: NetworkedApplications ReloadableApplications DistributedApplications. Only your listed paths are writable. Parent checks integration and commissions fresh adversarial review of actual docs. No dependency on other worker completion before drafting against ARCHITECTURE.md.

9. Edge cases security and performance

Never read .env, .env.*, WG.conf, keys or descendants; ~/.config/agent-integrations, ~/.ssh, ~/.gnupg, ~/.opencodex, /run/agenix.d, nixos-config/jev_token. No broad indexing/reindexing and no private source in public queries. No credentials or other repository information in documents. Specify concrete failure paths, resource accounting, cancellation/shutdown and compatibility relevant to each area. No fabricated performance results, compiler support, test passes or production readiness. Performance profiles measure p50/p95/p99, throughput, allocations, peak RSS/CPU and build cost; avoid arbitrary universal speedup claims. Cryptographic/TLS recommendations based on OpenSSL 3.5 guide; new storage durability methodology on SQLite atomiccommit; Raft paper for consensus. Primary URLs: https://docs.openssl.org/3.5/man7/ossl-guide-tls-client-block/ ; https://sqlite.org/atomiccommit.html#_testing_atomic_commit_behavior ; https://sqlite.org/wal.html ; https://raft.github.io/raft.pdf ; https://man7.org/linux/man-pages/man7/epoll.7.html . Cite near claims.

10. Acceptance criteria

  1. All owned documents exist and contain distinct, substantial implementation guidance; no empty boilerplate or arbitrary word-count padding.
  2. Source links and existing behavior are checked; NEW contracts clearly labeled; source coverage limitations reported.
  3. Each plan has concrete APIs/dataflow, native/backend decision, ownership/failure/resource limits, task DAG/dependencies, test scenarios and compatibility/rollback.
  4. Shared C-01..C-14 contracts are respected and cross-links use agreed names.
  5. Commands distinguish CURRENT available checks from PROPOSED checks with prerequisites; future reference apps are specified only.
  6. No unowned modifications, implementation changes, unsupported measured claims or unresolved high-impact alternatives.

11. Verification commands and evidence

Cwd /home/faumaray/Projects/VoidLibrary. Observed current baseline commands: 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. Do not rerun builds/tests for this documentation task. Normal build passed; VoidTests 1245 passed/2 failed/3 skipped out of1250; failures hard-code absent /bin/echo and /bin/cat; installed component consumers passed. Werror failed in cached Boost1.84 headers. No sanitizer/benchmark/cross-platform checks ran. Actual test runner --filter syntax exists but verify names before showing existing filtered commands. Generic future build paths must be labeled templates/proposed. Run documentation checks via scoped rg, file inventory and git diff --check -- (new files require direct content inspection too). Root will run full coverage/link/ID validation. Do not add a validation script or tests outside ownership.

12. Constraints and stop conditions

No child agents or independent user questions. Stop on ownership collision, a required protected read, unavailable configured role, or a contradiction requiring shared contract change; report to parent with a bounded resolution. Missing graph coverage alone permits scoped direct reads. Do not treat an absent NEW file as a blocker. No commits/pushes or application edits. Finish all owned documents before returning unless a genuine blocker exists.

13. Authorization and decisions

User approved this exact planning-package scope on 2026-11-24 and explicitly approved the configured astra_implementer/XHigh fallback for this unchanged assignment after Sol capacity failure. Prior architectural planner and fresh preflight reviewer complete; current handoff specifies exclusive documentation ownership. Parent reviewed technical content and will lint full specification before dispatch. Default choices within ARCHITECTURE.md are authorized planning decisions. No permission to implement features is inferred.

14. Return format

Return task ID; DONE/BLOCKED/PARTIAL; files changed; concise content/decision highlights; source and graph coverage limitations; exact documentation checks and outcomes; unrun checks; cross-file integration issues. Do not paste full documents or spawn children.