no-mistakes(review): Fix doc-only onboarding route

This commit is contained in:
Jeremy McSpadden
2026-07-03 10:05:50 -05:00
committed by Codesmith
parent 66ff521c71
commit b006b1a23e
2 changed files with 6 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ Exit.
If the user skips mapping, continue with a warning.
If `is_brownfield` is false and `planning_exists` is false, print:
If `is_brownfield` is false and `planning_exists` is false and `has_docs_candidates` is false, print:
```text
No existing code was detected. For a greenfield project, run:

View File

@@ -229,6 +229,11 @@ describe('/gsd:onboard command contract', () => {
/If `has_docs_candidates` is true and `project_exists` is false:/,
'workflow must offer docs ingest before project setup even when codebase mapping already created .planning',
);
assert.match(
content,
/If `is_brownfield` is false and `planning_exists` is false and `has_docs_candidates` is false, print:/,
'workflow must not send doc-only repos to new-project before the docs ingest gate',
);
assert.ok(content.includes('new-project'), 'workflow must route to new-project');
assert.ok(content.includes('.planning/onboarding/SUMMARY.md'), 'workflow must create onboarding summary');
assert.match(content, /overwrite|idempotent|do not overwrite/i, 'workflow must protect existing planning');