Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite: protocol and document sync, VBS/compdb providers, stock GCC diagnostics (including in-process default profile preparation), the stock occurrence observer and hover/definition, the bounded Scheduler, C++ module graph, scan and artifact cache with real CMI production, the context-aware symbol index with schema-2 snapshot migration, navigation and guarded rename, reflection provenance with splice-origin extraction, index-backed completion and signature help, live GCC worker control with a registered DAP suite, and the Neovim and VS Code clients. VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced from the versioned patches and verified stepping reflection/template code with projected values 17/34 and 41/82.
This commit is contained in:
1 parent
ca04975d54
commit
da8003f6d4
310 files changed
+47552
-480
No files matched your search
@@ -0,0 +1,126 @@
|
||||
# Thin Neovim LSP and replay-DAP client
|
||||
|
||||
Task ID: T-CLIENT-NEOVIM-023
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
Depends on: T-PLAN-EDITORS-022 (complete), T-DAP-TRANSCRIPTS-020, T-REVIEW-DAP-020
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap at
|
||||
ca04975 plus uncommitted integration. Verified client tooling on this host:
|
||||
Neovim `0.12.6` (LuaJIT 2.1) and the isolated nvim-dap checkout
|
||||
`cfa2d58f4537aca6ca83e2de1a0d9f1491121264` under build/dap-evidence/nvim-dap.
|
||||
Existing real journeys: tests/native/NeovimReplay.lua drives the installed
|
||||
`vls-dap --replay` through a full nested-value session, and
|
||||
tests/native/NeovimDiagnostics.lua drives the built-in LSP client through a real
|
||||
unsaved edit, `voidLanguageServer/providerStatus` and stock GCC diagnostics.
|
||||
No client package exists in the repository.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Add the thin Neovim client under clients/neovim/: native LSP setup for the
|
||||
installed `vls`, passive provider/analysis status commands, and optional
|
||||
nvim-dap configuration for an offline replay selected by the user. Deliver one
|
||||
headless acceptance script that exercises the real installed executables.
|
||||
Keep server semantics in C++; the Lua layer only starts processes, forwards
|
||||
user actions and renders bounded replies.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
In scope: plugin entry point, user commands, LSP client startup for a selected
|
||||
workspace root, optional stock GCC profile argument, replay DAP adapter
|
||||
registration, bounded timeline/frames/source views, stale-generation rejection
|
||||
and clean shutdown. Non-goals: live debugging, semantic features implemented in
|
||||
Lua, installing plugins into a user's configuration, distribution, and any
|
||||
network fetch. Do not add a second language server or debug adapter.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/23-neovim-client.md, tests/native/{NeovimReplay.lua,
|
||||
NeovimDiagnostics.lua}, src/main.cpp (launcher options), src/Server.cpp
|
||||
(capabilities, providerStatus, analysisStatus), src/debug/dap/{Main.cpp,
|
||||
Projection.cpp}, src/debug/inspection/ReplaySession.cpp, README.md and
|
||||
docs/agent-workflow/tasks/T-PLAN-EDITORS-022.md. Use nvim-dap's checked
|
||||
documentation and `:help lsp` from Neovim 0.12.6.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: clients/neovim/** and tests/native/NeovimClient.lua. No edits to
|
||||
the server, DAP adapter, shared protocol headers, VBS/CMake registration,
|
||||
existing tests, user configuration or the nvim-dap checkout. Root owns build
|
||||
registration, docs and integration. The VS Code client is a disjoint package;
|
||||
no shared TS/Lua code.
|
||||
|
||||
## 6. Implementation approach
|
||||
Use `vim.lsp.start` with an explicit executable, `--stdio`, the selected
|
||||
workspace root and the optional `--gcc-profile`; do not shell out to discover
|
||||
the server. Keep default LSP capabilities and let Neovim own buffers and
|
||||
diagnostics. Commands: `:VlsStatus` requests `voidLanguageServer/providerStatus`
|
||||
for the current document; `:VlsAnalysisStatus` requests
|
||||
`voidLanguageServer/analysisStatus`; `:VlsReplay <absolute-trace>` registers a
|
||||
single nvim-dap adapter `vls-dap --replay <trace>` and starts a launch only when
|
||||
the user invokes it. Timeline/frames/source views use `vls/session`,
|
||||
`vls/timeline`, `vls/frames` and standard `loadedSources`/`source` with the
|
||||
current generation from the session reply. Reject replies whose sessionId or
|
||||
generation differs from the subscribed generation. Close the session and drop
|
||||
buffers on `terminated` or disconnect.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
LSP: existing initialize/sync, `positionEncoding`, `workspaceFolders`,
|
||||
`voidLanguageServer/providerStatus`, `voidLanguageServer/analysisStatus`.
|
||||
Launcher: `vls --stdio --workspace-root ABS [--provider ...] [--gcc-profile ABS]`.
|
||||
DAP: `vls-dap --replay ABSOLUTE_TRACE`; standard launch/configurationDone,
|
||||
`stopped`, `stackTrace`, `scopes`, `variables`, `loadedSources`, `source`,
|
||||
`continue`; custom `vls/session`, `vls/timeline`, `vls/frames`, `vls/seek`.
|
||||
Every custom request carries schemaVersion, sessionId and generation; paging is
|
||||
bounded by the server. Render only server-provided strings; never execute
|
||||
recorded values.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Neovim 0.12.6 is already available; nvim-dap remains an optional test-only
|
||||
dependency located by `VLS_NVIM_DAP`. The acceptance script takes
|
||||
`VLS_SERVER`, `VLS_DAP`, `VLS_TRACE`, `VLS_NVIM_DAP` and, where diagnostics are
|
||||
exercised, `VLS_GCC_PROFILE`. No dependency is installed by the test. Root
|
||||
binds the script to an actual registered target only after the client exists.
|
||||
|
||||
## 9. Edge cases, security and performance
|
||||
Unavailable server/adapter, a workspace-local executable with the same name,
|
||||
multi-root workspaces, omitted versus repeated settings, stale callbacks after
|
||||
stop/seek/terminated, switching recordings, replaced buffers, binary captured
|
||||
source and disconnect cleanup. Do not reuse or modify the user's editor
|
||||
profile; the headless test must use `-u NONE -i NONE` and a temporary workspace.
|
||||
Bound every wait and buffer render. Never open generated source as a workspace
|
||||
file or clear third-party mappings/listeners.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Headless Neovim starts the installed server over stdio for a temporary
|
||||
workspace and receives provider status for the current document.
|
||||
2. A real unsaved edit still yields and clears stock GCC diagnostics when a
|
||||
profile is supplied.
|
||||
3. A recorded trace opens through nvim-dap, exposes the first stopped frame,
|
||||
pages the timeline, reads captured source by reference, and follows continue
|
||||
to the next recorded value.
|
||||
4. A stale sessionId/generation reply is rejected without changing the view.
|
||||
5. Terminating the session leaves no running server/adapter process and no
|
||||
stale buffers or listeners.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
```sh
|
||||
nvim --version
|
||||
git -C build/dap-evidence/nvim-dap rev-parse HEAD
|
||||
VLS_SERVER="$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
VLS_DAP="$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
VLS_TRACE="$PWD/tests/debug/fixtures/integral-17.vls" \
|
||||
VLS_NVIM_DAP="$PWD/build/dap-evidence/nvim-dap" \
|
||||
nvim --headless -u NONE -i NONE -l tests/native/NeovimClient.lua
|
||||
```
|
||||
Record exact versions, commands, exit statuses and the observed values.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
No plugin installation, no user-config edits, no network, no commit or release.
|
||||
Stop and return evidence if the installed Neovim or nvim-dap cannot expose a
|
||||
required interface.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap D-022, primary VBS D-025, GPT-6.2 Astra at Max D-027/029. Client
|
||||
publishing and the project license remain deferred.
|
||||
|
||||
## 14. Return format
|
||||
T-CLIENT-NEOVIM-023 DONE/PARTIAL. Return paths, exact versions, test output,
|
||||
supported commands and remaining limitations.
|
||||
@@ -0,0 +1,119 @@
|
||||
# Thin VS Code LSP and replay-DAP extension
|
||||
|
||||
Task ID: T-CLIENT-VSCODE-022
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
Depends on: T-PLAN-EDITORS-022 (complete), T-DAP-TRANSCRIPTS-020, T-REVIEW-DAP-020
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap at
|
||||
ca04975 plus uncommitted integration. Verified client tooling on this host:
|
||||
VS Code `1.147.0` (commit
|
||||
`8a14f0cc1b08d531eb83255ea3764ae22aa932b5`, x64), Node `v24.22.3` and npm
|
||||
`11.19.1`. The LSP and replay-DAP services already run in real stdio sessions;
|
||||
tests/native/DapReplay.py and tests/native/NeovimReplay.lua are the reference
|
||||
journeys. No VS Code client package exists.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Add the thin VS Code extension under clients/vscode/: a language client that
|
||||
launches the installed `vls --stdio` for the selected workspace, status
|
||||
commands for `providerStatus`/`analysisStatus`, and a debug configuration that
|
||||
launches `vls-dap --replay` on an absolute trace chosen by the user. Deliver a
|
||||
disposable extension-host acceptance test that uses temporary user-data and
|
||||
extensions directories. Keep all server semantics in C++.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
In scope: package manifest, activation, language client startup and disposal,
|
||||
status command output, debug adapter descriptor, a bounded replay tree view or
|
||||
document provider for timeline/frames/source, stale-generation rejection and
|
||||
clean shutdown. Non-goals: semantic features in TypeScript, live debugging,
|
||||
marketplace publication, global installs, user-profile reuse, a second server,
|
||||
or any network fetch during tests. No webview that executes recorded values.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/22-vscode-client.md, src/main.cpp, src/Server.cpp,
|
||||
src/debug/dap/{Main.cpp,Projection.cpp},
|
||||
src/debug/inspection/ReplaySession.cpp, tests/native/{DapReplay.py,
|
||||
NeovimReplay.lua}, README.md and docs/agent-workflow/tasks/T-PLAN-EDITORS-022.md.
|
||||
Consult the installed VS Code `vscode.d.ts`, `vscode-languageclient` and
|
||||
`vscode-debugadapter` APIs for version 1.147.0.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: clients/vscode/** and tests/native/VscodeClient.py. No edits to the
|
||||
server, DAP adapter, shared protocol headers, VBS/CMake registration, existing
|
||||
tests, user settings or installed extensions. Root owns build registration,
|
||||
docs and integration. The Neovim client is a disjoint package; no shared code.
|
||||
|
||||
## 6. Implementation approach
|
||||
Activate on a C++ document or an explicit command. Resolve the server executable
|
||||
from an explicit setting, never from the workspace `PATH`; start
|
||||
`LanguageClient` with `serverOptions.command` and
|
||||
`--stdio --workspace-root <folder> [--gcc-profile <absolute>]`. Register
|
||||
commands `vls.providerStatus` and `vls.analysisStatus` that render bounded JSON
|
||||
in an output channel. Register a `vls-replay` debug configuration taking an
|
||||
absolute trace path and using `vls-dap --replay` as the executable adapter.
|
||||
Render `vls/session`, `vls/timeline`, `vls/frames` and captured source in a
|
||||
read-only tree/document provider keyed by sessionId and generation; drop replies
|
||||
from an older generation. Dispose the client, adapter and views on
|
||||
deactivation.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
LSP: initialize/sync, `positionEncoding`, workspace folders,
|
||||
`voidLanguageServer/providerStatus`, `voidLanguageServer/analysisStatus`.
|
||||
Launcher: `vls --stdio --workspace-root ABS [--provider ...] [--gcc-profile ABS]`.
|
||||
DAP: `vls-dap --replay ABSOLUTE_TRACE`; standard launch/configurationDone,
|
||||
`stopped`, `stackTrace`, `scopes`, `variables`, `loadedSources`, `source`,
|
||||
`continue`; custom `vls/session`, `vls/timeline`, `vls/frames`, `vls/seek`.
|
||||
Requests carry schemaVersion, sessionId and generation; paging stays bounded by
|
||||
the server. Do not reproduce server validation in TypeScript.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Node and npm are available; the extension test must reuse an installed VS Code
|
||||
executable and a locally created fixture. Any npm dependency is declared in the
|
||||
package manifest and fetched only by an explicit development step, never by the
|
||||
test. The acceptance script takes `VLS_SERVER`, `VLS_DAP`, `VLS_TRACE` and an
|
||||
optional `VLS_CODE`. It must pass `--user-data-dir`, `--extensions-dir` and
|
||||
`--disable-extensions` for a disposable host, with a hard deadline.
|
||||
|
||||
## 9. Edge cases, security and performance
|
||||
Unavailable server/adapter, a workspace-local executable with the same name,
|
||||
multi-root workspaces, omitted versus repeated settings, stale callbacks after
|
||||
stop/seek/terminated, switching recordings, replaced documents, binary captured
|
||||
source, extension deactivation and host shutdown. Never reuse a running editor
|
||||
profile, write user settings, open the recorded source as a workspace file, or
|
||||
execute recorded values. Bound waits, pages and rendered text.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. The extension activates in a disposable extension host and starts the
|
||||
installed server over stdio for a temporary workspace.
|
||||
2. Status commands return provider and analysis state for the current document.
|
||||
3. A recorded trace launches through the debug configuration, exposes the first
|
||||
stopped frame, pages the timeline, reads captured source by reference, and
|
||||
continues to the next recorded value.
|
||||
4. A stale sessionId/generation reply is rejected without changing the view.
|
||||
5. Deactivation and host shutdown leave no server/adapter process.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
```sh
|
||||
code --version
|
||||
node --version && npm --version
|
||||
VLS_SERVER="$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
VLS_DAP="$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
VLS_TRACE="$PWD/tests/debug/fixtures/integral-17.vls" \
|
||||
python3 -B tests/native/VscodeClient.py
|
||||
```
|
||||
Record exact versions, commands, exit statuses, the extension-host log excerpt
|
||||
and the observed values.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
No marketplace publication, global installs, user-profile edits or network
|
||||
during tests. Stop and return evidence if the installed VS Code cannot run a
|
||||
disposable extension host on this host.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap D-022, primary VBS D-025, GPT-6.2 Astra at Max D-027/029. Client
|
||||
publishing and the project license remain deferred.
|
||||
|
||||
## 14. Return format
|
||||
T-CLIENT-VSCODE-022 DONE/PARTIAL. Return paths, exact versions, test output,
|
||||
supported commands and remaining limitations.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Exercise the GCC 16 reference module topology
|
||||
|
||||
Task ID: T-CORPUS-MODULES-011
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Extend the already-approved frontend reference corpus with actual GCC 16 module dependency scanner output, both partition kinds, implementation units, a header unit, global/private fragments and edited transitive inputs. Record real successes and compiler limitations.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Scope is bounded test corpus under D-028/D-030 and roadmap 08/11, independent of the provider review and GCC patches. No server semantics, source rewriting of real projects or fabricated module edges. Do not alter the existing corpus/reference results.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read tests/corpus/frontend/{verify-gcc.py,probe-gcc-tooling.py,gate.cppm,importer.cpp}, docs/roadmap/08-frontend-feasibility.md and 11-cpp-modules.md, existing native GCC16 dev shell. For scanner flags verify installed GCC --help, exact release source in build/gcc-gate/gcc-16.2.0 if needed, and official GCC documentation.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: tests/corpus/modules/
|
||||
Exclusively create the necessary .cpp/.cppm/.hpp fixtures and a small Python driver in this new subdirectory. Build private generated data in unique temp dirs; leave the VBS build, GCC prototype tree, other corpus, docs and build registration to root.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use real GCC -std=c++26 -freflection -fmodules with source-owned compiler cache per generation and investigate its -fdeps-format=p1689r5/-fdeps-file flags. Check scanner edges against manually expected topology, header-unit path spelling vs lookup and target/flags. Compile and run consumers of a public partition and a private implementation path; assert a wrong old value cannot satisfy importer static_assert. Probe unsupported private module fragment explicitly with version + exit and correct diagnostic; never paper over GCC limits. Use fresh cache for transitive edits to prevent poisoning; keep old reader reusable. No shell commands from dependency metadata.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Driver uses actual gcc from --cxx or developer env, C locale, timeouts, bounded stderr. Emit a readable/JSON result distinguishing passed positive controls, expected negative controls and explicit missing backend capability; return failure for an unexpected outcome. Retain expected edges as fixtures; schema evidence cannot assume header units present in p1689 when not emitted.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Pre-existing GCC 19 source fidelity and 8 tooling probes already exercise basic module and reflected value. This is a corpus extension; root wires docs and production graph only once sources/worker ready. No production cache or graph changes.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Test meaningful compile failures on visibility, missing provider, wrong context and at least one dependency change. Avoid system std headers where unnecessary for minimal reproducible topology. Private/module-cache artifacts never reuse source project CMI; pass/remove in test temp only.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Show real scanner output with normalized provides/requires per logical module for the supported set. Run reflection import under two controlled source/macro contexts and exercise the before/after result. Run real named targets for implementation unit/partitions and one header-unit import. Report exact gaps in compiler's private fragments, missing/system/header-unit edges, cycles or scans which cannot prove graph completeness.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run git status --short --branch, dev cpp-gcc -c g++ --version, dev cpp-gcc -c python3 tests/corpus/modules/verify.py, and Python compile checks without leaving artifacts in owned sources. Use isolated tmp cwd; report exact status and feature-specific output.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
At two unsuccessful retries against an emitted format inspect actual compiler source/options and send root a changed hypothesis. Return an explicit unsupported result when source confirms. Do not invent missing native producer fields.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User approved GCC feasibility and local prototype. This small, independently testable reference-corpus extension follows the existing planner and feasibility review; it does not authorize semantic backends or compiler patches for this worker. GPT-6.2 Sol at Max.
|
||||
|
||||
## 14. Return format
|
||||
T-CORPUS-MODULES-011 DONE/PARTIAL/BLOCKED, paths, command, emitted graph, observed feature successes/gaps and integration consequence.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Exercise a real recorded compiler session through the DAP process
|
||||
|
||||
Task ID: T-DAP-TRANSCRIPTS-020
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
The shared repo /home/faumaray/Projects/VoidLanguageServer is on feat/implement-roadmap, ca04975 plus local changes. T-PLAN-DAP-020 and the replay reader are in place. The root is implementing vls-dap; you own only tests. The independent preflight accepted initialization order and value mapping and required validation of UTF-8 before offering captured text. Three new, real, verified GCC journals exist in tests/debug/fixtures/{integral-17,integral-41,cancelled-41}.vls. Their exact source is the repository's tests/corpus/frontend/gcc-live.cpp, with Ready=41 in the latter two.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Write NEW tests/debug/DapReplayTests.cpp for the normal C++ inventory and NEW tests/native/DapReplay.py for interactive stdio scenarios using an actual vls-dap binary. Capture distinguishing behaviors that prove replay values, lifecycle ordering, generation-bound views and source ownership. Report test counts and an executable registration witness. Tests must preserve existing build and source files.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Recorded, offline GCC v1 integral evaluation only. These tests use real trace fixtures and benign temporary copies. Do not implement the adapter, live compiler, clients or build configuration. No custom journal parser or general source rewriter.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-PREFLIGHT-DAP-020.md, experiments/frontend/gcc-worker/Trace.hpp, tests/{ProcessTests.cpp,TestExecutable.hpp}, tests/native/{StockDiagnostics.py,GccSupervisor.py} for existing process/framing patterns, plus the fixture paths above. Official Microsoft DAP overview and schema control standard responses. Root owns the CLI and future clients.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: tests/debug/DapReplayTests.cpp, tests/native/DapReplay.py
|
||||
Private outputs under build/test-dap-020 permitted. Shared root owns build.cpp, CMakeLists.txt, tests/CMakeLists.txt and tests/NativeRegistration.cpp. No other application/test changes or Git mutations. Tell root which files can be wired as soon as they compile. No other model or user contact.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use registered Void::Testing C++ cases in suite DapReplay. For CMake root supplies VLS_DAP_EXECUTABLE as an absolute string compile definition and both builds use absolute __FILE__ to locate the three sibling fixtures. For native builds resolve vls-dap next to /proc/self/exe unless the compile definition is present. Reuse bounded Void::Process and Protocol framing. The Python corpus uses --adapter PATH and may take optional --fixtures PATH defaulting to tests/debug/fixtures. Use interactive framing with deadlines; test in an empty PATH with one adapter process per connection. Keep tests deterministic and small.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
vls-dap --replay ABSOLUTE_TRACE. Send DAP seq=1,2,..., type=request, command and arguments. initialize(adapterID=vls) responds with configurationDone, terminate and loadedSources capabilities and emits initialized. launch may defer until configurationDone; configurationDone response precedes deferred launch response followed by stopped(threadId=1). Give launch no extra arguments; trace, if supplied, must name the same launcher-selected path. threads/stackTrace/scopes/variables/loadedSources/source/continue/terminate/disconnect are standard. Top frame at E6 is reflected_value over twice. A variable named Result shows 17, later 34; provisional state remains separately inspectable. Frames have no source and line/column=0 because original data has only logicalDeclaration. SourceReference is positive for valid text. Continue visits next observed integral value, even if no live STOP was recorded. Any unsupported next/stepBack is an explicit failure. vls/session returns schemaVersion=1,sessionId,generation,eventSequence,pauseKind,sourceAvailable,sourceByteLength,sourceReference when available, recording (outcome/exitCode/partial/corrupt), mode="replay". For vls/timeline and vls/frames copy schemaVersion/sessionId/generation and supply start/count (max 256). Body includes events or frames and total. Resumed events carry acknowledgedStop, acknowledgedAction. vls/frames includes lastLeave and captured frames with v1 fields. vls/seek accepts the same three identity fields and exactly one eventSequence or direction="previousValue" or "nextValue", responds with new identity before stopped. Old generation, frame and scope refs must fail even after seeking back to the same event.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The root will publish the binary path as soon as it links; interim checks can compile the test translation unit in isolation. The public DAP names above are frozen unless preflight requires a narrowly communicated change. Root owns both integrated builds and installation.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Test correlations, configurationDone before/after launch, pending launch settled on disconnect, distinct DAP vs compiler ordinals, sourceReference/path mismatch cannot select disk, stale references, pagination under the public caps, partial/cancelled replay, invalid trace, unreachable state commands, no invented exited/step capabilities. Verify no file mutation for replay and no recompilation. Test a replaced/unlinked selected recording remains inspectable once opened. Use finite I/O deadlines, bounded logs and guaranteed child cleanup. No access to unrelated files.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. C++ test runner lists nonzero DapReplay cases covering lifecycle, unavailable features and ordinary client controls; Python checks exact 17/34 plus 22/44 and edit 41/82 against real files. 2. Old handles fail across stop/seek ABA while captured bytes and sourceReference remain usable. 3. Historical E5 provisional result vs E8 committed lastLeave, E7 ack and E11 action appear only at the correct ordinals. 4. Cancelled recording presents a verified prefix and recorded exit 125, alone without live process. 5. Reports contain real executable evidence, expected outputs and any blocked cases.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run python3 -B tests/native/DapReplay.py --adapter "$PWD/build/bootstrap/vls-dap" once root confirms ready. C++: derive the GCC16 compile arguments from build/bootstrap/compile_commands.json for tests/debug/RecordingTests.cpp and replace only the TU/output into build/test-dap-020; use dev cpp-gcc -c. Root adds target vls_dap_tests, then run build/bootstrap/tests/vls_dap_tests --list --no-color and --no-color. Check dev cpp -c clang-format --dry-run --Werror tests/debug/DapReplayTests.cpp. Check Python syntax using ast.parse. No directory-wide format or build from your side.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Report early if the protocol contract is inconsistent with the verified v1 recordings or upstream DAP. Never weaken assertions to pass an implementation defect; send a distinguishing transcript. No pushes, commits, installs, toolchain changes or other agents. Preserve the shared worktree.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap D-022, VBS D-025 and authorized GPT-6.2 Sol at Max D-027. The local compiler experiment D-030 has already produced all four recordings. The executing adapter uses stock libraries and reads the selected saved trace.
|
||||
|
||||
## 14. Return format
|
||||
T-DAP-TRANSCRIPTS-020 DONE/PARTIAL; changed files, cases/witness, commands and exit codes, observations, unmet contracts and release of ownership. Notify root of any confirmed protocol defect early.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Map stock GCC diagnostics onto the exact analyzed editor snapshots
|
||||
|
||||
Task ID: T-DIAGNOSTIC-SARIF-013
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VLS feat/implement-roadmap ca04975, D-028/D-030, Linux GCC16.2 with stock header/driver profile under evaluation. The planner compiled the genuine src/Documents/DocumentSnapshot.cpp with stock cc1plus, accepted both overload edits, and diagnosed a missing function at line 19, 1-based exclusive [34,41). Existing GCC SARIF 2.1 reports in build/gcc-gate/{constraint,queries}.sarif include one run, driver name/version, originalUriBaseIds.PWD, artifacts, regions, messages, relatedLocations, invocation.executionSuccessful and toolExecutionNotifications. GCC emits display columns even when columnKind is omitted; the Unicode witness display32/byte29/UTF16 unit26 appears in verify-gcc-ide.py.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement a reusable C++ adapter for the stock GCC diagnostics worker and immutable DocumentSnapshot mappings, with normalized typed diagnostic/related-location records and explicit unlocated/failed states. Root will supply actual captured SARIF files + admitted input snapshots and exercise the C++ adapter through a real compiler run. It is part of the planned editor diagnostic publication path.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Implement only decoding, source correlation, byte/position projection and typed outcome. No compiler launch, filesystem lookups, LSP transport/dispatch, worker scheduler or production backend choice. Reading a path supplied by SARIF is unnecessary and out of scope. Avoid a new JSON parser.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect include/Void/LanguageServer/{Protocol/Json,Documents/{DocumentSnapshot,Position,Uri},Build/Model}.hpp, src/Documents/Position.cpp, tests/corpus/frontend/{gcc-queries.cpp,verify-gcc-ide.py}, live SARIF files above (actual GCC 16.2), docs/roadmap/13-diagnostics-recovery.md. Use real stock GCC to capture missing/empty/related fixtures where useful under private build/diagnostics-sarif-013. Source definitions for GCC display columns are in gcc/diagnostics/sarif-sink.cc in the local approved release, part is under gcc-gate.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/vls/semantic/Diagnostics.hpp; src/semantic/Diagnostics.cpp; tests/semantic/DiagnosticTests.cpp
|
||||
No shared build edits, protocol wire/JSON/source store edits, compiler or external source changes. Root owns integration, standalone real corpus and editorial docs. Other agents work in disjoint paths; no spawning or user messaging.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Decode a bounded one-run GCC16 SARIF result via Protocol::parse_json (accept only known schema/dialect/capabilities). Explicit invocation outcome (exited, code, truncation/completeness) comes from the caller. Exit 0 clean vs exit 1 with real source error is distinct from tool failure/truncation. A missing, malformed, unsupported or unmappable location remains explicit; never collapse incomplete or unsupported results into a clean empty batch. Match artifacts to caller-provided logical spellings/verified bases or explicit admitted URI table, including index indirection. No server cwd assumptions and no disk. Preserve messages/severity/rule, useful related source locations and truthful unlocated diagnostics. Capture code-quality data only, no automatic edits.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
The caller binds an exact expected owning TU, its immutable lease and the same invocation/capture identity to the actual process status and diagnostic bytes. Only the unique matching analysisTarget in the attested run can admit an empty clear; some GCC absolute targets have no PWD, and empty successes may lack embedded contents. An individual source range needs a positively witnessed occurrence or a certified full analyzed input closure that excludes indistinguishable remaps. The active main source alone, matching bytes/snippets, and an identical text line in a header with a same-filename #line cannot prove origin. Default to unlocated until such proof exists. One unlocated related note does not invalidate an independently proven primary. Include both real-TU success confusion and same-line inert vs remapped text as distinguishing cases.
|
||||
NEW namespace vls::semantic; report exact API early. Suggested inputs: completed process outcome + bounded bytes + a list of immutable retained DocumentSnapshots with verified SARIF artifact/base alias and provenance evidence from the snapshot worker; result either typed protocol/tool error or a complete batch with diagnostics and named mapping limitations. Each mapped location contains original URI and encoding-aware Docs::Range on that same snapshot. Validate end-exclusive bounds and 1-based coordinates. Ordinary ASCII yields exact positions. For tab, multibyte, combining, wide and BOM supports only known compiler tabstop/width policy and physically proven observations; if proof lacks a unique byte endpoint, name the gap. Do not assume OS wcwidth equals GCC. Use snapshot.offset_to_position for UTF8/16. A known #line/macro remapping/historical source must carry an explicit unmapped/witness contract; byte spelling alone does not prove physical source. Source text remains unchanged.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The semantic planner established stock real-TU diagnostics under D-028/030. Root and subsequent owners handle immutable worker snapshots, versioned invocation authorization, publication via AnalysisRevision/guards and editor notifications. This part can be independently verified before a production engine decision. Reply with frozen header once available so the root can build the actual GCC integration witness.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound total bytes, depth, strings, locations, artifacts, results, related data and output memory. Bound normalization/lookup work across repeated huge locations without duplicate retained source-text copies. Detect conflicts between URI/base/index and duplicate artifact aliases, unknown origins, missing/extra compiler runs, oversized regions, partial side streams and multiple file/macro ambiguity. Do not open IO or trust embedded path/script properties. Empty clears only on a proven completed successful compilation.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
The independent reviewer cleared the amended contract. In GCC 16.2 the SARIF emitter switches to raw byte columns if it cannot read the cited line; for a tab/astral/combining fixture the results were display [32,39), tabstop 4 [28,35), or byte [29,36). Require actual column-policy evidence or an unambiguous range. GCC may emit literal unescaped artifact names: do not merge a literal percent-20 filename with a literal space filename. Use the JSON integer variant for coordinates/indices. Handle errors before full evaluation or a missing main/include separately from a complete source-error batch; exit 1 with empty stderr is not clean. GCC can emit a valid related include entry with only startLine and no message, and an EOF end past the source remains unlocated.
|
||||
Cases: captured GCC valid→empty, actual source-error→current located error, warning with severity/rule, related diagnostics, malformed/incomplete or inconsistent stream, failed launch/exit/signal/notifications, unbound/mismatching artifact cannot attach, both document encodings, CRLF/BOM/tab/astral/combining, excluded ambiguous ranges, invalid numeric/overflow or reversed positions without clamping. Include observed narrow GCC 16.2 SARIF files as evidence without requiring machine-specific paths. Include components with identical bytes but conflicting physical mapping. Test multiple artifacts/relative references and partial coverage separately from compiler-success verdict.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/semantic/Diagnostics.cpp tests/semantic/DiagnosticTests.cpp. Root owns native+CMake test target registration. Use focused Void::Testing runner and private temp outputs if desired; provide exact case list/actual outcomes. Root's acceptance adds the real saved/edited Void TU SARIF through your adapter.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for ambiguous dialect/source-map authority needing new API; retain unlocated reports if proof is unavailable. Track stock/GCC-specific behavior; never claim support for all vendors by accepting arbitrary JSON. No user decisions on licensing, production dependency or default compiler.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full 27-roadmap implementation D-022, native build D-025, GPT-6.2 family Max D-027, scoped GCC evaluation D-028/030. No staging, commits, deployment or sibling changes.
|
||||
|
||||
## 14. Return format
|
||||
T-DIAGNOSTIC-SARIF-013 DONE/PARTIAL, public interface and files, source-mapping and clean-result invariants, real checks with counts/commands, remaining handoff. Return to root only.
|
||||
@@ -0,0 +1,75 @@
|
||||
# Integrate the document model and verify overlay and position behavior
|
||||
|
||||
Task ID: T-DOCS-003
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Repository /home/faumaray/Projects/VoidLanguageServer, branch feat/implement-roadmap, base ca04975. The Documents headers and implementations already exist untracked. User confirms no active writer and asks to continue them. Root preserved the original sixteen-file baseline in build/goal-baseline-20261127. This work implements roadmap 03 under R-006 and lays the document-side contract for 05/09.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Make the existing Documents namespace usable by the LSP session for real opens, edits, closes and overlay reads. Provide tested immutable snapshot identities and consistent change/recovery semantics. Root integrates your library and tests with the server and native build.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Own the document engine, URI/position boundaries and its focused tests. Keep source content immutable to callers. Protocol framing, LSP JSON decoding, dependency preparation, configuration, semantic workers, VBS build descriptions and shared build/revision model are separate.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect include/Void/LanguageServer/Documents/{Position,Uri,DocumentSnapshot,DocumentStore}.hpp, src/Documents/{Position,Uri,DocumentSnapshot,DocumentStore}.cpp and docs/roadmap/03-documents-positions.md. Consult roadmap 05 and 10 for snapshot stability; docs/roadmap/ARCHITECTURE.md is the context. VoidLibrary headers live in build/bootstrap/_deps/voidlibrary-src/include/Void/{System,Unicode,Crypto,Text}.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Documents; src/Documents; tests/documents
|
||||
The existing files are the baseline. New tests are confined to tests/documents/DocumentTests.cpp. Do not edit shared build files, CLI/server, TestSupport.hpp, sibling trees or docs. Root wires targets and resolves inter-component ownership. No Git mutations.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Implement position clamping for character offsets beyond line end per LSP 3.17 (retain rejection inside UTF-8 scalars/UTF-16 surrogate pairs). Make invalid line, EOF and newline boundaries deliberate and safe. Ensure valid file/virtual URI identities and aliases, without conflating unrelated paths or losing the URI used to close an open overlay. Keep apply_changes transactional across a batch and monotonic across failed/recovered versions. A newer full replacement or close/reopen recovers desync. Bound overlay growth independently of single JSON frame limits. File reads outside the store lock recheck overlay, desync, and encoding before returning success OR error. Avoid quadratic full reindexes per edit when feasible and never allocate unbounded aggregate batches. Use the reviewed planner/preflight decisions for limits and identity policy.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Retain existing Documents::DocumentStore::open, apply_changes, close, snapshot, resolve_content; const shared_ptr snapshots carry text, content identity, line map, version and revision. Any additional needed method to mark malformed known-document notifications desynchronized should accept an explicit error and version where available and notify root of the exact signature. Use C++26 expected with typed document errors. Make public line helpers safe on untrusted indices or move unchecked helpers private.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Read-only T-PLAN-002 and fresh preflight freeze the API. Other workers own build/test wiring, protocol and workspace. Keep your suite self-registering (VOID_TEST) so both native and CMake harnesses can link the same bodies. Root owns server notification behavior and provider integration. Report the exact native source/module list and test names.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Exercise line-ending forms, astral scalars, combining marks, truncated UTF-8, nonexistent files, encoded separators/NUL, multi-edit ordering, old snapshot lifetime, stale versions, aliases and a newly-opened overlay while resolving disk. Passive content resolution never writes disk. Any deterministic race test should use an explicit bounded seam or observable synchronization, never flaky sleeps. Honor the roadmap limits for bounded text, errors and cancellation. Use a current upstream public SHA-256 API if the reviewed contract needs it.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Both encodings round-trip valid positions, clamp oversized character values and detect invalid scalar/newline splits.
|
||||
2. Sequential edits use preceding element state, failure publishes no partial text and preserves a clear desync barrier. Recovery and close/reopen create fresh identities while prior snapshots remain consistent.
|
||||
3. Overlay precedence, including a raced failure/success disk read and URI alias behavior, is verified. Bounded disk/overlay limits have tested outcomes.
|
||||
4. Focused tests exercise actual APIs, remain discoverable under native registration and pass. Report large-file/edit measurement and any residual issue.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repository root, use dev cpp-gcc -c g++ -std=c++26 -freflection with -Iinclude and -Ibuild/bootstrap/_deps/voidlibrary-src/include for an isolated -fsyntax-only check. A compiled Void::Testing runner and real native archive already exist under build/vbs-framework-probe; discover the exact archives via its link action or the root-owned native/CMake build. Run the dedicated test binary in your own ignored build/docs-check if root wiring is not yet available. All repo build scripts are reserved. Use dev cpp -c clang-format on exact owned C++ paths. Include actual execution commands and counts.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if continued work requires changing the agreed shared revision schema, unowned files or dependency APIs. Return proposed changes to root. After two failed repairs for the same contract return reproduction, attempts and current diff. No broad sibling search, sensitive files, staging, commits or branch changes.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022, D-024 through D-027 authorize the full roadmap, work on existing files and explicit GPT-6.2 Sol Max. Implement after fresh preflight and root dispatch. Follow project agent instructions and the reviewed contracts. Other agents share the checkout.
|
||||
|
||||
## 14. Return format
|
||||
Return T-DOCS-003 DONE/PARTIAL/BLOCKED, changed files, public signatures, edge-case outcomes, test counts and commands, performance measurement, unverified risks and exact integration points. No children or independent user messages.
|
||||
|
||||
T-PLAN-002 clarification: distinguish lexical client URI/open incarnation and
|
||||
physical lookup. Keep the original client URI available after symlink retarget,
|
||||
and treat two live overlays for the same physical path as ambiguous for that
|
||||
lookup. Disk snapshots have explicit origin and no client version. Track the
|
||||
highest observed change version independently of last applied so a failed v12
|
||||
cannot recover from v10. Newer full text may be followed by valid ranged edits
|
||||
in the same notification. Recheck path generation including open/close ABA after
|
||||
disk I/O, bounded retry or typed stale. Suggested session defaults are 16 MiB
|
||||
per document, 128 MiB snapshot/index admission, 4096 open documents and 4096
|
||||
changes per notification. Track snapshot lifetime while references remain.
|
||||
Use LSP signed-32-bit versions and positions up to 2^31-1.
|
||||
|
||||
Preflight correction: reserve lightweight unavailable-open/desynchronization
|
||||
state independently of document text allocation. When a valid didOpen exceeds
|
||||
budget, the client still owns its content. resolve_content must report unready
|
||||
and may never substitute disk. Define a bounded fail-closed state if even the
|
||||
unavailable-open marker limit is reached. Reject stale events without allocating
|
||||
or copying an entire text/index to set a desync barrier.
|
||||
|
||||
For disk inputs distinguish stable origin/content and a path/overlay epoch from
|
||||
a newly allocated snapshot's in-process sequence. Re-reading an unchanged file
|
||||
must not by itself invalidate an analysis revision. Report the read/identity API
|
||||
to root for the shared context model.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Remove repeated prefix decoding for long-line incremental edits
|
||||
|
||||
Task ID: T-DOCS-PERF-006
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared checkout /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap at ca04975. The Documents store passed 17 focused cases after the text_size_ repair. The fresh integrated reviewer T-REVIEW-005 observed a P2: eight single-character edits near the end of one 64 KiB ASCII line took 42.36 ms versus 3.09 ms near the beginning in the native debug build. Root separately owns its torn-read and envelope corrections.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Fix the long-line position conversion on actual document edit paths while preserving Unicode/CRLF and memory admission. Add a repeatable long-line option to the existing benchmark and new narrow correctness coverage for edits that introduce/remove Unicode.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Only the position index and performance evidence. Leave store, disk, session, preparation, existing document tests and all build configurations to root. The current scope is a small evidence-driven regression fix, validated by the existing planner and fresh reviewer.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect include/Void/LanguageServer/Documents/Position.hpp, src/Documents/Position.cpp, src/Documents/DocumentStore.cpp especially apply_changes/apply_replacement/line admission, tests/documents/DocumentTests.cpp and tests/performance/document_sync.py. The native debug and release tools are under build/native-validation/profiles/{debug,release}/out/bin.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Documents/Position.hpp; src/Documents/Position.cpp; tests/documents/LongLineTests.cpp; tests/performance/document_sync.py
|
||||
These four paths are exclusive to you. New tests go into LongLineTests.cpp. Root and other workers share all other paths. No branch changes, sibling edits, staging, or common native build/metadata writes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Choose a measured ASCII fast path or bounded sparse checkpoints that avoid decoding from line start for routine ASCII edits. Share decoded traversal between two endpoints on the same line. Preserve direct public checks, per-session encoding, line clamping, size/offset validation and atomic edits. Keep every new allocation charged under the existing storage contract; prefer a constant-space approach where possible. Include a mixed-ASCII/Unicode long-line case. Optimize the release code used by DocumentStore. Do not change quotas or skip validation to improve the benchmark.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Keep existing public LineIndex APIs usable. The checked same-size index contract applies to original snapshot text; changed-size mismatches return an error. apply_replacement gets old text and already validated start/end bytes, plus the replacement and max-lines allowance. An edit creating/deleting CRLF or non-BMP sequences must update any new metadata correctly. New tests use native VOID_TEST(LongLines,...). Retain tests/performance/document_sync.py's original size/samples behavior.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root integrates new tests into both builds after handoff. Return the --list names and your independent run using an isolated compiler invocation and the real native or comparison Void::Testing libraries. For benchmark use a freshly linked binary with the changed position code under your own build/doc-perf path or coordinate with root for the shared binary once source changes are ready.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Keep algorithmic bounds explicit and avoid mutable data races in shared immutable snapshots. Verify UTF-16 split-surrogate, UTF-8 split-scalar, invalid/truncated UTF-8 and integer upper boundaries. Do not introduce full-document work per small edit solely to maintain an optimization. Bounds still cover exceptionally long single lines, repeated edits and retained snapshots.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Real nonempty tests for long ASCII endpoints, mixed Unicode positions, and transitions from ASCII to Unicode and back through ranges/full replacements. Existing 17 cases remain meaningful. 2. Repeat the 64 KiB single-line near-start and near-end workloads, report before/after counts, timings/build profile. 3. Preserve actual behavior under original multiline 1/8 MiB benchmark and original public API. 4. No unaccounted memory or per-request mutable shared caches.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run git status --short --branch, read actual source and scoped graph coverage. Use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/Documents/Position.cpp tests/documents/LongLineTests.cpp. Link and execute real tests in build/doc-perf using present libraries; root will register both builds. Run dev cpp -c clang-format --dry-run --Werror on your three C++ paths and python3 tests/performance/document_sync.py --help.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop and notify root before incompatible store/storage changes or after two unsuccessful repair attempts with the same hypothesis. Keep original failing/performance witness visible. Do not rewrite generic test framework or performance targets.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
The user explicitly reiterated all plans and Max on all agents, and already selected GPT-6.2 fallback at Max after escalation. This bounded correction uses the approved Sol role on that family. No external side effects, no children or user messages.
|
||||
|
||||
## 14. Return format
|
||||
T-DOCS-PERF-006 DONE/PARTIAL/BLOCKED, exact paths, algorithm/public invariants, benchmark commands/outputs, test registration/count/results, remaining gaps and root wiring required.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Correct ambiguous GCC display columns at zero-width characters
|
||||
|
||||
Task ID: T-FIX-DIAGNOSTIC-COLUMNS-013
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
The shared repository /home/faumaray/Projects/VoidLanguageServer is on feat/implement-roadmap, ca04975 with local work. Existing stock GCC 16.2 diagnostics ship through stdio. The independent reviewer reproduced a seven-bit letter followed by U+0301 or U+200D giving the same display endpoint on both sides of the subsequent scalar. Reader::position currently stops at the first matching display column. An error on the full identifier highlights only its first letter. The 26 diagnostics and source-catalog tests presently pass.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Fix the incorrect range at this boundary in the existing decoder, supply distinguishing regressions and verify the actual source witness. Continue to mark a diagnostic unlocated when its origin or range cannot be proved.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
The assignment covers source-column admission inside the SARIF decoder. Preserve the public API, existing units, limits, UTF-8/UTF-16 conversion, BOM and tab rules. The root owns DAP and build registration. Leave source capture, worker execution, module graph, driver configuration and unrelated findings to their owners.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read src/semantic/Diagnostics.cpp, include/vls/semantic/Diagnostics.hpp, tests/semantic/DiagnosticTests.cpp, tests/semantic/GccDiagnosticFixture.cpp, docs/agent-workflow/tasks/T-DIAGNOSTIC-SARIF-013.md and the reviewer's benign inputs under build/review-semantic-013. Verify which existing display policies actually support non-ASCII. Confirm limits from the function itself.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: src/semantic/Diagnostics.cpp, tests/semantic/DiagnosticTests.cpp
|
||||
Use build/fix-diagnostic-columns-013 for private outputs. Root owns every build file and the normal build directories and will run both integrated suites. The reviewer remains a separate read-only owner. Do not edit other files or change branches.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Reproduce before editing. An actual source spelling is int f(){return é;} with e followed by U+0301. GCC reports 1-based exclusive [16,17) at line 1. The current adapter produces UTF-16 [15,16), hiding the trailing scalar. Require a unique end and start in the supported coordinate convention. When unable to characterize a following non-ASCII scalar safely under the display policy, withhold the location. Keep a proven byte boundary usable under utf8_bytes. Avoid adding a competing Unicode width table if a small conservative proof suffices. Preserve valid ASCII cases and whichever uniquely provable non-ASCII prefixes are covered by the original contract.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
The independent review also demonstrated that an artifact table entry declaring a conflicting self-index can authorize an empty clear. In the same two owned files, require any present artifact location index to be its actual table position using the exact integer variant. Exercise out-of-range, wrong-type and conflicting index cases against the valid position.
|
||||
decode_gcc_diagnostics maps DiagnosticJob + DiagnosticOutput into DiagnosticBatch. A gap uses LocationGap::ambiguous_column, retains the compiler message and prevents a false complete clear. Both endpoints and the original immutable source snapshot matter. Preserve policy distinction between ascii_consensus, gcc_display and utf8_bytes; keep bounds in the reader's work budget.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Based on T-REVIEW-SEMANTIC-013's November 28 independent evidence. No compiler modification or upstream dependency required. Notify root when independent object checks and patches are ready. Root will perform integrated build and re-review.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Check a zero-width codepoint exactly after the candidate boundary, at the beginning of a line, multiple zero-width scalars, and a normal ASCII control. Preserve bounds on maliciously long lines and repeated diagnostics. Do not introduce file reads while decoding or attach guessed locations.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. The combining and joiner witnesses never return the incorrect partial-token highlight. 2. A validated UTF-8 byte report and an ordinary ASCII token still map correctly in the negotiated encoding. 3. A partial result retains its message and distinguishes unavailable columns from a valid empty report. 4. All previous body registrations are preserved.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c with the compile definitions and include directories from build/bootstrap/compile_commands.json. Compile the two owned files into the private directory; link a dedicated test runner using the existing library and test main as appropriate, or ask root for the normal build at handoff. Run the focused Void::Testing suite with --no-color and the existing GccDiagnosticFixture on the reviewer's recorded SARIF if practical. Run dev cpp -c clang-format --dry-run --Werror on the two owned files. Report actual commands and outcomes, and the new test count.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
If source representation or parser differences invalidate the witness, report exact evidence. No Git mutation, sibling edits, shared builds, extra models, further workers or messages to the user. Stay within the two owned paths.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022 authorizes all roadmap development, D-025 native integration, D-027 GPT-6.2 Sol at Max. This scoped correctness fix fits the existing preflight contract.
|
||||
|
||||
## 14. Return format
|
||||
T-FIX-DIAGNOSTIC-COLUMNS-013 DONE/PARTIAL with owned files, direct test results, prior/fixed outputs, case count and release of ownership. Send an early implementation-ready notice to root.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Capture and stop on real GCC 16.2 integral evaluator results
|
||||
|
||||
Task ID: T-GCC-EVALUATOR-017
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. No other compiler patch owner. User D-030 approved this local prototype. GCC 16.2 official archive c51c30ca7422d0cbecf504b2e0f33c3aca31e0f90a76b65217f465163fa6fa17b3f5de39e145c47e5bab90ac0ce7fff3b03c8d553ae36e01faaea5a50f8648d1 matches release tag 78d4ac73dd391005b895a6148cd9831e28e1208b. Private cc1plus built, matched host predefined macros/ordered libstdc++ via reference-cxx and passed 19 reference, 8 tooling and 33 module scans. Preflight T-PREFLIGHT-GCC-008 cleared the ordinary integral evaluator slice with amendments below.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the first versioned patch to real GCC internals and a direct bounded runtime fixture. Produce actual event-time integer values, nested bodies and cooperative stops in an isolated cc1plus process. Send the patch/application instructions early so root can build while you finalize the harness.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Only compiler hooks for ordinary integral consteval/constexpr returns, metadata/handshake, stops and direct test harness. No AST lookup/diagnostics relocation, VLS client/worker launch implementation, production registration or changes to installed compilers. Constraints/reflection semantic events are a later slice.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/{T-PLAN-GCC-008,T-PREFLIGHT-GCC-008}.md, tests/corpus/frontend/gcc-live.cpp, exact build/gcc-gate/gcc-16.2.0/gcc/{cp/constexpr.cc,cp/lex.cc,cp/Make-lang.in,c-family/c.opt,json.cc,json.h,tree.h}. Inspect GCC raw source on disk, treat it as read-only. Compiled baseline: build/gcc-gate/compiler-build/gcc/cc1plus. Probe logs under build/gcc-gate.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: compiler-patches/gcc-16.2.0/0001-evaluator-events.patch; tests/corpus/frontend/verify-gcc-events.py
|
||||
Generate/update the unified patch using private scratch build/gcc-gate/patch-author/ copies of only touched source files; no writes to official extract, compiler-build, installed gcc, shared VBS/CMake trees or sibling repositories. Root alone applies the patch to the owned release tree and rebuilds cc1plus. No branches, staging, commits, external messages or children.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
In cp/constexpr.cc cxx_eval_call_expression admit direct FUNCTION_DECL with relevant real source after bound args (~4279). Open scoped attempt before lazy instantiate_decl 4291, actual body at 4531, capture ordinary scalar real get_value(res) at 4552 before destruction at 4576, post-clean-up outcome near 4653–4688. Distinguish real body/cache hit 4426, throw/jump_target/failure/overflow, void/constructors/unsupported; don't manufacture children for cached/folded results. For the actual returned INTEGER_CST, copy type precision, signedness and bits with correct truncation/negative handling. Never retain a GC pointer for serialization later. Disabled fast path cheap and bypasses formatting and I/O. Gate on private compiler option and validate private pipes. Locate cxx_init/cxx_finish in cp/lex.cc and registration/object list. Avoid interacting with ordinary output. Read-only planner identified exact source anchors and preflight approved this path.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW local compiler probe v1. Two fixed inherited pipes: fd 3 for control, fd 4 for event records. Opt-in private -fvls-observe, add -fvls-step for cooperative stops. VLS_GCC_NONCE is exactly 32 lower-case hex chars supplied by the trusted harness. Emit one bounded strict UTF-8 JSON object per LF line: {v:1,nonce,seq,kind,...}, contiguous seq from 0. hello first reports backend='gcc-16.2.0/vls-eval-1', supported kinds/capabilities. enter/body/value/cached/leave may carry integer frame and parent (null for root), name, source, line and byte column if established. value has an immutable value object {kind:'integer',precision,signed,bitsHex} with exact lower-case hex, or explicit unavailable; primitive widths 1..64. Treat body result as provisional until leave's outcome. stopped follows a supported value in stepping mode. Its seq is the stop generation. Accept only bounded control lines '<nonce> <stop-seq> step|continue|cancel\n' for this stop. Wrong or missing controls cannot resume execution. frontendEnd indicates frontend finalization; wait status plus separate diagnostics determine final outcome. Helpers must escape or reject every invalid UTF8/control byte before formatting. Cap events (e.g. 4096), frame bytes 64KiB, control 4KiB, total trace (e.g. 1MiB), emit terminal truncation where possible; do not emit JSON as an unbounded printing side effect.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root will syntax/build/test/apply patch to the verified source and relay compiler errors for you to fix in the patch. Source inputs for your harness are the existing gcc-live.cpp + controlled replacements in private temporary dirs. Test gcc disabled and enabled using the same source snapshot, no stdout ambiguity. Allow helper mapping in the test harness only for direct pipe setup. Root/other worker owns the separate bounded production-language C++ worker.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Use narrow fixed-ASCII validated wire subset or strict writer for all text values; GCC json.cc emits invalid JSON for certain C0 strings. Detect partial writes/EINTR/errors, bound sizes before formatting. Nonce and stop generation prevent stale controls. Snapshot as provisional, only close success after cleanup; propagated jump_target takes precedence over normalized void. Capturing a tty/invalid fd must not stall ordinary compiler output. Explicit terminal reason/verified prefix on control loss. Backend never reaches out to a file or network for control.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Real runtime fixture: Ready=17/41 and identical >0 tests produce actual return pairs 17/34 and 41/82, extra bias=5 differentiates further. At held inner value prove same child PID is alive with no subsequent event until a matched step/resume, then observe outer return. Cancel another run at the same real stop; missing outer return and reaped process. Test backend/nonce/schema/sequence, parent/leave pairing, wrong control, EOF, scalar widths/negative or explicit unsupported, disabled parity/failed constraint. Ask root for patched binary when patch ready.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run codex-tasklint already done by root, git status --short --branch. Use patch --dry-run -p1 against clean GCC 16.2 source. Root runs dev cpp-gcc -c make -C build/gcc-gate/compiler-build/gcc -j2 cc1plus, supplies binary path. Run dev cpp-gcc -c python3 tests/corpus/frontend/verify-gcc-events.py --cc1plus /absolute/path/to/patched/cc1plus with bounded deadlines. Report each real result and unrun checks.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for unresolved ambiguous value lifetime, need for project licensing decisions, changes outside assigned paths, or inability to prove live actual values. After two failed repair cycles provide root new hypothesis. No fabrication or progress claims before compiler-origin evidence.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User approved GPT-6.2 Astra at Max and local modified compiler prototype, licensing and distribution deferred. The fresh independent preflight's READY applies only to evaluator portion. Preserve other pending preflight gates.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-EVALUATOR-017 DONE/PARTIAL/BLOCKED, exact patch files/compiler members, private API, commands/exit/observed values/control, failure outcomes and integrations.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Observe resolved GCC source occurrences and witnessed definitions
|
||||
|
||||
Task ID: T-GCC-IDE-008
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VoidLanguageServer feat/implement-roadmap ca04975. Root has applied immutable first evaluator patch 4b4ff5b6 (build/gcc-gate/applied-0001.patch) on owned verified GCC 16.2.0 source in build/gcc-gate/gcc-16.2.0. T-PLAN-GCC-008 established real source anchors. Independent T-PREFLIGHT-GCC-008 approved this narrow slice subject to physical provenance, all-level tentative parsing, positive definition evidence and separate fixed IDE mode. Baseline eight tooling probes exercise actual compiler output.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement a second versioned unified patch and bounded real acceptance harness for narrow typed call/member occurrences and their observed source definition or declaration. Give root an apply-ready patch early.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Compiler-owned facts for direct parsed resolved ordinary calls and explicit fields in the fixed read-only GCC IDE experiment. No LSP methods, background build execution, inferred general reflection support, distribution or changes to launcher fixed evaluator flags.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect patches/actual compiler members from T-GCC-EVALUATOR-017, tests/corpus/frontend/{gcc-queries.cpp,probe-gcc-tooling.py,verify-gcc-events.py}, actual gcc/cp/{parser.cc,decl.cc,lex.cc,vls-eval.{h,cc}}, c-family/c.opt, libcpp/directives.cc, gcc/diagnostics/sarif-sink.cc, linemap support and actual generated header flags in build/gcc-gate/compiler-build/gcc.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: compiler-patches/gcc-16.2.0/0002-ide-occurrences.patch; tests/corpus/frontend/verify-gcc-ide.py
|
||||
Author against private minimal member copies under build/gcc-gate/ide-author. Never write active GCC extract/build, 0001 or other owners' files. Root owns applying/rebuilding both. No staging, commits, branch changes, child agents, external sends.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Capture terminal unqualified-id token before opening paren in cp/parser.cc around 7150–64/8941, resolve after finish_call_expr 9129 using ordinary CALL_EXPR + cp_get_callee_fndecl_nofold and TREE_TYPE. Capture explicit p.x name at 9639, resolved COMPONENT_REF FIELD_DECL after final rejection check 9745–50. Suppress unresolved/tentative AST facts unless all enclosing levels committed (checking top alone wrong); use bounded deferred candidate buffer and all-level suppression or precise rollback. Witness actual definitions (e.g. real function body finalized cp/decl.cc ~20583), ordinary field origin via grokfield ~31583; synthesized/redeclared/implicit/macro/unknown cannot masquerade as a definition. No positive conclusions from matching spelling/lines alone. Verify stable physical token range for both use+target, primary fixed snapshot, no overlays beyond current invocation. Guard same-file #line/linemarker collisions using final seen_line_directive or genuine physical proof. Remember std headers may have numeric markers; be honest about degraded coverage. Collect compact owned metadata/indices with strict caps; never GC tree pointers after compiler hooks.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW private probe option -fvls-ide, distinguish hello capability and observed facts from evaluator-only mode, incompatible flag combos rejected or clear. Reuse v1 two-pipe strict writer/sequence/nonce/bounds in 0001 without changing existing evaluator behavior. Specify event names and fields, concrete byte ranges (one-based GCC raw bytes mapped to half-open span), invocation-local IDs, typed result and source authority, location-kind/explicit gaps, immutable snapshot identity supplied by harness. Emit IDE records only after confirming origin at finalization before frontendEnd. Narrow arbitrary operand within fixed query.cpp. Send root exact fixed mode requirements and wire early; separate owned IDE harness can use -fdiagnostics-format=sarif-stderr and -fvls-observe -fvls-ide. SARIF columns are display units; require byte/snapshot proof or mark diagnostic range unavailable.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root is currently compiling 0001, will own incremental application to compiler-build. Observer 0001 owner may revise 0001. Coordinate with root before patches sharing writer/HELLO/lex/c.opt are re-based. Never run make in shared compiler-build. Use copied/narrow fsyntax-only checks while root builds.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound all fields/events and candidate memory independent of translation-unit size; if obscured or incomplete, explicitly withhold affected facts. No arbitrary file reads from #line origin, no saved GC pointers, no unrestricted flags from projects. No exposed production compilers, no advertising unsupported IDE features. Test coordinates across tabs, combining and supplementary Unicode; conversion must detect ambiguity.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Real private compiler: saved point operand -> actually witnessed line 6 int, edit same call -> line 7 double, invalid edit -> genuine SARIF failure with no old overload, recovery -> line 6. Field use 6:46 -> actually witnessed field at 3:9. Add duplicate same-spelling occurrences with distinct physical use positions, forward-only declaration, same-file '#line 11' collisions, tentative or speculative/no admitted evidence, macro origin, tab/emoji differing display/byte/UTF16. Validate real hook output matches only observed identities; disabled evaluator baseline unchanged.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; patch --dry-run --fuzz=0 -p1 using private patch-0001 base; Python syntax checks with no checkout bytecode; root will run dev cpp-gcc -c make -C build/gcc-gate/compiler-build/gcc -j3 cc1plus. Run dev cpp-gcc -c python3 tests/corpus/frontend/verify-gcc-ide.py --cc1plus /absolute/path when root releases built binary, using temp private fixtures and timeouts. Give exact failing output/proof for skipped coverage.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if unsupported physical coordinates or tentative behavior cannot be proven: report explicit withheld evidence, don't fabricate. Escalate if shared first patch API must be changed instead of additive second patch. On two failed repairs report new hypothesis. Limit private patch to approved GCC source version.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-025 native primary, D-027/D-029 configured GPT-6.2 family Max, D-030 approved local patched compiler only. Review assignments stay GPT-6.2 Astra Max. Keep license and distribution deferred. This is the difficult direct IDE slice cleared under amended preflight.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-IDE-008 DONE/PARTIAL/BLOCKED with owned paths, exact baseline/patch digest, wire fields, commands and actual statuses, per-fixture positive and unavailable evidence, limitations and integration requirements. Return early patch-ready handoff and bounded real results.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Launch the selected GCC frontend with isolated event and control pipes
|
||||
|
||||
Task ID: T-GCC-LEAF-009
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer feat/implement-roadmap, baseline ca04975. User D-030 approved isolated GCC16 prototype and versioned hooks. T-PLAN-GCC-008 and T-PREFLIGHT-GCC-008 independently approved this launcher slice. Verified GCC 16.2 unmodified cc1plus at build/gcc-gate/unmodified/cc1plus; currently patched build under build/gcc-gate/compiler-build/gcc/. Root owns make and repository build files.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the fixed-fixture private frontend leaf in C++ using VoidLibrary SHA/process-compatible FDs and OS limits. It must execute exactly the approved ELF bytes while providing distinct control, events and diagnostics streams.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Leaf process setup and dedicated test harness only. The supervisor launches its own trusted executable /proc/self/exe with a private --leaf mode and Void::Process. No production LSP hook, selecting tools from metadata, general-purpose flag forwarding, parent control/state machine or policy reconfiguration.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read compiler-patches/gcc-16.2.0/0001-evaluator-events.patch, T-GCC-EVALUATOR-017 and T-PREFLIGHT-GCC-008 (wire), build/voidlibrary/current/include/Void/{System/{Types,Process},Crypto/Crypto}.hpp and generated src/System/Process.cpp; actual sibling source is read-only. See include/Void/LanguageServer/Support/RegularFile.hpp for Linux bounded regular capture. Source scratch receives the single reviewed fixture as input.cpp.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: experiments/frontend/gcc-worker/Leaf.hpp; experiments/frontend/gcc-worker/Leaf.cpp; tests/native/GccLeaf.py
|
||||
These three paths are exclusively yours. Use own ignored build/gcc-leaf-tests for isolated artifacts and witness program. Root owns normal executable main, architecture and build registration. No sibling or shared build-tree edits, staging/commits, further agents or user messages.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Implement vls::gcc::run_leaf(std::filesystem::path compiler, std::string_view expected_sha256, std::string_view nonce, bool stepping) returning 126 for setup failure, noreturn-by-exec on success; a diagnostic on stderr is bounded. Parent supplies cwd as private fixture directory. Consume stdin/control and stdout/events pipes from parent. dup to FD3 control, FD4 event before opening/moving checked compiler ELF to fd>=5, isolate compiler stdin/stdout on /dev/null, preserve stderr. Restrict raw FD and environment leakage. Validate pipes/nonce/SHA and regular binary. Bind digest to immutable bytes even if a developer recompiles in place (e.g. copy checked file into sealed memfd, verify SHA actual transferred bytes, set write/grow/shrink/seal and execveat AT_EMPTY_PATH). Report unsupported kernels/permissions explicitly. Preserve ELF loader semantics. On Linux, impose real RLIMIT_AS, RLIMIT_CPU, RLIMIT_CORE, bounded output/descriptor setup; avoid applying a file-size limit before copying the compiler. Spawn no shell/wrapper. FD and signal lifetime must be verifiable; failure never invokes a different binary.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Fixed compiler args: -quiet -std=c++26 -freflection -fsyntax-only -nostdinc -o /dev/null -fvls-observe, optionally -fvls-step, then input.cpp. C locale, empty PATH, VLS_GCC_NONCE exactly 32 lower-case hexadecimal, own explicit env only. No compiler flags, paths or shell spelling from project settings. Compiler protocol uses fd3/4. The SHA-256 (64 lower-case hex) is selected explicitly by trusted prototype parent; no implicit path-based trust. Keep worker and VLS project license deferred as authorized.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root supplies main's --leaf mode + parent under disjoint paths. A direct private harness main in your ignored build can call run_leaf (report how). Root will integrate source and real cc1plus. Coordinate expected exit statuses for setup errors, wait/cancel and limits. Dedicated debugger worker is opt-in standalone, never advertise operations to LSP during this slice.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Address fd3/4 collisions, CLOEXEC, files replaced while being read, non-ELF/script/nonregular input, inherited environment, empty/damaged digest, oversize compiler, symlinks and kernel refusing executable memfd. Use measured hard bounds allowing ~100MB test compiler. Avoid reading source bytes or home data in launcher. Parent owns subreaper/group cleanup; process-local error unwinding should release temporary descriptors. Bounded diagnostic text.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Run a real harmless compiled witness that verifies child FD3/control and FD4/event, raw stdout isolated and separate stderr. Verify exact args/nonce and parent env exclusion. Wrong SHA, nonregular/script, corrupted/truncated candidate, invalid nonce and FD setup must exit before execution. Test binary identity if named path replaced, verify AS/CPU/CORE limits. With private real cc1plus if ready, execute a hello and known fixture controls. Never use a mock to claim the real frontend ran.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only experiments/frontend/gcc-worker/Leaf.cpp. Build standalone harness under build/gcc-leaf-tests and run python3 tests/native/GccLeaf.py using that harness. Run clang-format --dry-run --Werror (dev cpp) on your C++ files. Report actual results and returned signals/status.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
After two unsuccessful attempts with the same diagnosis return exact errors and a changed hypothesis to root. Stop for need to change subprocess authority, prototype license or global machine limits. Do not make an unverified fallback to pathname exec.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User D-030 authorizes this local leaf and prototype. GPT-6.2 Astra Max. Independent reviewer approved launcher with explicit immutable execution and fd-before-open amendments.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-LEAF-009 DONE/PARTIAL/BLOCKED, paths, API/witnesses, exact limits, commands and results, real-vs-harness evidence and root wiring.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Make the private GCC 16.2 prototype reproducible from its release archive
|
||||
|
||||
Task ID: T-GCC-PREP-008
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared worktree feat/implement-roadmap ca04975. This is an implementation of the approved private GCC/D-030 feasibility prototype and reproducibility requirement. Official local release build/gcc-gate/gcc-16.2.0.tar.xz passed SHA512 c51c30ca7422d0cbecf504b2e0f33c3aca31e0f90a76b65217f465163fa6fa17b3f5de39e145c47e5bab90ac0ce7fff3b03c8d553ae36e01faaea5a50f8648d1. Two checked-in patches (0001 evaluator and 0002 IDE) have been applied to GCC with zero fuzz and compiled. Compiler prototype leaf and IDE/evaluator harnesses now work. Existing build has unreproducible absolute scratch driver and hand-configured paths. Root owns it; work only in new paths.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
The earlier assignment returned HTTP 429 before writing the helper or instructions. The stock GCC/GDB experiment remains independent. Keep this opt-in reproducer confined to its two owned paths.
|
||||
Provide a user-runnable, opt-in local preparation/build helper and short dedicated build/verification instructions for the two private compiler patches and reference header parity. It must reproduce cc1plus on this Nix host without editing installed toolchain or requiring /usr/include. Reuse checked source if available with verification; no binary distribution.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Only the local tool preparation and experimental README. Do not integrate an installed compiler into default VLS or choose a product license. Do not change existing active compiler build, baseline or GCC patches, user shell or external repo. No new package manager configuration.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read build/gcc-gate/{release.sha512,configure.log,build.log,build-sysheaders.log,reference-cxx,reference-includes.json,macro-differences.json}, compiler-build/config.log actual invocations, GCC generated Makefile configure-* targets and gcc/Makefile stmp-fixinc. Read current repo compiler-patches and tests/corpus/frontend/{verify-gcc,verify-gcc-events,verify-gcc-ide}.py, tests/corpus/modules/verify.py, tools/prepare-voidlibrary. Existing dev cpp-gcc shell GCC wrapper includes headers reference must match. Avoid reading or logging private Nix/runtime config.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: tools/prepare-gcc-prototype; experiments/frontend/README.md
|
||||
Private build/gcc-reproduction allowed. Root owns other sources/docs and all shared build directories and source extracts. Never append to active build/gcc-gate files or touch siblings. No branch/commit/network publication/child agents or user sends. Download of official GCC public RELEASE into own ignored directory only if explicitly requested by tool flag; local archive already available for verification.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use actual public release URL and pinned SHA512 checked before extraction, only owned generation output, guard against shared wrong dir/tar traversal, command nonzero/abort and partial build retry safely. Pin versions via release+patch contents and build config; avoid rewriting a previous known-good generation. Use own GCC source/build, patch --fuzz=0 in order, explicit absolute paths, build cc1plus directly via actual prerequisite targets or a legitimately fixed top-level build. Derive GMP/MPFR/MPC include/lib via explicit options or authoritative toolchain discovery (Nix split outputs, pkg-config may lack files); avoid host-specific hardcoded /nix/store paths in checked-in sources. Provide targeted flags/options for prerequisite discovery and verify your actual chosen command. Keep complete command arguments in local output state with no ambient environment dumps.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW standalone command tools/prepare-gcc-prototype: document actual options --archive FILE, --build-dir DIRECTORY or equivalent, -j/--jobs, optional environment Nix prerequisites. Must write machine-readable provenance and helper to use private cc1plus via the matching reference g++ wrapper for language corpus. Capture real reference include search output, PIE/default preinclude/predefines; check macro differences not guessed Nix paths. Use only trusted user-selected reference compiler, safe subprocess argument lists; avoid shell injection in generated wrappers for paths with spaces. Fixed leaf/direct IDE `-nostdinc` is separate from actual full standard lib editor-context gate.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Independent package under D-030 (local only). Root owns CPP run supervisor and both default builds; your helper can use all existing tests without altering them. Early final command-line recipe handoff helps root doc links. Verify genuine independent GCC build in your OWN output if feasible, run jobs<=4 while integrated builds active; ample disk but report any external prerequisite. Exact GCC 16.2 release archive available locally; gate all mutations on verified owned output.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Concurrent runs for a destination must not corrupt it. Reject unverified archive, existing nonowned directory contents and symlink source/build retarget; standard archive tarfile data filter or properly checked extraction. Avoid source-directory mtime/patch state causing silent wrong binary reuse after patch changes; digest provenance. Make errors leave previous usable image; no automatic install, uploads or network fallback on failure.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Demonstrate --help, refusal of corrupt archive/occupied output, real clean/configure/targeted compile in isolated dir, exact two patch digest/ELF hash, cold/warm repeated invocation, actual private language19, evaluator and IDE harness checks (expected deliberate errors) + native module probes. If a long build starts, provide root exact PID/session and partial result; root can take over recorded handle. No substitute of stock cc1plus on verification.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c tools/prepare-gcc-prototype with absolute verified archive and reserved build/gcc-reproduction (or unique child); print exact options used. Python syntax with ast.parse; lint new script via normal shell/check only. Record actual sha512sum outputs and source-target exit statuses, not just paths. Root builds regular VLS separately.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for irreversible actions outside owned ignored folder, unexpected downloaded dependencies, changed/rebased GCC patches mid-build or inability to find building prerequisites. If host toolchain discovery fails, return actual error/hypothesis and continue independent documentation/testing. No replacing or distribution of proprietary binaries.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Approved local private versioned compiler prototype under D-030, native VBS remains main server build and VoidLibrary tracks main. GPT-6.2 Sol at Max for this general reproducibility package. Product compiler license distribution deferred.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-PREP-008 DONE/PARTIAL/BLOCKED, exact helper/docs, command lines, compiler/patch/source identities, proof of distinct private build, cold/warm & failure cases, residual host/tool prerequisites and live handle if applicable.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Control and replay the isolated GCC evaluator in C++
|
||||
|
||||
Task ID: T-GCC-SUPERVISOR-018
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared repo feat/implement-roadmap at ca04975, existing implementation authorized. Exact GCC patch 0001 builds and real verify-gcc-events.py exits 0: 17/34 on old snapshot, 41/82 on edit, cancel 125, control failure 126. The patched cc1plus is 135307304 bytes (build/gcc-gate/compiler-build/gcc/cc1plus). Planner T-PLAN-GCC-008 and fresh reviewer T-PREFLIGHT-GCC-008 cleared the bounded control/replay design. Another worker owns Leaf.cpp/.hpp; root owns shared builds and LSP.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the standalone local C++ prototype parent and replay entry point using Void::Process, VoidLibrary StrictJson facade and copied compiler records. Demonstrate live step, cancel and replay from the same recorded stop on the private compiler.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
One active frontend per local prototype process, fixed leaf/input and integral evaluator only. No general compiler flags, editor integration, DAP, filesystem workspace discovery, public installation/distribution or production feature advertisement.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect T-GCC-LEAF-009, T-GCC-EVALUATOR-017, compiler-patches/gcc-16.2.0/0001-evaluator-events.patch (source of truth), tests/corpus/frontend/verify-gcc-events.py, tests/corpus/frontend/gcc-live.cpp, docs/roadmap/{18-live-debugging,19-trace-replay}.md, include/Void/LanguageServer/Protocol/Json.hpp, Void::Process header/implementation in build/voidlibrary/current, System/TempDir, Crypto/Sha256 or actual Crypto.hpp APIs. Confirm actual FD/try_wait/terminate shape before implementation.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: experiments/frontend/gcc-worker/Main.cpp; experiments/frontend/gcc-worker/Supervisor.cpp; experiments/frontend/gcc-worker/Supervisor.hpp; experiments/frontend/gcc-worker/Trace.cpp; experiments/frontend/gcc-worker/Trace.hpp; tests/native/GccSupervisor.py
|
||||
Private build/gcc-supervisor-tests only for checks/harness. Leaf.hpp/cpp, GCC patches, both shared builds, server and docs owned by others. No Git/branch changes, public sends or children.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Implement private executable: --leaf validates argument form and dispatches vls::gcc::run_leaf(absolute selected compiler,sha256,nonce,stepping). Parent uses /proc/self/exe + Void::Process::spawn, search_path=false, explicit minimal env, new process group, PR_SET_CHILD_SUBREAPER before spawn. Copy explicitly chosen bounded fixture bytes into private TempDir/input.cpp, bind hash/compiler digest and fresh OS-random nonce. Run fixed leaf protocol with poll-driven bounded full-duplex I/O, separate events/stdout, controls/stdin and stderr. Maintain strict concrete state for observed hello/enter/body/value/cached/leave/stopped/resumed/terminal/frontendEnd, partial lines, running/stopped time, quota and PID. Treat copied value as provisional until leave, do not infer frames for cache. Persist captured source, immutable identity, terminal state and verified records to an explicitly named exclusive/new trace or owned directory. Provide offline replay at chosen event/stop/sequence, report matching frame/value stack from validated prefix with integrity checks. Input cutoff/cancel/truncation retains only verified prefix.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW standalone local prototype (root can register as vls_gcc_probe). Provide explicit self-describing CLI for run, step, cancel and offline replay, document actual spelling early. Live control messages from parent caller bind current nonce+stop and one use. Accept exactly one action from current stopped state; no queued preauthorization/predicted ordinal. In interactive mode consume + serialize commands, require actual resumed echo before post-stop movement; running cancel terminates group. Trace frames version 1, nonce, contiguous seq from 0; pin expected ELF identity, GCC handshake backend and PID, declared kinds, required frame+parent stack, value bit widths/format and null metadata. frontendEnd only indicates frontend finish; conclude success after balanced frames, EOFs, valid child wait + diagnostics. Replay must work with compiler absent; distinguish conclusive success, failed, partial, cancelled, terminal or quota, do not promote truncated open frames. Wire optional value projection JSON/stdout of prototype can be used by bounded integration test. Coordinate interfaces early.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Leaf owner separately implements and verifies prototype leaf, stable C++ signature in T-GCC-LEAF-009. Root may integrate your files as soon as present and will relay build errors. Use a temporary leaf-only testing source in your own ignored directory only for targeted failure-process fixtures; real compiler session/replay required once the leaf is ready. Keep supervisor/replay APIs usable by future authorized debugger work.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound input before reading, messages/partial LF, bytes, trace entries, source, stderr, live wall and paused idle separately. Preserve compile return status and bounded stderr. Suppress SIGPIPE safely on closed controls. Block user speculative/duplicate/stale control; continued visits and handle generations must be explicit. Cancel/timeout handles stopped, running, leader-first and backpressured descendants; always drain both streams then terminate/reap group and adopted processes on deadlines. No leakage across process groups, no external sends or folder reads from manifest locators. Fail closed on malformed manifests, open evidence incomplete or wrong backend. No implicit overwrite of traces.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Exercise real fixed fixture original, edited, true pause+step then continue, cancel at inner with no outer, stale/double/resume-ack check, terminal on invalid/dead child, actual bounded stderr flood/partial frame and leader-first exit through private benign witness. Replay original 17/34 after source mutation to 41/82 and without usable compiler; cancelled prefix reconstructs copied provisional inner result (no invented successful return). Validate sections/corruption/truncation, source identity, nonce/seq, max limits, CPU/wall vs paused, deadline and absence of live descendants. Catch implementation defects; no fake compiler evidence.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include and focused links to actual vls_protocol, Void_System/Crypto and pthread plus Leaf.cpp, or root built vls_gcc_probe. Run dev cpp-gcc -c python3 tests/native/GccSupervisor.py --help followed by documented real command with the absolute probe/compiler. Use dir build/gcc-supervisor-tests; root owns build/bootstrap and native build. Record real exit, ports use local pipes only, frame values and work not run.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for changes outside the assigned prototype or a required change to the shared leaf API. Two failed repair attempts require changed hypothesis. On 429 or blocked leaf, deliver validated independent parser/replay, private controlled process tests and exact integration requirements. Never claim complete full roadmap18/19/20.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User D-030 approved local GCC instrumentation/worker prototype, D-025 primary VBS, D-027/029 GPT-6.2 family Max. This is the accepted prototype slice. Subsequent adopted frontend/IDE and DAP capability remain separate gates.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-SUPERVISOR-018 DONE/PARTIAL/BLOCKED, precise paths/CLI/API, real cc1plus launch and control, saved/replayed values, bounds/cleanup, validation commands and residual integration risk. Return early CLI and source readiness then final evidence.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Validate evaluator event-time state and implement durable trace replay
|
||||
|
||||
Task ID: T-GCC-TRACE-019
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared root feat/implement-roadmap ca04975. User D-030 approved private GCC hooks and worker. Real evaluator and sealed Linux leaf capture 17/34 after a pause/step, 41/82 on edited input, and cancelled 125/failed 126. T-PLAN-GCC-008 and T-PREFLIGHT-GCC-008 cleared bounded control/replay. Two prior supervisor assignments returned HTTP 429 before writing files. Root implements Main.cpp, Supervisor.hpp/.cpp and owns frozen Trace.hpp. This package is the independent trace/replay portion only.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement a bounded event validator, one-use stop control, private append-only journal and offline historical reconstruction behind the actual new Trace.hpp. Provide direct focused tests, then real integration through the actual supervisor operated by root.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Pure copied event/source state plus local persistence, no process launch, stdout protocol or CLI, server, DAP or shared build config. This task implements the integral-return prototype and its recovery behavior.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read experiments/frontend/gcc-worker/Trace.hpp, compiler-patches/gcc-16.2.0/0001-evaluator-events.patch (actual serialization), T-GCC-SUPERVISOR-018, tests/corpus/frontend/verify-gcc-events.py, Protocol/Json.hpp implementation in src/Protocol, build/voidlibrary/current/include/Void/Crypto/Crypto.hpp, docs/roadmap/19-trace-replay.md. Source files under current worktree are authoritative.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: experiments/frontend/gcc-worker/Trace.cpp; tests/debug/TraceTests.cpp
|
||||
Use only those two tracked paths; root owns Trace.hpp, standalone main/supervisor, CLI and builds. For artifacts use your own ignored build/gcc-trace-tests. No Git ops, remote sends, sibling edits, child agents or shared package changes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Validate bounded strict JSON v1 envelope, exact nonce and monotone integer seq. HELLO first expected version/backend/PID/capabilities: actual patch sends hello with 10 supported kinds. Require frame and parent on frame events, parent/top discipline, entered body then value (or cached); acknowledge actual matched control action for the correct stop before movement. Retain immutable copied integer precision, signed and lowercase bitsHex, distinguish unavailable and failing later cleanup. Track current active frames, provisional value, explicit partial and terminal reasons; don't infer values from names/sources. Preserve frame IDs even if nested calls or unexpected compiler ordering; check real event corpus (see witness test) before overconstraining. Read all docs for stdin control shape. A corrupt event must not advance state or poison last verified prefix.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Frozen API is Trace.hpp. create(output,source,compiler_sha,nonce,pid) exclusively creates a private journal (0600), hashes source, binds it+compiler identity to manifest, no overwrite. event(line without LF) validates and durably appends a complete record before publishing it to callers. authorize(stop,'step'|'continue'|'cancel') matches current unconsumed stop once, journals local command before return; stopped() then excludes consumed action while resumed remains required. ended() is true only after balanced frontendEnd. terminal() gives compiler terminal reason if any. inspection() returns owned JSON {nonce,sequence,stop,frames:[{frame,parent,name,value?,outcome?}],...}, inner frame last, sequence nullable before first event; integer value shape same as compiler. finish(outcome,exit_code,diagnostics) records verified process outcome separately; supported strings completed,failed,cancelled,truncated,expired. Completed requires genuine successful closed frontend, exit0. replay(journal,optional seq) returns same snapshot inspection including captured source, compilerSha256, sourceSha256, outcome and partial/corrupt status. seek returns state immediately after selected compiler event and before subsequent commands. Preserve read-only output with valid prefix on interruption. No arbitrary opens dictated by data in the file.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Implement the already-reviewed control/replay portion; no dependence on unfinished C++ supervisor for unit tests. Direct compile and test with C++26, small harness fixtures from captured real GCC event shapes. Notify root early if an actual wire mismatch affects integration. Root links implementations and performs real record/edit/replay after your handoff.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound trace to actual 4096 events, ~1MiB payload, 4096 bytes per compiler frame, bounded source/diagnostic/metadata and command count. Use bounded file IO before allocation; corruption or truncation must not promote later records. Provide bounded record integrity, e.g. SHA-256 hash chained over length/previous record and exact bytes. Read only regular file; replay never executes commands or follows manifest paths. Handle short write, EINTR, concurrent or unsuccessful recording, partial tail and no in-place overwrite. Cap indexing and reconstruction memory; avoid copying all historical stacks per event.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Tests distinguish hello mismatch, bad ordinal/parent/frame, wrong integer bit length, stale/double control, resumed without command, cancellation prefix with open provisional frame, legitimate failed leave after provisional value, completion requires genuine wait outcome. Verify cursor snapshots and identical old source after disk edit/removal, truncation/tampering/replay-only without compiler, bounded corrupt line, exclusive create and no unintended artifacts. Root will exercise actual captured compiler stream+interactive supervisor separately.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only experiments/frontend/gcc-worker/Trace.cpp tests/debug/TraceTests.cpp; link dedicated runner with build/bootstrap/libvls_protocol.a and Void_Testing,Void_Crypto,Void_System,Void_LogState,pthread. Run --list --no-color then --no-color. Formatter dev cpp -c clang-format --dry-run --Werror on your two files. Keep any fixtures private.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for incompatible schema/API or new security authority; notify parent before changing public path/field. Two unsuccessful repair attempts require changed hypothesis. If dependency data does not support claimed completed trace report the gap explicitly. Never perform user-facing release/IPC work under this assignment.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-027 Max explicit gpt-6.2-sol for general implementation, D-029 reviewer remains Astra Max; D-030 approved local GCC experiment and deferred distribution. Root owns process integration and launch trust.
|
||||
|
||||
## 14. Return format
|
||||
T-GCC-TRACE-019 DONE/PARTIAL/BLOCKED, exact files/CLI independent API, journal format/limits, evidence commands, actual assertions and residual integration. Return early parser ready status when root can link.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Represent build contexts and publish results against their exact inputs
|
||||
|
||||
Task ID: T-MODEL-005
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Work in /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap (ca04975 with authorized foundation changes). T-PLAN-002 established the model order. T-PREFLIGHT-004 requires stable disk identity, owning translation units, ordered lookup evidence and readiness per operation. There is no existing build-model implementation. Read current files before writing.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the provider-neutral value model, selection and revision/publication boundary for roadmap 05. Supply native Void::Testing tests and the interfaces providers 06/07 should consume. Return a brief interface outline early so root can prepare provider contracts.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Own only the new shared C++ build model and its focused tests. The root owns both build systems, session, provider adapters and cross-component wiring. Exclude processes, schema fabrication, compiler objects, database persistence and filesystem scans. Providers supply validated records and immutable data or specific unknowns.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect docs/roadmap/05-build-contexts.md, 06-native-vbs-tooling.md, 07-compilation-database.md, 09-semantic-workers.md, 16-navigation-rename.md and T-PREFLIGHT-004. Read include/Void/LanguageServer/Documents/{DocumentSnapshot,DocumentStore}.hpp and Workspace/{Trust,Configuration}.hpp. The document worker confirmed DocumentSnapshot::same_input_as(const DocumentSnapshot&) for overlay versus stable disk inputs. Verify the final signature before compiling integration. Read tests/FramingTests.cpp for native VOID_TEST style.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Build/Model.hpp; src/Build/Model.cpp; tests/build/ModelTests.cpp
|
||||
Other workers share this checkout. Create these NEW paths only, with scratch outputs under a unique build/model-005 directory. Never change branch, generated project state, others' work, or shared build files. Root registers targets and tests.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Implement immutable generation records and deterministic selection among all candidates for a source/owning TU. Preserve provider/target/profile and host-description versus target roles. Prefer verified explicit per-file override, then editor selection, then a documented deterministic fallback; keep a missing explicit override visible with typed unresolved status. Preserve structured override values suitable for the configuration owner; avoid writes during a model lookup. Keep original argument tokens/command distinct from analyzed tokens, provenance, cwd, selected toolchain/stdlib/environment identity, source mappings, missing metadata, prerequisite and artifact lifetime. Distinguish known-empty from unknown facts. Keep selection identity monotonic for A→B→A. Check equality of full values or canonical identities with collision-safe comparison; never derive identity by joining unescaped argv strings.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW Build model (exact C++ naming is local discretion) represents a retained generation, context alternatives, workspace/session identity and selection revision. Inputs bind the actual owning TU, source language and source mapping even when the requested document is a header. AnalysisRevision captures the document and dependency origins/content, relevant overlay/lookup epoch, workspace/provider/generation, context/selection, configuration, trust and backend/protocol. Use retained DocumentSnapshot::same_input_as or an equivalently stable key. Disk rereads with identical path/content and overlay epoch are equal. A reopened overlay with the same text is different. Bind ordered include/import search misses or a conservative monotonic invalidation epoch covering changes to all lookup roots. Readiness is operation-specific. Diagnostic/status data may be degraded with evidence; authoritative rename needs proven provenance, editability and complete affected contexts. Define any required unknown input as explicit. Avoid pretending external trust or filesystem events are synchronized unless the caller has supplied the corresponding state transition.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Keep publication verification and installation in a single sequenced transition, with cancellation/issuance and request identity. Concurrent stale completions cannot replace a newer result or remain visible after invalidation. Deliver a small backend-neutral immutable publication/token boundary that preserves validated data without callbacks that can re-enter under locks. Explicitly document how the owner supplies current input/revocation transitions. No AST pointers or global process authority. The Documents worker owns the snapshot contract. The trust owner supplies an opaque monotonic authority generation. Root links sources in VBS and comparison CMake after handoff. Providers 06 and 07 start only after this shared API is frozen.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Reject invalid or duplicate context keys, unrelated roots and missing input identities before authoritative use. Preserve unsorted/duplicate original command tokens as meaningful data. Bound publication bookkeeping to active requests or discard completed/cancelled work; avoid retaining every historical result unboundedly. Keep immutable generations alive while in use. Selection/configuration/trust generations cannot be reused on an ABA transition. Do not copy full source content just to compare inputs.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Select two targets/profiles with conflicting defines for one source/header and retain all alternatives. Test explicit, missing and cleared override, deterministic reorder, host context and owning-TU differences.
|
||||
2. Show unchanged reread can complete, same-text reopen and negative lookup invalidation reject old results, import/mapping/env changes distinguish inputs, and retention keeps the original generation alive.
|
||||
3. Test cancellation/revocation and A→B→A between issue and completion, reverse completion/overlapping requests, atomic invalidation of current results, and bounds or retirement of outstanding tickets.
|
||||
4. Assert incomplete metadata permits only the represented diagnostic/status capabilities and denies authoritative rename. Return all original test names and independent actual results.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, read selected sources and check graph coverage where indexed. Run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/Build/Model.cpp tests/build/ModelTests.cpp. For executing tests use the tested local native libraries under build/native-validation/profiles/debug or comparison build/bootstrap; inspect real paths/symbols before linking. Coordinate with root if the final Documents implementation is required for runtime tests. Report actual runner --list, case count/exit and exact link/run commands. Run dev cpp -c clang-format --dry-run --Werror on the three owned C++ files.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop and notify root for an incompatible Documents API, cross-owner writes, unresolvable historical input semantics, or two failed trials of the same repair. Preserve useful independent implementation and tests. Never silently reduce authoritative coverage or couple the model to a candidate compiler.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
The user approved all plans on a separate branch and GPT-6.2 family at Max, including generic runtime for the stricter effort setting. This difficult shared correctness boundary is assigned to Astra. No staging, commits, remote writes or sibling changes. No children and no independent user messages.
|
||||
|
||||
## 14. Return format
|
||||
T-MODEL-005 DONE/PARTIAL/BLOCKED, exclusive paths changed, concise interfaces for providers, decisions about equality/readiness and caller obligations, executed commands, case names/counts/results, open integration prerequisites or defects. Root owns integration and independent review.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Connect the real stock GCC module corpus to the C++ module planner
|
||||
|
||||
Task ID: T-MODULE-CORPUS-011
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared branch feat/implement-roadmap, ca04975 plus working tree. Roadmap 11 and T-PREFLIGHT-MODULE-011 cleared a pure ModuleGraph API. Its owner now released the public header for consumers. The existing tests/corpus/modules/verify.py compiles three named module generations with stock GCC16.2, checks 33 real P1689 observations, header-unit CMI shadowing and a failed scan that still emitted a rule. Until this task it validates output in Python only.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Make an explicit opt-in bridge between the actual GCC scanner invocations and the exact same C++ planner used by the server. The Python reference should exercise the bridge in its existing isolated fixture sandboxes. Include distinct ready DAGs for unbiased/biased generations and a true failed scan with retained GCC output.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Test-only integration. These closed, deliberately authored fixture inputs can be attested by the harness. No compiler invocation in product, metadata provider changes, editing ModuleGraph, test framework generalization or shipping this test helper.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read tests/corpus/modules/verify.py and its source fixtures, include/vls/modules/ModuleGraph.hpp, src/modules/ModuleGraph.cpp, include/Void/LanguageServer/Build/Model.hpp, src/Build/Model.cpp, tests/providers/ModelTests.cpp, docs/agent-workflow/tasks/T-MODULE-GRAPH-011.md. Check exact field types and public behavior. Do not read unlisted repository contents for corpus data.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: tests/modules/GccScanFixture.cpp; tests/corpus/modules/verify.py
|
||||
You alone own these two files. ModuleGraph.hpp/.cpp and ModuleGraphTests.cpp belong to the model implementer; manifests, other tests, docs, private reference-compiler paths and Git belong to the parent. Preserve existing tests/CLI and current tree. No nested agents or user communication.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use a small purpose-specific C++ fixture that decodes bounded real raw P1689 with decode_scan and chooses a real BuildGeneration built from the admitted ContextKeys and compiler invocations; populate census, evidence and private destinations from the fixture's actual command/source + transitive inputs/lookup identities. Existing Python harness owns exact compiler path, prepared fixture tree, private cwd and validates depfiles. Pass checked lengths/data (JSON via stdin or a private file) to helper without extra shell steps. Hash actual fixture inputs, compiler identity and appropriate options for command/compatibility, keep compatible legal per-TU -D differences; capture exact scan exit/status/output/cwd. Capture only explicitly known inputs and distinguish CMI warming; no exposing general project discovery. Root will inspect and rerun the real compiler checks.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW optional --planner PATH on verify.py (existing --cxx and ordinary no-planner command unchanged); NEW fixture executable target vls_module_scan_fixture, single source tests/modules/GccScanFixture.cpp. Communicate argv early. Keep nonzero errors distinct from expected typed blockers. Ready DAG order includes importer last; inspect internal partition/unknown import-only kinds and topological reverse edges when possible. Accept context keys and original spellings, retain actual scan revision/census. Use fixture-specific physical claims only when supported by this run. If a header-stage provenance claim is missing, test an explicit pending outcome.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Frozen ModuleGraph header exists, ModuleGraph.cpp passed GCC16 syntax. Root owns CMake and VBS registration of the helper, can start building after your path exists. Independent unit tests cover deep/failure/CMI provenance combinations. This task adds the true cross-component scan witness.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Limit test input and subprocess output, use 30s deadline like existing corpus, keep temporary cache isolated. Do not compile arbitrary rows/scan commands from a database. Compute expected outcomes from the fixture design independently of the produced graph order. Different private invocations can use the same label, values reflect only observed GCC 16.2. Avoid accepting missing stderr/rule as success.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Both stock --cxx runs with/without the bridge succeed. In the real biased context internal :detail precedes :api, primary, importer. In the unbiased context :detail is outside the importer closure. Source edit and legal reader -D variations retain correct domain-specific result. Positive rule on exit1 cannot authorize planning. Preserve all 33 scan checks, 17/41/48 outcomes and old generation 17 and header11/29. A malformed/wrong primary-output fixture fed to the real decoder returns nonready. Add an additional true header-CMI witness only when current captured provenance is provable.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Initial dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only tests/modules/GccScanFixture.cpp. Use python3 -B tests/corpus/modules/verify.py --help and dev cpp-gcc -c python3 -B tests/corpus/modules/verify.py --cxx g++ --planner /absolute/helper after linking; root builds both systems and reruns. Use build/module-corpus-011 for isolated intermediate outputs only.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Return early ready-to-build source notice. Do not select production backend, change flags in the reference script except what is needed to capture evidence, or invent global project/source authority. If a missing library interface prevents integration, send a minimal counterexample to parent, continue independent real controls.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized full roadmap in separate branch; D-025 native VBS, D-027 GPT-6.2 family Max. Regular stock GCC16 tests and the independent approved module planner contract are in scope. No staging/commit/push/shared-build mutations.
|
||||
|
||||
## 14. Return format
|
||||
T-MODULE-CORPUS-011 DONE/PARTIAL with syntax/link/test exits, real compiler identity, counts, fixture contract, exact planned order and failure witnesses, residual limitations.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Plan C++ module builds from versioned compiler scan evidence
|
||||
|
||||
Task ID: T-MODULE-GRAPH-011
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared feat/implement-roadmap ca04975. Actual GCC 16.2 corpus in tests/corpus/modules/verify.py reads P1689R5 v0/rev0 single rules, changes named partition requirements with macros and exposes a cold header-unit scan missing a later import. Warm validated builds obtain 17/41/48; old reader remains 17. T-PLAN-SEMANTICS-010 provided the module package. Existing BuildGeneration/ContextKey and immutable AnalysisInputs hold authority/input identity. Core graph currently absent.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the compiler-independent module scan decoder and dependency planner used by the semantic worker. Expose deterministic prerequisite order for a requested owning TU, reverse consumers for invalidation, and structured blockers with truthful completeness. Supply focused C++ tests. Root integrates both build systems and runs the real GCC fixture through this new C++ path.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Graph construction and immutable evidence only inside VLS. No compiler/descriptor spawning, file reads through graph data, module file format assumptions, public LSP advertisement, frontend choice, shared build wiring, new source parser or edits outside ownership.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/11-cpp-modules.md, tests/corpus/modules/verify.py and fixtures, build/gcc-gate/private-modules.log, include/Void/LanguageServer/Build/Model.hpp, include/Void/LanguageServer/Protocol/Json.hpp (bounded parser and type accessors), tests/providers/ModelTests.cpp for actual runner idiom. Consult P1689R5 directly (open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1689r5.html); GCC output supplies fewer fields than the general format.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/vls/modules/ModuleGraph.hpp; src/modules/ModuleGraph.cpp; tests/modules/ModuleGraphTests.cpp
|
||||
Shared files marked above are yours only after root explicitly dispatches this task following preflight. Root owns real compiler harness, build manifests, docs and all integration. Use isolated build/module-graph-011 for temporary checks. No staging, commits, branch changes, other workers, or user communication.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Decode one expected primary output per compiler invocation with Protocol::parse_json and its helpers; validate types, GCC envelope and optional authority-bearing fields before producing owned data. Bind it externally to its real exit status, scan method/completeness, file/command/provider revision, immutable source and lookup inputs. Allow explicit authoritative header-unit identities, path/spelling ambiguity must degrade. Never infer unit semantics from filename. Missing source, failed pass even with viable-looking rule, cold incomplete header/macros, duplicate providers, missing provider, cycle, mismatched domain and oversize need typed outcomes.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Bind each consumed header-unit CMI to its immutable staged artifact generation and matched current header/transitive contents, compiler/domain and lookup identities; a successful warm scan with an old CMI misses a macro-conditioned import. A bare warm flag or a depfile containing just a CMI cannot provide completeness. A -MMD scan needs independent immutable system-include coverage; -MD textual dependencies or equivalent evidence cover relevant inputs. -M -MG can be used warm as well as cold, so the scan mode alone never upgrades completeness. GCC can emit identical import-only rules for a module implementation and an ordinary importer with identical expected output. Keep that unit kind unknown unless independently evidenced.
|
||||
The input owner supplies a closed, revisioned census of eligible per-TU ContextKeys for the requested linked target/domain, or a compatible per-importer census when visibility differs. Explicit membership is distinct from ABI compatibility. Reject ambiguous/missing censuses and unknown claims from failed or omitted eligible scans before claiming ready. Cover membership/lookup changes and missing or duplicate claims in invalidation evidence so adding a previously unknown provider invalidates old observations. Prove unrelated complete cycles do not block a requested acyclic component. This decoder accepts the observed GCC 16.2 single-rule version 0 revision 0 variant of P1689R5; the published paper describes version 1 revision 0. Refuse unsupported versions with a typed result. Bind expected primary-output to the admitted invocation working directory and its exact expected spelling or a proven matching identity.
|
||||
NEW API in namespace vls::modules, exposed through ModuleGraph.hpp. Provide read/decode_scan(p1689_bytes, expected_primary_output) -> expected<owned rule, typed error> and build_module_plan(graph inputs, requested TU/context) -> owned plan with order, reverse invalidation and typed blockers. Freeze exact names to root early. Scans carry Build::ContextKey or equivalent unambiguous owning TU/context identity, full generation scope, source/dependency observations and verified compatible module-domain identity. Distinguish TU command identities from module compatibility: legal per-TU -D or -o variations cannot prevent deliberately admitted compatible providers. ABI-affecting configuration and lookup scopes cannot mix on name. Preserve is-interface false, header lookup identity (where emitted), primary-output equality and source convergence. Epoch/current checks belong to revision owner.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
T-PLAN-SEMANTICS-010 early plan accepted for preflight. This is the pure graph used by a future real worker/scheduler. Root verifies current stock GCC via full module corpus and an integration bridge consuming actual P1689 scan output; return interface early to allow this. No production backend selection required to model observations.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound JSON bytes/depth and per-rule/collection/string/aggregate sizes before expensive work; cap graph nodes/edges/traversal. Avoid process-stack overflow on deep chains, arbitrary path normalization, global name-only matches, unsafe cross-context reuse, repeated O(N²) scans or exponential walking. For blockers outside a requested independent component distinguish global collection incompleteness from a proven conflict unrelated to that component. Definition of input coverage must account for unknown provider claims and duplicate records, including failed scans.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
READY from the independent reviewer. Include a new file changing __has_include and attaching a new edge, and a renamed provider introducing a duplicate while the eligible membership stays fixed. Equal private output labels in distinct invocations are legal and differ from a writer collision of actual output identity.
|
||||
Assert ordered transitive partition/primary/importer, implementation and internal partition, same-name compatible duplicates vs incompatible contexts, unprovided std/header, self+multi-node cycles, retained previous context after source edit, reverse invalidation, context switch, header shadowing and cold/warm conditional import. Document what cannot be inferred from GCC scan. Test malformed/unknown wire semantics, successful rule with failed compiler exit, deep/legal bounds, semantic distinction of absent vs malformed scanner evidence and explicit incompleteness.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/modules/ModuleGraph.cpp tests/modules/ModuleGraphTests.cpp. Use Void::Testing runner and actual resulting nonzero registered suites via root build or temporary separate link with existing build/bootstrap artifacts. Do not configure shared build dirs. Root provides integrated target and binaries. Record exact observed results and distinguishing failure inputs.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for data/authority the graph cannot establish, expose typed pending status, send root the exact missing evidence and complete independent cases. No guesses about real loaded imports, generated code, artifact compatibility or private fragment support. Do not choose backend/distribution or expand code ownership.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized full implementation, separate branch, VBS primary, GPT-6.2 Max (D-022/025/027); local compiler experiments only D-030. Modules are first-class user requirement. No out-of-repo writes except owned temporary compiler outputs under this checkout.
|
||||
|
||||
## 14. Return format
|
||||
T-MODULE-GRAPH-011 DONE/PARTIAL with public API, invariants, touched files and exact commands/results; send root stable headers early, concrete limits/open obligations at handoff.
|
||||
@@ -0,0 +1,74 @@
|
||||
# Build, test and install the server with native VoidBuildSystem
|
||||
|
||||
Task ID: T-NATIVE-001
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Baseline /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. The working tree includes the root CLI repair and user-owned foundations authorized for continuation. D-021 follows VoidLibrary main, tested at 7d7d23e. D-025 makes VBS primary. Root built a working VBS 6c225c2 seed from committed sources under build/tools/vbs-6c225-bin. A native Void::Testing test passed with all five dependency modules and a rejecting cmake at the front of PATH.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Supply a usable, ordinary native VBS description for the server and its real tests. Provide an explicit dependency preparation/update path for upstream main and a separate local source override. Validate debug build/test and staged installation. Root will integrate the build of subsequent features.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Native declaration, dependency management, real test registration and resolution of the built vls executable. Preserve the existing CMake bootstrap as a comparison build. Root owns README, application code, native tooling consumption and sibling repositories.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect CMakeLists.txt, cmake/VoidDependency.cmake, tests/CMakeLists.txt, tests/Registration.cmake and the five existing *Tests/Capabilities translation units. Inspect build/tools/vbs-6c225-src/{build.cpp,include/Void/Build.hpp,recipes/VoidLibrary/VoidLibraryRecipe.cpp}, build/bootstrap/_deps/voidlibrary-src/{cmake/VoidTesting.cmake,include/Void/Testing/Test.hpp}. T-PLAN-002 and the fresh preflight are binding.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: build.cpp; build.profiles.cpp; tools/prepare-voidlibrary; tests/FramingTests.cpp; tests/JsonTests.cpp; tests/LifecycleTests.cpp; tests/JsonCapabilities.cpp; tests/ProcessTests.cpp; tests/TestExecutable.hpp; tests/NativeRegistration.cpp; tests/CMakeLists.txt; .gitignore
|
||||
These are exclusive only until handoff. Existing dirty cmake/VoidDependency.cmake is outside your scope. Do not change branches or stage, commit or push. The VBS tool generates runtime .vbs and vbs.lock. Ignore only generated root state and respect existing files/links. Build and install exclusively under build/native-validation and build/native-install. Other agents share the checkout. Keep schema, docs and all other source files with their owners.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use project.static_library/executable/test and the explicit C++26 and reflection settings. Link the actual Void modules through .native_builder on a path dependency. Use the built-in debug/release profiles if adequate. Populate a managed checkout of main by explicit preparation; select immutable revision for each build, retain real checkout provenance, fail clearly if missing. Never execute network/git inside build.cpp. Honor an explicit VLS_VOID_SOURCE_DIR development override. Distinguish source provenance for updates and overrides and prevent accidental modifications to arbitrary directories or the sibling checkout. Keep preparation short and use verified tools. Native VOID_TEST(suite,name) preserves existing names/assertions without a CMake scanner. Retain CMake test registration. Native subprocess tests must launch the sibling vls from the same output/profile. Add a native registration witness that checks the three inventories and executes the named body; never accept an empty suite. Use public native target edges and installation APIs.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Existing targets vls_protocol, vls, vls_unit_tests, vls_json_capabilities and vls_process_tests. New build.cpp exports void build(Void::Build::Project&). Use native runtime location of the test executable (Linux supported) if the CMake VLS_EXECUTABLE definition is absent. NEW tools/prepare-voidlibrary documents its own usage and leaves the managed source usable by ordinary VBS commands. Preserve every test's suite/name and assertion semantics. Future suites must be addable without hardcoded machine paths.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
After preflight, you are sole owner of the native descriptor and changes to the five test declarations. Root will wait before wiring other components into build.cpp or adjusting test expectations. Existing bootstrap source linter/CTest and the VBS seed run in dev cpp-gcc. Tests added elsewhere by foundation tasks will be integrated by root. Return source paths and registration changes for the reviewer.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Main updates must preserve existing managed checkout consistency if offline, interrupted or concurrent. Prefer atomic publication of a complete source tree or an equivalent documented failure-safe preparation. A user-supplied override is read-only. Never copy an arbitrary sibling working tree or untracked files. Reject invalid override paths or wrong sources. Do not execute target metadata or add a CMake executable action. Preserve user-owned compile_commands.json. Test artifacts, dependencies and installs belong under this project's ignored build tree.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Clean native run builds VLS dependency and test objects without invoking CMake or reusing CMake-built project libraries.
|
||||
2. Actual native inventories contain at least the original 22+6+9 names without duplicates, and the named exact_frame_limits body executes. Preserve behavior for failed cases and empty inventories.
|
||||
3. Native process tests launch this profile's actual vls. Help/version/stdio behave as before. Native install produces a working bin/vls.
|
||||
4. Explicit local override and managed upstream-main paths are distinguishable. Existing CMake comparison remains green. Confirm which checks were observed and which root still needs to run.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repo root the proven seed is build/tools/vbs-6c225-bin/bin/vbs. Use dev cpp-gcc -c with the executable and `test --project . --build-dir <absolute build/native-validation> --profile debug --jobs 4`. Use install --help to verify syntax and stage under build/native-install. For no-CMake proof put build/vbs-native-probe/trap at the front of PATH within dev cpp-gcc. Root demonstrated the same flags on two probes. List the resulting three test binaries with --list --no-color and run one with --filter '^FramingTests.exact_frame_limits$'. Compare original suite lists when present under build/bootstrap/tests. CMake comparison command: dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure after rebuilding. Format changed C++ files with dev cpp -c clang-format.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop on unowned edits, a required VBS/Library patch, a request for global installation or two failures of the same repair. Capture command, stderr and a distinguishing hypothesis. If isolation is unclear, ask root before modifying another path. No cleanup outside unique owned scratch.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-021, D-022, D-024, D-025, D-026 and D-027. User authorized the full roadmap, branch, native builder and GPT-6.2 Sol with Max after escalation. Dispatch only after root supplies the preflight verdict. Interpret a passed subset accurately.
|
||||
|
||||
## 14. Return format
|
||||
Return T-NATIVE-001 DONE/PARTIAL/BLOCKED, files changed, usable commands, test IDs and counts, fetched/override revisions, observed exit statuses, artifact locations and remaining defects. No child agents or independent messages to the user.
|
||||
|
||||
The resumed working tree now includes two additional root-owned ordinary tests
|
||||
in tests/JsonCapabilities.cpp. Convert them along with the original declarations.
|
||||
Current inventories are 22/8/9 (39 cases). T-REVIEW-003 found an upstream numeric
|
||||
precision and range defect; preserve these failures and their exit status until
|
||||
fixed. Native parity compares real case outcomes across both builds and requires
|
||||
all original 37 to pass. Use `--list` to discover the exact working-tree baseline.
|
||||
|
||||
T-PREFLIGHT-004 correction, accepted by root. VBS snapshots path dependencies
|
||||
recursively and chooses a dependency's build.cpp over its native Void recipe.
|
||||
Hand VBS an immutable, project-owned source generation prepared from allowlisted
|
||||
tracked build inputs only. Apply this to both upstream main and explicit local
|
||||
overrides. Include real tracked C++ headers and the compiled sources for the
|
||||
module closure; retain the src/Core directory used for recipe detection. Reject
|
||||
a new tracked root build.cpp pending review and exclude untracked files/links,
|
||||
dotfiles and unrelated paths. Do not point .path() at an external working tree.
|
||||
Keep selected path, revision and relevant dirty/content identity in provenance.
|
||||
An explicit local override should capture tracked source edits coherently or
|
||||
reject a changing input cleanly. Publication is atomic. A build keeps its
|
||||
resolved immutable generation even when another preparation selects a new one.
|
||||
Check with benign untracked canaries, a tracked descriptor fixture and a failed
|
||||
refresh that leaves the prior generation usable. These checks use isolated
|
||||
fixtures. Make the managed generation path discoverable for root's integration.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Prepare immutable VoidLibrary source generations for the native VBS recipe
|
||||
|
||||
Task ID: T-NATIVE-PREP
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
/home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap at ca04975, shared checkout. T-NATIVE-001 Sol terminated on provider HTTP 429 before writing files. T-PLAN-002 is complete. T-PREFLIGHT-004 cleared the native build subject to restricting VBS path input to prepared tracked sources. Root now owns build.cpp and the test migration. This separate assignment owns only the more demanding dependency acquisition/publishing boundary.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement tools/prepare-voidlibrary to prepare VoidLibrary main or an explicitly selected local checkout as a coherent, immutable source generation. The normal VBS descriptor reads build/voidlibrary/current, a symlink to build/voidlibrary/sources/<64-lowercase-hex-digest>. Give root usable commands and verify source-only safety and update behavior.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Dependency preparation, provenance and its targeted integration checks. Root implements native compile/install/test targets. No changes to VBS/VoidLibrary source, checkout or configuration. Keep the implementation small, understandable and Linux-compatible. A short Python stdlib or shell utility is appropriate for explicit developer preparation.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-NATIVE-001.md including T-PREFLIGHT-004 correction. Inspect build/tools/vbs-6c225-src/src/Package/Fetch.cpp:145, src/Provider/Provider.cpp:1046 and recipes/VoidLibrary/VoidLibraryRecipe.cpp. VBS recognizes a prepared VoidLibrary by include/Void and src/Core, and chooses a root build.cpp over the native recipe. Existing main 7d7d23e. No broad scans of live sibling or ignored state.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: tools/prepare-voidlibrary; tests/native/Preparation.py
|
||||
Your sole production-owned file is the preparation tool. Optional named test file covers meaningful update/race/provenance behavior. Ignore scratch under build/preparation-check. Root owns build.cpp, registry and all other files. No staging/commits/branch changes in this repo or any existing repo. No interaction with global configuration or project-side compdb.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Resolve official https://git.faumaray.com/Void/VoidLibrary.git main explicitly, never a committed SHA. Support VLS_VOID_SOURCE_DIR (or --source plus the same env) for local checkout. Use only allowlisted tracked C++ headers/source files needed by the native module closure. Cover current five modules, Crypto/Text for reviewed foundations and transitive modules in the recipe; keep src/Core present. Exclude untracked inputs, root build descriptors, hidden/secrets, unrelated paths, gitlinks and symlink escapes. Reject a tracked root build.cpp before invoking any dependency-provided behavior. Avoid invoking project filters/hooks/scripts or following malicious local-tracked source symlinks. Local tracked edits may be captured coherently or explicit instability refused. For clean primary source use immutable Git objects or equivalent. Stage only inside an owned temporary directory. Validate complete source, record revision/content identity and source path/kind in metadata, publish the full generation and then atomically switch current. A failed preparation leaves the previous source in place; duplicate/concurrent calls preserve complete generations. Do not delete old generations still in use. Diagnostic errors must avoid exposing arbitrary file contents.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Fixed interface between workers: native build.cpp canonicalizes build/voidlibrary/current and verifies its parent is the real build/voidlibrary/sources. Each generation includes include/Void/Data/StrictJson.hpp and src/Core/, excludes build.cpp. Sources directory name is content/provenance-addressed. Write one bounded UTF-8 metadata file at generation root named provenance.json with at least revision, source kind (main/local), source path for local, dirty flag and content identity. Communicate a concrete example and exact CLI. Keep preparation outside VBS; descriptor performs no Git/network operations.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Fresh reviewer accepted native target/install work when this guard is included. Root works on those targets concurrently. Local origin is a user-selected dev override, upstream main default always resolves the official remote. Tests under T-REVIEW-003 intentionally expose two separate JSON faults; no dependency parser/code edits.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
VBS recursively snapshots path deps. Never hand it the external live directory. Benign untracked canary and untracked descriptor must not appear in the published generation. A tracked descriptor must be rejected. Avoid plain recursive copy. Preserve old generation on interrupted/offline fetch, distinct local changes, and failed validation. Use a narrow trust boundary around the tool's own cache and path selection. Test fixtures must never write to existing checkout Git state or local secrets.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Real upstream main and explicit local preparation each yield an inspectable immutable source tree and SHA/dirty provenance.
|
||||
2. CMake/VBS-ready source directories and needed modules are present. No extra descriptor/canary, no symlink excursion, no source mutation.
|
||||
3. Repeated/failed/concurrent preparations preserve a previously captured generation and atomically publish a complete current target.
|
||||
4. Report executable path and command so root can run native VLS build now.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repo root compare git ls-remote --exit-code https://git.faumaray.com/Void/VoidLibrary.git refs/heads/main, and git -C build/bootstrap/_deps/voidlibrary-src rev-parse HEAD. Root observed both 7d7d23e. Run the newly implemented CLI in its documented default and explicit override modes, and a focused fixture test isolated in /tmp or build/preparation-check. To avoid cross-worker races, alert root when build/voidlibrary/current is ready before toggling it; run adversarial fixture tests in a separate temporary repo view/store. Root runs integrated VBS and CMake tests. Do not pin or stage anything.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before sibling changes, source installer execution or dropping required controls. If two repair cycles fail for the same check, return evidence for a revised hypothesis. No global changes or worker spawns.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-021 and D-025 require unpinned main with native VBS. D-022/D-026 authorize this branch and full implementation. D-027 authorizes GPT-6.2 Astra at Max for difficult implementation, including this reviewed dependency handoff. This is a separate high-risk assignment split from the failed Sol task; root owns the remaining integration.
|
||||
|
||||
## 14. Return format
|
||||
Return T-NATIVE-PREP DONE/PARTIAL/BLOCKED, files, CLI/path interface, verified source generations, checks/exit codes, unrun checks and integration notes. Notify root as soon as the first valid generation is available. No independent user messages.
|
||||
@@ -0,0 +1,149 @@
|
||||
# Plan foundation implementation against the resumed checkout
|
||||
Task ID: T-PLAN-002
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
Dispatch: user approved the generic runtime role after escalation. Select gpt-6.2-astra at Max for the astra_planner assignment.
|
||||
|
||||
## 1. Context and baseline
|
||||
Cwd/repository /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at
|
||||
ca04975d545efd4a891ee90edf22f130069bd191. User now requests implementation of all27
|
||||
roadmap parts, preserving gates and acceptance, and explicitly requires Max effort.
|
||||
The named roles are fixed at XHigh. The user approved an explicit Max override
|
||||
on the generic runtime and then selected the 6.2 family for all assignments.
|
||||
Existing uncommitted foundation code is available: user confirmed no active writer.
|
||||
Root has preserved its16-file baseline in build/goal-baseline-20261127.
|
||||
Root additionally repaired src/main.cpp bare '--' handling and updated workflow docs.
|
||||
VoidLibrary main tested at7d7d23ec0a6a55d4b30921432fa215b29a29e59b; fetched build now
|
||||
passes all4 CTest entries (22 unit+6 JSON+9 subprocess bodies plus registration).
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Return a dependency/invariant map and exact implementation wave for native VBS
|
||||
primary build support (01/26), then03/04/05 with protocol consolidation and real LSP
|
||||
document synchronization. User D-025 explicitly makes VBS primary now. Preserve the full
|
||||
27-part objective. Distinguish immediate executable work from later frontend/VBS/
|
||||
debugger gates. Provide proposed interfaces, disjoint ownership, concrete acceptance
|
||||
tests, migration order and unresolved consequential decisions for fresh preflight.
|
||||
Do not approve your own plan or claim this report is implementation.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Assess the existing uncommitted Protocol/Documents/Workspace implementation and
|
||||
how to integrate it, rather than replacing it wholesale or inventing a new namespace.
|
||||
Plan BuildContext/AnalysisRevision contracts before provider tasks06/07.
|
||||
Do not implement application code, compiler semantics, a competing JSON parser,
|
||||
sibling producer changes, new tool installations, license selection or releases.
|
||||
|
||||
## 4. Files to inspect
|
||||
AGENTS.md; docs/agent-workflow/STATE.md,TASKS.md,DECISIONS.md,
|
||||
RESUMPTION-2026-11-27.md and VERIFICATION.md; docs/roadmap/README.md,REQUIREMENTS.md,
|
||||
ARCHITECTURE.md and03-documents-positions.md,04-workspace-configuration-trust.md,
|
||||
05-build-contexts.md,06-native-vbs-tooling.md,07-compilation-database.md,
|
||||
09-semantic-workers.md,10-scheduling-resources.md,16-navigation-rename.md.
|
||||
Current build: CMakeLists.txt, cmake/VoidDependency.cmake, tests/CMakeLists.txt;
|
||||
docs/roadmap/01-bootstrap-dependencies.md and26-vbs-self-build-adoption.md.
|
||||
VBS references are source-only: /home/faumaray/Projects/VoidBuildSystem/include/Void/Build.hpp,
|
||||
docs/SDK.md, build.cpp, recipes/VoidLibrary/VoidLibraryRecipe.cpp and
|
||||
src/SelfHost/TestRegistryGen.cpp. Check current root evidence for seed readiness.
|
||||
Current protocol: include/vls/{Framing,Json,Server}.hpp, src/{Framing,Json,Server,main}.cpp.
|
||||
Uncommitted code: include/Void/LanguageServer/{Protocol,Documents,Workspace}/ and
|
||||
src/{Protocol,Documents,Workspace}/. Tests: tests/{JsonTests,JsonCapabilities,
|
||||
LifecycleTests,ProcessTests}.cpp and tests/TestSupport.hpp. Relevant dependency only as needed:
|
||||
build/bootstrap/_deps/voidlibrary-src/include/Void/Data/StrictJson.hpp,
|
||||
Unicode/Utf.hpp, Core/Hash.hpp and System/Path.hpp. No broad sibling scans.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
All actors share the checkout. Root owns integration/build/docs; no active source
|
||||
worker currently. Source changes require later explicit owned tasks. No Git writes,
|
||||
branch switches, staging, commits, pushes, cleanup, global changes, sibling changes
|
||||
or Serena project switches. Never scan credentials/env/keys/WG.conf or ignored caches.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use exact graph project home-faumaray-Projects-VoidLanguageServer only after coverage
|
||||
checks, then source verification. Current index2026-11-27 mostly matches; some headers
|
||||
have partial parse ranges. Do not assume an edge or absence proves behavior.
|
||||
Map existing APIs and call paths, identify semantic gaps, then propose one canonical
|
||||
protocol layer and a controlled compatibility transition. Upstream StrictJson now
|
||||
provides checked serialize; specify how errors propagate without fabricated data.
|
||||
Review URI/position/snapshot lifetime, edits/desync recovery and disk/overlay races.
|
||||
Define a native build/test/dependency path using verified VBS APIs, not a custom
|
||||
action that delegates to CMake. Its Git SDK currently requires Commit{sha40}; retain
|
||||
the no-pin main policy through explicit managed-source acquisition/path input,
|
||||
without inventing branch APIs. Native Void::Testing registration must execute all37
|
||||
existing bodies and preserve process-executable discovery. Keep all build/dependency
|
||||
outputs inside this repository's ignored trees. No VBS/Library sibling mutations.
|
||||
Define trust/configuration behavior independently from actual subprocess execution.
|
||||
Freeze NEW build/revision identities and cancellation/publication rules. Sequence
|
||||
separate workers only after public headers and shared CMake/test ownership are clear.
|
||||
Research protocol facts from primary LSP3.17 docs; ask root only for product choices.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Existing names: Void::LanguageServer::Documents::{LineIndex,DocumentIdentity,
|
||||
DocumentSnapshot,DocumentStore,TextEdit}; Workspace::{WorkspaceSettings,
|
||||
PartialWorkspaceSettings,TrustPolicy,ToolIdentity}; Protocol::{Json,RequestId,
|
||||
parse_json,serialize_json}. TrustPolicy is declarations only, not working authority.
|
||||
NEW BuildContext and AnalysisRevision must encode original provider/context/profile/
|
||||
target/toolchain/environment/source/dependency identity and immutable generations.
|
||||
No flag merging across alternatives; missing native metadata remains explicit.
|
||||
LSP UTF16 default/negotiated UTF8, CR/LF/CRLF, sequential edits, immutable snapshots,
|
||||
oversized character clamping, invalid scalar boundaries and versioned desync recovery.
|
||||
No semantic capabilities until actual semantics exist; document synchronization may
|
||||
be advertised once the real handler and executable tests prove it.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root retains source ownership while contracts are planned. Fresh astra_reviewer
|
||||
preflight must inspect your proposed wave before implementation. Root serializes
|
||||
CMake, shared schemas and final server integration. Documents/workspace can be disjoint
|
||||
workers after interface agreement; build-model depends on their identities.
|
||||
VBS current source has Editor CompDb/IDE query APIs but required native tooling
|
||||
coverage must be assessed separately. Compiler and debugger feasibility remain gates.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Root observed: temporary serializer silently nulls nonfinite numbers; line offsets
|
||||
past line end currently reject instead of clamp; disk content is read outside the
|
||||
store lock and may race a newly opened overlay; TrustPolicy has no implementation.
|
||||
Assess these against source, not as mandated verdicts. Examine URI alias/symlink
|
||||
policy, stale versions, bounded file/text growth, snapshot lifetimes, trust revocation,
|
||||
execution-bearing flags and unknown configuration fields. Repository-local settings
|
||||
never grant executable/plugin/wrapper authority. Plan large-file and concurrency
|
||||
checks, not just happy-path unit tests; benchmark targets remain full-roadmap goals.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Requirement-to-wave map for R-003,R-006,R-007,R-008,R-009,R-011,R-021.
|
||||
2. Existing implementation gaps and exact NEW/retained interfaces clearly separated.
|
||||
3. Disjoint write sets and ordered integration for protocol/documents/workspace/model.
|
||||
4. Failure semantics and regression scenarios for identified cross-component risks.
|
||||
5. Concrete validation based on existing Void::Testing/CTest, proposed additions
|
||||
clearly marked NEW; no imaginary registered suites.
|
||||
6. Remaining27-part gates preserved, not reduced to bootstrap success.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
All commands cwd repository. Existing observed:
|
||||
dev cpp-gcc -c cmake --fresh -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
dev cpp-gcc -c cmake --build build/bootstrap --parallel 2
|
||||
dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
|
||||
All now exit0 after the root CLI fix. LastTest.log is in
|
||||
build/bootstrap/Testing/Temporary. Existing test bodies are22+6+9.
|
||||
Local override configure uses -DVLS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary
|
||||
in build/local; root records its latest outcome in VERIFICATION.md.
|
||||
Planning may use read-only source/graph queries and bounded existing test probes;
|
||||
no mutations or broad rebuilds needed for this report.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if the gpt-6.2-astra Max dispatch fails, if role/model access fails, or if
|
||||
the requested investigation requires secrets/unowned changes. Do not substitute a
|
||||
role/model or say Max was verified from a role label. Keep unsupported frontend
|
||||
semantics and compiler patches as separate gates, not implied approvals.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User's2026-11-27 goal authorizes implementing the plans beyond the original milestone0;
|
||||
later steering makes VBS primary and requires the separate branch already created.
|
||||
no repeat scope approval needed for their stated scope. User also authorized continuing
|
||||
from existing dirty files and explicitly rejected XHigh. Global configuration edits
|
||||
are not part of this task. This persisted contract must pass tasklint and root semantic
|
||||
review before dispatch; delivery is read-only advice, not permission or acceptance.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-002; DONE/PARTIAL/BLOCKED; dependency/invariant map; proposed exact interfaces
|
||||
and ownership; ordered implementation/test plan; severity-ranked existing risks;
|
||||
sources/coverage; observed commands/results; unresolved product choices; files changed
|
||||
none. Do not spawn children or message the user.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Map the live VBS and compilation database provider interfaces
|
||||
|
||||
Task ID: T-PLAN-006
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Work read-only in /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. The server now builds natively, advertises tested document sync and contains tested passive trust primitives. T-MODEL-005 implements the immutable common model. Root needs the next provider and workspace-session integration contracts while that model settles. GPT-6.2 Astra Max is requested.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Deliver a concrete source-backed implementation plan for native VBS tooling and compile_commands compatibility plus their passive session entry points. Identify reusable paths, file formats and constraints with a minimal set of fixtures. Send early concrete advice on shared file I/O and actual VBS v1 locator semantics.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only architecture and dependency mapping for roadmaps 04–07. Read only synthetic artifacts generated by this VLS task or the indicated source files. Keep compiler/debugger/clients and actual process launch out of this package. Never turn a VBS declaration file or a compilation database into evidence of a complete resolved tooling export.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/04-workspace-configuration-trust.md, 05-build-contexts.md, 06-native-vbs-tooling.md, 07-compilation-database.md, docs/agent-workflow/tasks/{T-TRUST-004,T-MODEL-005}.md, actual Workspace configuration/trust and RegularFile interfaces, src/main.cpp and src/Server.cpp. Native evidence: build/vbs-native-probe/query-debug.json, build/native-validation/profiles/debug/editor/status.json, .vbs/editor_selection.json and the specific generation compdb it references within build/native-validation. The committed VBS seed is build/tools/vbs-6c225-src, notably src/Editor/CompDb.cpp; current sibling /home/faumaray/Projects/VoidBuildSystem/src/Editor/CompDb.cpp is read-only for source comparison. Inspect Model.hpp only if present, use the planned API as provisional until handoff.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
No changes to shared source, Git, generated selections/compdb, dependencies or sibling repositories. Root authors/contracts shared schemas and registers tests. The planner has no children and sends no user messages.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Determine exact v1 selection-ticket, build-root, profile-status, generation and compdb relationships, including relative paths from real outputs and effects of stale status and moved aliases. Define a passive native importer that preserves VBS provenance and unready fields. Locate evidence of any richer resolved export. If proposed rather than produced, keep a versioned fixture contract distinct from existing v1 and list evidence needed from upstream. Map compdb arguments/command quoting per the official LLVM schema and supported Linux GCC/Clang behavior, driver response-file rules, path normalization and unknown-operand outcomes. Recommend where bounded regular-file read, path authority and stable identity logic can be safely shared. Keep deterministic CPU/memory/expansion limits and file replacement semantics. Define VS Code/Neovim neutral LSP/CLI entry: workspace roots, manual provider choice, passive status and configuration invalidation. Use only genuinely scoped source inputs and avoid speculative compiler endpoints.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
T-MODEL-005 design: scoped session/workspace/provider generation, multiple BuildContexts each with one owning TU and ContextKey(profile,target,role,alternative,TU), source mappings, original/analyzed argv/cwd, explicit metadata unknowns and capability-specific readiness. Model selection takes editor and explicit override. Trust classifier takes tokens, known wrappers, pinned ToolIdentity and explicit driver, but passive status must work without authority; uninspected tool is an unknown with execution denied. Keep caller and provider responsibilities explicit and avoid cross-root authority.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Provider writers own disjoint VBS and compdb paths after shared model freeze. Root owns shared provider bookkeeping/file I/O and protocol/workspace session or can assign separately. Identify which work can start without the other adapter, which needs provider-neutral parsing helpers, and which genuinely depends on a VBS producer outside VLS. Preserve caller-visible behavior and safe read-only fallback.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Never execute compiler commands, wrappers, project descriptors, response-file content or generators while discovering. Separate declarative arguments, authority, and execution. Address relative paths/traversal/symlinks, unstable reads, stale reverse completions, opaque drivers, response-file cycles, duplicate output rows, header ownership, missing generated artifacts and last-good status. Include a bounded approach for large compdb inputs and prohibiting shell evaluation.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Exact source and observed synthetic file/field references, proven versus unavailable native metadata. 2. Explicit contract and ownership per shared helper/provider/session, with proposed new public names clearly marked. 3. Test fixtures for selection/replacement/compdb duplicate and dangerous command cases, plus one live read of our synthetic VBS generation and one actual CMake compilation database entry. 4. Return amendments needed before fresh provider preflight and any true scope-level decisions early.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, targeted git/source reads, scoped graph coverage for relied-on paths and bounded JSON extraction for synthetic fixtures. No build required. If citing standard compdb grammar, rely on the official LLVM compilation database documentation only and use public queries with no local data. Return actual operations and identified evidence gaps.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before cross-repository changes, project commands/execution, accessing private settings or unrelated profiled data. Low level details absent from a published schema must be unknown; do not suggest assigning fabricated toolchain/module data. Distinguish per-provider blocker from tasks that can ship independently.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized all plans on a separate branch, native VBS primary, VoidLibrary main, and GPT-6.2 family at Max. This source-level planning assignment precedes implementation contracts. Capability promotion or an upstream publish requires its own evidence and authorization.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-006 DONE/PARTIAL/BLOCKED, exact observed data flows, contracts and failure semantics, proposed file ownership, root integration order, acceptance checks, unresolved upstream requirements and commands/evidence. No edits or user-facing messages.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Map the first recorded and live debugger protocol operations to actual compiler evidence
|
||||
|
||||
Task ID: T-PLAN-DAP-020
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared branch feat/implement-roadmap ca04975. Roadmaps 17–21 require both live/replay DAP plus custom inspection. Root built local GCC 16.2 patches, standalone vls_gcc_probe leaf/supervisor and bounded journal/replay; 13 trace cases and actual step/cancel processes pass. An unmodified Nix GCC 16.2 with GDB can separately expose two nested integer constexpr returns. Neither prototype currently speaks DAP. Normal VLS stdio runs LSP.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Design the smallest real end-to-end first DAP + shared inspection package. Map current code and wire data to a recording session a user can inspect without a compiler, plus the first real live control integration. Identify disjoint implementable files, what can run now, exact preflight contracts and acceptance tests on an actual captured compiler trace. No release decision.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only plan for DAP + shared session/inspection. Scope current integral returns/capabilities only. No application changes, no compiler modifications, no misleading claims for templates, constraints, full source locations or general product readiness. No calls to user or external messaging.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect docs/roadmap/{17-compiler-debug-instrumentation,18-live-debugging,20-dap-service,21-inspection-api}.md and the recorded replay roadmap; experiments/frontend/gcc-worker/{Trace,Supervisor,Main,Leaf}.{hpp,cpp} as existing, tests/debug/TraceTests.cpp, tests/native/{GccLeaf,GccSupervisor}.py, tests/corpus/frontend/verify-stock-gcc-gdb.py; include/Void/LanguageServer/Protocol/{Framing,Json}.hpp; src/main.cpp, include/vls/Server.hpp, build.cpp. Use actual trace capture/replay outputs if available for the fixed fixture. Consult official Microsoft DAP specification for request/event ordering, handle lifetimes, coordinate bases, source references, paging and capability flags.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use only private build/plan-dap-020 for optional neutral data/transcripts. No source edits, spawned agents, remote publication, starting an editor or shared build changes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace creation/replay, sequence validation, available frame tree/name/value, authored snapshot and sourceKind, unavailable coordinates, integrity checks, seek/finish, error/truncated status and memory limits. For DAP distinguish protocol seq from compiler sequence and reference lifetime. Derive minimal client path initialize→launch→configured→stopped→threads/stack/scopes/variables/source→move→disconnect or terminate. Consider custom immutable timeline/tree payload sharing the session. Identify when to emit responses/events and handle expired refs and true source vs logical declaration. Decide whether existing replay rereads the whole mutable path per seek and propose a bounded retained immutable read/index. Avoid a second journal parser/timeline.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Suggest NEW C++ owner/types for immutable replay open/seek and DAP state, separate from a standalone stdio runner. Show exact public contract and wire field mapping; fixed recording file explicitly selected by launcher. No client-provided arbitrary filesystem reads on source requests. Scope live backend to actual supervisor stop ordinal/ack and one command authority. Explain how stock-GDB recordings could join without fabricating unsupported hook events.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Prior research and evaluator/trace probes allow narrow functionality pending a separate integrated review. Default projects continue using their usual compiler. Root will write/lint subsequent assignments and integrate manifests. Name independent packages that can start while stock diagnostic integration proceeds.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound traffic, output entries, replay record source bytes, retained dictionary state, handle namespace, old/stale actions and client disconnect; don't invent blanket authentication, new external services or additional approval UX for a private stdio connection. Explicit read-only recording authority preserved.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Return source-confirmed initial slice, follow-ons, accepted limitations, concrete executable acceptance commands/fixtures. Distinguish actual feature from plan, through actual step/seek/source/value evidence. If DAP implicit method expectations conflict with data, show exact official basis and a truthful behavior. Options should work for both VS Code and Neovim clients in later stages.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Read-only. Optional run build/native-validation/profiles/debug/out/bin/vls_gcc_probe replay on an existing explicitly named fixed-test journal in private scratch, or run build/bootstrap/tests/vls_trace_tests. Obtain wire facts from sources and targeted small outputs. Cite evidence lines and primary official documentation; don't expose source outside the approved environment.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if actual files contradict the needed evidence and report which distinct capability or small change can close the gap. No staging, rich UI, general redesign, product license, alternate model or public launch. No target exploitation or reverse engineering of unrelated software.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized all plans and D-027 GPT-6.2 Max. D-030 permits local compiler feasibility experiments. Output is a concrete graph for the approved implementation, not a new product scope decision.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-DAP-020 DONE/PARTIAL with dependency order, new interfaces/owners, actual and missing trace facts, exact DAP events for fixture, minimal verification and limitations. Send ready independent packages early.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Plan the two editor clients against the integrated LSP and DAP services
|
||||
|
||||
Task ID: T-PLAN-EDITORS-022
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
The shared VoidLanguageServer repo is on feat/implement-roadmap at ca04975 with uncommitted integration. Stock diagnostics and passive build metadata operate over LSP. A real C++ replay adapter and /v1 inspection API run over DAP. tests/native/NeovimReplay.lua already drove an actual nvim-dap session with nested values 17/34, pages and source bytes in Neovim 0.12.6. The installed code reports 1.147.0, commit 8a14f0cc1b08d531eb83255ea3764ae22aa932b5. No client packages exist. Live, full source mapping, guarded rename, indexing and broader backend semantics remain independent.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Plan two independently implementable thin client packages for VS Code and Neovim, using the actual LSP and replay DAP in normal editor entry points. Resolve test dependencies and issue precise implementer/preflight interface advice. Keep full client roadmap acceptance with separate remaining live/semantic/transaction gates.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Client startup/config, passive provider status, opt-in stock diagnostics, user-selected offline replay, read-only bounded timeline/frames/sources, stale callback rejection, disconnect cleanup, real headless/extension-host proof. No distribution, source edits, UI unrelated to debugger/IDE, or extra servers. Avoid implementing user-space semantic features in Lua/TypeScript.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/22-vscode-client.md and docs/roadmap/23-neovim-client.md, tests/native/{NeovimReplay.lua,DapReplay.py,StockDiagnostics.py}, src/debug/dap/{Main.cpp,Projection.cpp}, src/debug/inspection/ReplaySession.cpp, src/main.cpp, src/Server.cpp, README.md. Consult current official Neovim 0.12.6 and nvim-dap docs and VS Code Language/Debug extension APIs. build/dap-evidence/nvim-dap is the isolated upstream checkout cfa2d58f4537aca6ca83e2de1a0d9f1491121264. The reference DAP source is one capture; frame locations are logical only.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private benign probes under build/plan-editors-022 are allowed. No edits to clients, tests, user configuration, VS Code profile, manifests, shared state or Git. Other agents share the checkout. Do not install plugins into users' environments or attach to existing editors. A test extension host must have disposable user-data and extensions directories and exit cleanly.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Map the actual client command flow: user config selects installed binary and root, normal edit sends incremental notifications and receives stock diagnostics, status exposes selected build context. Dynamic adapter launches explicit absolute file selected in the current client action; one session and generation binds custom page/view replies. Request standard stored source by reference rather than reopening client-provided paths. Find available immutable/testable dependencies for TypeScript, vscode-languageclient and an actual VS Code host without changing user configs. Check current accessibility of a disposable display session or extension-host testing options. For Neovim prefer native LSP and optional nvim-dap instead of a new protocol client. Use editor APIs for scratch text and generation checks with captured session plus current subscription. Avoid script execution when rendering data.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Existing LSP init, sync, voidLanguageServer/providerStatus, analysisStatus; CLI vls --stdio and launcher-only --workspace-root/--gcc-profile for stock diagnostics. Existing vls-dap --replay ABSOLUTE_TRACE, schemaVersion/sessionId/generation and vls/session,timeline,frames,seek; standard loadedSources/source. Only client-initiated user actions can choose a journal or process. No native HWND/platform UI, no separate network channel. Missing capabilities or peers should keep remaining functionality usable.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root owns build registration, shared API docs, release and actual integration. Client authors get disjoint clients/vscode/ and clients/neovim/. Normal tests cannot fetch tooling or install into external workspaces. Keep test-only opt-in or explicit dependency locator for externally installed editor and nvim-dap. Identify separate code/test packages so one editor can run if the other is unavailable.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Document unavailable process, known reference, multi-root scoping, executable configuration origin/trust, presence of a similarly named executable under workspace, omitted vs repeated settings, failed callbacks after stop/seek/disconnect switching/replaced buffers. Avoid duplicate clients, clearing third-party mappings/config/session listeners, opening an external debuggee or read-only generated content as a workspace file. Test source/data escaping, editor session shutdown and no stale content after switching editor sessions.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Source/API-confirmed normal LSP and DAP client path in each actual editor. 2. Chosen package/tool versions and reproducible real acceptance commands with optional development prerequisites. 3. Thin view schema, controls and error state without fabricated backend coverage. 4. Minimal initial deliverables, exact ownership, UX and lifecycle differentiating tests; retain later rename/live gates.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From root run nvim --version and code --version; do not activate normal user startup scripts. Inspect nvim-dap's checked commit with git -C build/dap-evidence/nvim-dap rev-parse HEAD. Read the existing headless test. If privately verifying VS Code, use the installed code executable, explicit user-data-dir, extensions-dir, locally created test fixture and process deadline; do not reuse a running editor profile. No account interaction or extension marketplace publication.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Do not stage, commit, release, install global tools or open arbitrary projects. Report missing compatibility evidence instead of relying on screenshots or sample responses. Read only relevant code; no environment secret/config inspection. Do not ask the user or spawn additional agents.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full approved roadmap D-022, primary VBS D-025, authorized generic GPT-6.2 Astra at Max D-027/029. Current mode is local development; publishing extensions and project license are deferred.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-EDITORS-022 DONE/PARTIAL. Return verified versions/commands, two ownership-ready contracts, missing proof and acceptance cases. Send an early independent slice when ready.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Design the isolated GCC 16 worker and evaluator hooks
|
||||
|
||||
Task ID: T-PLAN-GCC-008
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages. User D-030 now expressly authorizes local versioned GCC 16.2 instrumentation and an isolated prototype worker; distribution and project license deferred.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Provide source-grounded, implementable contracts for the first compiler-backed IDE operations and a genuine event-time debugger. Map an initial vertical slice and follow-on work across 08/09/12/17/18/19 before compiler patch implementation.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only planning. No compiler source modifications, API implementation, agent children, external disclosure or dependency changes. Derive from actual GCC 16.2 code and feasible bounded declarations. Do not resurrect Clang-only path or produce fake semantic data.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read tests/corpus/frontend/gcc-{evaluation,queries}.cpp, probe-gcc-tooling.py, docs/roadmap/{08,09,12,17,18,19}* and Build/Model.hpp. Official source: verified checksum extract build/gcc-gate/gcc-16.2.0/gcc/cp/{constexpr,constraint,pt,reflect,decl,parser,semantics}.cc and gcc/{plugin.def,input.h}. Probe logs under build/gcc-gate (declarations.sarif,queries.original,tooling-report.json,live-stop.log). VoidLibrary generated include/Void/System/Process.hpp for bounded live stdout/stdin/stderr; do not inspect ambient user files.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Root owns compiler source download/config/build and the future versioned patch integration; you only plan fields, hook points, owner boundaries and stop conditions.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Inspect real semantic resolution/decl use, evaluator call-entry/exit, constraint accept/failure, nested instantiation, reflection query/splice/expansion hooks. Determine availability of exact source location/macro/spelling/origin, event-time typed value and nested causality. Separate paths requiring hooks from already proven diagnostics. Plan disabled fast path, private trace/control descriptors, bounded input, fixture filters, public client-worker protocol covering cancellation/reaping and trace loss. Consider Nix GCC driver uses same libstdc++ and effective include path; private cc1plus/build driver must prove corpus equivalence. Recommend how to send real AST identity for declaration/use without retaining tree pointers beyond compiler lifetime. Send early small NEW hook contract with exact symbols and test distinguishing real return values from final static_assert.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
One worker owns cc1 state; inspector results reference session/request/source snapshot/compiler identity. Capture typed, bounded copies at event time, sequence and causal parent, physical+logical/spelling origin; unsupported/optimized-away explicit. Isolated prototype explicit opt-in for fixed workspace-owned fixtures only, with real values (e.g. 17/34), resuming/stepping must control live process. Hooks measured disabled/enabled. No arbitrary plugin selection from metadata. No requirement to decide a global license to build this local GCC patch.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
This planner does not own provider preflight or normal CLI. Root runs stock source build in parallel; production compiler launch remains gated by actual scoped command and trusted worker, not D-030 alone. Derive disjoint actual files for compiler patch/export and worker with common DTOs owner.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Material risks include recursion during pretty printing, GC lifecycle, early returns/cached calls/error unwinding, exception/failure/abort, implicit functions/builtins, nested constraints/compiler Sema re-entry, pipe backpressure and malformed control, terminal state on kill and unbounded header evidence. Live stop watchdog must distinguish stopped/running and permit process group cancellation.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Exact source symbols/locations for early narrow hooks and future interfaces; 2. Scoped data contract and disjoint ownership, 3. concrete passing/failing constexpr fixtures and tests for event-time values + stop/cancel; 4. sources/commands for a real IDE lookup/invalid edit and a debugger witness; state compiler limitations explicitly. 5. No general LICENSE decision or production claim.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped code graph coverage on VLS sources, direct GCC release reads and existing probe logs. No GCC rebuild/second copy or expensive compilation necessary. Read GNU plugin and diagnostic docs only when needed; exact local release primary source is authoritative.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Report early any hook unable to produce source or values and propose next genuine alternative within the approved local experiment; ask root before scope expansion. Stop after mapping useful code, no generic exhaustive narrative.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User selected GCC16 evaluation and explicitly approved a local worker and versioned hooks. Requested GPT-6.2 Astra Max. Planner meets mandatory dependency/risk gate for this substantial new change.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-GCC-008 DONE/PARTIAL/BLOCKED, early implementation-ready slice, exact source anchors, field/control/liveness model, executable fixtures/acceptance and unresolved questions.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Plan the first editor-facing semantic worker against real Void contexts
|
||||
|
||||
Task ID: T-PLAN-SEMANTICS-010
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VoidLanguageServer feat/implement-roadmap ca04975. Primary VBS and optional compile_commands providers now return real contexts from installed stdio server (native36, compatibility58). Reviewer identified alias/grant issues under repair. GCC16.2 private reference parity: 19 language, 8 tooling, 33 module checks. Versioned 0001 returns real eval evidence, 0002 v1 produces typed calls and explicit fields with witnessed definitions and valid source ranges. tests/corpus/frontend/verify-gcc-ide.py exercises direct overload edits, duplicates, macro/line and Unicode. D-028/D-030 authorized evaluation and a local compiler prototype; production backend selection and license remain open.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
On resumption the stock GCC 16.2 fixture now also passes both edited live return pairs with GDB (tests/corpus/frontend/verify-stock-gcc-gdb.py). Use stock compiler capabilities where evidence supports them. This observation does not settle full debugger/compiler choice. Prior planner assignment returned HTTP 429 before findings. Send a concrete module/dependency slice early so implementation can start independently.
|
||||
Build a concrete, gated plan for a usable compiler-backed editor path: dispatcher/worker, immutable overlays, module ownership, diagnostics/navigation and latency scheduling with real data. Separate work already within the local prototype approval from the remaining explicit product/backend decision. Identify minimum meaningful user-facing integration and the evidence which would justify selection or rejection.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only architecture, source evidence and precise independent implementation packages. No implementation, papers in place of actual local APIs, editor protocol advertisement, user messages or unreviewed compiler changes.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect docs/roadmap/{08-frontend-feasibility,09-semantic-workers,10-*,11-cpp-modules,12-reflection-provenance,13-diagnostics-recovery,14-completion-hover,15-index-persistence,16-navigation-rename}.md, docs/agent-workflow/DECISIONS.md, actual include/Void/LanguageServer/{Build/{Model,Providers},Documents/{DocumentStore,DocumentSnapshot},Workspace/Trust}.hpp, include/vls/{Server,WorkspaceSession}.hpp, src/{Server,WorkspaceSession}.cpp, src/Build/{Model,VbsProvider,CommandImport}.cpp, experiments/frontend/gcc-worker, compiler patches 0001/0002, tests/corpus/{modules,frontend}, actual selection and real main.cpp native/context row. Review GCC libcpp locations needed; no shared builds/indexer reconfiguration.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Read-only. If a targeted script is necessary use only private ignored build/plan-semantics-010. No shared source, docs/branch/staging/commits, sibling edits or child agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace current stdio single-threaded read/dispatch, document snapshots/epoch, selection status (generations may be ephemeral), model AnalysisRevision/PublicationSlot, scope grants/compiler classifier, patch record coverage and physical proof. Identify concrete missing data gates and how to materialize immutable overlays for both owning TU and headers/importers without executing project descriptors, arbitrary flags or generators. Favor actual compiler APIs, context-specific dependency evidence and real fixture/production Void inputs. Consider first frontend diagnostics and positive hover/go-to-definition/completion using same worker when safe. Account for ordinary clients relying on untrusted metadata and explicit trusted backend/toolchain identity. Determine how backend-neutral module worker/graph scheduler can proceed independently if a future production backend decision is required.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Propose NEW exact APIs/types/paths and integration points with existing ones. Bind async completion to configuration/trust/document/context/dependency generations with one serialized publication guard, LSP cancellation/id handling plus concurrent document notifications; requests should not block input. Report constraints for wire acceptance, SourceMapping, template/reflection facts and diagnostics coordinate conversion using SARIF display units. For modules inspect actual P1689r5 topology and CMI result formats: model compiler-specific build identity, immutable artifact lease, private caches, honest missing/generated readiness and dynamic unsaved imports.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Parallel architecture only. Root owns operational supervisor/trace and compiler integration. Other agents own trace and provider remediation. Do not wait on them or ask to change ownership: plan against known public shape and clearly identify uncertainties. Provide first actionable disjoint slice early for an independent preflight reviewer.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Respect file/root tool authorization, loss of source provenance on macros/#line or system headers, caps on concurrent frontend work/trace/bytes, null vs real empty results, stale publication fencing incl no-op state, symlink races, immutable revisions, no false capability advertisements. Avoid restricting the plan to the existing two types/roles or a one-file demo.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Deliver evidence-based packages and distinguishing acceptance cases (at least one actual Void header/TU, real multi-file module/overlay, same spelling different overload, invalid edit then recovery, stale result, cancellation and responsive progress). State what current gate actually proves and what facts/user decision are still necessary. Identify steps root can implement immediately under D-030.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage then actual file evidence, read GCC/headers and active database as needed. Read the completed logs build/gcc-gate/{observed-ide,observed-events,private-reference,private-modules}.log and build/native-evidence/providers-installed.log. No full compile/runs needed. Record actual commands and exits for any probes.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for unresolved product decision or missing data, but continue other independent contracts and explain the exact boundary; do not silently choose the production engine or defer all useful work. No new project licensing decision or backend dependency installation.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Approved full roadmap and private compiler evaluation (D-022/028/030). GPT-6.2 Astra at Max planning assignment. User asked all agents to use Max. Root retains integration and user interaction.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-SEMANTICS-010 DONE/PARTIAL, concrete dependency graph/symbols, first disjoint scoped WHAT/HOW, proposed owner contracts and compiler/software evidence, gates/decisions. Send early when first actionable for preflight.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Prove semantic navigation with the ordinary project compiler
|
||||
|
||||
Task ID: T-PLAN-STOCK-NAVIGATION-014
|
||||
Role: astra_planner
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975 plus local edits. Normal editor diagnostics use stock GCC 16.2 through an opt-in sealed frontend profile. The private compiler IDE hook resolves a closed int/double fixture but gives no occurrences in the real Void DocumentSnapshot.cpp. Earlier T-PLAN-SEMANTICS-010 proved the stock compiler resolves the two actual Void::Hash::fnv1a64 overloads after editing argument text, with controlled diagnostic tagging. Stock GCC/GDB was also tried for constexpr inspection. Native build metadata and disk/overlay views already exist.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Investigate a concrete route to compiler-proven hover and definition with an unmodified installed GCC 16.2. Try a separate, explicitly application-owned GCC plugin against the actual stock package if headers/ABI available. Produce an executable counterexample or proof on terminal call-token attribution, selected declaration/definition, canonical type, file provenance and manual overload edit. Recommend the next implementable ownership packages and honest limitations. The roadmap requires normal editor entry points after the evidence, not a benchmark-only static index.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Use closed benign in-memory or private local fixtures then a private checked copy of the existing real source. Preserve production profile and host compiler; no compiler patch or install. A workspace database may never select a plugin. No new stock plugin approval policy or arbitrary plugin loading.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read src/Documents/DocumentSnapshot.cpp, prepared build/voidlibrary/current/include/Void/Core/Hash.hpp, tests/corpus/frontend/gcc-queries.cpp, existing compiler-patches/gcc-16.2.0/0002-ide-occurrences.patch and 0003 if present, include/vls/semantic/StockCompiler.hpp and src/semantic/{StockCompiler.cpp,EditorDiagnostics.cpp}, docs/roadmap/{08-frontend-feasibility,14-completion-hover}.md (verify actual paths). Check stock GCC's installed plugin include directory and callback declarations. Only look at named source files in the private GCC checkout for evidence, not unrelated targets.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private probe sources and artifacts only in build/plan-stock-navigation-014. No new tracked sources, patches, manifests, Git mutations, shared compilation or shared caches. Other agents own their tasks. Root integrates real interfaces and any subsequent changes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use dev cpp-gcc to locate g++ and g++ -print-file-name=plugin, inspect available headers and stock version. A private ordinary GCC plugin may register PLUGIN_PRE_GENERICIZE or FINISH_PARSE_FUNCTION if the ABI supports it. Exercise the AST for two same-spelling calls at different physical tokens choosing distinct overloads; capture exact byte endpoints, observed declaration/type or explicit gaps. Check if location is the opening parenthesis or entire expression, if physical spelling can be proved using private source bytes and compiler evidence, if origin is a declaration-only target or real definition. Capture at least one real executable result or a concrete compiler/API evidence blocker. Avoid synthetic reflection semantics and source-lexical overload guessing.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Any proposed occurrence facts must bind to TU, source snapshot, lookup closure, generation and toolchain identity, both physical source ranges and target origin. Distinguish declaration from observed definition and unknown macro/remap cases. Report stock capability and patch-dependent capabilities separately. Generated/private plugin ABI can be version-limited and installed with VLS only in a later authorized packaging task.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root can provide the current comparison compiler worker and existing replay adapter runs separately. Reuse existing closed view and approved profile for proposed worker integration; it has no provision for arbitrarily supplied GCC plugins. Avoid changing the application while proving the ordinary compiler route. The original project distributes no custom compiler or license yet.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Probe same-name declarations/overloads, macro spelling, tabs/Unicode, primary file vs headers, declaration-only and malformed edit, active and stale views as appropriate. A true AST type and resolved UID do not prove a specific physical use or definition. Bound any output to selected project sources and one local compiler; no external upload or untrusted project/tool execution.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Stock binary/version/ABI and evidence of which callback facts it exposes. 2. Real overload selection/edit and trustworthy or explicitly missing use/target/type facts on stock. 3. Address applicability to real C++26 Void headers and normal entry points. 4. Return the smallest genuinely compiler-backed milestone for hover/definition, a concrete implementation/test graph, a fallback when any input is unproven, and the approval implications if any.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ --version and dev cpp-gcc -c g++ -print-file-name=plugin. Compile only a task-owned plugin and benign task-owned fixture under the private path, with absolute paths and bounded output. Run the unchanged project compiler on the original and edited fixture. Compare with tests/corpus/frontend/gcc-queries.cpp and T-PLAN-SEMANTICS-010 and retain exact commands/exit codes. No blanket rebuild of stock GCC, no plugin from workspace flags.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Report missing plugin headers or incompatible library as evidence and inspect whether matching headers already exist in the private prepared build. Never patch installed files, probe a third-party service, escalate or contact the user. No workspace licenses/distribution changes.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
The full roadmap is approved D-022. Primary VBS D-025. The user wants regular-compiler compatibility and approved local backend evaluation; use GPT-6.2 Astra Max per D-027/029. D-030 licenses no distribution.
|
||||
|
||||
## 14. Return format
|
||||
T-PLAN-STOCK-NAVIGATION-014 DONE/PARTIAL, commands, actual compiler facts, failed routes, proposed reviewed packages, dependencies/risks and next acceptance steps. Send the first real matched occurrence early. No subagents.
|
||||
@@ -0,0 +1,114 @@
|
||||
# Check native build and document foundation contracts before integration
|
||||
|
||||
Task ID: T-PREFLIGHT-004
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
/home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, with existing untracked Protocol/Documents/Workspace files and a small CLI repair. GPT-6.2 Astra at Max under D-027. Scope derives from roadmap 01/02/03/04/05/26. Planner T-PLAN-002 provides the dependency/invariant map appended to this assignment before dispatch.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Read-only preflight of proposed native build, document, trust, protocol and build identity contracts. Return separate immediate verdicts per slice. Identify contradictions that prevent a worker from implementing the actual scope or undermine the next consumer. Provide precise corrections.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Contract preflight for the next independently owned packages. The bootstrap numeric review T-REVIEW-003 found real precision/range issues. Preserve the upstream JSON contract and surface any prerequisite separately. Final diff review and compiler gate 08 are separate stages.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-{PLAN-002,NATIVE-001,DOCS-003,TRUST-004}.md, docs/roadmap/{01-bootstrap-dependencies,02-lsp-protocol-lifecycle,03-documents-positions,04-workspace-configuration-trust,05-build-contexts,26-vbs-self-build-adoption}.md, the actual headers in include/Void/LanguageServer/{Protocol,Documents,Workspace}, their sources and existing src/{Server,main}.cpp, tests/{TestSupport.hpp,Registration.cmake}. See current native seed build/tools/vbs-6c225-{src,bin} and evidence in VERIFICATION.md.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Shared checkout, no edits or branch changes, no writes to dependencies, global config or generated metadata. Root owns docs, integration and fixtures. There is no need to execute arbitrary repository inputs. No children or messages to the user.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Inspect actual interfaces and the planner's proposed evolution. Check native dependency source preparation, clean/offline/update behavior, lock/selection files, the CMake trap, same-profile child executable and registration. Check LSP negotiation, positional boundaries, nonmonotonic versions, malformed known-document payloads, atomic edits/recovery, URI aliases, overlay/disk races, memory budgets. Review configuration provenance, path validation, revocation, tool identity and trust-generation boundaries. Check proposed BuildContext/AnalysisRevision for missing provenance, invalidation or stale publication. A blocking defect in one slice should have a bounded scope.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
VBS 6c225c2 supplies ordinary Project targets, path/native_builder and CLI test/install. A native Void::Testing macro probe passed using Configuration, Data, Unicode, System, Testing. Existing LSP server currently advertises empty capabilities. New sync needs actual handlers, immutable snapshots and observable session tests. Cross-component revision should carry document, provider/generation, header/dependency, backend and trust identities. Never expose capabilities before wires and tests exist.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root will dispatch only accepted independent slices and serialize shared headers/build/test wiring. Final review uses a fresh reviewer. Check the original user choices D-021 through D-027. These decisions supersede historical bootstrap-only and XHigh notes.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Inspect boundedness of text operations/representation, cache and tool provenance, repeated/failed acquisition and no implicit project command execution. Distinguish permission to read metadata from process invocation. Reject stale/partial results and ambiguous authoritative identities.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. READY/CHANGES_REQUIRED/INSUFFICIENT_EVIDENCE per immediate slice.
|
||||
2. Reproducible or reasoned failure scenarios with specific contract amendments and verification hooks.
|
||||
3. Disjoint ownership and dependency order including which tasks may start immediately after root disposition.
|
||||
4. Identify any dependent decision that is genuinely required from the user.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use read-only git status --short --branch, git diff ca04975 -- src/main.cpp, source reads and scoped graph coverage. Root observed CTest 4/4 entries, 37 bodies and two clean native probes. Existing probe binaries and artifacts are in build/vbs-native-probe and build/vbs-framework-probe. No rebuild is required for a contract review.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before scope expansion or unauthorized changes. Do not request pre-implementation proof that only the implementation can supply. Distinguish an upstream blocker from independently actionable work. Return the native-only verdict early if other slices take longer.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap authorized. User explicitly prioritizes primary VBS, separate branch and GPT-6.2 family at Max for all assignments. Planning, preflight, integrated tests and fresh final review remain mandatory. Root handles disposition.
|
||||
|
||||
## 14. Return format
|
||||
Return T-PREFLIGHT-004 with a per-slice verdict, P0-P3 findings, exact locations/triggers/remediation/tests, ownership and unresolved prerequisites; no files changed. Do not spawn children.
|
||||
|
||||
### T-PLAN-002 output for preflight and root decisions
|
||||
|
||||
The planner verified the source and recommends native parity, checked protocol
|
||||
consolidation, independent document and workspace owners, then LSP synchronization
|
||||
and the context/revision model. Providers 06/07 follow model freeze.
|
||||
|
||||
* Native: atomically prepare a usable generation of upstream main in build/,
|
||||
retain the old one on failure, and capture its resolved path per build.
|
||||
Keep CMake out of every VLS action. Use real native targets and VOID_TEST.
|
||||
Preserve names and discover the running test's sibling vls without PATH/cwd.
|
||||
Inspect project-side VBS state and preserve pre-existing compdb/links.
|
||||
Root added two ordinary regressions to JsonCapabilities after T-REVIEW-003,
|
||||
for 39 cases. The original 37 should still pass. Report upstream failures
|
||||
from these two in both builds and retain their nonzero exit.
|
||||
* Protocol: one canonical Protocol facade with legacy vls forwarding. Use
|
||||
checked StrictJson::serialize, retain maximum header/body/depth limits,
|
||||
propagate encoding failure before framing. The exact-ID/range gate requires
|
||||
upstream numeric provenance (R-003). Read-only APIs cannot recover it from
|
||||
a rounded double. Do not widen this prerequisite to block native or documents.
|
||||
* Documents: scope URI bindings to an open incarnation. Keep physical paths
|
||||
separate from client URIs. Ambiguous path-only overlays cannot be authoritative.
|
||||
Changes/close still identify the open URI after a symlink retarget. Track the
|
||||
highest observed version independently of last applied; require a newer full
|
||||
replacement or balanced close/open after desync. Recheck overlays after disk
|
||||
I/O (including errors and open/close ABA). Read regular files with a bound.
|
||||
Session encoding is fixed; character beyond line clamps, impossible lines and
|
||||
split characters fail. Expose optional disk client version and explicit origin.
|
||||
Root proposes 16 MiB per document, 128 MiB shared snapshot/index admission,
|
||||
4096 open docs and 4096 changes per notification. Return typed refusal at limits
|
||||
and measure memory for edits. Pin old snapshot references until released.
|
||||
* Workspace: launcher explicitly selects an absolute user configuration; no
|
||||
autodiscovered repository file can grant trust. Permission kinds distinguish
|
||||
passive read, metadata refresh, compiler use and one explicit project action.
|
||||
Bind selected spelling, canonical file, digest and generation. Revalidate a
|
||||
pinned identity before a real launch in its future owner. Release locks before
|
||||
callbacks. Relative paths resolve against the owning configuration, and
|
||||
workspace resource preferences cannot increase runtime ceilings.
|
||||
* Session: a single DocumentStore serves initialized-session notifications.
|
||||
Advertise just openClose, incremental change and negotiated positionEncoding.
|
||||
Default to UTF-16 and select the first supported offered encoding. Validate
|
||||
signed LSP integers and complete notification arrays before applying. Known-URI
|
||||
failed changes desynchronize. Report bounded stderr diagnostics with silent
|
||||
notifications. Require a real subprocess transcript where ignoring edits fails.
|
||||
* Model: BuildContext retains workspace/provider/immutable generation, profile,
|
||||
target/alternative, host vs target role, original & semantic argv/cwd, compiler/
|
||||
stdlib/env identities, source mappings, readiness/retention and unknowns.
|
||||
ContextSelection preserves alternatives and monotonic revision including A-B-A.
|
||||
AnalysisRevision includes workspace/session, document identity/incarnation,
|
||||
version/content/revision, context, provider/selection/config/trust generations,
|
||||
backend and transitive inputs. A publication gate compares and commits atomically
|
||||
and refuses cancelled/stale/incomplete work. Test identical-text reopen, stale
|
||||
selection/revocation, changed imports and competing header contexts.
|
||||
|
||||
### Review of the amended session and model contracts
|
||||
|
||||
The initial verdict accepted native preparation, protocol, documents and trust.
|
||||
Review only the corrections in T-SESSION-003 and T-MODEL-005, supplied in full.
|
||||
Validate stable disk versus overlay equality, owning TU, negative lookup evidence,
|
||||
operation-specific readiness and atomic publication. For the session check LSP
|
||||
integer bounds, absent versus null ranges, a failed late change and the
|
||||
observable astral edit transcript. Return READY or a specific remaining
|
||||
blocking amendment for each. This is a continuation of the read-only review.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Review the provider acquisition and publication contracts
|
||||
|
||||
Task ID: T-PREFLIGHT-007
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Give independent pre-implementation verdicts for T-PROVIDER-IO-007, T-PROVIDER-ROWS-007, T-PROVIDER-VBS-006 and root T-PROVIDER-SESSION-007. Return decisive amendments early so unaffected workers can begin.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Technical architecture preflight only. No source changes, activities against other software or external messages. Review against actual local data and interfaces.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read all four named task specs in docs/agent-workflow/tasks/, roadmaps 04-07, current Build/Model.hpp, Workspace/{Configuration,Trust}.hpp, Scope helper include/Void/LanguageServer/Support/RegularFile.hpp, Protocol/Json.hpp, src/Server.cpp and src/main.cpp. Read the VLS-owned .vbs/editor_selection.json, build/native-validation/profiles/debug/editor/status.json and exact selected VLS-generated compdb. Read committed VBS seed build/tools/vbs-6c225-src/src/Editor/CompDb.cpp and real VLS-CMake build/bootstrap/compile_commands.json. No sibling writes, arbitrary project files or ambient settings.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Root and eligible workers share this checkout. Return observations by internal message or final only.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Compare field types, purpose admission and revalidation to producer rules and sources, file symlink/rename rules and logical bases, row bounds, argv/response parsing and stable duplicate identity. Review immutable generation consistency, fresh/stale observation and fallback semantics, router path/trust/provenance and grants per root. Identify a specific distinguishing test for each material finding. Distinguish fixable current contracts from future native export and production-analysis prerequisites.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace Void::LanguageServer::Build. Root owns Providers.hpp. ProviderScope contains WorkspaceIdentity workspace, optional absolute exact_database, exact_selector, build_root, producer_cwd (root-bound launcher grants only) and Workspace::ResourceLimitsConfig limits. enum FilePurpose {selection,status,database,response}; read_provider_file(scope,path,purpose,byte_limit) returns expected<ProviderFile,ProviderIssue>; provider_file_current(scope,file) revalidates identity. ProviderFile has purpose, logical_path, canonical_path, bytes, content_id, stamp; stamp binds admission root, opened object and selected name. ProviderIssue has string code,message and filesystem::path path. DatabaseInput has const ProviderScope& scope, const ProviderFile& database, optional<string> profile, optional<DriverInput> driver; DriverInput holds a workspace/purpose/generation checked Workspace::ToolCheck and Workspace::CompilerDriver, plus known wrapper spellings. import_commands(const DatabaseInput&) returns expected<ImportedCommands,ProviderIssue>; ImportedCommands has vector<BuildContext> contexts, vector<ProviderFile> dependencies and string revision. ProviderObservation has string provider, optional<uint64_t> selection_ticket, optional<string> profile, Generation generation, vector<ProviderIssue> issues and vector<ProviderFile> inputs; fresh is a generation without blocking issues (row limitations stay in context). observe_vbs(scope, selector_path, optional<DriverInput>), observe_compdb(scope, database_path, optional<DriverInput>) return ProviderObservation. Root owns latest sequenced publication and revalidation at install. All reads are passive. Concrete spelling in forthcoming header coordinated by root after preflight.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
T-PLAN-006 is the independent planner baseline. The three implementation workers wait for your per-slice verdict; root can continue the unrelated GCC/earlier-foundation work. Send first implementation-ready slice(s) promptly.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Check equal-ticket generation replacement or reverse completion, selection ABA/root reincarnation, metadata vs actual execution, external exact file symlink admission, fixed byte/row/memory bounds and roots with shared configuration. Check for accidental privilege via driver input, compiler source outside root or fallback aliases. Never execute metadata or real compiler commands for this review.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Per-package READY or CHANGES_REQUIRED; severity, exact path/field/contract, concrete change and test. Do not prescribe unrelated features or require unavailable VBS-native rich output for today's passive observer.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph/check_index_coverage and targeted file reads, bounded fixture data comparisons. No build necessary. Cite file lines for consequential claims and distinguish observed cases from proposed tests.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for missing producer details outside allowed read data and report narrowly; do not propose broader authority. No code edits, agent children or direct user contact.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User approved all plans, 6.2 family and Max effort. This independent Astra review is routed through the generic role as approved in D-027.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-007 verdicts, amendments, evidence, test cases and any actual blocker.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Verify input identities at the source catalog and document store boundary
|
||||
|
||||
Task ID: T-PREFLIGHT-CATALOG-009
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
T-PLAN-SEMANTICS-010 and the recently cleared T-SOURCE-OVERLAYS-009 define a stock GCC diagnostic input path. Root has a real closed-fixture private compiler view. T-SOURCE-CATALOG-009 proposes capturing exact observed sources and lookup names for that view.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Preflight the proposed catalog package for correctness of editor-vs-disk resolution, freshness and realistic integration signatures. Provide minimal amendments with observable distinguishing checks, or READY. Focus the agreed data slice.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only, no active security investigation or exploit development. Review ordinary input names, disk changes, unsaved headers, alias behavior and invalidation. No filesystem isolation/driver launch implementation, no scope expansion.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read T-SOURCE-CATALOG-009.md, T-SOURCE-OVERLAYS-009.md and T-SEMANTIC-LEASE-009.md, include/Void/LanguageServer/{Support/RegularFile,Documents/{DocumentStore,Uri},Build/Model}.hpp, src/Documents/{DocumentStore,Uri}.cpp and src/Build/ProviderFile.cpp. Review the named existing interface rather than restating idealized filesystem behavior.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private build/preflight-catalog-009 direct source/benign temporary fixtures only if needed. No persistent changes, shared builds or delegated tasks.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace how a caller chooses an authorized root, how fd-based reading and a client URI bind a single physical source, handling of missing/uncreated/blocked/aliased overlays. Check current compare snapshots, retained fd/route lifetime, quota and parent changes. Distinguish explicit evidence for an observed exact lookup from evidence of complete compiler lookup coverage. Reuse recent preflight and original normal case tests; avoid rerunning unrelated review assignments.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Review proposed source root/session/authority scope and the exact document API capture_file_inventory/observe_bound_source/materialize_bound_disk/validate_bound_sources (see frozen task for spelling). Verify what is revalidated by the caller vs the captured data object, especially hardlinks and directory names. Return any objective missing contract preventing implementation.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Document and workspace lease packages are in progress with disjoint owners. The catalog owner can prepare file handling and digests before their headers finish. The downstream runtime controls private mounts, tool identity and complete input coverage independently.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Resource limits, stable identity over replacement, nonblocking regular-file reading, atomic document authority, scope of partial/failed results and source mapping are relevant. Restrict to supplied repo and approved benign file fixtures. No independent exploratory tests on other targets.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Provide READY or CHANGES_REQUIRED in terms of a simple real source/lookup example, a source line and a test. The implementation tests must distinguish a new unsaved header, an empty file, a blocked open and an observed negative lookup that changes. Avoid unnecessary policy/UX requirements.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Read-only file review; optional build/bootstrap/tests/vls_document_tests --no-color or targeted existing test. Record only actual checks. No shared manifests or configuration changes.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop and contact root for an actual gap requiring a new owner. Preserve continued independent diagnostic/graph work.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full authorized roadmap D-022/025/027, independent reviewer specifically GPT-6.2 Astra Max D-029. No external publish/remote updates.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-CATALOG-009 READY or CHANGES_REQUIRED with exact issues/lines/tests and ownership.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Preflight the recorded DAP session and inspection contract
|
||||
|
||||
Task ID: T-PREFLIGHT-DAP-020
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
The real shared root is /home/faumaray/Projects/VoidLanguageServer. Work is on feat/implement-roadmap at ca04975 plus local changes. T-PLAN-DAP-020 designed the DAP path. T-REPLAY-RECORDING-019 implemented ReplayRecording. The existing four real 17/34 and 41/82 journals still replay from the CLI. Requirements R-017 through R-020 require DAP and custom inspection over one compiler session. Root owns DAP code and build integration, and the semantic reviewer owns an independent read-only review.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Check the following NEW DAP replay contract against actual source, compiler data and official DAP requirements. Identify concrete errors before implementation. Send a readiness verdict and distinguishing test. Verify the contract independently of root reasoning.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Focus on recorded sessions in a private stdio process, honest replay controls, frame/value/source mapping, bounded inspection, authority and test coverage. Actual live compiler control is a separate implementation on this same service. Avoid source edits, broad LSP reviews, compiler changes or external messages.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read experiments/frontend/gcc-worker/{Trace.hpp,Trace.cpp,Main.cpp}, tests/debug/RecordingTests.cpp, docs/agent-workflow/tasks/T-{PLAN-DAP-020,PREFLIGHT-REPLAY-020}.md, docs/roadmap/{20-dap-service,21-inspection-api}.md, include/Void/LanguageServer/Protocol/{Framing,Json}.hpp. Use the official Microsoft DAP overview and specification for capability implications, configuration ordering, unavailable stack positions and paging.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private benign fixtures only in build/preflight-dap-020. No writes to code, manifests or workflow docs, no Git changes, no subagents. Root coordinates application paths and integration. Avoid mutable VBS selection changes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Review a standalone C++ vls-dap --replay ABSOLUTE_TRACE. Launch opens only the launcher-selected journal; optional matching trace argument verifies equality. Retain one immutable ReplayRecording across inspection. Reuse framing and strict JSON, keep DAP protocol sequence distinct from compiler signal and cursor. Respond to initialize before initialized. Accept configurationDone before or after launch; respond to configurationDone before the deferred launch response and then send stopped. Disconnect settles a deferred launch. Keep source-only, partial-prefix and empty recordings honest.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW DAP API supports initialize, launch, configurationDone, setBreakpoints (one unverified result per unsupported source breakpoint), empty setExceptionBreakpoints, threads, stackTrace, scopes, variables, loadedSources, source, continue, disconnect and terminate. Continue visits the next observed integral value with matching stop if present; source statement stepping remains unsupported. Logical declaration metadata stays in custom views, physical frame source is absent with line/column zero. The captured primary file has a positive session-lifetime sourceReference and no client-path reopening. Positive frame/scope references expire on every movement and never alias later stops in the same connection. Preserve signed integer precision/bits, provisional vs final outcomes and cached or missing values. NEW vls/session bootstrap returns schemaVersion=1, unique sessionId, generation, mode, eventSequence, pauseKind, sourceReference, compiler identity and separate recording-level outcome. NEW vls/timeline and vls/frames require schemaVersion, sessionId and generation, page start/count <=256, and return matching identity. NEW vls/seek is a DAP control with the same expected identity, and exactly one eventSequence or direction previousValue/nextValue. Successful movement responds before stopped, changes generation even after seeking back. A replay cursor can represent an event lacking a matching recorded compiler stop. Statement-granularity reverse/next is not advertised.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Captured source ownership includes binary input. Offer a positive sourceReference and a loadedSources entry only for representable UTF-8 bytes. Keep sourceAvailable, sourceByteLength and sourceSha256 in the custom session metadata for all recordings. Embedded NUL in valid text must survive JSON serialization, including at the 1 MiB raw limit. An unavailable source request cannot substitute a hex string or current disk content.
|
||||
T-PLAN-DAP-020 and T-REPLAY-RECORDING-019 provide the existing index and public interface. No raw journal parser or duplicated timeline. Root will implement and test in both build systems, including staged VBS. A second owner may write process tests after the contract is frozen.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
No public network listener, arbitrary executable, debuggee argument forwarding or client-chosen source reads. Validate request types and integer variants. Cap malformed framing and selected journal using existing limits, preserve 1 MiB captured source through JSON expansion. Treat truncated/failed files, missing HELLO, terminal prefixes and expired handles honestly. At most 4096 events and 256 per custom page. Never expose current timeline state in a historical cursor. Limit handle allocation and output, keep bounded work without caching full stacks at every event. Handle back-to-back controls and EOF during configuration.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Check initialize/launch/configuration order and deferred-request cleanup against generic DAP clients. 2. Trace real events 5/6,7,8,9/10,11 and unpaired 20,22; preserve ack stop/action and provisional result. 3. Show that stale refs/pages, a replaced journal and a mismatching sourceReference cannot return another source or control a later generation. 4. Identify any reachable false capability, fake position, incorrect value or unbounded path. 5. Name the bounded correction and distinguishing acceptance check if necessary.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From the shared root use build/bootstrap/tests/vls_trace_tests --list --no-color. Run build/bootstrap/vls_gcc_probe replay build/plan-dap-020/capture-16mqf07g/source17-stepped.vls 6 and 8. Compare source17-every-return.vls and source41-cancelled.vls at real event ordinals. For missing framing details inspect src/Protocol/Framing.cpp. Use source and official media; no external upload of repo contents.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Read-only scope. Report missing evidence or an incompatibility immediately. An unavailable upstream service only limits that research leg. No release or merging decision. No approvals or questions to the user. Return to the root.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap implementation D-022, native priority D-025, authorized GPT-6.2 Astra at Max D-027/029. The user selected the generic runtime for the named review assignment. D-030 defers distribution of compiler changes.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-DAP-020 READY or CHANGES_REQUIRED. Include findings, trigger, source/evidence, exact suggested amendment, commands and unrun checks. Send a ready independent slice early. Do not spawn children.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Preflight stock GCC diagnostic locations and clean-result admission
|
||||
|
||||
Task ID: T-PREFLIGHT-DIAGNOSTIC-013
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
VLS branch feat/implement-roadmap ca04975. Planner has a successful ordinary-GCC real-TU diagnostic probe. A pure SARIF adapter T-DIAGNOSTIC-SARIF-013 is proposed to support roadmap 09/13. Existing snapshots have UTF-8/16 conversion. Compiler outputs and working tree are available.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Review this particular assignment for meaningful implementation acceptance, especially what GCC SARIF does and does not prove about real source ranges, process success, partial source evidence and primary/related locations. Return an early implementable verdict.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only preflight for this adapter only. No code changes, separate compiler gate, other worker ownership or external operations.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read the attached implementation contract, source fixtures tests/corpus/frontend/{gcc-queries.cpp,verify-gcc-ide.py}, build/gcc-gate/{constraint,queries}.sarif, include/Void/LanguageServer/{Protocol/Json,Documents/{DocumentSnapshot,Position}}.hpp, docs/roadmap/13-diagnostics-recovery.md and relevant GCC16 SARIF source. Verify facts locally rather than infer from format name.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Optional private ordinary compiler fixtures under build/preflight-diagnostics-013. All shared code/docs/builds owned by root and separate workers. No child agents or user contact.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Examine actual GCC status/artifact representations, column convention and Unicode/BOM witness. Check proposed decoder's ability to produce a real positively bound result while withholding ambiguous origins and incomplete clean clears. Identify minimal additional gate or witness if needed. Distinguish structural failures from a valid source diagnostic with unlocated related data.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Public contracts proposed in T-DIAGNOSTIC-SARIF-013 section 7. Positive mapped outcomes have a retained exact document and verified physical origin; process outcome separate from bytes. Verify the design supports multiple artifacts/index/base references without reading arbitrary paths or pulling in an independent parser.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Milestone is independent of module graph, adapter does no process launching and will be used by the stock diagnostics worker. Root integrates native/CMake/actual gcc fixture. Implementation awaits reviewed interfaces; please issue early amendment only for consequential problems.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Check bounded decoding and source materialization, integer range, endpoint ambiguity, partial compiler stderr, absence of expected result fields, diagnostics from headers/imports and stale snapshots. Use harmless ordinary compile fixtures.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
READY or CHANGES_REQUIRED with exact contract section and distinguishing tests. Provide evidence for defaults and any important limits, including whether success/error SARIF can cause false clean clears or false source positions.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; actual local GCC16 reports and snapshot code. Optional focused stock syntax-only/diagnostic probe in your private directory. Report exact sources and checks; no edits/builds in shared areas.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
No production backend/permission decisions, no expanded scope or changes. If rate-limited report honestly. Fast early verdict allows independent coding.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User wants full project with native VBS, GPT-6.2 Astra Max for independent review. D-028/030 approves local GCC prototype and evidence. Read-only task.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-DIAGNOSTIC-013 READY/CHANGES_REQUIRED, necessary amendments and attested checks. Report to root.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Review the private GCC worker and the first real evaluator and IDE hooks
|
||||
|
||||
Task ID: T-PREFLIGHT-GCC-008
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages. D-030 explicitly authorizes a local isolated GCC 16.2 worker + versioned compiler hooks. Root has built cc1plus from the verified release. Planner T-PLAN-GCC-008 mapped actual source and APIs.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Fresh independent preflight of the proposed compiler patch, worker launch/control boundary, direct IDE occurrences and debugger witness. Give per-slice verdicts and decisive changes; let independent implementation start when a slice is ready.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
No code edits or publication. Probe only task-owned synthetic fixtures and exact local GCC source/evidence. No semantic fallback to raw-dump parsing in the product or exposure of experimental capabilities on ordinary LSP.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/roadmap/08*,09*,12*,17*,18*,19*, docs/agent-workflow/tasks/T-PLAN-GCC-008.md and actual implementation under build/gcc-gate/gcc-16.2.0/gcc/{cp/constexpr.cc,cp/parser.cc,cp/lex.cc,cp/Make-lang.in,cp/constraint.cc,cp/pt.cc,cp/reflect.cc,c-family/c.opt,json.h,diagnostics/sarif-sink.cc}. Verify exact source points below. Read tests/corpus/frontend/{gcc-live.cpp,gcc-queries.cpp,probe-gcc-tooling.py}, Build/Model.hpp, Workspace/Trust.hpp and build/voidlibrary/current/include/Void/System/Process.hpp.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Independent reviewer only. Root owns integration, checked source build and clients. Separate implementers will own compiler-patches/gcc-16.2.0/ and experiments/frontend/gcc-worker/ respectively; each gets an exact task after preflight.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Check core evaluator observation after admission/bindings at constexpr.cc 4279, real body 4531, copied result of get_value(res) at 4552 before destroy_value_checked at 4576; final error/outcome 4653, cache branch 4426 and exceptions. Ordinary successful integral return needs actual TYPE_PRECISION/signed/exact bits at event time. Use scope IDs/parents for recursion/early returns. Local compiler flags opt-in; disabled path has no formatting/I/O and preserves semantics. Review frontend-origin HELLO/EOF/finalization at cp/lex.cc 340/80 and fixed private pipe framing. Check saved/edit/malformed/recovered direct call (parser.cc 7150, 8941, 9129) at terminal identifier token, member use at 9639,9725. Require exact spelling bytes in immutable snapshot and same invocation DECL_UID; reject tentative/rolled-back evidence, macro/#line/generated/implicit or missing origins. Validate direct target rather than dumping all lexical spellings.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW private v1 interface proposal. Patch records on dedicated fd 4, bounded newline-delimited UTF-8 JSON frames of at most 64 KiB, parent control on fd 3, up to 4 KiB per control. Trusted launcher remaps Void::Process child pipes, isolates raw cc1 stdout/stdin, separately drains stderr and execs selected private ELF (absolute, stable open identity), with explicit environment/no PATH selection, process group and resource bounds. Request nonce/version + backend build/patch identity, contiguous seq and owned call IDs, kind/source origin and value DTO {kind:integer,precision,signed,bitsHex} or explicit unavailable. At actual value snapshot, can stop; only matched nonce/stop generation can step/continue/cancel. Buffer/cap/truncate with typed terminal reasons on overflow/crash, distinguish paused/running deadlines/EOF, reap whole group. One frozen fixed fixture per invocation, no arbitrary launch or flags from project metadata. Keep frontend diagnostics and IDE/debug records independently correlated and do not misread SARIF display columns as UTF units.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
T-PLAN-GCC-008 source mapping complete. Known release SHA + tag, stock plugin and GDB evidence are partial; full compiler parity, hook values, source and state-machine tests remain mandatory. Root can continue provider implementation and standalone baseline build during your review.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
On resumption the evaluator slice has an independent READY verdict with amendments. T-GCC-EVALUATOR-017 records those amendments and the concrete v1 stream. The outstanding verdicts cover the worker launcher, control/replay and direct IDE evidence. The actual private cc1plus built and matched the stock predefined macros and all 19 reference cases, eight tooling cases and 33 module scans with the reference include roots and explicit PIE/preinclude flags. Verify remaining boundaries against source. Do not duplicate the accepted evaluator review except to report a concrete cross-component defect.
|
||||
Guard GC tree lifetime, arbitrary widths, caching/silent failure/reentrant parsing, exceptions, real vs diagnostic replays; stable origin identity for src snapshot/macro/line directives, malicious strings cannot frame injection, pipe FD collision/EOF/kill/leaked descendants. Scope only claims actual direct expressions, ordinary ints/closed fixture. Later template/constraint/metafunction/splice/expansion hooks have separate source anchors; no silent classification of deferred as satisfied.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Compiler event vs supervisor vs IDE per-slice READY/CHANGES_REQUIRED. Require synthetic Ready=17→41 with same assertion >0 produces distinct real values 17/34, 41/82 with observed nested parent, held stop with same PID/no later events, step/cancel and mutation/replay witness. Require multi-occurrence direct overload definition/field/hover and malformed/recovered edits, raw byte accuracy incl Unicode/tab or explicit unavailable. Distinguish prototype success from full backend/debugger/adoption gates.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Read bounded local GCC release slices and VLS graph coverage/direct source; use git status --short --branch and optional bounded known-fixture smoke with stock GCC, never modify in-progress compiler build. Return evidence and concrete distinguishing checks. No large new source/build downloads.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Report genuine blockers/change requirements early. Do not assume GCC public plugins alone provide evaluation state, invent compiler results, widen project license or invoke project metadata. Do not expand the narrow witness into a prerequisite for independent passive work.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User approved D-030 and retained independent Astra Max review in D-029. This new substantial change requires a fresh planner/preflight followed by source and integration review. No remote action/Git changes authorized.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-GCC-008 per-slice verdicts, exact amendments/source anchors, test oracle, and separable work/actual blockers.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Review stability and lifetime of the editor context lease
|
||||
|
||||
Task ID: T-PREFLIGHT-LEASE-009
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VLS feat/implement-roadmap ca04975; passive status, actual providers, authority pinning and guarded analysis model exist. Planner T-PLAN-SEMANTICS-010 established the new lease to connect actual compiler contexts to diagnostics; before implementation review the attached contract.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Return early READY or CHANGES_REQUIRED for a context lease that acquires a real selection, authenticates its selected driver and revalidates when inputs change without degrading unaffected documents. Catch new contract holes before worker coding.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only preflight limited to the proposed semantic context acquisition API and relevant existing projection/selection and settings. Do not implement, do not change any tools or release/pin choices.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read T-SEMANTIC-LEASE-009, actual src/WorkspaceSession.cpp, src/Build/{Model,CommandImport,CompdbProvider,VbsProvider,ProviderFile}.cpp, src/Workspace/Trust.cpp, include/vls/WorkspaceSession.hpp, include/Void/LanguageServer/Build/{Providers,Model}.hpp and semantic-planner notes in the contract. Existing docs/agent-workflow/DECISIONS.md supplies authority decisions.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use private build/preflight-semantic-lease-009 for ordinary files if needed. Preserve shared checkout, no global or sibling changes, further agents, direct user contact, or process launches from workspace commands.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace how identical generation identity/selection, query aliases and distinct in-flight documents can remain correct. Scope frontend/driver distinction and trust generation checks. Look for precise minimal amendments affecting real users, selected command fidelity, lifetime, equality and false generation changes.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW acquire_semantic_context/validate from the attached §7, consuming existing TrustPolicy, SelectionState, generation/stamps and immutable document binding. Ensure no untrusted executable is selected implicitly, repeated ordinary provider status can't break cached selection and unrelated documents aren't serialized to one latest issuance. Check handling of staleness during validation.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root owns integration; no active source writer for affected files until preflight clears them. Module graph and SARIF decoder are parallel separate owners. Passive provider already has working stdio/regression checks.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound cache/history and return safe immutable lifetime after eviction or removal. Track observed change and affected context rather than arbitrary process lifetime for readiness. Check that explicit file/workspace, missing/native precedence and config source choose the real row.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Deliver concrete P1/P2 interface or ordering changes with a distinguishing fixture, then a READY verdict if scope is technically sufficient. No need to approve later compiler isolation or wire protocol here.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch, targeted symbol/source inspection and existing build/bootstrap/tests/vls_workspace_tests --no-color if helpful. No commands on arbitrary project input or shared rebuilds.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop at preflight verdict; role must stay GPT-6.2 Astra at Max. No changes to product scope or user commitments.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022/025/027/029, approved full roadmap, first semantic context integration follows the planner. This assignment is independent review only.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-LEASE-009 READY/CHANGES_REQUIRED with actual evidence, smallest amendment and test. Report to root only.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Check module evidence, name resolution and partial graph admission
|
||||
|
||||
Task ID: T-PREFLIGHT-MODULE-011
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VoidLanguageServer feat/implement-roadmap ca04975. Root and the independent semantic planner just scoped T-MODULE-GRAPH-011 on the working tree. Stock GCC 16.2 produced 33 module/scanner checks. Existing BuildContext represents TU alternatives; native v1 does not attest library/dependency completeness. This is preflight, not postimplementation certification.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Resume preflight after the previous Astra reviewer identified membership/census and header-unit cache/input identity gaps, then hit HTTP 429 before final disposition. The amended implementation contract records those actual observations at §7, including GCC 0/0 versus the paper's 1/0. Re-read the amendments and return actionable remaining changes or READY. Deadline-sensitive implementation can proceed once the contract is cleared.
|
||||
Inspect the actual module graph assignment and representative stock compiler rules, then return READY or necessary amendments for module scan admission, scope, scheduling and invalidation. Send the earliest usable contract as soon as possible.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Independent technical design review only. Do not design the full unrelated frontend, implement graph code, edit compiler, advertise capabilities or send user messages.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-MODULE-GRAPH-011.md in full, docs/roadmap/11-cpp-modules.md, tests/corpus/modules/verify.py, include/Void/LanguageServer/{Build/Model,Protocol/Json}.hpp, actual bounded scan JSON in build/gcc-gate/private-modules.log and P1689R5 paper when needed. Actual language APIs and tests override a task author's assumptions.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private benign fixtures only under ignored build/preflight-module-011. Do not change graph, captures, build-dir selections, shared source, git or siblings. No additional agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Check for unsupported-version/default semantics, failure status with rule output, distinction of -M -MG from warm -E -MD, header-unit lookup and partitions, negative membership, mixed commands/incomplete inventory, ambiguity resolution and graph budget failures. Distinguish verified ready order for known graph from all-project indexing or launch authority.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Proposed graph calls are pure decode_scan(expected target) and build_module_plan(identity-scoped inputs, requested key). Return owned rule, transitive dependency order, reverse consumers and structured blockers; never open paths. Confirm strong semantics for scan provenance, pointer lifetime, unit kind, expected output, explicit compatible domain and full inventory. Provide exact corrected interface if needed.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Implementation awaits your verdict, root will dispatch after resolving actionable items. Independent of ongoing review of GCC instrumentation. No production backend decision required.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Verify bounded untrusted JSON/graph costs, deeply nested and high-degree graphs, unrelated component damage, determinism, immutable lifetime and reverse invalidation for added/missing provider or changed contents. Use only harmless finite data.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Send decisive verdict plus precise action for each material risk and distinguishing fixtures. Confirm whether a normal legal real GCC primary/partition/importer context, some with different per-TU flags, can actually be modeled. Check which header-unit semantics need an explicit unsupported/missing result.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; examine tests/corpus/modules/verify.py and the already verified saved module report. Optional run stock corpus via dev cpp-gcc -c python3 tests/corpus/modules/verify.py, no shared mutations. Bounded code graph queries with coverage as appropriate. Report which commands executed.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop after delivering preflight, or exact missing dependency; no implicit fallback model or authority. No shared Nix/config, source or compiler builds.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022/025/027/029 require full roadmap native VBS and independent GPT-6.2 Astra at Max. Review targets are engineering checks within established user scope only.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-MODULE-011 READY / CHANGES_REQUIRED, evidence, concrete changes/test witnesses; send ASAP to root, no user messages.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Check immutable recording semantics for DAP and shared inspection
|
||||
|
||||
Task ID: T-PREFLIGHT-REPLAY-020
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
T-PLAN-DAP-020 traced the current v1 validated journal, two actual compiler recordings and standard DAP scope. T-REPLAY-RECORDING-019 proposes an immutable one-time-validated recording; current replay(path,seq) rereads by pathname. This preflight fixes the records/view contract for an initial recorded DAP service.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Review the proposed immutable recording boundary against Trace.cpp and real fixture semantics. Verify enough true evidence is available for DAP inspection, separate recording state/end from event cursor state, and check source provenance and cost.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only review of recording API and expected consumer, no DAP UI or control implementation. No reviewing OS isolation/third-party tools, and no new compiler hooks.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect T-REPLAY-RECORDING-019.md, T-PLAN-DAP-020.md, experiments/frontend/gcc-worker/{Trace,Main}.cpp, Trace.hpp, tests/debug/TraceTests.cpp, docs/roadmap/20-dap-service.md. An actual 6,886-byte fixture resides in build/plan-dap-020/capture-16mqf07g/source17-every-return.vls, available via existing vls_gcc_probe replay if useful.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Optional small private build/preflight-replay-020 scratch only. No tracked writes, shared builds/branches, extra agents or remote sends.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Check the accepted trace event/manifest and record transitions (including commands vs resumed), prefix/corrupt detection, manifest/finish identity, scope of historical frame/variable data, missing physical coordinates, time/memory limits for index + query outputs. Map real 4-stop journal and replay failure evidence to requirements for DAP/custom requests. Test one or two discriminating current behaviors or use source + existing test evidence.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Evaluate open(absolute journal), event_count/page, typed real event summaries, cursor_at/event vs final cursor, raw source/diagnostics, capability and final outcome. Distinguish a caller-selected journal from an arbitrary client-provided source path. Preserve current CLI surfacing of partial/corrupt verified prefixes. If necessary amend exact stop/next definitions or consumption of source/shape before worker starts.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Existing Trace is released. Downstream DAP and custom session services consume this data and own handle/connection lifetime independently. Root verifies normal compiler tests and both builds. No other owner needs these files.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Focus realistic time/space, old-recording immutability, clipped verified prefixes, retained sources and cursor-vs-outcome correctness. Keep bounded tests and existing ownership. Do not introduce new production policy requirements.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
READY or CHANGES_REQUIRED with exact source lines, involved actual events, minimal amendment and distinguishing test. Explicitly separate prerequisites for this data slice from later DAP/live features.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Read-only. Optional run build/bootstrap/tests/vls_trace_tests --no-color, build/native-validation/profiles/debug/out/bin/vls_gcc_probe replay ABS/real.vls 6. Only report actual observed statuses.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for ambiguous ownership or an incompatible change in existing trace wire contract. Return early actionable findings to parent.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Approved local full roadmap, independent GPT-6.2 Astra Max D-027/029. No deployment or compiler distribution.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-REPLAY-020 READY or CHANGES_REQUIRED with dynamic/static evidence and next independent owners.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Check the editor overlay handoff for a stock compiler input view
|
||||
|
||||
Task ID: T-PREFLIGHT-SOURCE-009
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Roadmap 03/09/13 has a working overlay store, stock GCC diagnostic mapper and trusted build-context/lease contract. T-SOURCE-OVERLAYS-009 proposes a document-side source binding for a future real compiler view.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Read the actual DocumentStore and the proposed contract. Validate the minimum API for a stock input owner to materialize approved bytes plus authoritative editor overlays and recheck them, with no second ambient open. Identify required corrections before code starts.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Preflight read-only for the document capture contract; no review of other components or new architecture beyond this boundary. No compiler launches or security testing needed. No filesystem staging, LSP work or source-checker implementation.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-SOURCE-OVERLAYS-009.md and T-DOCS-003.md, include/Void/LanguageServer/Documents/{DocumentStore,DocumentSnapshot,Uri}.hpp, src/Documents/{DocumentStore,DocumentSnapshot,Uri}.cpp, tests/documents/DocumentTests.cpp and relevant model eligibility in src/Build/Model.cpp. Inspect actual state transitions and retained budget; never inspect excluded environment data.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
A private bounded build/preflight-source-009 fixture may be used to validate a neutral regression, but no shared mutations or extra agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace overlay acquisition, unknown and refused opens, zero-length content, two physical aliases, close/reopen, recovery/desync with unchanged version, same_input_as, snapshot bytes, membership and concurrent edits. Read all methods receiving already-bound paths; verify cross-store and cross-generation stamps do not require IO. Distinguish evidence the document owner can establish from the future disk/namespace catalog.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Review proposed opaque bounded inventory and one-file bound observation, post-read creation and validity. Require missing, refused, invalid and available state to remain distinct; no need to prescribe new public types if an existing type suffices. Existing disk resolve remains a separate entry point with ambient reads.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
One cleared semantic planner and document foundations are prerequisites. Independent workspace/diagnostic/module tasks own no overlapping file. Report early verdict as soon as API can be implemented; root handles code and wiring after READY.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Review for concrete failures observable in an editor or compiler input, overbroad invalidation, deadlocks, identity lifetimes and retained budget. Bound any diagnostics/distinguishing fixtures. No external network, project discovery or stress beyond ordinary unit inputs.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
READY if scope and contract give a credible first stock diagnostic handoff. Otherwise give exact minimal amendments and a distinguishing test. Include concrete source lines, note actual reads versus unrun tests and outstanding caller responsibilities.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Inspect checked-in baselines and latest changed files; optional build/bootstrap/tests/vls_document_tests --no-color or --list, no shared build changes. Record actual command and exit if running tests.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for ambiguous project identity or ownership. Source materialization, verified catalog closure and OS isolation will get separate integration gates. Do not make unrelated work a precondition for the document package.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized separate-branch full implementation D-022/025/027 and wants independent Astra at Max D-029.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-SOURCE-009 READY or CHANGES_REQUIRED with lines, needed clauses and distinguishing cases, plus final ownership and next unblocked work.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Preflight stock GCC observation and its editor authority
|
||||
Task ID: T-PREFLIGHT-STOCK-NAVIGATION-014
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared VoidLanguageServer ca04975 on feat/implement-roadmap. T-PLAN-STOCK-NAVIGATION-014 obtained a real stock-GCC match for the saved and edited Void::Hash::fnv1a64 call and tested two same-line overloads. A hidden same-name macro can leave all ordinary CALL_EXPR endpoint locations, and a dependent wrapper may resolve twice at the identical token. The stock worker already closes lookup inputs for LSP diagnostics. Frozen candidate producer contract accompanies this spec.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Independently preflight T-STOCK-OCCURRENCES-014 and the eventual reader/worker/editor boundary. Return early separate producer and consumer verdicts so bounded implementation may begin. Identify distinguishing tests for false semantic facts and authorization/regressions. No implementation.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Stock GCC 16.2 optional approved observer for direct-call return type/definition. User project compiler stays unchanged. No live DAP, project rename, generated reflection semantics or other backend selection.
|
||||
|
||||
## 4. Files to inspect
|
||||
Review docs/agent-workflow/tasks/T-{STOCK-OCCURRENCES-014,PLAN-STOCK-NAVIGATION-014}.md including full producer contract. Inspect private source build/plan-stock-navigation-014/observe.cc, relevant evidence, include/vls/semantic/{StockCompiler,SourceCatalog}.hpp, src/semantic/{StockCompiler,EditorDiagnostics}.cpp, src/Server.cpp, src/Build/Model.cpp, tests/corpus/frontend/gcc-queries.cpp and actual stock plugin headers. Review published operator precedence and source-location semantics if necessary using official GCC source. No project data in public requests.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Private checks under build/preflight-stock-navigation-014 only. No application or task edits, shared compiler/builder execution, changing editor selections or shared profiles. No subagents. Return to root only.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Check native plugin API can prove the identity of the selected call and an actual function body. Challenge token-to-byte mapping for hidden macro maps, duplicated/qualified names, line remaps, BOM/tabs, declared-only targets, template instantiations sharing physical occurrences and cross-file header edits. Check per-job stdout/stderr separation, dynamic loader inputs, bounded report, closed mounts, and LSP location/hover correctly tied to receiver and version. Require clear and stale outcomes to distinguish unsupported, interrupted and complete.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Initial wire is in T-STOCK-OCCURRENCES-014 §7. Root proposes an explicit trusted GCC profile option for a fixed ABI observer digest. Capture the verified plugin bytes from the same opened object and bind a private copy read-only at /vls-observer/occurrences.so for the isolated run; only the exact instrumentation inputs and report file receive infrastructure access. Original source spellings are matched to the final source capture. Compdb, initialization options and workspace settings cannot select a plugin or alter its args. On a verified successful run, retain per-TU facts under the selected capture. Revalidate receipt, issuer, source closure and chosen edition before answering hover/definition; emit capability only on opt-in launch. Use a specific occurrence proof and readiness separate from project-wide completeness and diagnostic cleanliness. Client asks ordinary LSP requests at negotiated position. Unknown calls and prior revisions must not authorize links. If a shadow or negative lookup changes, invalidate cache. Distinguish overlay coordinates from disk targets unchecked by clients.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The producer's tool and host contract now include the linker's effective ELF search paths and dependencies. The observed planner binary has a project RUNPATH. The worker must refuse this object and admit a prepared object with verified immutable resolution.
|
||||
Existing opt-in stock GCC profiles, immutable source catalog and real diagnostics server. Root owns producer/decoder schema, integration build + tests, and any version-selective capabilities. Existing code imposes conservative directory, symlink, manifest and process limits, so do not add a generic escape hatch. Fresh corpus is allowed only on task-owned minimal source/stock compiler.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound macro maps (real Void TU observed 26,106), path input counts, generated source, retained queries and lifecycle. Test false positives caused by GCC coordinate normalization or a target declared in an included header but defined elsewhere. Check a plugin change after profile selection and source changes between compilation and LSP response; local trusted binaries only, no remote service. No project license decision in this assignment.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Early positive/changes-required verdict for the producer. 2. Separate disposition with precise host proof/receipts for opt-in publication. 3. Identify any service-facing risk or proven unsoundness and its minimal distinguishing test. 4. Keep genuine high-impact uncertainty visible and allow independent work to proceed once amended.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run dev cpp-gcc -c g++ --version, inspect build/plan-stock-navigation-014/real-{saved,edited,broken,recovered}.json and actual code. If needed, build a benign isolated counterexample with stock GCC under own build path. No project build or compiler edits. Distinguish a source-backed assertion from a runtime proof.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Read-only review; no source edits; stop on a genuine unavailable fact and return the specific missing evidence. Do not review unrelated product areas or seek user approval independently. No Git operations or external messages.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022 full roadmap, D-025 native primary, D-027/029 user selects GPT-6.2 Astra at Max for review, D-028/030 local experiments. Existing GCC and normal compilation remain available.
|
||||
|
||||
## 14. Return format
|
||||
T-PREFLIGHT-STOCK-NAVIGATION-014 READY/CHANGES_REQUIRED with separate producer and host gates, actual paths/tests, proposed amendments and unrun checks. Send early verified findings; no subagents.
|
||||
@@ -0,0 +1,57 @@
|
||||
# Unify framing and JSON adapters and use checked response serialization
|
||||
|
||||
Task ID: T-PROTOCOL-005
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Repository /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap, base ca04975. The bootstrap vls namespace has known working framing/lifecycle behavior. The new untracked Void::LanguageServer::Protocol duplicated that adapter before checked StrictJson serialization landed on main 7d7d23e. Source ownership was released by the original writer. T-PLAN-002 and the preflight direct one canonical implementation.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Expose one implementation of checked framing/JSON helpers and preserve compatibility for existing vls consumers. Make all response encoding failures explicit and use upstream serializer. Provide tests of escaping, round-trip, depth/UTF-8 and failure behavior. Root owns stdio dispatch and integration.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Protocol adapter and narrow compatibility headers only. Numeric exactness needs raw token metadata that current upstream lacks. Preserve existing request_id behavior on currently representable inputs, carry an explicitly open upstream gate and keep the new raw-wire regressions enabled. Do not develop a second JSON/decimal parser.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read include/{vls,Void/LanguageServer/Protocol}/{Json,Framing}.hpp and their source implementations, src/Server.cpp and tests/{FramingTests,JsonTests,LifecycleTests,JsonCapabilities}.cpp, docs/roadmap/02-lsp-protocol-lifecycle.md. Compare the actual upstream parse and checked serialize in build/bootstrap/_deps/voidlibrary-src/include/Void/Data/StrictJson.hpp. Inspect CMakeLists.txt and T-NATIVE-001 for target ownership.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Protocol; src/Protocol; include/vls/Framing.hpp; include/vls/Json.hpp; src/Framing.cpp; src/Json.cpp; tests/ProtocolEncodingTests.cpp
|
||||
No edits to build.cpp or CMake, existing suites, Server.hpp/cpp or sibling checkouts. Other agents share the branch and handle these paths. Keep old implementation paths usable until root wires both builds, and arrange final removal of dead forwarding translation units with root.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Compare the two adapters and choose the canonical behavior covered by the bootstrap. Replace the custom serializer with StrictJson::serialize and convert its error type into an explicit error result. Retain ingress validation/depth bounds. Keep IDs signed-32-bit integer or string and preserve checks on numeric decoded values. For unrepresentable exact tokens, coordinate against the upstream gate instead of guessing. Compatibility headers import canonical types/functions without copying algorithms. Give root the interfaces needed to create typed JSON responses. Preserve exact frame size/input handling; mark any new egress limit or failure contract for caller.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Canonical Json and RequestId keep their current types on upstream main. serialize_json(const Json&, std::size_t maximum_depth = 64) returns std::expected<std::string,std::string>. Keep Protocol helpers find_member/as_object/as_array/as_string/as_bool/as_int64/as_uint32 for other slices, with checked type/range semantics. FrameLimits defaults to 8192 and 16777216. Expose public API for checked envelope egress. One implementation is linked per executable. If preserving legacy quote_json/encode_id as wrappers until root rewires server, document the migration and do not silently fabricate data.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root serializes build definitions and actual error/result dispatch. Native migration is in progress. To keep it buildable, use a staged migration with root; avoid deleting definitions while their only target still references the old files. Hand off canonical source list and precise switch steps. The formal JSON exactness fix requires upstream release/override verification. Docs/workspace tests are disjoint.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Invalid UTF-8 object keys/values, nonfinite manually constructed doubles and over-depth values must return an error and produce no partial protocol frame. Before/after framing boundaries must match including CRLF and clean EOF. Keep JSON handling bounded and avoid reparsing serialized request IDs. Preserve tested stdio behavior and document any remaining legacy transitional limitations.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Canonical namespace and vls source-compatibility resolve to one set of framing/JSON definitions after root integration.
|
||||
2. Checked serialization propagates upstream failures and round-trips complex valid values including decimal numbers, controls and escaped data.
|
||||
3. All original framing/lifecycle/ID cases retain behavior. The known precision/range failures remain visible until upstream resolves them. Actual failures and registration evidence are returned.
|
||||
4. Expose unambiguous checked egress and typed ID helpers for root's Server integration.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Root has used dev cpp-gcc -c cmake --build build/bootstrap --parallel 2 and dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure. For an isolated focused binary, use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/bootstrap/_deps/voidlibrary-src/include with your canonical sources/tests, using observed Void::Testing archives in build/vbs-framework-probe or the existing bootstrap tree. Put artifacts under build/protocol-check. Test with --list --no-color and actual filtered bodies. Format owned files only.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before writing other workers' build or session files and before changing numeric semantics without evidence. If a proposed signature breaks a consumer contact root with locations and the narrowest remedy. Stop after two unsuccessful repairs of the same defect and return evidence. No per-dependency source patches in this task.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-021, D-022, D-024, D-025, D-026 and D-027. Protocol cleanup is within requested implementation and user approved continuation from the existing files. Use GPT-6.2 Sol at Max for this package after fresh preflight. No external writes, staging, commits or global settings.
|
||||
|
||||
## 14. Return format
|
||||
Return T-PROTOCOL-005 DONE/PARTIAL/BLOCKED, source paths, signatures/integration steps, commands and exit codes, case counts, original vs new coverage, any observed limitation and required wiring. No children or user messages.
|
||||
|
||||
Fresh preflight found that StrictJson::serialize(maximumDepth=64) can admit the
|
||||
65th empty container, whereas VLS ingress counts every container opening. Make
|
||||
egress and ingress agree at 64, including empty containers and root scalars at
|
||||
depth 0. Keep this bounded even for arbitrarily deep in-memory values. Switch
|
||||
legacy/new headers, sources and build wiring in one coordinated root integration.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Bounded workspace-scoped metadata reads
|
||||
|
||||
Task ID: T-PROVIDER-IO-007
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement passive input acquisition and revalidation for both build providers with scoped authority before any payload bytes are read.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Linux-first metadata acquisition. Preserve the behavior of existing unscoped selected-user-file, document and executable callers. No JSON, command parsing, compiler execution, discovery or file writes in providers.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read include/Void/LanguageServer/Support/RegularFile.hpp and its current callers in Documents/DocumentStore.cpp and Workspace/{Configuration,Trust}.cpp, Providers.hpp proposal below and T-PLAN-006. Use existing Void::System::OwnedFd and Void::Crypto SHA-256.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Support/RegularFile.hpp; src/Build/ProviderFile.cpp; tests/build/ProviderFileTests.cpp
|
||||
Existing shared helper is exclusively yours after the torn-read review correction, follow its established overload or factor the already-open descriptor logic. Others only consume public header.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use pinned dirfd rooted admission and a stable regular-file FD (Linux openat2 beneath a verified scope or equally provable traversal); avoid prechecks followed by an independent pathname open. Reject an unprovable route. Admission checks logical pathname, target and purpose before streaming. Distinguish missing, outside scope, not regular, exceeded limit and change. Recheck root, logical and opened referent after streaming and on current(). Hash byte content while reading with VoidLibrary, preserve the logical locator base even when following a permitted symlink. Avoid opening FIFO/device content. Reject invalid path/NUL/over-limit.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace Void::LanguageServer::Build. Root owns Providers.hpp. ProviderScope contains WorkspaceIdentity workspace, optional absolute exact_database, exact_selector, build_root, producer_cwd (root-bound launcher grants only) and Workspace::ResourceLimitsConfig limits. enum FilePurpose {selection,status,database,response}; read_provider_file(scope,path,purpose,byte_limit) returns expected<ProviderFile,ProviderIssue>; provider_file_current(scope,file) revalidates identity. ProviderFile has purpose, logical_path, canonical_path, bytes, content_id, stamp; stamp binds admission root, opened object and selected name. ProviderIssue has string code,message and filesystem::path path. DatabaseInput has const ProviderScope& scope, const ProviderFile& database, optional<string> profile, optional<DriverInput> driver; DriverInput holds a workspace/purpose/generation checked Workspace::ToolCheck and Workspace::CompilerDriver, plus known wrapper spellings. import_commands(const DatabaseInput&) returns expected<ImportedCommands,ProviderIssue>; ImportedCommands has vector<BuildContext> contexts, vector<ProviderFile> dependencies and string revision. ProviderObservation has string provider, optional<uint64_t> selection_ticket, optional<string> profile, Generation generation, vector<ProviderIssue> issues and vector<ProviderFile> inputs; fresh is a generation without blocking issues (row limitations stay in context). observe_vbs(scope, selector_path, optional<DriverInput>), observe_compdb(scope, database_path, optional<DriverInput>) return ProviderObservation. Root owns latest sequenced publication and revalidation at install. All reads are passive. Concrete spelling in forthcoming header coordinated by root after preflight.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root freezes header and wires targets. Each workspace has separate user/CLI-selected exact file(s), optional explicit build tree and known producer base. An exact external database admits only that named file; relative response inputs remain workspace scoped. Explicit build tree can admit VBS profile metadata and selected immutable DB only, never responses. Classify native generation DB separately if the normal database purpose would elevate an unrelated input; tell root any API amendment.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
T-PREFLIGHT-007 amendments now on the actual Providers.hpp: implement bind_provider_scope(ProviderScope) -> expected<ProviderScope,ProviderIssue> that pins workspace/build root and exact external parents once per settings grant/incarnation. Readers reject unbound scopes and any change in root/grant fields, symlinked/unprovable roots or redirected names, including replacement between binding and the FIRST read. A legitimate atomic leaf replacement is eligible on a fresh capture; stale retained files fail current(). Implement same_provider_object(a,b) noexcept using stable opened dev/inode for hard-link @ cycles. Preserve every logical name on retained files. Reserve issue code "missing" for proven absence of a path component through an admitted anchored directory, never a dangling link, nonregular file, unsafe traversal or denied access. Only genuine selector absence permits automatic compatibility fallback. Test hard links, an external parent replaced after binding, legitimate leaf replacement, dangling/symlinked presence and bounded observers. The opaque ProviderAnchors and ProviderStamp are yours to implement in ProviderFile.cpp. Treat FilePurpose::native_database as distinct. A build root grant restricts both shape and profile/generation path as specified.
|
||||
Read quota bounds regular file streaming. For external exact file use a captured approved identity or freeze its intended authority under hostile alias replacement; untrusted writable link changes must not redirect an exact authorized file to arbitrary external targets. Same-object stable state + namespace binding and change detection for concurrent reads. Do not return retained bytes via equality/revalidation alone. No process invocation.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Nonzero ProviderFiles suite covers workspace success, permitted interior link or stated unsupported links, escape/changed-link refusal, exact-file isolation, restricted build purpose, response outside workspace, nonregular/bounded files, changed contents, root/name replacement and validity after unrelated changes. Real executable test/fixture may be used only as inert data.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage plus direct reads, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only on the owned sources and tests, then link/run the actual Void::Testing suite in a private build subdirectory. Use dev cpp -c clang-format --dry-run --Werror on owned C++ paths. List the cases via --list --no-color. Root owns the two shared build trees.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for incompatible existing helper callers, unresolvable authorization before reading or repeated repair failure. Explain any limitations and leave denied reads passive.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022, D-025–027. This is a bounded implementation of the independently planned read boundary; changes outside this repository require separate authorization.
|
||||
|
||||
## 14. Return format
|
||||
T-PROVIDER-IO-007 DONE/PARTIAL/BLOCKED, paths, scope matrix, stamp design, actual tests and residual issues. Send early frozen implementation detail needed by providers.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Import compile commands and preserve their provenance
|
||||
|
||||
Task ID: T-PROVIDER-ROWS-007
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the shared compilation database row reader used by both VBS and compdb. Emit deterministic one-TU contexts and bounded, compiler-specific response-file handling.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Passive data normalization and classification only. No shell, compiler, actual query, managed aliases or provider publication. No synthetic identities or authoritative missing fields.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read Build/Model.hpp, Workspace/{Configuration,Trust}.hpp, src/Workspace/Trust.cpp, Protocol/Json.hpp, roadmap 07, T-PLAN-006. Read only actual VLS-generated build/bootstrap/compile_commands.json and a generated VBS compdb inside build/native-validation for representative rows. Exact schema primary source https://clang.llvm.org/docs/JSONCompilationDatabase.html.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: src/Build/CommandImport.cpp; tests/build/CommandImportTests.cpp
|
||||
No shared header edits. Root owns Providers.hpp. Coordinate needed support contracts before use.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Bound bytes, rows, tokens, depth, argv expansion and aggregate retained inputs before huge DOM allocations. Consider per-row structural slicing with quoted-string/escape handling and strict Void JSON per complete row; preserve the exact raw row. Reject malformed database structures atomically; keep recognizable but unsupported rows as explicit passive status with unknown semantic argv. Prefer typed arguments over command; malformed supplied arguments must not silently fall back. Linux quoted command tokenizer supports compdb documented double/backslash form and bounded explicit POSIX subset; never evaluate shell substitutions or expand globs/env. Against supplied real, same-root/compiler-purpose driver evidence apply its response grammar and recursive @ expansion relative to invocation cwd, detect cycles by file identity, bound aggregate bytes/tokens/depth, retain response inputs. For no driver leave response/unsafe argv as explicit unknown. Strip verified compile-only -o argument/output from semantic copy, retain original, normalize only understood flags and operands; do not alter forced-include/search semantics. Call existing Trust classifier before exposing runnable-view semantics, preserve all flags including unsupported reasons. No executable lookups based on submitted records.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace Void::LanguageServer::Build. Root owns Providers.hpp. ProviderScope contains WorkspaceIdentity workspace, optional absolute exact_database, exact_selector, build_root, producer_cwd (root-bound launcher grants only) and Workspace::ResourceLimitsConfig limits. enum FilePurpose {selection,status,database,response}; read_provider_file(scope,path,purpose,byte_limit) returns expected<ProviderFile,ProviderIssue>; provider_file_current(scope,file) revalidates identity. ProviderFile has purpose, logical_path, canonical_path, bytes, content_id, stamp; stamp binds admission root, opened object and selected name. ProviderIssue has string code,message and filesystem::path path. DatabaseInput has const ProviderScope& scope, const ProviderFile& database, optional<string> profile, optional<DriverInput> driver; DriverInput holds a workspace/purpose/generation checked Workspace::ToolCheck and Workspace::CompilerDriver, plus known wrapper spellings. import_commands(const DatabaseInput&) returns expected<ImportedCommands,ProviderIssue>; ImportedCommands has vector<BuildContext> contexts, vector<ProviderFile> dependencies and string revision. ProviderObservation has string provider, optional<uint64_t> selection_ticket, optional<string> profile, Generation generation, vector<ProviderIssue> issues and vector<ProviderFile> inputs; fresh is a generation without blocking issues (row limitations stay in context). observe_vbs(scope, selector_path, optional<DriverInput>), observe_compdb(scope, database_path, optional<DriverInput>) return ProviderObservation. Root owns latest sequenced publication and revalidation at install. All reads are passive. Concrete spelling in forthcoming header coordinated by root after preflight.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
ProviderFile implementation arrives concurrently. Reuse only its validated read + revalidation; no separate path IO for metadata or @files. Root wires tests. Use original directory of logical selected database to resolve a relative row directory; subsequent relative row paths use invocation cwd. Test command-only, arguments, and actual VBS repeated flags with -o.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
T-PREFLIGHT-007 amendments. Use the actual Providers.hpp, same_provider_object for recursion-stack identity, and exact logical spelling for each retained observation. Before reading any response file, verify that the raw wrapper/compiler prefix matches the supplied real compiler pin for this root/purpose/driver. A mismatched compiler yields zero response-file reads. After classification require the only normalized TU to equal row.file; strip -o only at a verified option boundary, resolving/checking optional row.output against the same cwd. Reject symlink-sensitive ".."/search operands from semantic promotion. A row for A that compiles B keeps its original evidence and a limitation. Test that case, an unmatched compiler with a benign @response body, repeated legitimate nonrecursive @File, a hard-linked cycle, -o consumed as another option's operand, and repeated flags. Never turn allowlisted rows into independent execution approval.
|
||||
Context alternative identity must survive row reordering, preserve multiplicity of identical rows with ordinal and conflicting options. Bound strings, extension nesting, escaped quotes, response byte amplification, option argument counts, generation memory. Preserve unknown v1 source mappings and edit origins when evidence is missing. Any hash collision requires detection or structurally unambiguous identity. Include raw bytes in original_record, including unsupported extension fields.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
CommandImport suite exercises valid/invalid args/command, relative db/cwd and Unicode, multiple duplicate/conflicting entries, benign shell markers (remain inert), unsupported drivers/options, -o/forced includes, GCC/Clang response quoting and cwd, self and indirect cycles, size/depth/token limits, changed response, wrong-root/purpose driver and stable alternatives across ordering. Successful real CMake and VBS rows can be read without authority with explicit limitations.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage plus direct reads, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only on the owned sources and tests, then link/run the actual Void::Testing suite in a private build subdirectory. Use dev cpp -c clang-format --dry-run --Werror on owned C++ paths. List the cases via --list --no-color. Root owns the two shared build trees.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Contact root before introducing a new parser for JSON values, guessing a driver from a basename, changing the Trust classifier or accepting a fallback with hidden semantics. After two failures change hypothesis with root.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022/D-027 and planner review. Compiler-specific normalization is optional only where real driver identity is absent. Never grant execution from this module.
|
||||
|
||||
## 14. Return format
|
||||
T-PROVIDER-ROWS-007 DONE/PARTIAL/BLOCKED, actual accepted/rejected grammars/tests/limits, real row evidence and unresolved integrations.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Select and expose passive providers through the running server
|
||||
|
||||
Task ID: T-PROVIDER-SESSION-007
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Connect root-bound configuration and sequenced native/compdb observations to the real stdio server. Provide an inspectable first user-facing build integration.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Only passive metadata and status. No invented completion/navigation or compiler launches. Keep existing lifecycle and editor sync behavior; future analysis work consumes guarded generations.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect src/{main,Server,DocumentSync}.cpp, include/vls/Server.hpp, actual Protocol/Workspace/Build models, T-PLAN-006 and provider tasks.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Build/Providers.hpp; src/Build/CompdbProvider.cpp; include/vls/WorkspaceSession.hpp; src/WorkspaceSession.cpp; src/main.cpp; src/Server.cpp; include/vls/Server.hpp; tests/ProviderProcessTests.cpp; tests/build/CompdbProviderTests.cpp; build.cpp; CMakeLists.txt; tests/CMakeLists.txt; tests/NativeRegistration.cpp
|
||||
The root exclusively owns these paths.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Freeze common header following preflight. Implement compdb observation with real immutable inputs and status, retaining last-good historical identity only under the same provider/locator. Route LSP initialize workspaceFolders then rootUri fallback, add/remove and passive settings changes, expose custom voidLanguageServer/providerStatus for a selected workspace/document. Identify incarnation on root re-add, do not reuse old trust or state. Advertise only implemented workspace capabilities. Auto mode prefer existing VBS selector even if broken; deliberate manual provider never silently switches. Allow explicit scoped launcher settings and metadata locators, preserve help/version-only handling, reject bare -- and conflicting choices. Prove edits and file replacements update status through a fresh observation. Keep discovery bounded under admitted roots; do not search environment/user home.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace Void::LanguageServer::Build. Root owns Providers.hpp. ProviderScope contains WorkspaceIdentity workspace, optional absolute exact_database, exact_selector, build_root, producer_cwd (root-bound launcher grants only) and Workspace::ResourceLimitsConfig limits. enum FilePurpose {selection,status,database,response}; read_provider_file(scope,path,purpose,byte_limit) returns expected<ProviderFile,ProviderIssue>; provider_file_current(scope,file) revalidates identity. ProviderFile has purpose, logical_path, canonical_path, bytes, content_id, stamp; stamp binds admission root, opened object and selected name. ProviderIssue has string code,message and filesystem::path path. DatabaseInput has const ProviderScope& scope, const ProviderFile& database, optional<string> profile, optional<DriverInput> driver; DriverInput holds a workspace/purpose/generation checked Workspace::ToolCheck and Workspace::CompilerDriver, plus known wrapper spellings. import_commands(const DatabaseInput&) returns expected<ImportedCommands,ProviderIssue>; ImportedCommands has vector<BuildContext> contexts, vector<ProviderFile> dependencies and string revision. ProviderObservation has string provider, optional<uint64_t> selection_ticket, optional<string> profile, Generation generation, vector<ProviderIssue> issues and vector<ProviderFile> inputs; fresh is a generation without blocking issues (row limitations stay in context). observe_vbs(scope, selector_path, optional<DriverInput>), observe_compdb(scope, database_path, optional<DriverInput>) return ProviderObservation. Root owns latest sequenced publication and revalidation at install. All reads are passive. Concrete spelling in forthcoming header coordinated by root after preflight.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Freeze common header for three disjoint agents from shared planner/preflight evidence. Use published BuildGeneration immutable data and capture sequences for installs. Default scan remains passive. Final root performs installation, real consumer observations and regression matrix.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
T-PREFLIGHT-007 amendment. Bind each external locator/grant to one explicit launcher-selected root and capture its scoped directory anchors when configuration is installed. Distinguish absence of the selector from dangling/denied/invalid selectors or a missing selected DB/status. Only genuine selector absence permits auto compdb; repeat that negative lookup before installing any fallback, reject a VBS-managed alias as an automatic fallback and keep last-good separate. Assign a sequence before every observation, and compare latest sequence, config revision, trust generation and workspace incarnation for success AND failure before installation; revalidate retained inputs, including selector absence where applicable. Re-adding a root starts a fresh owner. A removed or revoked owner cannot publish late work. Add deterministic tests that introduce the selector between reads, and complete stale work after settings/revocation/removal+re-add. Use a bounded private session status response for errors.
|
||||
Restart, removal/re-add, broken versus absent native selection, two workspace folders with conflicting locator preferences and root-bound launcher grants; cap workspace/status result sizes, alternatives and issue text. URI aliases, malformed application settings and requests produce typed errors. Preserve deterministic ordering and stderr-only diagnostics. Consumers of provider caches revalidate latest observations before publishing current state.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Actual transcripts show two roots choosing distinct providers, direct manual native failure, valid native generation+compdb alternatives, edits/replacements, selection changes and no launch. Zero stdout outside framed protocol. Both build systems register nonzero cases; process, build, install, counts and honest residuals recorded.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage plus direct reads, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only on the owned sources and tests, then link/run the actual Void::Testing suite in a private build subdirectory. Use dev cpp -c clang-format --dry-run --Werror on owned C++ paths. List the cases via --list --no-color. Root owns the two shared build trees. Run integrated native vbs test/install, compare optional CTest, query both generated real DBs using vls --stdio; make missing/failed cases ordinary checks.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Do not turn an untrusted IDE initialization value into a launcher grant; reject external reads with ambiguous scope. Escalate new protocol/product decisions only if outside existing acceptance; do not delay known passive workflow.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022,D-025,D-026,D-027; no external side effects or Git mutations beyond prior branch creation.
|
||||
|
||||
## 14. Return format
|
||||
Root records code/commands, verified capabilities, remaining gates and fresh independent integrated review.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Read selected native VoidBuildSystem editor generations
|
||||
|
||||
Task ID: T-PROVIDER-VBS-006
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement passive VBS v1 generation observation against current real producer output. Make explicit what today's emitter supplies and what the proposed richer export still requires.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
v1 input consumer and its tests only. No invoking VBS, description/graph execution, alias shortcuts, lockfile mutation or changes to producer, state machine or CLI.
|
||||
|
||||
## 4. Files to inspect
|
||||
See .vbs/editor_selection.json, build/native-validation/profiles/debug/editor/status.json and its referenced immutable compile_commands under this workspace only. Read source of committed producer build/tools/vbs-6c225-src/src/Editor/CompDb.cpp (sanitize_profile_dir, emit/status/select logic), T-PLAN-006, roadmap 06 and Build/Model.hpp.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: src/Build/VbsProvider.cpp; tests/build/VbsProviderTests.cpp
|
||||
Root owns public header, session, test wiring and shared model.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Read bounded selection, profile status, immutable DB via scoped file reader. Validate schema_version, ticket, selected tuple, generation component and producer-sanitized profile component, status/profile/entry_count/path consistency; preserve readiness warnings. Use derive-and-verify exact profiles/<slug>/editor/generations/<id>/compile_commands.json underneath an authorized root, never directly trust arbitrary producer pointers or aliases. Empty/reserved ticket can have no generation or retain previous tuple. Valid selected-generation observations recheck both pointers, DB and response dependencies before installation. A stale/invalid status may retain old id/path and omit count. Report explicit stale/missing/invalid/unsupported/ambiguous outcomes. Relative locators follow known producer-cwd or exact authorized build-root association and verified suffix; do not guess server cwd/selector parent or append build prefix twice. Forbid path traversal and misleading suffix-only checks when a supplied absolute or relative pointer actually conflicts. Same ticket may point at a new generation. No nonexistent target/host/MAP/module/retention facts; keep originals.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace Void::LanguageServer::Build. Root owns Providers.hpp. ProviderScope contains WorkspaceIdentity workspace, optional absolute exact_database, exact_selector, build_root, producer_cwd (root-bound launcher grants only) and Workspace::ResourceLimitsConfig limits. enum FilePurpose {selection,status,database,response}; read_provider_file(scope,path,purpose,byte_limit) returns expected<ProviderFile,ProviderIssue>; provider_file_current(scope,file) revalidates identity. ProviderFile has purpose, logical_path, canonical_path, bytes, content_id, stamp; stamp binds admission root, opened object and selected name. ProviderIssue has string code,message and filesystem::path path. DatabaseInput has const ProviderScope& scope, const ProviderFile& database, optional<string> profile, optional<DriverInput> driver; DriverInput holds a workspace/purpose/generation checked Workspace::ToolCheck and Workspace::CompilerDriver, plus known wrapper spellings. import_commands(const DatabaseInput&) returns expected<ImportedCommands,ProviderIssue>; ImportedCommands has vector<BuildContext> contexts, vector<ProviderFile> dependencies and string revision. ProviderObservation has string provider, optional<uint64_t> selection_ticket, optional<string> profile, Generation generation, vector<ProviderIssue> issues and vector<ProviderFile> inputs; fresh is a generation without blocking issues (row limitations stay in context). observe_vbs(scope, selector_path, optional<DriverInput>), observe_compdb(scope, database_path, optional<DriverInput>) return ProviderObservation. Root owns latest sequenced publication and revalidation at install. All reads are passive. Concrete spelling in forthcoming header coordinated by root after preflight.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Call import_commands for rows. Root owns latest workspace publication, stale history, CLI/config. Produce only per-observation evidence including ticket/profile, selection+status+db+response file identities; when a coherent healthy read yields a generation keep generation identity sufficiently scoped to profile/build root/compdb/response bytes. Failure data keeps selector authority. Preserve record/observation limits.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
T-PREFLIGHT-007 cleared this slice. The actual shared header is include/Void/LanguageServer/Build/Providers.hpp, including FilePurpose::native_database, shared immutable bytes and a distinct warnings list. Reject "." and ".." profile components; require original status.profile equality even if two spelling variants share a slug. Validate the producer's 16 lowercase hex digits and separately bind its database bytes. The preimage of its generation identity includes unavailable producer information.
|
||||
Synthetic fixtures under private temp only. Include two profiles, idle reservation, stale explicit selection, same-ticket change, mismatched profile, corrupt/dangling immutable reference, alias disagreement, failed/readiness state and no process launch. Preserve valid empty DB as zero rows where producer reports that. Use exact null/missing type handling and unsigned ticket conversion with range failure instead of casts.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Nonempty VbsProvider suite covers native state transitions and paths above, including repeated-row alternatives, warning retention, manual invalid current with no alias fallback, absolute+relative forms. Demonstrate passive read on a real VLS-generated native generation after root integration. No claims of complete resolved export/artifact lifetime without a real emitter.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage plus direct reads, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only on the owned sources and tests, then link/run the actual Void::Testing suite in a private build subdirectory. Use dev cpp -c clang-format --dry-run --Werror on owned C++ paths. List the cases via --list --no-color. Root owns the two shared build trees.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if any required field cannot be determined from the real producer or a change to a sibling repo would be required. Missing rich metadata is a visible limitation, not reason to abort v1 status.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Native first-class priority D-025; user authorized C++/VoidLibrary implementation on the separate branch only. Reuse helpers rather than run the producer.
|
||||
|
||||
## 14. Return format
|
||||
T-PROVIDER-VBS-006 DONE/PARTIAL/BLOCKED, producer fields, supported path rules, actual tests, evidence gaps and integration contract.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Fix source ownership, independent metadata grants and exact VBS file locators
|
||||
|
||||
Task ID: T-REPAIR-PROVIDER-007
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Reviewer T-REVIEW-PROVIDER-007 reproduced three defects in actual installed/stdin queries on feat/implement-roadmap ca04975. Full integrated provider suite passes 36/36 but misses these. Existing provider preflight covered these ownership/scope boundaries; this is a correction under the approved design. User requests GPT-6.2 family Max and native VBS primary.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Complete the remaining importer source path/driver response findings. Root has already corrected independent optional grant failure and VBS trailing slash handling and owns their tests. Implement observable regressions and test through actual session/model. Do not suppress legitimate contexts by dropping entire otherwise valid databases.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Passive provider/model code and focused tests. No active compiler process invocation, no shared build wiring or docs, no changes to sibling producer. Preserve strict symlink policy for metadata acquisition and positive/negative evidence checks.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read original T-PROVIDER-{IO-007,ROWS-007,VBS-006,SESSION-007}, current src/Build/{ProviderFile,CommandImport,VbsProvider,Model}.cpp, include/Void/LanguageServer/Build/{Model,Providers}.hpp, src/WorkspaceSession.cpp, tests/providers/{CommandImportTests,ProviderFileTests,VbsProviderTests}.cpp, tests/workspace/ProviderSessionTests.cpp. Inspect actual Model.cpp prepare_context/BuildGeneration source indices and Documents URI physical identity. Root moved tests/build to tests/providers to support native snapshots.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: src/Build/ProviderFile.cpp; src/Build/CommandImport.cpp; src/Build/VbsProvider.cpp; src/Build/CompdbProvider.cpp; src/Build/Model.cpp; include/Void/LanguageServer/Build/Model.hpp; include/Void/LanguageServer/Build/Providers.hpp; src/WorkspaceSession.cpp; tests/providers/CommandImportTests.cpp; tests/providers/ProviderFileTests.cpp; tests/providers/VbsProviderTests.cpp; tests/workspace/ProviderSessionTests.cpp
|
||||
Root has finished its corrections to ProviderFile.cpp and VbsProvider.cpp and releases these to you. Preserve those changes. Do not duplicate their tests. Use configuration/session/input-current propagation only where needed for the importer. All other files including CLI, process tests, both shared builds and docs are root/other owned. Minimize changes and coordinate if a new file is essential. Private build/provider-repair-007 for proof, no staging/commits/branches/network/external messages/further agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
For row.file `link/../x.cpp` with `link -> real/sub` and BOTH root/x.cpp and root/real/x.cpp, lexical normalization can publish false ownership. Preserve exact provenance; resolve crossing symlink parent components with trusted scoped metadata only and stable binding/revalidation, or represent uncertain TU as unselectable and retain context data. A model's necessary mapping for key.owning_tu cannot itself manufacture authority; if a resolution is withheld, all model lookups must respect that state. Direct normal rows, genuine missing generated TUs without path ambiguity and intentional equivalent links should not silently bind another file. Positively support simple symlink TU and physical identity when provable; revalidate alias change before installing, bound path work and avoid reading source contents or probing outside workspace authority. Include separate `directory` parent-step case. No fake source mappings or invented tool identities.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Grant isolation: bind workspace root as mandatory; external exact metadata/build root failures attach to their own grants for the entire settings grant lifetime. Do not repin redirected names automatically on re-add/configure, and do not let unused external compdb/selector/build grants invalidate independently valid VBS or ordinary metadata. Only proven absent native selector may fall through to compdb. Retain real scope limiter, typed independent errors and immutable anchors. Reconsider reuse_provider_scope tests that previously required all grants simultaneously; check returned error for requested route and ordinary route remains available. VbsProvider::locator must distinguish directory names from file pointers, rejecting terminal '/', '/.' or '..' before normalization for both selected_compdb_path and status.compdb_path. Legitimate build directory spellings remain accepted.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root owns final validation/both shared descriptor files/stdin tests plus independent review. Reviewer still reading and may issue additional related requests; contact root before broadening. No change to normal producer wire. Existing new tests under tests/providers are the actual paths.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Prevent opposite failure: do not accidentally permit auto fallback on an unavailable external selector, reopen a newly created external parent, or reinterpret a non-direct/native generation alias. Negative lookups and prior/current generations scoped. Limit file descriptors/storage and work, ensure failed/retargeted path cannot restore prior physical mapping. Distinguish inode/path alias safely where practical.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Additional verified checked-driver regressions from the independent reviewer: POSIX double-quoted -I"inc\\q" must preserve an ordinary backslash like typed argv; a missing @later.rsp that then appears invalidates prior partial observation; a workspace lexical -I directory symlink actually leading outside cannot yield typed search authority. Retain bounded negative response evidence through provider+session publication, distinguish missing vs denied, handle retargeting. Extend focused tests for all three.
|
||||
Prove ambiguous link/../ path does not select innocent root/x.cpp, real/alias result positive if evidence is retained else documented unavailable for ambiguous route; simple stable alias maps appropriate physical TU; changing path during delayed publication cannot make old generation authoritative. Unavailable exact compdb parent + valid native stays ready both explicit and auto; native selector exact parent failure never falls through; directory replacement remains fail-closed for affected route across readd. Selector and status file ending slash/dot refused. Existing VBS, compdb, row, model, session regressions preserved.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only for changed C++ files, focused runner linked with current sources into private build/provider-repair-007 or coordinate with root to use root-run CMake/VBS. Use dev cpp -c clang-format --dry-run --Werror scoped. Return enough details/root build-ready signal promptly. Record commands/actual exit; require real nonzero cases.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for scope expansion/new authority or incorrect model-wide assumptions. After two failed repairs give root distinguishing evidence and adjusted hypothesis. Do not demote user features to hide an unsupported alias; preserve honest status.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Explicit implementation approval D-022, native priority D-025, confirmed family/Max D-027. Previously independent reviewer gave concrete real failures; root handles final review and release decisions.
|
||||
|
||||
## 14. Return format
|
||||
T-REPAIR-PROVIDER-007 DONE/PARTIAL/BLOCKED, files, three disposition proofs, test evidence, missed edges and requirements for root tests. Send early stable APIs/build-ready notices.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Retain one verified immutable compiler recording for debugger queries
|
||||
|
||||
Task ID: T-REPLAY-RECORDING-019
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared feat/implement-roadmap ca04975 plus standalone vls_gcc_probe/journal. At Trace.cpp:938–993 replay(path,sequence) opens and validates a whole physical journal and returns all captured source/diagnostics for each call; a DAP connection cannot use that for every stack or source query. The previous trace owner is finished. T-PLAN-DAP-020 confirmed real 17/34 and 22/44 stops at sequences 6,10,21,25 and a fixed process outcome. The journal hash chain and typed compiler event rules already exist.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement one immutable C++ recording object which validates a bounded journal once, retains the verified prefix, provides bounded event navigation and historical cursor/stack/value queries, and exposes captured source and process outcome. Preserve the old replay CLI/API behavior for all existing cases. The forthcoming DAP service and custom views share this object.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Recorded inspection only. No DAP transport, live process/control changes, generalized new compiler record format, re-opening arbitrary source filenames, or claims for unavailable template/constraint/physical facts.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect experiments/frontend/gcc-worker/{Trace.hpp,Trace.cpp,Main.cpp,Supervisor.cpp}, tests/debug/TraceTests.cpp, tests/native/GccSupervisor.py, docs/agent-workflow/tasks/T-GCC-TRACE-019.md, docs/roadmap/{18-live-debugging,19-recorded-replay,20-dap-service,21-inspection-api}.md (resolve actual roadmap 19 filename). Root has real fixed local recordings under build/plan-dap-020/capture-16mqf07g/ with compiler unavailable permitted at replay time.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: experiments/frontend/gcc-worker/Trace.hpp; experiments/frontend/gcc-worker/Trace.cpp; tests/debug/RecordingTests.cpp
|
||||
Existing TraceTests.cpp, Supervisor, console CLI, DAP sources and build files remain under other ownership. Preserve their contracts. Private build/replay-recording-019 allowed for benign test inputs. No Git mutations or additional agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Re-use the actual JournalReader/Timeline validation and verified-prefix semantics. During one open from the explicitly supplied file acquire owned source/diagnostics/outcome/verified event transitions. Avoid duplicate parsers or O(event_count * stack_depth) retained per-event snapshots. Index the actual event ordinals/types, frame IDs, active call ancestry/phase/last value as useful; retain time-specific data, including a provisional result preceding a failed leave. Permit a fixed initial decode or bounded in-memory reconstruction consistent with the current 4096-event/1 MiB limits; paging metadata should not rebuild the cursor per item. Expose lookup of the next/previous actual observed integral stops/values without synthesizing calls. A result/source handle retains the recording independent of path replacement or deletion. Never reread the journal when inspecting/stepping. Do not modify the append format or transcript checks.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW vls::gcc::ReplayRecording (exact names to freeze with root): static open(absolute_path) -> expected<shared_ptr<const ReplayRecording>,string>; event_count(), bounded page of verified event summaries carrying seq/kind/optional frame/parent; cursor_at(seq) containing post-event frames/lastLeave/stop and identity, without copying captured source/diagnostic bytes; recording metadata/status for partial, corrupt, completed/cancelled/failed+exit, immutable source/diagnostics access. Provide historical stage just AFTER event, before any following recorded command; final cursor reflects later authorization/outcome. Digests/nonce/PID are recorded identities, distinct from DAP handles. Retain truthful sourceKind from compiler. Unknown/unavailable, event outside verified prefix, start/past end and cut tails produce explicit outcomes. Keep replay(path,optional_seq) as a compatible wrapper including capture fields. Document any cursor scale limits and support DAP access to source as raw bytes with separate UTF8 validation upstream.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The replay consumer needs each observed integer-value event, plus its immediately following matching compiler stop when present. A recorded value in an unattended run is a cursor point, even when the compiler never paused there. Coalesce that value and optional matching stop into one debugger navigation point in the session layer. Preserve both raw verified ordinals in the recording API. Never copy a subsequent action, ack or finish into an earlier event-time state. Keep journal outcome/partial status at the recording level. Actual fixtures have E5 provisional value, E6 stopped, E7 acknowledged, E8 leave returned and E9 outer value. Source bytes last for the recording lifetime; pause-generation references belong to the consumer.
|
||||
Planner reviewed real journal, returns live stop handshake to separate ownership. Root handles DAP adapters, views and tests on an actual compiler recording. CMake/VBS already compile Trace.cpp. Root will add RecordingTests.cpp to vls_trace_tests. No compiler rebuild or license decision is required.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Existing file/record/stream caps and per-record hash checks stay effective. Add aggregate index/storage/format caps consistent with current producer; never allocate proportional to untrusted claimed file length. Deep nested frames cannot cause quadratic stored memory at open. Distinguish truncation from invalid/corrupt tail, accepted prefix from completion, bad manifest from partial later failure. DAP cursors must be immutable, thread-safe reads, stable after client disconnect/old cursor release, bounded terminal/source copying. Handle binary source (do not convert arbitrary bytes to a JSON string), dirty concurrent append, and no fabricated execution success.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
The immutable resumed-event detail must retain the acknowledged compiler stop ordinal and action. A recorded step and a continue can otherwise produce identical cursor state after the ack. Compare the real E11 acknowledgement in source17-stepped.vls and source17-every-return.vls, or equivalent exact prefixes, and a journal with command authorization but no ack. Authorization alone must remain pending.
|
||||
Existing 13 trace and native supervisor tests remain green. New cases: open once then unlink, overwrite, replace path: old recording still returns old inner 17 and outer34; a separately opened newer capture sees 41/82. Repeated concurrent seeks, bounded paging and deep nesting, duplicate/invalid/out-of-range ordinals; authorized command vs actual resumed; failed cleanup after provisional value; manifest-only and corrupt/truncated suffix; source with NUL/invalid UTF-8, missing process outcome. Verify a real four-stop recording durably from parent-provided fixture where feasible. Release exact API early so DAP owner can build.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only experiments/frontend/gcc-worker/Trace.cpp tests/debug/RecordingTests.cpp. Private linked runner with actual Void libraries allowed. Root re-registers in native+CMake and uses vls_gcc_probe replay on the T-PLAN-DAP-020 actual recordings. clang-format --dry-run on owned paths. Return actual cases and timings.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Do not implement DAP or alter accepted v1 compiler event authorization. If requirement needs an incompatible recording format or source/privilege decision, report the evidence and complete the independent immutable-reader portions.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
All roadmap plans authorized D-022, separate branch native VBS D-025, GPT-6.2 Max D-027. T-REPLAY-RECORDING-019 normal read-only artifact usage does not choose an instrumentation technology. No Git staging/release.
|
||||
|
||||
## 14. Return format
|
||||
T-REPLAY-RECORDING-019 DONE/PARTIAL, frozen API and time/space bounds, real artifacts, record count/seek evidence, actual test results and limitations. Notify root at compilation-ready and release.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Re-review the provider repairs against actual editor queries
|
||||
|
||||
Task ID: T-REREVIEW-PROVIDER-007
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Fresh independent review of actual shared checkout feat/implement-roadmap at ca04975. Main development is native VoidBuildSystem with CMake secondary. User approved full roadmap and Max GPT-6.2 family, and specifically requires GPT-6.2 Astra at Max for reviews. No review substitution. The provider preflight required pinned grants, genuine negative evidence, prefix/TU verification, and latest-issued publication (see T-PREFLIGHT-007).
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Re-review the corrected P1/P2 findings from the prior independent review, with priority on actual physical source selection and revalidation after alias/parent replacement. Inspect the changes and run distinguishing checks for every item. Focus on remaining major defects directly on these repair paths.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Review acquisition, import, VBS/compdb selection, session semantics, CLI/configuration, build and LSP process integration. Recheck relevant cross-file trust/document/model behavior. Known unrelated upstream JSON precision/range failures have tracked separate ownership. No compiler-patch review, release verdict or implementation edits.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect git diff ca04975 and the actual new untracked files in include/Void/LanguageServer/{Build/Providers.hpp,Support/RegularFile.hpp}, src/Build/{ProviderFile,CommandImport,VbsProvider,CompdbProvider}.cpp, src/WorkspaceSession.cpp, include/vls/{Server,WorkspaceSession}.hpp, src/{main,Server}.cpp, src/Workspace/{Configuration,Trust}.cpp, tests/providers/, tests/workspace/ProviderSessionTests.cpp, tests/ProviderProcessTests.cpp, tests/native/InstalledServer.py, build.cpp, CMakeLists.txt, tests/CMakeLists.txt and tests/NativeRegistration.cpp. Consult individual provider task specs and ACTUAL VoidBuildSystem selector/status generation if a claim depends on the producer. Tests formerly under tests/build moved to tests/providers because VBS excludes directories named build from project snapshots.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use only private ignored build/rereview-providers-007 for any benign fixtures or generated verification artifacts. No editing shared sources/docs, builds, branches, commits, sibling checkouts, dependencies, tools or user messages. The root owns build wiring and provider integration. Other agents own the compiler prototype and module work.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace a real request and one failed/superseded request across wire → session → providers → pinned IO → bounded importer → BuildGeneration → publication. Examine source lifetime, exception/outcome, TOCTOU, alias/hardlink/negative lookup, passive prefix-to-origin checking, language/value/settings origins, issue/epoch serialization, workspace and trust reconfiguration, no stale publishing. Try to refute implemented claims using tests and actual local executables. Inspect untracked source directly; a clean tracked diff is insufficient.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
The public contracts are Providers.hpp, Model.hpp, WorkspaceSession.hpp. Status is voidLanguageServer/providerStatus, supports per-workspace scope and optional document. Auto VBS precedence, a dangling/stale selector or missing native generation stays VBS. No automatic trust execution. Immutable revisions scoped to incarnation; unknown role/source remains explicit. Native v1 lacks target/module/role richness, retain unknowns.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The prior reviewer reproduced wrong ownership with link/../x.cpp, an unused missing external compdb grant poisoning native, accepted trailing-slash file locators, POSIX double-quoted backslash loss, missing response recreation not invalidating, escaped search paths and an installed validator failing with 17 alternatives. On the repaired shared sources, root ran 22/22 CommandImport and 4/4 actual ProviderProcess tests. CMake registers 41 provider and 16 process cases. Native/integration rerun in progress. Read T-REPAIR-PROVIDER-007 for the contract and inspect CommandPathWalk, the generation identities, scope stamps and latest input rechecks.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Watch resource amplification (nested rows/response files, retained generations or file descriptors), boundary alignment after file rename, root re-add, external exact/build roots and user-origin grants. Verify tests do not accidentally pass with no-op handler, invented context values or shell success. Identify exposed user failures and materially justified fixes, not speculative style churn. Use only ordinary owned fixtures and read-only inspection.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Report independent concrete verdict for acquire/import/native/compdb/session/CLI/integration and tests, supported by exact files/lines, reproductions and observed exit codes. Distinguish pre-existing known JSON findings. If a high-priority issue exists, notify root early to begin correction while you review disjoint areas.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; git diff --check; run build/bootstrap/tests/vls_provider_tests --no-color, vls_workspace_tests --no-color and vls_process_tests --no-color; check native list/installed result if useful. Read build/native-evidence/{providers-installed,provider-regressions-build,provider-repair-cmake}.log; optional targeted proof only under private review dir. No shared builds or compiler experiments.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if prerequisite prevents factual verdict, report missing evidence or actual runtime error. Do not downgrade or silently substitute model on 429. No merge/release or deployment actions.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User D-025/027/029: native VBS, explicit GPT-6.2 Astra at Max, preserve independent reviewer. Passive workspace and provider implementation cleared after amendments. This review is of code and behavior.
|
||||
|
||||
## 14. Return format
|
||||
T-REREVIEW-PROVIDER-007 READY/CHANGES_REQUIRED/BLOCKED with scoped verdicts, findings highest impact first, evidence/commands and untested paths. Report to root only.
|
||||
@@ -0,0 +1,96 @@
|
||||
# Establish the actual reflection and module reference for the frontend gate
|
||||
|
||||
Task ID: T-RESEARCH-008
|
||||
Role: astra_researcher
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
/home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975.
|
||||
The user authorized the full roadmap and selected gpt-6.2-astra at Max for this
|
||||
research role using the generic runtime. The shell passes 37 cases with GCC 16.2.
|
||||
Roadmap 08/11/12/17/24 needs compiler evidence independent of the build migration.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Run small representative probes with the actual GCC/libstdc++ used by Void and
|
||||
establish how to exercise the exact candidate frontend. Return observed evidence
|
||||
of supported and failing cases and a precise tool/source provisioning path.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Cover the real Void enum helper, reflection/splices through a named module, an
|
||||
invalid edit and the candidate tool's identity/availability. Ordinary source
|
||||
inspection and bounded reference compiler experiments only. Production code,
|
||||
backend selection, compiler patches, debugger implementation and full LLVM builds
|
||||
belong to later owned tasks.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/DEPENDENCIES.md, docs/roadmap/{08-frontend-feasibility,11-cpp-modules,
|
||||
12-reflection-provenance,17-compiler-debug-instrumentation,24-conformance-performance}.md.
|
||||
The actual helper is build/bootstrap/_deps/voidlibrary-src/include/Void/Detail/Enum.hpp
|
||||
at VoidLibrary 7d7d23ec0a6a55d4b30921432fa215b29a29e59b. It implements enum_name,
|
||||
enum_parse and enum_cast with define_static_array, template for and splices.
|
||||
Pinned upstream project is bloomberg/clang-p2996 at 562409c7942690d59ea470762515f88f24b16e23.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
This is read-only research across all repositories. Run compiler experiments in
|
||||
a temporary directory under /tmp kept separate from all checkouts, with new
|
||||
synthetic sources only. Return fixture text, flags and outputs in the report.
|
||||
All project source, docs, build trees and global configuration are outside scope.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
1. Confirm compiler paths, versions and actual public header entry points. Create
|
||||
small valid and broken inputs in the temporary directory and run them through GCC.
|
||||
2. Instantiate the real helper and check observed results. Exercise a named module
|
||||
with a separate importer using reflection. Capture the flags needed by installed GCC.
|
||||
3. Check for a matching candidate from ordinary toolchain discovery and official
|
||||
upstream source/releases at the pinned revision. Distinguish docs, local tests
|
||||
and unavailable artifacts. If the exact binary is present, run equivalent probes.
|
||||
4. Return the smallest reproducible compiler-library gate experiment, candidate
|
||||
resource prerequisites and whether a product decision is justified by the evidence.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Record compiler executable/version, language/flag list, standard-library identity,
|
||||
source header revision, module import order, expected diagnostic or program result,
|
||||
actual process exit status and any difference from a semantic-query assertion.
|
||||
Future semantic requests must carry source and context identities.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root owns VBS seed work and source integration. The planner handles foundations.
|
||||
Your compiler results feed roadmap 08/17 and have independent inputs. Use the
|
||||
existing active Serena project. For graph queries confirm project and coverage,
|
||||
then verify important claims in actual sources. Do not switch shared projects.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Keep all compiler processes finite. Use one or two compile jobs at a time. Use the
|
||||
known GCC directly on the fixtures. Do not execute downloaded binaries, project
|
||||
scripts or plugins. Public queries may name the public fork and commits only.
|
||||
Do not browse workspace credentials, dotfiles, ignored caches or unrelated projects.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Reproducible GCC enum helper checks show the actual observed values/exit status.
|
||||
2. Named-module success/failure and invalid-edit diagnostics have recorded commands.
|
||||
3. Exact candidate binary availability, provenance and relevant implementation
|
||||
evidence from primary sources are distinguished from extrapolation.
|
||||
4. A concrete next experiment addresses libstdc++ fidelity and actual IDE queries.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repo root run `dev cpp-gcc -c g++ --version` and use the observed compiler
|
||||
with `-std=c++26 -freflection` for the enum case. Use the temporary directory as
|
||||
working directory for module compiles, discovering the required module flag from
|
||||
the installed compiler. Record complete flags, working directories and observed
|
||||
exit codes. Do not treat a documentation statement as a compiler test.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before installing software or consuming substantial disk for a toolchain.
|
||||
Report unavailable candidate tools/access as missing evidence. A failing reference
|
||||
case should be retained with the smallest distinguishing check.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-002, D-010, D-011, D-022, D-025, D-027. The user approved investigation and
|
||||
implementation of the plan. Compiler repairs or a change of backend require a
|
||||
separate explicit technical decision. No publishing, messaging or installation.
|
||||
|
||||
## 14. Return format
|
||||
Return T-RESEARCH-008 DONE/PARTIAL/BLOCKED, exact commands/results, artifact
|
||||
paths, tool revisions and official links, evidence per criterion, unrun checks
|
||||
and recommendation. Distinguish observed behavior from inference. No child agents.
|
||||
@@ -0,0 +1,89 @@
|
||||
# Review the first bootstrap with decimal-capable VoidLibrary
|
||||
|
||||
Task ID: T-REVIEW-003
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Working directory /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap
|
||||
at ca04975. Upstream main moved from 9931c5f to 7d7d23ec0a6a55d4b30921432fa215b29a29e59b.
|
||||
T-REVIEW-002 predates decimal support. Root changed the CLI to reject a bare
|
||||
`--` with exit 2 after Argparse started accepting it. Both builds pass 37 cases.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Independently review the CLI/dependency and LSP numeric-ID boundary against the
|
||||
original T-001 contract. Return a precise verdict and reproductions of actionable
|
||||
errors. The previous review left the floating-point branch untested.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Cover the bootstrap executable and real dependency behavior. Native build work,
|
||||
new document/store code, future semantic capabilities and the choice of compiler
|
||||
are separate assignments. You may verify coverage of the current assertions.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-001.md, tasks/T-REVIEW-002.md, REVIEW.md and
|
||||
VERIFICATION.md for acceptance and prior limits. Inspect the actual diff of
|
||||
src/main.cpp against ca04975 and the affected src/{Json,Server}.cpp,
|
||||
include/vls/{Json,Server}.hpp, tests/{JsonTests,JsonCapabilities,ProcessTests}.cpp,
|
||||
tests/{Registration.cmake,TestSupport.hpp}, cmake/VoidDependency.cmake and
|
||||
build/bootstrap/_deps/voidlibrary-src/include/Void/Data/StrictJson.hpp.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
All source, task records and output trees belong to others. Use existing binaries
|
||||
or private /tmp scratch for finite subprocess probes. Keep the active Serena
|
||||
project. No Git mutations or sibling changes. Return findings to root.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Check the changed default/explicit CLI modes and stdout/stderr/exit contracts.
|
||||
Examine how parsed decimal and integer forms reach JSON-RPC request ID handling,
|
||||
how conversion and range validation affect correlation, and whether any accepted
|
||||
input yields a reply for another ID. Compare StrictJson's representation with
|
||||
the protocol requirement. Verify the tested revision from the actual build.
|
||||
Use graph coverage and source checks with the active project as appropriate.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
vls::parse_json returns expected<Json,string>. vls::request_id accepts a decoded
|
||||
Json and returns expected<variant<int32_t,string>,string>. Numeric success must
|
||||
preserve the signed-32-bit value. Invalid ID returns InvalidRequest with null
|
||||
correlation. The CLI's help/version are standalone and stdout is protocol-only
|
||||
in default/stdio mode. Existing framing and lifecycle bounds apply.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
This review is independent of T-PLAN-002, native-build and compiler experiments.
|
||||
No implementer owns bootstrap source during this check. Root handles findings
|
||||
and orders any repair against pending work. Verdict is for the reviewed shell.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Cover signed limits, exponent spellings, invalid types and precision loss. Keep
|
||||
subprocesses small and bounded. No shell execution of protocol fields or reading
|
||||
credentials. Do not enable capabilities or change test expectations.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Verify correct CLI exit and stream behavior for the bare marker and regular modes.
|
||||
2. Verify numeric identity on the real dependency, including cases the ordinary
|
||||
suite could miss. Record exact request/response pairs for discrepancies.
|
||||
3. Report any missing evidence for the original JSON gate and regression checks.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From project root, `git diff ca04975 -- src/main.cpp cmake/VoidDependency.cmake`
|
||||
and `git -C build/bootstrap/_deps/voidlibrary-src rev-parse HEAD` show the change
|
||||
and revision. Root ran `dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure`
|
||||
and the corresponding build/local suite. Both passed all four entries, containing
|
||||
22 unit, 6 JSON capability and 9 process tests. Use build/bootstrap/vls for
|
||||
bounded LSP probes and the respective test executables in build/bootstrap/tests/.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
If inputs drift, state exactly what was reviewed. If the dependency lacks exact
|
||||
number provenance, identify its API limitation and affected values. Do not edit
|
||||
VoidLibrary or implement a parser. Return promptly on a decisive finding.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-021 follows main and D-022 expands scope. D-027 selects gpt-6.2-astra with
|
||||
Max for this independent review through the explicitly approved runtime role.
|
||||
The review has no release, network-write or branch authority.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-003 READY/CHANGES_REQUIRED/INSUFFICIENT_EVIDENCE. For each finding give
|
||||
severity, source location, trigger, expected and actual output, recommended fix
|
||||
and distinguishing regression. Include commands and limits. No child agents.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Review the integrated native build, protocol and document synchronization
|
||||
|
||||
Task ID: T-REVIEW-005
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Fresh read-only integrated review on /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. Native build, dependency preparation, checked Protocol, immutable Documents and real session wiring are present. Two upstream JSON precision/range issues remain. Model and workspace workers have disjoint ongoing edits. Earlier preflight accepted four contracts, prescribed model/session amendments; the second contract check got HTTP 429. This is an actual source/diff review of the completed slices.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Return actionable defects and separate verdicts for native preparation/build/registration, protocol/session and documents. Include actual source surrounding each finding and a minimal benign reproducer when practical. Evaluate the amended session contract against its actual wire implementation. Prioritize correctness/time/resource defects affecting current use.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Scope is the integrated native, protocol and document/code paths plus the CLI/lifecycle compatibility and their tests. Existing R-003 JSON findings are already tracked; report any new behavior separately. Workspace authority/model/provider internals are separate reviews. Do not evaluate the proposed compiler as a successful backend.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read tasks/T-NATIVE-PREP.md, T-NATIVE-001.md, T-PROTOCOL-005.md, T-DOCS-003.md and T-SESSION-003.md, the relevant preflight corrections and REVIEW.md. Inspect the actual diff from ca04975, including untracked files under include/Void/LanguageServer/{Protocol,Documents}, src/{Protocol,Documents}, src/Server.cpp, src/DocumentSync.cpp, include/vls, build.cpp, tools/prepare-voidlibrary, tests/native/Preparation.py, tests/{NativeRegistration.cpp,TestSupport.hpp,ProcessTests.cpp,ProtocolEncodingTests.cpp,documents/DocumentTests.cpp}, CMakeLists.txt and tests/CMakeLists.txt. Prior 16-file snapshot is build/goal-baseline-20261127; inspect only owned relevant files. Verify VBS seed src/Main.cpp install and src/Package/Fetch.cpp/src/Provider/Provider.cpp in ignored build/tools/vbs-6c225-src only as needed.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Read-only shared checkout. No Git mutations, source changes, recompiling the shared native build, concurrent vbs metadata writes, sibling access beyond scoped code, or independent user contact. For benign runtime probes use synthetic temp files and already-built executables. Root owns any fixes. No children.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace ingress through typed envelope and immutable store; check LSP number limits, UTF-8/16 negotiation, null/missing fields, stale version/desync/recovery, observer read races including aliases/ABA, memory accounting incl markers/retained snapshots and incremental CRLF index equivalence. Check stream errors/no partial frame and staged dependency handoff. In preparation, check tracked allowlists, source reuse and staging of immutable generations retained by in-flight builds. Inspect both build definitions and exercise the actual registered process/named tests. Check whether any user-visible native commands/docs overclaim support. Prioritize a short list of material defects. Existing wire precision failures are a separate upstream gate; do not waive them.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
The CLI and stdio session use the typed Protocol adapter, document URI/incarnation bindings and one negotiated encoding. Initial capabilities contain positionEncoding and incremental textDocumentSync only. Root supplies static registration and real vls sibling resolution. VoidLibrary follows upstream main. Candidate build and provider/worker integration are separate. Native install requires the development CLI's dependency-aware install path. Existing second contract verdict was unavailable; verify concrete effects.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Evaluate actual files and outputs together. Root ran native built-in seed 6c225c2 debug and independent CMake comparison on main 7d7d23e. The expanded integer/decimal suite exposes the same two failures. The focused real transcripts prove preceding text mutations through subsequent split-scalar failures. Document tests initially exposed stale size validation on mismatched text; root fixed index text_size_ and reran the full checks. Tests/native/Preparation.py also passed. Targeted isolated tests may run alongside work on other disjoint paths.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound probes. Use synthetic ASCII/Unicode, regular files and benign references only. Source exclusions include secret env and key material and unrelated caches. Verify typed refusals on limits, aliases, unsuitable file types, stale reads and malformed payloads. Look for library false successes, stale capabilities or resource trust from client metadata. Do not run any project-provided tool or test payload as a command.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Evidence-based READY, CHANGES_REQUIRED or INSUFFICIENT_EVIDENCE per slice with causal source references. 2. Identify each P0–P2 material defect, narrow correction and distinguishing regression, including whether existing tests miss it. 3. Separate existing upstream JSON and VBS install issues from new defects. 4. Report exact executed commands/outcomes, test coverage limits and any fact that blocks a readiness claim.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; git diff ca04975 -- src/Server.cpp src/main.cpp include/vls build.cpp CMakeLists.txt tests; direct reads of untracked scopes. Check graph coverage for material files. The integrated executables live under build/native-validation/profiles/debug/out/bin. Run --list and selected tests directly; use dev cpp-gcc -c ctest --test-dir build/bootstrap -L documents --output-on-failure and python3 tests/native/Preparation.py -v if useful. The prepared generation/provenance is under build/voidlibrary/current. Reuse logs build/native-evidence/foundation-native-retest.log and foundation-ctest-retest.log after verifying observed results.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before source changes, undocumented external permissions or emitting unrelated audits. A 429 or unavailable runtime must be identified as a missing review. Do not produce a merge/release verdict for the full project or require unresolved upstream work to block independent correctness evidence. Do not modify or re-run common metadata producers.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized full implementation on the separate branch, primary native VBS, following VoidLibrary main and GPT-6.2 family at Max. This is a fresh Astra reviewer via the approved generic runtime. Root retains integration and all external permissions.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-005, per-slice verdict, severity/location/trigger/expected/actual and remediation for each actionable defect, actual commands and exit codes, coverage and limits, files changed none. Return early for serious defects. No user messages or children.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Review the integrated C++ replay adapter and inspection service
|
||||
|
||||
Task ID: T-REVIEW-DAP-020
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap, ca04975 plus uncommitted work. The earlier DAP preflight approved lifecycle ordering and integral value mapping and identified invalid UTF-8 source; its paging/control review ended in HTTP 429. A standalone recorded adapter and inspection service now compile. Four DAP subprocess cases pass in CMake. GCC's actual fixture and source path were selected by the launcher.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Review the integrated diff against the recorded-debug adapter and inspection contracts. Find any reproducible correctness, privilege, parsing, resource or interoperability defect. Give separate disposition on session projections, control/page lifetimes, and transport. Independent implementation fixes are root-owned.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Recorded compiler sessions over private stdio, the new C++ files, build wiring, real journal fixtures and tests. Exclude heavy compiler builds, live-debug design, plugin distribution and broad LSP work.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read include/vls/debug/inspection/ReplaySession.hpp, src/debug/Fields.hpp, src/debug/inspection/ReplaySession.cpp, src/debug/dap/{Main.cpp,Projection.hpp,Projection.cpp}, experiments/frontend/gcc-worker/{Trace.hpp,Trace.cpp}, tests/debug/DapReplayTests.cpp and build.cpp, CMakeLists.txt, tests/CMakeLists.txt and tests/NativeRegistration.cpp. Original contracts are docs/agent-workflow/tasks/T-{PLAN-DAP-020,PREFLIGHT-DAP-020,DAP-TRANSCRIPTS-020}.md. Inspect protocols at the source lines needed; consult official Microsoft DAP specification for uncertain requirements.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Only private benign verification material under build/review-dap-020 is permitted. No shared source, repository manifests/workflow, user configurations, Git changes or additional agents. Root is implementing the Python transcripts and final native integration. Report any required change to root.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Drive the actual build/bootstrap/vls-dap --replay <absolute fixture> with structured framed requests through isolated subprocesses. Check sequence correlation, duplicate handling, initialization/configuration orders, recorded stop versus other value, declared source availability versus arbitrary disk, positive reference validity and paging. Follow the same actual object from custom seek/session through standard stack/variables. Test official strict semantics; don't infer pass simply from current tests.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Schema v1 and replay are frozen in T-DAP-TRANSCRIPTS-020 §7. All read pages and seek require sessionId/schemaVersion/generation. Event 5 is provisional inner 17, E6 the real stopped record; E7 acknowledges step, E8 completes inner, E10 holds 34, E11 acknowledges continue. E20/E22 are observed without a compiler stop. Adapter seq, pause generation and compiler sequence are distinct. Raw source bytes may include NUL or invalid UTF-8. Standard frames have no physical source mapping and use line/column zero.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Real recordings under tests/debug/fixtures/{integral-17,integral-41,cancelled-41}.vls and the private immutable reader are available. Test source opens from arbitrary cwd, no compiler on PATH. Externally verified live evaluation and compiler changes are separate. Root is preparing current VBS artifacts and will relay if available.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Review captured source bound including 1 MiB expanded JSON, malformed fields, binary source and missing HELLO/empty prefix; no arbitrary path, plugin, shell, executable or debuggee launch. Check stale frame/scopes and page/control generations including seek ABA, deadlines/EOF partial framing, truthful thread/capability state, range and accepted integer representation. Any finding should name what data was actually trusted and a representative input.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Reproduce a real standard and custom transcript using at least one real journal. 2. Recover any distinct observed edge case or explicitly note the examined behavior. 3. Identify remaining missing live/client gates separately from scoped defects. 4. Supply suggested local correction and distinguishing regression for each confirmed defect.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From the root use build/bootstrap/tests/vls_dap_tests --no-color and --list --no-color. Use build/bootstrap/vls_gcc_probe replay "$PWD/tests/debug/fixtures/integral-17.vls" 6 or 8 for ground truth. Invoke tests/native/DapReplay.py only once available, or a private bounded Python stdio transcript. Never relaunch compiler builds or mutate the shared VBS selector during review.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Inspect the current files directly; prior plans and summaries are evidence pointers. Stop this assignment if new source ownership or a scope expansion is required, and send the issue to root. No external messages or commits. Perform only this independent review.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full implementation D-022, separate branch, native D-025. Execute as generic GPT-6.2 Astra at Max per D-027/029; user specifically requests same-family maximum effort on reviews.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-DAP-020 READY or CHANGES_REQUIRED, outcomes per component, priority, paths/lines, actual reproduction and unverified integration gates. Send early concrete findings; no subagents.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Review the integrated GCC occurrence, evaluator, supervisor and replay prototype
|
||||
|
||||
Task ID: T-REVIEW-GCC-019
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Fresh independent reviewer requested at GPT-6.2 Astra Max under D-029. Shared repo feat/implement-roadmap ca04975. D-030 covers local GCC16 worker/patches. GCC 0001/0002 built from verified release. Root and separate workers integrated sealed ELF leaf, C++ supervisor, trace and bounded real tests. The current user explicitly asks about stock vs custom compiler: keep claims limited to demonstrated distinctions.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
This independent retry follows an HTTP 429 before review. A new separate stock GDB experiment observed nested returns on the installed GCC and has its own fixture. It does not supersede the reviewed patches or require expanding this review. Primary native and comparison builds now include the trace suite.
|
||||
Independently review actual compiler patches, launch/control/journal/state provenance, direct IDE physical token and observed declaration evidence. Run tests or focused read-only distinguishing cases. Return actionable findings and slice verdicts for local prototype readiness and what remains before LSP/DAP/public exposure.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only assessment of local GCC patches and experimental packages. No changes to compiler or shared integration, production/backend/license decisions or user messages. Exclude ongoing provider remediation (independent assignment).
|
||||
|
||||
## 4. Files to inspect
|
||||
Read compiler-patches/gcc-16.2.0/{0001-evaluator-events,0002-ide-occurrences}.patch, experiments/frontend/gcc-worker/{Leaf,Main,Supervisor,Trace}.{hpp,cpp} as present, tests/corpus/frontend/{verify-gcc-events,verify-gcc-ide}.py, tests/debug/TraceTests.cpp, tests/native/{GccLeaf,GccSupervisor}.py, T-PREFLIGHT-GCC-008, T-GCC-{IDE-008,LEAF-009,SUPERVISOR-018,TRACE-019}.md, actual GCC16.2 sources for the relevant hooks, plus root logs listed below.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use only private ignored build/review-gcc-019 for ordinary isolated fixtures. No editing shared sources/builds, compiler or symlinks, Git, siblings, deployments, network sends, additional agents or direct user questions.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Inspect the live acquisition→hello→pause→one-use command→echo→next event and terminal paths and verify what is saved on cancellation, failure, killed leader, slow client and truncation. Ensure frame copies, identity and revision, journal durability/integrity, timestamp/sequence bounds and partial projection match. Independently evaluate physical source mapping, templates/macros/line directives/splices/declaration-only and reused GCC UID lifetime. Reconcile public statements with actual behavior of ordinary GCC16 vs patched hooks. Validate SDL handling of control FDs/seals, CPU/AS caps, input snapshot, diagnostic locations, stale commands and no AST pointer crossing. Use benign project-owned sources to distinguish defects.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Current CLI vls_gcc_probe run COMPILER SHA256 SOURCE NEW_TRACE [--step] and replay TRACE [SEQUENCE]. Leaf fixed args no standard includes, controlled C++ fixture. Integration is currently limited to local probe; actual language server exposes passive providers. Verify frontendEnd vs wait, SIGPIPE/disconnect and control input liveness, replay continues after removal of source/compiler. Review combined patch first then independently verify known observations.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root built build/bootstrap/vls_gcc_probe and stand-alone under build/gcc-leaf-tests. Root direct GCC harness for 0002 verifies nested/same-line fields/calls, declaration vs definition and Unicode display columns. Root's native/GccSupervisor test just passed real live/edited/cancel/replay and adverse bounded ordinary process tests. tests/debug has 13 cases. Native/CMake registrations are being repeated. Other agents exposed code but their summaries are not grounds for acceptance.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Keep test resource lifetime bounded; do not launch untrusted arbitrary project input or inspect unrelated storage, do not build the compiler. For corruption and protocol cases use finite synthetic data/benign local binaries; no vulnerabilities/exploits against host or external projects. Focus on materially observable correctness, explicit unavailable evidence, reproducibility and test holes.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Return independent READY/CHANGES_REQUIRED for 0001 scalar/stop, 0002 occurrence/definition, sealed leaf, supervisor, immutable journal/replay, and suitability to progress toward scope-approved further gates. State critical defects, real paths/lines/test input+expected/actual/evidence, missing compiler capabilities vs genuine implementation bugs and recommended minimal repairs.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch, git diff --check, direct inspect untracked files. dev cpp-gcc -c python3 tests/corpus/frontend/verify-gcc-ide.py --cc1plus $PWD/build/gcc-gate/compiler-build/gcc/cc1plus and same for verify-gcc-events.py, use the private binary and bounded harness. dev cpp-gcc -c python3 tests/native/GccSupervisor.py --probe $PWD/build/bootstrap/vls_gcc_probe --cc1plus $PWD/build/gcc-gate/evaluator-only/cc1plus; run build/gcc-trace-tests/vls_trace_tests --no-color. Inspect build/gcc-gate/{leaf-retest,observed-ide,observed-events,supervisor-runtime,trace-focused}.log. Capture actual nonzero/zero test evidence.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for necessary external operation or code edit. If runtime rate-limits return blocked review, not a READY claim. Root owns fixes. Report urgent P0/P1 while continuing independent portions.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User D-027/D-029 require explicitly configured GPT-6.2 Astra at Max for review, D-030 permits only local compiler experiments, licensing and distribution deferred. No push/release.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-GCC-019 READY/CHANGES_REQUIRED/BLOCKED, highest impact findings with reproduction+source then slice verdicts, commands/results and residual limitations. Notify parent only.
|
||||
@@ -0,0 +1,48 @@
|
||||
# Review the integrated passive providers and workspace status
|
||||
|
||||
Task ID: T-REVIEW-PROVIDER-007
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Fresh independent review of actual shared checkout feat/implement-roadmap at ca04975. Main development is native VoidBuildSystem with CMake secondary. User approved full roadmap and Max GPT-6.2 family, and specifically requires GPT-6.2 Astra at Max for reviews. No review substitution. The provider preflight required pinned grants, genuine negative evidence, prefix/TU verification, and latest-issued publication (see T-PREFLIGHT-007).
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Perform a defect-oriented review of the integrated passive VBS and compile-commands providers including wire dispatch. Report actionable P0/P1/P2, with minimal benign distinguishing test for each and exact code locations. Provide early high-priority findings then READY/CHANGES_REQUIRED for this slice.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Review acquisition, import, VBS/compdb selection, session semantics, CLI/configuration, build and LSP process integration. Recheck relevant cross-file trust/document/model behavior. Known unrelated upstream JSON precision/range failures have tracked separate ownership. No compiler-patch review, release verdict or implementation edits.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect git diff ca04975 and the actual new untracked files in include/Void/LanguageServer/{Build/Providers.hpp,Support/RegularFile.hpp}, src/Build/{ProviderFile,CommandImport,VbsProvider,CompdbProvider}.cpp, src/WorkspaceSession.cpp, include/vls/{Server,WorkspaceSession}.hpp, src/{main,Server}.cpp, src/Workspace/{Configuration,Trust}.cpp, tests/providers/, tests/workspace/ProviderSessionTests.cpp, tests/ProviderProcessTests.cpp, tests/native/InstalledServer.py, build.cpp, CMakeLists.txt, tests/CMakeLists.txt and tests/NativeRegistration.cpp. Consult individual provider task specs and ACTUAL VoidBuildSystem selector/status generation if a claim depends on the producer. Tests formerly under tests/build moved to tests/providers because VBS excludes directories named build from project snapshots.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use only private ignored build/review-providers-007 for any benign fixtures or generated verification artifacts. No editing shared sources/docs, builds, branches, commits, sibling checkouts, dependencies, tools or user messages. Other active agents own GCC only.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace a real request and one failed/superseded request across wire → session → providers → pinned IO → bounded importer → BuildGeneration → publication. Examine source lifetime, exception/outcome, TOCTOU, alias/hardlink/negative lookup, passive prefix-to-origin checking, language/value/settings origins, issue/epoch serialization, workspace and trust reconfiguration, no stale publishing. Try to refute implemented claims using tests and actual local executables. Inspect untracked source directly; a clean tracked diff is insufficient.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
The public contracts are Providers.hpp, Model.hpp, WorkspaceSession.hpp. Status is voidLanguageServer/providerStatus, supports per-workspace scope and optional document. Auto VBS precedence, a dangling/stale selector or missing native generation stays VBS. No automatic trust execution. Immutable revisions scoped to incarnation; unknown role/source remains explicit. Native v1 lacks target/module/role richness, retain unknowns.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root integrated both build/test systems. Last native and CMake inventories each contain 155 bodies: 29 protocol, 14 process, 22 documents, 28 workspace, 18 model, 36 providers, 8 JSON. Only two independently known numeric tests failed. Native install from empty PATH/cwd produced correct VBS36 and compdb58 status for real main.cpp. Active source owner released latest WorkspaceSession immediately after tests; root repeats both builds on final integration. Review actual code rather than relying on this accounting.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Watch resource amplification (nested rows/response files, retained generations or file descriptors), boundary alignment after file rename, root re-add, external exact/build roots and user-origin grants. Verify tests do not accidentally pass with no-op handler, invented context values or shell success. Identify exposed user failures and materially justified fixes, not speculative style churn. Use only ordinary owned fixtures and read-only inspection.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Report independent concrete verdict for acquire/import/native/compdb/session/CLI/integration and tests, supported by exact files/lines, reproductions and observed exit codes. Distinguish pre-existing known JSON findings. If a high-priority issue exists, notify root early to begin correction while you review disjoint areas.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
git status --short --branch; git diff --check; run build/bootstrap/tests/vls_provider_tests --no-color, vls_workspace_tests --no-color and vls_process_tests --no-color; check native list/installed result if useful. Read build/native-evidence/providers-{native-final,ctest-final,installed}.log; optional targeted proof only under private review dir. No shared builds or compiler experiments.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop if prerequisite prevents factual verdict, report missing evidence or actual runtime error. Do not downgrade or silently substitute model on 429. No merge/release or deployment actions.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User D-025/027/029: native VBS, explicit GPT-6.2 Astra at Max, preserve independent reviewer. Passive workspace and provider implementation cleared after amendments. This review is of code and behavior.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-PROVIDER-007 READY/CHANGES_REQUIRED/BLOCKED with scoped verdicts, findings highest impact first, evidence/commands and untested paths. Report to root only.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Review stock GCC diagnostic and module-planning integration
|
||||
|
||||
Task ID: T-REVIEW-SEMANTIC-013
|
||||
Role: astra_reviewer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
November 28 retry on feat/implement-roadmap, HEAD ca04975. The original code remains in the working tree. Both builds now run 266 C++ cases, with only two known JSON number failures. The native and comparison executables passed the real stock GCC stdio corpus. This retry retains the original SARIF decoder and module planner review scope. The root is implementing DAP independently; its files are outside this review.
|
||||
The shared branch feat/implement-roadmap at ca04975 now has a C++ GCC16 SARIF adapter and P1689 module planner. Native VBS and CMake passed 210 inventoried C++ cases apart from two already recorded JSON precision/range cases. A native real GCC run applied the adapter to the actual DocumentSnapshot.cpp. The module owner released a final 21st case and claims_complete after that run. Both components are data-only (no compiler execution in these library functions).
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Independently review the integrated code, normal registrations and cross-component correctness; prioritize demonstrable wrong editor ranges, erroneous clean results, incorrect graph readiness/order or stale CMI reuse. Return concrete findings, severity and realistic distinguishing tests. Verify newly authored code, not worker summaries.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Read-only focused postimplementation review of the two components below, their fixture evidence and registration. No workspace/provider permission or private compiler/OS supervisor review; no unrelated repository audit. No user contact, subagents, external actions or changes to source.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-{DIAGNOSTIC-SARIF-013,MODULE-GRAPH-011}.md and preflight amendments. Inspect include/vls/semantic/Diagnostics.hpp, src/semantic/Diagnostics.cpp, tests/semantic/{DiagnosticTests,GccDiagnosticFixture}.cpp, tests/corpus/frontend/verify-stock-diagnostics.py, include/vls/modules/ModuleGraph.hpp, src/modules/ModuleGraph.cpp, tests/modules/ModuleGraphTests.cpp, build.cpp, tests/NativeRegistration.cpp, CMakeLists.txt, tests/CMakeLists.txt. Compare with existing Docs snapshots and Build model, and actual GCC report examples under build/gcc-gate/{queries,constraint}.sarif. Use git diff plus actual untracked files. The separate real module-corpus bridge is still owned and in progress, so defer its final review.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: none
|
||||
Use only a private ignored build/review-semantic-013 directory for optional ephemeral benign source fixtures. No tracked changes, running VBS discovery, Git operations that mutate state, broad index of build artifacts or integration builds.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Trace source/identity and all conditions required to admit a complete result. Inspect exact variant handling, unique expected artifact/RUN, traceable location policy, false positives at end-of-line, tabs and BOM, valid runner failures, estimate actual bounded work. For modules, distinguish absolute verified output/cwd, true incidence of complete scanned claims, partial graph, census changes, header info and live consumer set. Reuse existing actual data and deterministic controlled test mutations when testing. Interpret all claims against the reviewed task contracts.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Public APIs decode_gcc_diagnostics, decode_scan and build_module_plan. Their caller must provide actual run and input identities, source-origin evidence, and an explicit validated module domain/census. A caller omitting required evidence should get an explicit limitation. Identify mistakes within that contract rather than treating receipt generation as implemented. Project entries are still passive in stdio. Providers already reviewed independently; do not re-audit them here.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
For the retry, the module bridge is now released and verified, superseding the earlier deferral in §4. Include tests/modules/GccScanFixture.cpp and tests/corpus/modules/verify.py and the final 21-case ModuleGraph. Stock GCC and the native helper passed all 33 observations; biased DAG detail→api→topology→importer and failed-with-rule status came from the C++ planner. The diagnostics fixture can also run with --isolated-inputs, and uses the new checked compiler-context lease. Assess only this fixture as a consumer; WorkspaceSession implementation has a separate owner. The original review assignment returned HTTP 429 before examining the files. No previous implementation or review role for this assignment.
|
||||
Root and module worker are validating target integration. You may run build/module-graph-011/module-graph-tests and build/bootstrap/tests/vls_diagnostic_tests or execute the standalone user-selected stock GCC corpus using its fixed flags. CMake/native may be recompiling the last header delta. Check actual timestamps/binary state if relying on behavior.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Watch for stale and missing evidence, scope of operation, numeric precision, catalog collision, deterministic limits, accidentally wrong errors/clears or silent resource amplification. Bound any local test data. No active project/compiler invocation other than explicit fixed test fixtures. No new UX/release requirements.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Return READY only when the actual integrated files and affected contracts have been read. Otherwise identify file:line, concrete failing input, observed vs expected and smallest recommended correction. Distinguish real and unit verification, report which artifact you used. Treat a pending bridge or a separately documented upstream limitation as such.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From the repository root run `build/bootstrap/tests/vls_diagnostic_tests --no-color` and `build/bootstrap/tests/vls_module_tests --no-color`. These executables currently register 26 and 21 tests. The two original focused contracts and the immutable module planner are available in the shared worktree. The current stock caller's evidence is in `build/stock-editor/final-installed-editor.log`; review its interface to the decoder if a finding depends on caller behavior. Compiler execution for this review is optional and restricted to benign fixtures.
|
||||
Permitted checks: build/bootstrap/tests/vls_diagnostic_tests --no-color; build/module-graph-011/module-graph-tests --no-color; dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-diagnostics.py --fixture build/bootstrap/tests/vls_gcc_diagnostic_fixture --database build/native-validation/profiles/debug/editor/generations/b7da5a9f204361f4/compile_commands.json. All are from the repository root. Use scoped syntax/probes if informative.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop and ask root for ownership ambiguity or major scope change. If provider/serializer changes might be needed, report a concise dependency; don't edit it or repeat the previous provider review. Keep separate responsibilities for compiler preparation/guards and the data adapter.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Implementation D-022, native VBS D-025, GPT-6.2 Astra Max review D-027/029, optional local compiler feasibility D-028/030. No staging or deployment.
|
||||
|
||||
## 14. Return format
|
||||
T-REVIEW-SEMANTIC-013 READY or CHANGES_REQUIRED per component, findings first with priorities, observations and commands, outstanding integration gates. Send confirmed actionable findings early.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Acquire and revalidate a real compiler context for one editor document
|
||||
|
||||
Task ID: T-SEMANTIC-LEASE-009
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared feat/implement-roadmap ca04975, native VBS primary and real compile_commands support. T-PLAN-SEMANTICS-010 observed the installed native row and stable context model. WorkspaceSession::provider_status currently retains lastGood JSON and creates short-lived SelectionState. Recent root repairs fenced URI selection and optional grants. Stock GCC on the real DocumentSnapshot.cpp row gives valid diagnostics. No stdio semantic operations run yet.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement a reusable C++ editor-context lease for the future stock diagnostics worker. A caller with an explicitly opted-in launcher driver gets the actual selected TU generation, its checked normalized invocation and ordered command, immutable provider evidence, and a validity check against the workspace/configuration/authority/document route. Repeated unchanged requests preserve Selection identity. Failures carry actionable typed readiness.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Only semantic context acquisition, reuse and revocation, not frontend execution or current on-disk file contents. Preserve passive provider status behavior and do not add CLI options/LSP capabilities. The semantic provider may check a driver specifically selected by the launcher, never auto-pick a row executable.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect include/vls/WorkspaceSession.hpp, src/WorkspaceSession.cpp, include/Void/LanguageServer/Build/{Model,Providers}.hpp, src/Build/{Model,CompdbProvider,VbsProvider,CommandImport,ProviderFile}.cpp, include/Void/LanguageServer/Workspace/{Trust,Configuration}.hpp, src/Workspace/Trust.cpp, tests/workspace/ProviderSessionTests.cpp and tests/providers/CommandImportTests.cpp. Use actual revocation, directory and URI semantics. Root has repaired nonexistent '..' traversal and separately verifies earlier provider review findings.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/vls/WorkspaceSession.hpp; src/WorkspaceSession.cpp; tests/workspace/SemanticLeaseTests.cpp
|
||||
Shared checkout, no other writes. Root serializes the public interface and owns build registration, actual subprocess/corpus, docs and CLI. Preserve all current edits; no staging, branches, dependencies, further agents or user contact. Private build/semantic-lease-009 for verification.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Reuse WorkspaceSession observation, exact FilePurpose bindings, checked alias/absent-selector revalidation and the existing Build::SelectionState and Workspace::TrustPolicy. Scope opt-in driver to a single explicit launcher workspace. Initial caller grants must be backed by root/purpose/executable configuration and current file identity; project paths/preferences cannot approve. Classifier must receive a real DriverInput for the exact selected driver and core wrappers from licensed settings. A lease supplies execution data, not authority to run arbitrary programs; separately approved frontend/toolchain and bound input view are later dispatch prerequisites. Pin a driver once per new trusted generation. Re-check a recorded pin thereafter; never auto-repin a changed executable.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW WorkspaceSession::acquire_semantic_context(document_uri, optional_workspace_uri, selected_driver) and method to validate a returned lease. Freeze exact names/header early. Selected_driver comprises launcher-selected absolute executable and declared driver family; check identity + operation+root+generation. Lease retains Build::Generation, Build::Selection, shared lifetime for per-file SelectionState, provider stamps/negative fallback, exact checked driver, config/trust/incarnation and document logical→physical binding. Encapsulate mutable owner/validation state. Distinguish unavailable/disabled/no-command/wrong-command/superseded via typed outcomes. Cached selected pointer must remain identical on genuinely equivalent observations. Concurrent independent documents may both succeed; one operation or passive status refresh for B must not gratuitously supersede a still valid read for A. Bound retained cache entries; eviction invalidates or degrades safely.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Choose the passive ContextKey over all rows before checking the selected driver's normalized command. A compatible later row cannot substitute for an unusable active row. The root owns the separate checked source-language proof in CommandImport; a lease alone does not make diagnostics available. Expose the monotonic settings generation used by AnalysisInputs independently of normal status issuance.
|
||||
WorkspaceSession remains sole owner of logical folder configuration and trust. Root handles CLI and integration. Subsequent source/diagnostic workers consume only validated immutable lease; don't synthesize missing standard-library/prerequisite/target metadata. CMake and VBS already include WorkspaceSession.cpp. Agent uses dedicated tests file, root adds to the workspace target.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Keep filesystem reads/driver hash work outside global mutex. At installation compare root object/config/trust and latest applicable observation; current successes and failures obey ordering. Physical aliases/negative responses, invalid native precedence and explicit driver identity replacements invalidate old lease. No ABA after root removal/re-add; no previous last-good admission. Avoid unbounded map growth for arbitrary document paths; return typed saturation or evict. Returned object lifetime must remain safe across shutdown and concurrent use.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Reconcile an internal driver revocation from TrustPolicy::check_tool with the owning folder's generation under the incarnation guard. A replaced driver A invalidates old leases while an independently approved unchanged driver B and passive status recover without settings reload. Retain whether the request supplied an explicit workspace; re-evaluate implicit routing when nested folders change at acquisition and validation, with an explicitly selected outer folder as a control. Identical-byte DB replacement or a changed selector ticket must invalidate old evidence despite a matching content revision. An invalidated lease cannot revive on A→B→A; a fresh lease may use the new evidence. Test competing driver rows with different defines and stability of the returned configuration generation across ordinary status.
|
||||
Prove a root-approved native row and compile database row return correctly normalized command via non-executed benign fixture, unapproved/mismatched/replaced driver returns unready, status cannot promote a pin, one selected pointer survives unchanged lease re-acquisition/status, plan refresh/settings change/driver revocation/root removal/stale selector/alias retarget lose eligibility, commands for two documents independent, missing @file-then-creation changes result. Include deterministic concurrency, cache limits, real populated context counts; no requirement that global project metadata be complete for the diagnostic-only lease.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repo root run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/WorkspaceSession.cpp tests/workspace/SemanticLeaseTests.cpp. Root registers case suite with native VBS and comparison CMake. Private linked Void::Testing executable permitted. Return actual test bodies and outcomes. Directly reference the existing API implementation, not hypothetical flags.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Do not execute the driver, invoke VBS or advertise LSP features. Isolate authority generation changes and never pass status-only data as a semantic ticket. Stop and contact root for necessary changes outside exclusive files. C++ model/backend/license decision remains with user.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Approved roadmap 05/06/07/09, D-025 VBS primary and D-027 GPT-6.2 Max. Fits D-028/030 isolated derived compiler evidence without selecting a production engine. No Git or sibling actions.
|
||||
|
||||
## 14. Return format
|
||||
T-SEMANTIC-LEASE-009 DONE/PARTIAL with exact API, files, race/stability/expiry proof, registration counts and limitations. Notify root when interface is stable.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Connect negotiated incremental synchronization to the stdio session
|
||||
|
||||
Task ID: T-SESSION-003
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Root integration on feat/implement-roadmap at ca04975 with existing CLI/lifecycle and native build. The current server ignores notifications other than exit, concatenates response JSON and advertises empty capabilities. Document and Protocol owners have separate source ownership.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Connect one document store to each LSP session. Serialize response objects through the checked Protocol writer. Provide actual process tests that distinguish a working edit handler from a no-op.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Root owns this integration. Do not add editor semantics or compiler diagnostics. A malformed notification may emit bounded stderr diagnostics. It never receives a protocol response.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect src/Server.cpp, include/vls/Server.hpp, tests/{TestSupport.hpp,LifecycleTests.cpp,ProcessTests.cpp}, include/Void/LanguageServer/{Protocol,Documents}, build.cpp, tests/CMakeLists.txt, CMakeLists.txt and T-PREFLIGHT-004.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: src/Server.cpp; src/DocumentSync.cpp; include/vls/Server.hpp; include/vls/DocumentSync.hpp; tests/TestSupport.hpp; tests/LifecycleTests.cpp; tests/ProcessTests.cpp; build.cpp; tests/CMakeLists.txt; CMakeLists.txt
|
||||
Root owns these files. Share read-only early interfaces with the Documents and Protocol owners. Integrate after their handoffs.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Negotiate the first supported client positionEncoding, default UTF-16, supporting UTF-8 and UTF-16. Fix encoding before admitting overlays. On successful initialization advertise just positionEncoding and textDocumentSync openClose=true/change=2. Dispatch didOpen, didChange and didClose only during running state. Validate textDocument objects, URIs and full change arrays. Reserve/copy only bounded arrays. Report a malformed event in a known URI via mark_desynchronized even if the enclosing version is absent or stale. Preserve the original text if any later edit fails. Treat a missing range as full replacement; reject a present null or malformed range. Validate an optional rangeLength as LSP uinteger if supplied; it is deprecated and does not replace validating range coordinates. Empty contentChanges is passed to the document contract or marked malformed if unsupported.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Wire versions use signed32 LSP integers. Position components and rangeLength use unsigned LSP integers 0..INT32_MAX, including before any document line clamp. Accept an integer only when its decoded value is representable and classifiable under the upstream numeric contract. The open upstream numeric-spelling problem is retained as an explicit gate. Treat known document identity as sufficient to mark the barrier even when payload/version parsing fails. Preserve stdout protocol-only even for errors, notifications or fatal encoding failures. Construct typed success/error objects with request_id_json. On encoding failure use a checked InternalError with a safely representable original ID or close before any write; do not emit partial frames or uncorrelated success.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
DocumentStore open/apply_changes/close/mark_desynchronized report typed errors. The root coordinates the single canonical Protocol translation units and legacy compatibility headers, adds actual document and test sources to native+CMake builds. Future semantic requests reuse the same store. No process tool authorization or frontend work is part of this integration.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Do not echo raw source text from malformed notifications. Keep diagnostics bounded by choosing fixed categories or bounded messages. Reject 2147483648 as a position before clamping; do not partially publish an edit batch on a malformed event. Preserve prior response-envelope, malformed input, pre-initialize/shutdown/exit handling and stream-error exit codes.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Validate negotiated UTF-8 and default/supported UTF-16 as well as capabilities through actual subprocess frames.
|
||||
2. Open a, replace it with an astral scalar, attempt an edit at column 1 and observe the split-scalar diagnostic. Run for UTF-8 and UTF-16. Verify the notifications produce no stdout frames and shutdown/exit remain correct.
|
||||
3. Use null/malformed range in a later event or invalid uinteger to mark a known document unavailable; a stale full replacement and ranged edit cannot recover, a newer full replacement can. Ensure URI close/reopen and lifecycle state are respected.
|
||||
4. All pre-existing tests except the two known upstream regressions retain intended behavior including real executable and framing/parsing failures; add checks for invalid egress before a frame write.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Build/test using dev cpp-gcc -c vbs build and vbs test with the project/build dir/profile explicit; the verified local seed path is build/tools/vbs-6c225-bin/bin/vbs. Run all suites directly if a runner aborts at upstream numeric failures. Run comparison CMake build and ctest --output-on-failure on build/bootstrap. Verify registered bodies and both process transcripts. Run clang-format on exactly the owned C++ paths and git diff --check.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Continue independent root work while worker headers settle. Avoid simultaneous editing with source workers. If exact classification requires unavailable upstream information, preserve the original failing cases and the dependency owner decision; do not add a decimal parser here.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Implementation of roadmap 02/03 is authorized. Keep primary VBS, current branch, VoidLibrary main and existing preflight ownership. No staging, commits, push or sibling changes. Root owns integration.
|
||||
|
||||
## 14. Return format
|
||||
Record implementation, exact commands, observed outputs and any remaining dependency problems in VERIFICATION.md and STATE.md. Fresh integrated adversarial review required before merge/release.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Implement per-workspace provider selection and status
|
||||
|
||||
Task ID: T-SESSION-PASSIVE-007
|
||||
Role: sol_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the workspace session controller and focused race tests from the amended, independently cleared T-PROVIDER-SESSION-007. The root handles CLI, stdio dispatch, standalone compdb adapter and real process transcripts.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Controller plus tests only, no LSP lifecycle changes, compiler launches, scheduling workers, sibling reads/writes or build registration. The independent reviewer completed all four provider verdicts; this task splits out the already-reviewed controller.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read docs/agent-workflow/tasks/T-PROVIDER-SESSION-007.md, src/Server.cpp, include/vls/Server.hpp, actual include/Void/LanguageServer/Build/{Providers,Model}.hpp, Workspace/{Trust,Configuration}.hpp, Documents/Uri.hpp, src/Workspace/Configuration.cpp, existing tests/workspace/WorkspaceTests.cpp.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/vls/WorkspaceSession.hpp; src/WorkspaceSession.cpp; tests/workspace/ProviderSessionTests.cpp
|
||||
Root releases these three paths exclusively to you. All other paths including src/main.cpp and both builds are root-/other-owned.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Implement bounded initialize workspaceFolders, then legacy rootUri only if absent, explicit null or empty folders supports document-only. Accept file URIs and stable existing roots, normalize safely. Track LSP add/remove and settings changes per workspace, support initializationOptions.voidLanguageServer and didChangeConfiguration params.settings.voidLanguageServer as passive default settings. Permit explicit scoped per-folder payload under a documented key (e.g. workspaces keyed by folder URI), retain workspace vs launcher provenance. Each folder has unique session/incarnation, config and trust generation. Only explicitly selected launcher root can use external exact locators or approved build root/producer cwd. Bind anchors once at grant ingress, never broaden after a path is redirected. Install TrustPolicy from merged configuration. Auto prefer real VBS selector even broken; only proven missing allows explicit or conventional compile_commands.json. Avoid all VBS managed aliases as automatic fallback (including generation-targeting symlinks); observe both selector absence and ordinary DB current before publication. No fallback for explicit broken provider. Native read via observe_vbs; compatibility via observe_compdb; true no-root supports normal docs.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW vls::WorkspaceLaunch carries optional<filesystem::path> root, build_root, producer_cwd and optional<Workspace::PartialWorkspaceSettings> user_settings, cli_settings. NEW vls::WorkspaceSession(WorkspaceLaunch = {}), std::expected<void,std::string> initialize(const Protocol::Json& params), update_folders(const Protocol::Json* params), configure(const Protocol::Json* params); std::expected<Protocol::Json,std::string> provider_status(const Protocol::Json* params). Root supplies launch slots only from CLI. Status params {workspaceUri?,textDocument?:{uri}}; explicit root or unique matching root, error for ambiguous query. Return workspaceUri/incarnation/provider/requestedProvider/state, generation and nativeGeneration if present, profile/ticket, contextCount, bounded issues,warnings, selected and alternatives for a document with deterministic Build::SelectionState (selectedProfile preference). Distinguish historical last-good identity, degraded/missing/stale/disabled, document-only when no workspace. Protocol names camelCase; coordinate exact keys early for process tests. No fabricated AST/semantic status.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
ProviderFile + row importer are concurrent tasks. Root is implementing observe_vbs and observe_compdb. Public APIs usable immediately; no placeholder implementations in shared source. Write focused tests exercising real providers once linked, or independent staged begin/observe/install paths for races. Root integrates three owned paths in the native and CMake targets.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
The root implemented the scoped reader in src/Build/ProviderFile.cpp; seven targeted tests pass. For a launcher-selected root, bind the external exact paths/build root once at launcher ingress, retain the bound scope across client configuration updates and root re-adds, and use reuse_provider_scope(bound,new_session) to reuse the original pinned directories for a fresh workspace incarnation. Keep this anchor binding separate from the merged per-folder limits and untrusted settings. A detached/replaced directory remains ineligible. In tests the controller may have an explicit observation callback/testing seam to prove late publications; use distinguishable real selectors/databases. Root owns CLI, provider tests and integration. The previous session writer hit HTTP 429 before creating any of your three files.
|
||||
Issue monotonic sequence before EACH observation and validate latest issuance, immutable owner/incarnation, configuration, trust and all positive/negative lookup evidence before publishing success OR failure. Preserve last-good separately, invalidate on reconfigure/revoke/removal. Do not hold session map mutex across I/O. A late completion cannot restore retired state. Distinguish missing status/db/unsafe selector from genuinely absent selector. Bound roots, alternatives/status response and errors. Driver evidence absent stays passive; no wildcard grants from user configuration across folders.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Real ProviderSession tests for two independent roots, absent/empty/legacy roots, bad folders/config, change/removal/re-add, explicit broken native override, native-before-cdb, marker remains untouched and external grants bound to one launcher-selected root. Deterministically introduce selector after fallback probe, reorder successful+failed reads across config/trust/root reincarnation. Expose latest outcomes and stale historical IDs without promoting stale work. Preserve caller's known documents/cache state on malformed transactional updates.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use git status --short --branch, scoped graph coverage plus direct reads, dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only on the owned sources and tests, then link/run the actual Void::Testing suite in a private build subdirectory. Use dev cpp -c clang-format --dry-run --Werror on owned C++ paths. List the cases via --list --no-color. Root owns the two shared build trees. Root registers tests under vls_workspace_tests and integrates real executable behavior. Contact root early with constructor/wire signatures and result field names.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before a new public product capability, additional security authority, incompatible shared API or repeated repair failure. Return actual tested versus pending integrations. Testing must never execute metadata.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
The original session contract received independent Astra READY after amendments. D-022/D-025–D-030 apply. User requested GPT-6.2 family at Max; this is the general implementation portion of the cleared session design.
|
||||
|
||||
## 14. Return format
|
||||
T-SESSION-PASSIVE-007 DONE/PARTIAL/BLOCKED, exact paths, API/wire status fields, test evidence, residual gaps and root integration needs.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Capture exact source and lookup observations under a compiler job's source roots
|
||||
|
||||
Task ID: T-SOURCE-CATALOG-009
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared branch feat/implement-roadmap ca04975 with current integrated DocumentStore, Build model, and stock SARIF adapter. Actual controlled GCC job accepted the original Documents TU and diagnosed the edited missing name. Root also compiled that native row with stock cc1plus in a private Linux namespace at its original source names. T-PLAN-SEMANTICS-010 calls for FD-bound source capture. T-SOURCE-OVERLAYS-009 has a frozen API, implementation underway.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the Linux source acquisition library for an immutable compiler job. Given an explicit caller-authorized root set, exact requested file bindings and lookup observations, return retained logical names, origin, ready overlay or opened disk content and positive/negative namespace evidence. Revalidate the entire observed set and document authority at dispatch/publication. This library supplies input data for the upcoming unmodified stock runner, without launching it.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Exact named inputs only in this slice. No directory crawls, automatic approval of paths from metadata, external process, sandbox implementation, compiler readiness or proof that a positive depfile describes every possible compiler lookup. A caller still supplies closed lookup scope or imposes/traces the actual worker's filesystem view. Do not copy a repository tree.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read include/Void/LanguageServer/{Support/RegularFile,Documents/{DocumentStore,DocumentSnapshot,Uri},Build/{Model,Providers}}.hpp; src/Build/ProviderFile.cpp; src/Documents/{DocumentStore,Uri}.cpp; tests/providers/ProviderFileTests.cpp; current T-SOURCE-OVERLAYS-009 contract plus frozen header; T-SEMANTIC-LEASE-009; src/semantic/Diagnostics.cpp and tests/corpus/frontend/verify-stock-diagnostics.py. Reuse existing fd streaming and logical-vs-physical document identities. Inspect actual available Linux/Void::System APIs.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/vls/semantic/SourceCatalog.hpp; src/semantic/SourceCatalog.cpp; tests/semantic/SourceCatalogTests.cpp
|
||||
Private build/source-catalog-009 for tests only. DocumentStore and WorkspaceSession have different active owners; communicate missing interface through root. No other file edits, registration, Git, external actions or child agents.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Bind each caller-selected normalized absolute directory to an immutable handle and the actual directory route for the lifetime of a workspace incarnation and authority generation. Source roots can include the selected TU or an explicitly granted include root. A compilation database row alone grants neither external reads nor tool execution. Initial implementation may reject unsupported symlink/.. routes, but never silently normalize to a different source. Support normal in-root lexical paths and uncreated unsaved leaves. Check components and retain logical/file/namespace identities from the same opened objects. For disk, open bounded regular nonblocking descriptor, verify shape and stable metadata both sides of streaming using existing stream_regular_fd or equivalent; avoid reopening source bytes. Use DocumentStore's caller-bound overlay API before any disk content read. An unavailable/ambiguous editor binding vetoes disk. Positive overlays override bytes on disk including an empty overlay. Capture genuine missing candidates only on proven absence; retain named parent/authority evidence so later creation or redirection invalidates the observation. Distinguish requested required missing inputs from a recorded negative lookup. Revalidate path membership and object identity along with checked document census; consider races after opening and during multi-file capture. If evidence expires, old slice stays historical, with no accidental admission after observed invalidation. Prefer simple bounded conservative rules over a filesystem-wide watcher.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW namespace vls::semantic; exact names freeze early. Suggested SourceGrant/SourceRoot carries Build::WorkspaceIdentity plus caller config/trust epoch, reusable pins; SourceRequest names absolute logical path and whether absence is allowed; capture_sources(authorized roots, DocumentStore, span<SourceRequest>, limits) -> expected<shared immutable SourceCapture,typed error>; validate_sources(capture, current scope, store) rechecks exact evidence. Expose immutable entries (logical physical names, presence and snapshot) plus census/authority/membership identity usable to populate AnalysisInputs. Preserve request order or return a documented deterministic alias mapping. Negative optional lookups can become ready with an unsaved new header. Multiple names must retain all logical receipts. For hard-linked files define safe handling of authoritative overlays (detect and reject ambiguous bindings, or return typed unsupported hardlinks). A request must never see unrelated file bytes from a root/epoch mismatch. No unsupported positive statement that this is a complete universe.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Before reading payload bytes, match the job's expected workspace incarnation, configuration, trust generation and installed grant-set identity against its actual current grants. Retained grants for another root or a previous settings epoch cannot authorize acquisition even if the include directory is shared. A revocation overlapping acquisition must fence publication. If a caller built the request list from an overlay inventory, accept and validate that exact inventory throughout capture; obtaining a newer internal census cannot justify names computed from an older one. Exercise the empty-inventory → unsaved header race and verify wrong-grant requests read no source bytes. Exact path receipts alone cannot populate the all-roots AnalysisInputs.lookup_epoch.
|
||||
Frozen Documents API: file_overlay_inventory(max_entries), observe_bound_source(inventory,file_uri,physical_path), materialize_bound_disk(observation,string), validate_bound_sources(inventory,span) with per-store epoch/readiness checks. Wait for header before direct compilation; independent source acquisition code and tests may start after preflight. Root owns CLI/scheduling, private view/real worker, executable fixtures and build registration. New model/lease/workspace and source acquisition identities are passed by the caller; these separate APIs neither authorize execution nor choose a production compiler.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Apply bounded source count, aggregate source/retained name bytes, path/component depth, per-file bytes and fd count. Avoid holding document locks across IO; fail cleanly on read errors, stale/replaced parent or leaf, nonregular inputs, and unsupported route or incomplete evidence. Do not follow an unreviewed route from scope. Avoid a check-then-open path gap and avoid treating permission denied, symlinks or ENOTDIR as absence. Existing exact compiler or module output doesn't make input read-only on disk.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
Check cross-entry namespace consistency independent of request order. A requested negative file at generated/ and a positive unsaved generated/config.hpp cannot coexist if the former means genuine namespace absence. Two requested positive regular files at an ancestor and its descendant cannot both be materialized. Reject with a typed inconsistency or require a proven existing directory where appropriate. Include a disk leaf with two hard links where only one spelling is requested and its other spelling has an empty overlay. No ambient disk bytes may override the editor's authority.
|
||||
Cases: saved disk vs unsaved edit/empty overlay, missing file overlay and truly negative lookup then create, refused/desynced/ambiguous overlay, disk leaf identical-byte replacement, rename/replacement of a bound root or parent, nested and overlapping admitted roots, same physical multiple names including hardlinks, file/lookup route escaping scope (fail without reading external bytes), wrong scope/census/revocation, quota and FIFO. Include deterministic capture-vs-open/edit race and retained old readers. A caller observing only one named lookup cannot obtain a universal namespace-completeness claim. Test ordinary regular paths and non-ASCII file names under the original logical directory.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/semantic/SourceCatalog.cpp tests/semantic/SourceCatalogTests.cpp after frozen dependency. Private Void::Testing runner allowed. Root wires VBS/CMake and repeats relevant real corpus when data API is stable. State actual case names/counts, exits and conservative limitations.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for necessary API changes outside owned files or unexpected permissions requirement. No network, install, executable derivation or filesystem updates outside private benign temp fixtures. Do not flatten missing/unsupported/incomplete into a usable snapshot.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
User authorized roadmap 03/05/09/13, VBS primary, separate branch, GPT-6.2 Max. Execution/ABI/license remain distinct D-028/030 gates. This is a C++ data/library slice for the real pipeline.
|
||||
|
||||
## 14. Return format
|
||||
T-SOURCE-CATALOG-009 DONE/PARTIAL, exact types and handling of disk, editor overlay, negative lookup and revalidation, tests with actual exits, limits, true authorizations still needed and released write paths. Announce frozen interface early.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Bind editor overlays and directory-authorized disk inputs to one diagnostic view
|
||||
|
||||
Task ID: T-SOURCE-OVERLAYS-009
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared feat/implement-roadmap at ca04975 plus unstaged implementation. T-PLAN-SEMANTICS-010 approved a stock diagnostic path for real Void contexts. The native capture fixture verifies GCC SARIF output and overload edits. DocumentStore::resolve_content(path) checks overlays and detects mid-read replacement, but opens by path on its own. list_overlays only lists readable texts. A future source-catalog owner has directory-bound file handles and needs to use the actual editor authority without opening the ambient path again.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement the document-side capture interface for a private compiler input view. A caller with a bound logical/physical source identity can query overlay/blocked/absent state, materialize already-authorized disk bytes into a budgeted immutable DocumentSnapshot, and enumerate file-overlay membership (including unsaved new headers and refused/desynchronized opens). Verify selected input authority is still current. Keep current public caller behavior.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Document store support only. No compiler, IPC, file grant checker, filesystem staging, directory enumeration or process. The caller retains actual FD/path/lookup evidence and revalidates it separately. The snapshots must work with current AnalysisInputs, same_input_as and UTF encodings.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read include/Void/LanguageServer/Documents/{DocumentStore,DocumentSnapshot,Uri,Position}.hpp; src/Documents/{DocumentStore,DocumentSnapshot,Uri,Position}.cpp; include/Void/LanguageServer/Support/RegularFile.hpp; tests/documents/{DocumentTests,LongLineTests}.cpp; docs/agent-workflow/tasks/T-DOCS-003.md; tests/semantic/DiagnosticTests.cpp. Confirm file-vs-nonfile/unknown-open, byte budget, ABA and discarded-open semantics before implementation.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Documents/DocumentStore.hpp; src/Documents/DocumentStore.cpp; tests/documents/BoundInputTests.cpp
|
||||
No changes to existing tests or Uri, compiler/library/provider implementations, sibling repositories, shared build manifests or Git. Root owns actual disk/catalog implementation and build/test wiring; semantic lease owns only WorkspaceSession. Private build/bound-inputs-009 okay. No further delegation or user communication.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Build on overlay_for_path, existing retained snapshot accounting, negotiated encoding, original client key and actual bound physical path. Freeze exact API early. Support an atomic bounded inventory of FILE overlay bindings with identity, ready snapshot or typed blocker; include refused/known without text. Expose an explicit failure for unbound/unrepresentable file opens/overflow rather than turning them into absence. For an already-bound disk candidate, offer an opaque capture/observation scoped to this store, the exact client/physical binding and its authority generation. An API accepting caller-owned bounded bytes may create a disk snapshot only after an eligible absent-overlay observation. Standalone source input should have zero ambient IO: do not canonicalize/reopen the already-bound file or recompute identity_from_path. Avoid duplicate copies of stored texts; reuse make_snapshot with existing budget and validate UTF8/size. A caller checks overlay state before reading disk; reject a race or return the newly authorized overlay by a documented typed outcome. Source owner separately checks FD/name and whole view before dispatch/publication.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW public API with named types for the file overlay inventory and one bound source observation. Inventory retains lexical URI and physical path so callers can filter the exact approved source roots, detect alias ambiguity, include newly opened unpublished headers, and distinguish an absent binding from a blocked one. DocumentStore may use an opaque capture stamp carrying store identity, negotiated encoding/overlay epoch and selected overlay revision/absence. A validator must reject observations from another store even if allocator addresses are reused. Explicit overlay edit/close/reopen, new alias, desynchronization without a higher version and resource-refused opens invalidate as appropriate. Reads in truly independent documents should remain usable across unrelated text edits; conservative existing membership epoch on open/close/encoding is acceptable. Do not confuse this with proving a filesystem lookup closure or compiler run.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
The captured overlay inventory has its own opaque, store-bound membership/encoding generation captured under the same lock, including when it is empty. All selected observations must belong to that inventory generation and its membership must still be current at validation. Use an observation's current generation, distinct from a retained overlay snapshot's creation epoch. Edits/desync need checks on the selected entries even if membership is unchanged. Test empty census → open unsaved optional.hpp → observe unchanged TU, and obtaining a fresh valid observation of an older overlay after an unrelated file opens. Unrelated text-only edits may leave an existing observation current.
|
||||
Preflight required and existing T-PLAN-SEMANTICS-010 names the need. Independent T-SEMANTIC-LEASE-009 has disjoint ownership. Root will consume the public API in a scoped stock source catalog. The existing program still uses resolve_content and public lifecycle methods. Their longstanding unit and process cases must continue passing. The stock JSON regressions are separate.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Avoid running user callbacks under mutex, unbounded retained paths, repeated text copies or bypass of retained-byte limits via caller-constructed snapshots. Charge disk acquisition promptly and never produce version for a disk snapshot. Bulk inventory must remain bounded with 4096 admitted/4096 blocked configured defaults; return typed saturation for caller-provided lower limit. Avoid using URI string normalization to erase alias/parent traversal. No leaking text through inventory for blocked documents. Fail conservatively for unsupported identity/cross-store stamps; tolerate empty text as a valid overlay/disk input.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
File-only coverage distinguishes a refused known virtual URI from a refused real-file URI when even the marker budget is exhausted. With one admitted file and zero spare marker slots, refusing an untitled document must leave the file census and capture usable. Refusing another file must block file authority until the store can establish complete coverage again. Fail conservatively when the URI cannot be classified. Preserve virtual document lifecycle behavior using the appropriate authority state.
|
||||
Cases cover absent bound regular source, new unsaved overlay, refused and desynced overlay even at quota, visible recovery, two aliases of same physical file, retargeted lexical key, trusted caller disk bytes differing from ambient bytes (no ambient open), cache retention after store destruction, mismatched store, UTF8 and byte/line budgets. Deterministically interleave absent capture → open/change/close → supply old bytes, as well as edit/desync/reopen of a retained overlay. Check a changed unrelated overlay text doesn't invalidate an otherwise unchanged selection, with a distinct membership-change control. Validate library callers still see previous public behavior.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Run dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/voidlibrary/current/include -fsyntax-only src/Documents/DocumentStore.cpp tests/documents/BoundInputTests.cpp, clang-format --dry-run on exact owned paths, private Void::Testing runner or parent-integrated target. Root adds test file to vls_document_tests (VBS and CMake). Report actual listed case names and counts.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop for shared-file ownership conflicts or need to change source trust policy. Capture bytes only from the passed bounded buffer. No auto-discovery, private compiler changes, fake scope completeness or unguarded edits. A compiler or source.catalog grant is outside this document-only layer.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Full roadmap D-022, Linux first, native VBS D-025, 6.2 family Max D-027, stock compiler evaluation D-028. Reversible local changes only, no Git staging or external sends.
|
||||
|
||||
## 14. Return format
|
||||
T-SOURCE-OVERLAYS-009 DONE/PARTIAL with frozen types/methods, invariants, actual verification outcomes, limits, dependency on caller's external input/lookup evidence and released source paths.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Produce compiler-owned call and definition facts with stock GCC 16.2
|
||||
Task ID: T-STOCK-OCCURRENCES-014
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Shared workspace /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap, ca04975 plus uncommitted changes. D-028/030 approve local GCC evaluation. The planner T-PLAN-STOCK-NAVIGATION-014 built a separate observer against the unmodified installed GCC 16.2.0 and compiled the real DocumentSnapshot.cpp under a sealed Linux view. The saved TU selected Void::Hash::fnv1a64 at Hash.hpp:59; changing its argument to a byte span selects line 65, with canonical long unsigned int. Broken/recovery exits 1/0. Both calls have the same physical spelling; terminal information in CALL_EXPR is not a standalone token location.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Implement a local development observer that a verified regular GCC 16.2 cc1plus can load to publish source-bound facts for resolved direct calls in the selected translation unit and actual function definitions in the captured file set. Build/installing the user's compiler is outside scope. Deliver an opt-in development build tool and actual closed-fixture tests. Root owns StockCompiler, profile, server, semantic result binding and LSP; work entirely in the owned three paths.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
C++ direct free/namespace function calls, ASCII identifiers in a conservative source grammar; overloads, declared-only cases, and an explicit incomplete-coverage result. Positive physically verified use and target identity only. Support the actual overload/type edit in Void. Later plugins/features may add class members, completion, templates and reflection. Never hardcode Void symbol names, fixture values or paths. Do not choose a project license or distribute a shared object.
|
||||
|
||||
## 4. Files to inspect
|
||||
Read build/plan-stock-navigation-014/{probe.py,observe.cc,real.py} and private sealed evidence as available, root's tests/corpus/frontend/gcc-queries.cpp and gcc-live.cpp, src/Documents/DocumentSnapshot.cpp, prepared Void/Core/Hash.hpp, compiler-patches/gcc-16.2.0/{0002-ide-occurrences,0003-physical-utf8-origin}.patch, tools/prepare-gcc-profile, src/semantic/StockCompiler.cpp. Verify plugin header callbacks from stock GCC dev shell. The checked-in app does not yet consume this wire.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: experiments/frontend/gcc-observer/Observer.cpp, tools/prepare-gcc-observer, tests/corpus/frontend/verify-stock-observer.py
|
||||
Private artifacts in build/stock-observer-014 only. No compiler source edits, shared worker, profile, VBS/CMake, fixtures already owned, LSP dispatch, docs or Git. No subagents or user contact. Coordinate final wire names and proofs with root. Root owns host decoder and launcher assembly.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Use the actual stock GCC plugin ABI with version checks. Observe function bodies before genericization, selected direct callee identity, canonical and spelled return type; join definitions only to an observed function body in the same invocation. Keep location, line-map and GCC UID inside this process until projecting copied facts. Restrict parsing to files named in the sealed job manifest, read exact immutable stage bytes and prove both physical endpoints. Use CALL_EXPR start/caret/finish, original source and restricted ordinary qualified-id grammar to isolate a unique terminal identifier before '('. Withhold on remap, hidden macro expansion, overlapping/ambiguous facts, missing definition, malformed encoding/columns or quota. A defined-only/overloaded-ambiguous token never supplies a unique definition. Filter or suppress correctly for template specializations/instantiations before committing the unique occurrence. Ignore #line, macro-generated locations and BOM-shifted coordinates unless independently proven. Runtime must not override handlers needed by GCC itself.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
NEW supervised observer mode uses three fixed, program-selected resources in the private worker. Bind verified ELF at /vls-observer/occurrences.so; arguments -fplugin=/vls-observer/occurrences.so with no compiler options forwarded from build metadata. A reads-only config file /vls-observer/inputs contains a schema line VLS-OCCURRENCES-1, nonce on second line (32 lowercase hex), absolute primary file path on third line, and remaining absolute source paths one per line. Require only admitted absolute paths, nonempty lines, max 1024 inputs, length <=4095, no NUL or line breaks. For independent harnesses allow *test runner selected* absolute input/output paths in explicitly named environment VLS_OBSERVER_INPUTS, VLS_OBSERVER_OUTPUT exclusively on the private plugin test leg; normal server supplies only constants inside its sandbox. Use one fresh private report at /vls-observer/report. Default report format UTF-8 strict JSON envelope {schema:1,nonce,complete:true,partial:boolean,occurrences:[{name,type,canonicalType,use:{path,line,startByte,endByte},definition:{path,line,startByte,endByte}}]}. All fields owned, one-based byte/line coordinates, half-open ranges in original captured UTF-8 bytes. Partial means supported individual facts only; complete means normal report finished, not project-wide semantic completeness. Conflicting target/type at any single physical use is unavailable independent of iteration order. Global invalidity (compiler error, remap, quota) yields zero facts and explicit reason/incomplete status. No parser for user C++ types in the host. Use strict escaping even for controls in render strings, or withhold unsupported output. Root must independently verify nonce/fields/path/spelling/ranges/encoding and revalidate revision and scope at delivery. Confirm wire and build command to root early.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Refinement from the completed planner proof. A positively identified unique direct call can carry a compiler-proven type even when no physical defining token is available. Encode `definition: null` in this case. Conflicting invocation-local semantic identities at one use suppress the entire occurrence. Copy the bounded GCC signature into a `signature` string when available for hover, alongside `type` and `canonicalType`. The host will require a proven physical definition before serving a location.
|
||||
Dispatch depends on independent preflight of the current contract.
|
||||
The producer preflight cleared the observation logic and found a mutable repository RUNPATH in the private probe ELF. Build the checked artifact with a scrubbed compiler/linker environment and explicit, verified ABI headers and runtime search directories. Inspect its actual dynamic section before publishing. Reject relative, workspace, empty or unapproved loader search entries, unexpected DT_NEEDED or loader extensions, and any dependency outside the selected immutable GCC runtime closure. Verify required SONAME resolution against approved immutable libraries or already loaded frontend libraries with proven identities. Include the admission inputs in the build result for the server's independent check. Reproduce rejection of the planner's binary with its project RUNPATH, and demonstrate the prepared observer works in the actual sealed runtime. A digest of the observer alone does not establish its dependencies.
|
||||
Stock dev driver, its installed GCC plugin headers (g++ -print-file-name=plugin), same immutable GMP dev include from the selected compiler build environment, export ABI marker required for local experiments. Use a fixed source and absolute selected compiler for building this development observer, no workspace-provided compiler argv/plugins. tools/prepare-gcc-observer --output ABSOLUTE_SO should invoke stock build, validate version, publish atomically, print SHA-256 and matched ABI. Root integrates only an explicit launcher-selected artifact digest into GCC profile. Compile project with its ordinary toolchain and keep diagnostics working with no plugin. The local roadmap expressly defers distribution or project license.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound recursive/tree walk, macros, strings, observations, matching candidates, bytes read, report size and file descriptors. Avoid excessive traversal for stdlib or unrelated bodies. Avoid repeated per-call full source and macro-map scans. No arbitrary output target in production; private test paths never enter project server options. Report resource exhaustion, unknown call expression, overloaded macros/self-name macro after undef, same-token dependent instantiations, qualifier with same terminal name, declaration merging and malformed units. Correct header definitions and typed overloads within the selected immutable file set. Avoid stdout/stderr pollution on a successful observed compile and persistent GCC tree pointers across invocations.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Fresh stock GCC and matching headers build/load the observer. 2. Normal two same-line overloads select distinct witnessed definitions and int/double after edit; include genuine Void data or the planner's original and byte-span checked fixture. 3. Header shifts and recovery are detected; macro/#line/same-name qualifier, declared-only and conflicting template instantiations never create an incorrect occurrence. 4. Verify raw spans against captured bytes, UTF-8 BOM, names containing spaces and both release/malformed/quota behavior. 5. Root can consume a report from an explicitly configured, unmodified compiler using the fixed runtime paths.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Use dev cpp-gcc -c g++ --version, dev cpp-gcc -c tools/prepare-gcc-observer --output "$PWD/build/stock-observer-014/occurrences.so", then dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-observer.py --observer "$PWD/build/stock-observer-014/occurrences.so". Provide the observed command if actual dev-shell dependency discovery needs adaptation. Verify syntax and clang-format only owned files. Never invoke a full GCC rebuild or switch a shared selector. Derive other probes from existing checked stock corpus.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop on unresolvable ABI/provenance or product licensing/distribution decision, return evidence to root. Do not add a compiler dependency for the default build, a process launcher under LSP project authority or fake analysis to fill a gap. An unprovable individual case returns unsupported within scope. Do not modify compiler, user's shell/environment, sibling repositories or any existing relevant files not explicitly owned.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022 full implementation, D-025 native primary, D-027/029 GPT-6.2 Astra at Max, D-028/030 opt-in compiler experiments on this branch. The local header/ABI use and packaging of the release are separate; do not assert a release license.
|
||||
|
||||
## 14. Return format
|
||||
T-STOCK-OCCURRENCES-014 DONE/PARTIAL, paths, exact ABI and proof, wire/build details, tests and outcomes, limitations and release of ownership. Return earliest usable compiled producer and scope of evidence; no subagents.
|
||||
@@ -0,0 +1,67 @@
|
||||
# Implement passive workspace configuration and tool identity checks
|
||||
|
||||
Task ID: T-TRUST-004
|
||||
Role: astra_implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
Repository /home/faumaray/Projects/VoidLanguageServer on feat/implement-roadmap at ca04975. Existing untracked Workspace/Configuration and Trust.hpp are authorized continuation with no other writer. R-007, R-008 and R-021 require separating metadata from execution authority. GCC 16.2 and VoidLibrary main 7d7d23e are available locally.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
Complete a tested passive workspace foundation. Resolve layered settings, bind user-selected executable identities and validate normalized command data. Supply tests for revocation, replacing tool contents and untrusted settings. Future process launch, provider loading and semantic workers will consume the boundary.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Workspace configuration, trust, static classification and focused tests only. This slice never executes a compiler/VBS/tool/plugin/wrapper. Process sandboxing, launching through a mutable pathname, OS process trees, actual build permissions, server schema/wire integration and response-file expansion belong to consumers. Keep unresolved driver behavior explicit.
|
||||
|
||||
## 4. Files to inspect
|
||||
Inspect include/Void/LanguageServer/Workspace/{Configuration,Trust}.hpp and src/Workspace/Configuration.cpp, relevant Protocol/Json.hpp accessors, docs/roadmap/{04-workspace-configuration-trust,05-build-contexts,07-compilation-database,09-semantic-workers}.md and ARCHITECTURE.md. Void::Crypto::Hasher, sha256 and file primitives are in the actual upstream public headers under build/bootstrap/_deps/voidlibrary-src/include/Void. Review T-PLAN-002 and the fresh preflight supplied by root.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: include/Void/LanguageServer/Workspace; src/Workspace; tests/workspace
|
||||
New files include src/Workspace/Trust.cpp and tests/workspace/WorkspaceTests.cpp. Shared checkout. Root owns build wiring, actual stdio/session and docs. No edits to Protocol, Documents or siblings. No branch changes or Git writes.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
Inspect before editing. Reject or diagnose invalid types and limits. Resolve relative settings against their owning layer/base and preserve distinct roots. Accept security grants only from validated user/runtime or CLI sources; plugin execution stays unsupported. Validate root containment by path components, distinguish explicit invocation from persistent trust and fail closed on missing/ambiguous identity. Use a strong digest of the same opened regular executable and revalidate on identity changes. Keep the original approved spelling if a symlink retarget must revoke approval. Revocation and generation checks must avoid races and callback deadlock. Use the planner/preflight decisions for exact operation types and model identity. Classify canonicalized argument vectors passively after bounded expansion by a future provider. Apply a conservative grammar for supported compiler inputs; reject unresolved driver/plugin/wrapper/indirect options as unsupported. Wrapper recognition only strips a data prefix. Emit actionable typed reasons.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
Existing WorkspaceSettings, PartialWorkspaceSettings, MergedConfiguration, ToolIdentity, TrustPolicy and CommandSecurityReport are the starting interfaces. Freeze the exact API with root if planner changes a permission or signature. A returned identity report has no power to launch a process. A launch implementation must later bind the approved executable and a current trust generation at actual dispatch; communicate that invariant. Different roots and levels remain distinct. Use VoidLibrary for JSON/digest, std::expected for explicit failures.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Root integrates the native/CMake targets, then uses the policy in the provider and work queue. Other workers own documents and the protocol wrapper. Your tests should use native VOID_TEST names. Report the exact modules and build defines required (Void::Crypto hashing works without OpenSSL).
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Bound file reads and synchronous work. Handle missing/nonregular files, symlink retargeting, executable-bit changes, tool-content changes with identical length/mtime, untrusted roots and denied repetition. Use benign marker files for a proof of passive behavior. Do not create exploits, execute project-provided code, or inspect workspace secrets. Repository configuration cannot raise resource ceilings or mint execution tokens.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. Layer precedence and authority failures are covered, including malformed fields and two roots with different policies.
|
||||
2. An approved executable's changed bytes/permission/symlink invalidate the decision. Missing SHA-256 or ambiguous paths fail closed.
|
||||
3. Revocation changes generation before callbacks and stale work loses eligibility. Classifier distinguishes trusted command data, inert recognized wrapper spellings and refused execution-bearing options.
|
||||
4. Nonzero C++ tests execute through Void::Testing and leave marker files untouched. State unimplemented launch-time guarantees honestly.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
From repository root: dev cpp-gcc -c g++ -std=c++26 -freflection -Iinclude -Ibuild/bootstrap/_deps/voidlibrary-src/include -fsyntax-only <owned sources>. Link a focused executable under build/workspace-check or use root's integrated target when ready. Verified native seed at build/tools/vbs-6c225-bin/bin/vbs, test runner/archives under build/vbs-framework-probe. Crypto library from committed-seed CMake exists at build/tools/vbs-6c225-bin/_deps/voidlibrary-build/libVoid_Crypto.a for a focused comparison only. Record actual compiler flags, executions and counts. Format owned C++ with dev cpp -c clang-format.
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
Stop before any launch API starts running code or if response-file expansion/model changes cross worker boundaries. Escalate technical disagreements to root. After two failed repairs of the same issue return errors, diff and diagnosis. Never bypass review or permissions.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
D-022, D-024 through D-027. The user authorizes the project feature on this branch and requires GPT-6.2 at Max. This difficult authority boundary is the Astra implementation assignment. No authorization to modify siblings, global settings or remote services.
|
||||
|
||||
## 14. Return format
|
||||
Return T-TRUST-004 DONE/PARTIAL/BLOCKED, exact files and signatures, tests/commands and outcomes, proposed consumer invariants, outstanding questions, and limitations against R-007/021. No children or independent user messages.
|
||||
|
||||
T-PLAN-002 clarification: model distinct operation kinds for metadata refresh,
|
||||
compiler use and a single explicitly requested project build action. Track the
|
||||
approved executable path as spelled, the canonical referent, SHA-256 and a trust
|
||||
generation. Root will read a user configuration only when the launcher explicitly
|
||||
selects it. LSP initialization/configuration input has workspace provenance.
|
||||
Use explicit configuration base paths and a hard ceiling for workspace-provided
|
||||
resource limits. Missing per-operation authority must remain a typed denial.
|
||||
|
||||
Preflight correction: scope each tool pin by workspace AND operation. No global
|
||||
map of approved binaries can be combined with a different root's grants.
|
||||
An explicit build approval is one-use and tied to the complete invocation
|
||||
(root, selected tool, ordered arguments, working directory and relevant input
|
||||
or generation identities). Do not let a metadata grant authorize a compiler.
|
||||
Derive config origin at the reader boundary, retain it in the parsed settings
|
||||
and prevent relabeling the same untrusted data as launcher input in the merge.
|
||||
Reference in new issue
Block a user