feat(boatstack): context-aware capability provisioning + registration [3/3] - #143
Merged
Conversation
Slice 3 of the evidence-capability substrate. When a repository cannot yet produce a capability's evidence, Boatstack now detects the frontend stack and returns a context-aware provision guide (available | provision | unsupported) carrying the framework-agnostic capture contract plus stack-tailored steps. capability-register records the repository-owned command, keeping the canonical .boatstack-project.json source and generated export in sync (or round-tripping the generated config alone). Auto-plan surfaces a tiered provisioning decision when a scenario is relevant but no command resolves. Boatstack ships the contract and guide, never the harness itself.
…k/capability-provisioning
Base automatically changed from
boatstack/capture-evidence-orchestration
to
main
July 23, 2026 19:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 3 of 3 — Context-aware capability provisioning + registration
Stacked on Slice 2 (
boatstack/capture-evidence-orchestration). Review/merge Slices 1 and 2 first.Closes the loop for repositories that cannot yet produce a capability's evidence: instead of silently leaving a gap, Boatstack detects the stack and guides setup — without ever imposing a framework.
What changes
detectFrontendStack(modeled ondetectTestCommand): reads package.json / lockfiles / config to report framework, package manager, dev command, and Playwright/Cypress/Storybook presence. Reportsnonehonestly for backend-only repos.provision-capability: returns a tiered guide —available(command already resolves) /provision(stack-tailored steps + the capture contract) /unsupported(no frontend; never forced).capability-register: records the repository-owned command, mutating the canonical.boatstack-project.jsonsource and regenerating the full export so both stay in sync — or round-tripping the generatedproject.jsonalone when there is no source.[1a]provision now as its own slice /[1b]bundle the harness into the feature slice /[1c]record the gap and defer) when a scenario is relevant but no command resolves. A surfaced choice, never an imposed step.Constraints held
Verification
go test ./...green (detection, guide tiers, source/export sync + fallback registration).18/18(auto-plan text edit tolerated — substring-based).