Skip to content

feat(boatstack): context-aware capability provisioning + registration [3/3] - #143

Merged
bigboateng merged 2 commits into
mainfrom
boatstack/capability-provisioning
Jul 23, 2026
Merged

feat(boatstack): context-aware capability provisioning + registration [3/3]#143
bigboateng merged 2 commits into
mainfrom
boatstack/capability-provisioning

Conversation

@bigboateng

Copy link
Copy Markdown
Contributor

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 on detectTestCommand): reads package.json / lockfiles / config to report framework, package manager, dev command, and Playwright/Cypress/Storybook presence. Reports none honestly 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.json source and regenerating the full export so both stay in sync — or round-tripping the generated project.json alone when there is no source.
  • Auto-plan now surfaces a material provisioning decision ([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

  • Boatstack ships the contract + guide; the harness is authored in the user's repo.
  • No external-lab imports; config writes go through the atomic-write + Generated/MarshalJSON idiom.

Verification

  • go test ./... green (detection, guide tiers, source/export sync + fallback registration).
  • Python projection suite 18/18 (auto-plan text edit tolerated — substring-based).
  • Release note included.

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.
Base automatically changed from boatstack/capture-evidence-orchestration to main July 23, 2026 19:20
@bigboateng
bigboateng merged commit 5f4dda1 into main Jul 23, 2026
5 of 6 checks passed
@bigboateng
bigboateng deleted the boatstack/capability-provisioning branch July 23, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant