Files
Language-Server/docs/roadmap/08-frontend-feasibility.md
faumaray ca04975d54 bootstrap
Signed-off-by: faumaray <faumaray@gmail.com>
2026-11-25 02:11:19 +03:00

38 lines
3.3 KiB
Markdown

# 08 — Semantic frontend feasibility, toolchain and license gate
Status: PLANNED; no implementation claim
Requirements: R-010,R-012,R-013,R-016,R-026
Dependencies: Corpus definition from24 and actual build contexts from05/07 or equivalent captured fixtures; initial shell is independent.
## Ownership and boundaries
Proposed Astra compiler experiment; researcher verifies primary-source/version evidence; root owns candidate pins/decision. NEW experiments/frontend/ and tests/corpus/frontend/, no silent sibling/compiler edits.
Future assignments must verify the then-current baseline and exact disjoint paths;
these proposed scopes do not authorize work in another repository.
## Contracts and data flow
Candidate Clang/P2996 revision562409c7942690d59ea470762515f88f24b16e23; GCC16.2 is the reference. Match actual GCC/libstdc++ source/flags, not just reflection examples using substituted libc++. Gate1 covers parsing, invalid-edit recovery and core IDE queries; Gate2 in17 separately covers debug feasibility.
## Implementation sequence
1. Capture reproducible representative VoidLibrary/VBS contexts and standalone fixtures for reflection, constexpr-range expansion, templates, modules and standard-library use. Record toolchain/header identities.
2. Build the exact candidate in an isolated explicit experiment directory under a scoped future task. Record LLVM/libstdc++/libc++ requirements and cost; do not add it to the bootstrap build.
3. Run the real enum helper and wider corpus without hiding unsupported features, swapping the standard library silently or editing project code to obtain a pass. Compare semantic expectations against GCC.
4. Exercise broken ^^/splices/templates, unsaved imports, completion/hover/navigation/references and editable origins. Report feature/version matrix, latency/memory, maintenance burden and dependency license facts.
## Failure behavior and constraints
The pinned documentation explicitly excludes constexpr-range expansion used by VoidLibrary; treat that as likely failure requiring proof, not a small assumed workaround. Missing required semantics rejects this sole-engine candidate. Compiler repairs, GCC integration or mixed backends require a new explicit decision and task scope.
## Acceptance scenarios
1. Compile/analyze exact source fixtures with reference GCC and candidate, retaining diagnostic/AST/query evidence and unsupported-feature classification.
2. Verify meaningful IDE queries and recovery on malformed edits rather than equate successful compilation with tooling readiness.
3. Reproduce crashes/resource limits; document untested proposals and reject silent semantic/library substitutions.
## Verification and integration
Proposed NEW CTest label: `frontend-gate`. Once implemented, register a nonzero suite and run:
```sh
dev cpp-gcc -c ctest --test-dir build/bootstrap -L frontend-gate --output-on-failure
```
This future command is not evidence that the label/tests exist now. Before dispatch,
bind the fixtures above to actual targets and record prerequisites/side effects.
Require fresh independent review of the implemented contract and affected integrations.
No production frontend pin changes until gate review. Keep candidate artifacts/provenance for diagnosis without linking them into the shell; retain backend-neutral interfaces and an explicit failed-gate decision.