Skip to content

Link all specs to core feature issues + add unit tests and docs#121

Merged
corvid-agent merged 7 commits intomainfrom
test/ai-generator-tests-and-docs
Apr 7, 2026
Merged

Link all specs to core feature issues + add unit tests and docs#121
corvid-agent merged 7 commits intomainfrom
test/ai-generator-tests-and-docs

Conversation

@corvid-agent
Copy link
Copy Markdown
Collaborator

Summary

Spec → Issue Mapping

All 21 specs now link to their core feature issue:

Spec Tracks
ai #19
archive, compact, view #94
cli #120
config, scoring #31
exports #60
generator #73
github #102
hash_cache #90
hooks #39
manifest #55
mcp #30
merge #98
parser #117
registry #52
schema #63
types #118
validator #119
watch #4

Test plan

  • bun run spec:check passes
  • CI green (fmt, tests, spec-check, CodeQL)

🤖 Generated with Claude Code

corvid-agent and others added 7 commits April 6, 2026 22:36
Add 35 unit tests for ai.rs covering safe_truncate, command_for_provider,
ResolvedProvider Display, postprocess_spec, build_prompt, build_regen_prompt,
and resolve_ai_provider.

Add 25 unit tests for generator.rs covering detect_primary_language,
language_template selection, generate_spec, companion file generation,
and find_files_for_module.

Update docs:
- configuration.md: document 11 missing config options (aiProvider, aiModel,
  aiApiKey, aiBaseUrl, exportLevel, modules, rules, taskArchiveDays, github),
  add validation rules and GitHub config sections
- architecture.md: add 9 missing modules to source layout (hash_cache,
  registry, manifest, schema, merge, archive, compact, view, github),
  add php/ruby exporters, update dependency table
- cli.md: expand --provider docs with provider table, update flag description

Closes #110

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Cover all public API: HookTarget enum methods (all, name, description,
from_str with aliases and case insensitivity), is_installed detection for
all 6 targets, install_hook (create, append, idempotent, merge JSON,
Unix permissions), uninstall_hook (remove section, preserve other content,
refuse Claude Code hook removal), and remove_section_from_file (empty
file deletion, marker boundary, section-aware stop at next heading).

Full suite: 283 unit + 80 integration = 363 total tests.

Closes #112

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Adds tracks fields to 7 specs, connecting them to their corresponding
open issues for full traceability dogfooding of spec-sync's own
issue linking feature.

- ai.spec.md → #110 (unit tests)
- hooks.spec.md → #112 (unit tests)
- mcp.spec.md → #113 (unit tests)
- watch.spec.md → #114 (unit tests)
- github.spec.md → #97 (external importers)
- merge.spec.md → #98 (merge conflict handling)
- generator.spec.md → #99 (interactive wizard)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix resolve_ai_provider to check command_for_provider before binary
  availability, so Cursor returns its specific "no CLI pipe mode" error
  instead of a generic "not installed" message
- Apply cargo fmt to all test code in ai.rs, config.rs, and hooks.rs

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Previously, specs were either unlinked or pointed at unit test tickets
(#109-#114). Now every spec tracks the GitHub issue that defines its
core feature. Created 4 new tracking issues for foundational modules
(parser #117, types #118, validator #119, cli #120).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@corvid-agent corvid-agent merged commit bd3559c into main Apr 7, 2026
8 checks passed
@corvid-agent corvid-agent deleted the test/ai-generator-tests-and-docs branch April 7, 2026 14:46
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