3.2 KiB
06 — Native VBS tooling export and consumer
Status: PLANNED; no implementation claim Requirements: R-008,R-012,R-021,R-023 Dependencies: 04,05; live acceptance additionally requires separately owned VBS graph/toolchain/editor/module producer work.
Ownership and boundaries
Proposed Sol consumer: NEW src/build/vbs/, include/vls/build/vbs/, tests/build/vbs/. Root owns shared export contract; VBS producer is a separate upstream task. 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
NEW immutable tooling manifest and atomically published selection reference. Required sections: protocol/capabilities; workspace/build/profile/target/context identities; semantic command and environment; editable/snapshot/generated mappings; module/prerequisite graph; freshness/readiness; artifact lifetime. Configure a manifest locator explicitly until producer discovery is agreed.
Implementation sequence
- Freeze the contract jointly with VBS's documented GraphGeneration/EditorGeneration/SelectionTicket semantics, distinguishing existing declarations from proposed resolved records.
- Build the consumer against valid/invalid fixtures, including source-command alternatives, host-description contexts and retained generated artifacts. Do not parse vbs_describe as a native provider.
- Observe publication hints, reread complete manifests and reconcile on overflow/restart. Retain generation/artifact references during analysis and define producer retention before eviction.
- Connect an explicitly trusted metadata-refresh operation only after upstream availability. Keep generator/package/fetch/lock changes outside automatic refresh. Add live Library/VBS acceptance once producer exists.
Failure behavior and constraints
Unsupported major/required capability, broken selection reference, missing retained artifacts or incomplete projections produce explicit status. A last-valid export remains labeled stale. Watchers cannot steal editor selection; late generations cannot override newer selection tickets.
Acceptance scenarios
- Test truncated publication, incompatible schema, dangling generations, restart and artifacts retained while an old consumer is active.
- Switch profiles with reverse completion, refresh an unselected profile and preserve all configured target alternatives.
- Prove passive reads run nothing; missing generated headers/BMIs remain unready; perform eventual live producer/consumer tests before claiming native support.
Verification and integration
Proposed NEW CTest label: vbs-provider. Once implemented, register a nonzero suite and run:
dev cpp-gcc -c ctest --test-dir build/bootstrap -L vbs-provider --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. Keep prior complete manifests and selection provenance. Disable the consumer without deleting VBS-owned state; cross-repo producer changes require their own review and rollback contract.