|
352 | 352 | Covers: REQ-AGT-007 |
353 | 353 | - **TEST-AGT-004**: `HookRegistry` fires H13 warning when AEE tool called |
354 | 354 | Covers: REQ-AGT-008, REQ-AGT-009 |
| 355 | +- **TEST-AGT-005**: `specsmith run --task` executes single task and returns output |
| 356 | + Covers: REQ-AGT-002 |
| 357 | +- **TEST-AGT-006**: `specsmith run` auto-detects provider from SPECSMITH_PROVIDER env var |
| 358 | + Covers: REQ-AGT-004 |
| 359 | +- **TEST-AGT-007**: All provider extras are optional; no error if not installed |
| 360 | + Covers: REQ-AGT-005 |
| 361 | +- **TEST-AGT-008**: `specsmith agent providers` lists provider status |
| 362 | + Covers: REQ-AGT-010 |
| 363 | + |
| 364 | +### Certainty Engine (additional) |
| 365 | + |
| 366 | +- **TEST-CRT-006**: `CertaintyEngine` threshold is configurable via constructor |
| 367 | + Covers: REQ-CRT-005 |
| 368 | + |
| 369 | +### Trace Vault (additional) |
| 370 | + |
| 371 | +- **TEST-TRC-004**: `CryptoAuditChain` stores entry_hash in ledger-chain.txt |
| 372 | + Covers: REQ-TRC-003 |
| 373 | +- **TEST-TRC-005**: `specsmith trace seal` creates SealRecord in .specsmith/trace.jsonl |
| 374 | + Covers: REQ-TRC-005 |
| 375 | + |
| 376 | +### epistemic Library (additional) |
| 377 | + |
| 378 | +- **TEST-EPI-005**: `epistemic` package has `py.typed` marker file |
| 379 | + Covers: REQ-EPI-007 |
| 380 | + |
| 381 | +### Failure-Mode Graph (additional) |
| 382 | + |
| 383 | +- **TEST-FMG-006**: `FailureModeGraph` builds edges from `BeliefArtifact.inferential_links` |
| 384 | + Covers: REQ-FMG-005 |
| 385 | + |
| 386 | +### Recovery Operator |
| 387 | + |
| 388 | +- **TEST-RCV-001**: `RecoveryOperator.propose()` returns list sorted by severity |
| 389 | + Covers: REQ-RCV-001, REQ-RCV-003 |
| 390 | +- **TEST-RCV-002**: `RecoveryProposal` objects are not auto-applied |
| 391 | + Covers: REQ-RCV-002 |
| 392 | +- **TEST-RCV-003**: `RecoveryOperator` generates proposals for Logic Knots |
| 393 | + Covers: REQ-RCV-004 |
| 394 | +- **TEST-RCV-004**: `format_proposals()` returns human-readable string |
| 395 | + Covers: REQ-RCV-001 |
| 396 | + |
| 397 | +### Auth (#37) |
| 398 | + |
| 399 | +- **TEST-AUTH-001**: `specsmith auth set <platform>` stores token without logging value |
| 400 | + Covers: REQ-AUTH-001, REQ-AUTH-006 |
| 401 | +- **TEST-AUTH-002**: `specsmith auth list` shows masked token, not plaintext |
| 402 | + Covers: REQ-AUTH-002 |
| 403 | +- **TEST-AUTH-003**: `specsmith auth remove <platform>` deletes stored credential |
| 404 | + Covers: REQ-AUTH-003 |
| 405 | +- **TEST-AUTH-004**: `specsmith auth check` reports which platforms have tokens |
| 406 | + Covers: REQ-AUTH-004 |
| 407 | +- **TEST-AUTH-005**: `get_token()` checks env var first, keyring second, file third |
| 408 | + Covers: REQ-AUTH-005 |
| 409 | +- **TEST-AUTH-006**: Token value is never returned in CLI output |
| 410 | + Covers: REQ-AUTH-006 |
| 411 | + |
| 412 | +### Workspace (#17) |
| 413 | + |
| 414 | +- **TEST-WRK-001**: `specsmith workspace init` creates workspace.yml |
| 415 | + Covers: REQ-WRK-001 |
| 416 | +- **TEST-WRK-002**: `specsmith workspace audit` runs audit across all projects |
| 417 | + Covers: REQ-WRK-002 |
| 418 | +- **TEST-WRK-003**: `specsmith workspace export` generates combined report |
| 419 | + Covers: REQ-WRK-003 |
| 420 | +- **TEST-WRK-004**: workspace.yml supports projects list with org-level defaults |
| 421 | + Covers: REQ-WRK-004 |
| 422 | + |
| 423 | +### Watch (#16) |
| 424 | + |
| 425 | +- **TEST-WCH-001**: `specsmith watch` polls project directory and detects drift |
| 426 | + Covers: REQ-WCH-001 |
| 427 | +- **TEST-WCH-002**: watch alerts when LEDGER.md mtime < code file mtime |
| 428 | + Covers: REQ-WCH-002 |
| 429 | +- **TEST-WCH-003**: watch uses polling fallback when watchdog not installed |
| 430 | + Covers: REQ-WCH-003 |
| 431 | + |
| 432 | +### Patent (#10) |
| 433 | + |
| 434 | +- **TEST-PAT-001**: `specsmith patent search` calls USPTO ODP API and returns results |
| 435 | + Covers: REQ-PAT-001 |
| 436 | +- **TEST-PAT-002**: `specsmith patent prior-art` extracts key terms and builds query |
| 437 | + Covers: REQ-PAT-002 |
| 438 | +- **TEST-PAT-003**: Patent commands raise RuntimeError without USPTO_API_KEY |
| 439 | + Covers: REQ-PAT-003 |
| 440 | +- **TEST-PAT-004**: `save_prior_art_report()` writes markdown to prior-art/ directory |
| 441 | + Covers: REQ-PAT-004 |
| 442 | + |
| 443 | +### Auto-Update |
| 444 | + |
| 445 | +- **TEST-AUP-001**: `_maybe_prompt_project_update` checks scaffold.yml spec_version |
| 446 | + Covers: REQ-AUP-001 |
| 447 | +- **TEST-AUP-002**: auto-update prompt offered when spec_version < installed version |
| 448 | + Covers: REQ-AUP-002 |
| 449 | +- **TEST-AUP-003**: SPECSMITH_NO_AUTO_UPDATE=1 suppresses the prompt |
| 450 | + Covers: REQ-AUP-003 |
| 451 | +- **TEST-AUP-004**: auto-update skips meta-commands (update, migrate-project) |
| 452 | + Covers: REQ-AUP-004 |
| 453 | + |
| 454 | +### Credit Hard Cap (#52) |
| 455 | + |
| 456 | +- **TEST-CHC-001**: `CreditBudget.enforcement_mode` field defaults to 'soft' |
| 457 | + Covers: REQ-CHC-001 |
| 458 | +- **TEST-CHC-002**: `specsmith credits check` shows spend vs budget with bar |
| 459 | + Covers: REQ-CHC-002 |
| 460 | +- **TEST-CHC-003**: Hard cap exits with code 2 when monthly cap exceeded |
| 461 | + Covers: REQ-CHC-003 |
| 462 | +- **TEST-CHC-004**: `specsmith credits budget --enforcement hard` sets hard mode |
| 463 | + Covers: REQ-CHC-004 |
| 464 | + |
| 465 | +### Scaffolder Epistemic |
| 466 | + |
| 467 | +- **TEST-SCF-EPI-001**: `specsmith init` with epistemic-pipeline renders epistemic templates |
| 468 | + Covers: REQ-SCF-EPI-001 |
| 469 | +- **TEST-SCF-EPI-002**: `enable_epistemic=true` in scaffold.yml adds epistemic governance |
| 470 | + Covers: REQ-SCF-EPI-002 |
| 471 | +- **TEST-SCF-EPI-003**: epistemic project types get domain-specific directory structures |
| 472 | + Covers: REQ-SCF-EPI-003 |
| 473 | + |
| 474 | +### Architecture Generation |
| 475 | + |
| 476 | +- **TEST-ARC-001**: `specsmith architect` scans modules and language distribution |
| 477 | + Covers: REQ-ARC-001 |
| 478 | +- **TEST-ARC-002**: `specsmith architect` prompts for components in interactive mode |
| 479 | + Covers: REQ-ARC-002 |
| 480 | +- **TEST-ARC-003**: `specsmith architect --non-interactive` generates without prompts |
| 481 | + Covers: REQ-ARC-003 |
| 482 | +- **TEST-ARC-004**: `specsmith audit --fix` generates architecture.md from scan |
| 483 | + Covers: REQ-ARC-004 |
| 484 | + |
| 485 | +### Credits |
| 486 | + |
| 487 | +- **TEST-CRD-001**: `specsmith credits record` stores entry with model/tokens/cost |
| 488 | + Covers: REQ-CRD-001 |
| 489 | +- **TEST-CRD-002**: `specsmith credits summary` shows aggregate by model and provider |
| 490 | + Covers: REQ-CRD-002 |
| 491 | +- **TEST-CRD-003**: `specsmith credits report` generates markdown report |
| 492 | + Covers: REQ-CRD-003 |
| 493 | +- **TEST-CRD-004**: `specsmith credits analyze` detects inefficiency and waste |
| 494 | + Covers: REQ-CRD-004 |
| 495 | +- **TEST-CRD-005**: `specsmith credits budget` configures cap and watermarks |
| 496 | + Covers: REQ-CRD-005 |
| 497 | +- **TEST-CRD-006**: credit tracking auto-initialized on init with unlimited budget |
| 498 | + Covers: REQ-CRD-006 |
| 499 | +- **TEST-CRD-007**: `.specsmith/` is gitignored in generated projects |
| 500 | + Covers: REQ-CRD-007 |
| 501 | +- **TEST-CRD-008**: session-end checklist includes credit summary |
| 502 | + Covers: REQ-CRD-008 |
| 503 | +- **TEST-CRD-009**: Warp and Claude adapters include credit recording instructions |
| 504 | + Covers: REQ-CRD-009 |
| 505 | + |
| 506 | +### Self-Update |
| 507 | + |
| 508 | +- **TEST-SLF-001**: `specsmith self-update` detects stable vs dev channel from version |
| 509 | + Covers: REQ-SLF-001 |
| 510 | +- **TEST-SLF-002**: `specsmith self-update --channel dev` forces dev channel |
| 511 | + Covers: REQ-SLF-002 |
| 512 | +- **TEST-SLF-003**: `specsmith self-update --version X.Y.Z` pins specific version |
| 513 | + Covers: REQ-SLF-003 |
| 514 | + |
| 515 | +### Templates |
| 516 | + |
| 517 | +- **TEST-TPL-005**: .gitattributes template includes type-specific patterns for 33 project types |
| 518 | + Covers: REQ-TPL-005 |
| 519 | +- **TEST-TPL-006**: .gitignore template includes type-specific patterns for 33 project types |
| 520 | + Covers: REQ-TPL-006 |
| 521 | +- **TEST-TPL-007**: .editorconfig template includes type-specific indent/EOL settings |
| 522 | + Covers: REQ-TPL-007 |
| 523 | +- **TEST-TPL-008**: Yocto language detection includes .bbclass, .inc, .dts, .dtsi |
| 524 | + Covers: REQ-TPL-008 |
| 525 | + |
| 526 | +### Migration |
| 527 | + |
| 528 | +- **TEST-UPD-009**: `specsmith update --yes` installs without confirmation |
| 529 | + Covers: REQ-UPD-002 |
| 530 | +- **TEST-UPD-010**: `specsmith update` triggers migrate-project after successful update |
| 531 | + Covers: REQ-UPD-003 |
| 532 | +- **TEST-UPD-011**: `specsmith migrate-project` preserves existing REQs and ledger entries |
| 533 | + Covers: REQ-UPD-006 |
| 534 | + |
| 535 | +### Workflow Logic (additional) |
| 536 | + |
| 537 | +- **TEST-WFL-009**: `specsmith update --check` runs at session start and proposes update |
| 538 | + Covers: REQ-WFL-007 |
| 539 | +- **TEST-WFL-010**: `specsmith session-end` reports unpushed commits and dirty files |
| 540 | + Covers: REQ-WFL-008 |
0 commit comments