Skip to content

feat: implement strict spec maintenance with specs.refresh RPC (closes #620)#623

Merged
alexhraber merged 1 commit into
masterfrom
agent/unknown/feat-01ksp46aznzmzdtp
May 28, 2026
Merged

feat: implement strict spec maintenance with specs.refresh RPC (closes #620)#623
alexhraber merged 1 commit into
masterfrom
agent/unknown/feat-01ksp46aznzmzdtp

Conversation

@alexhraber
Copy link
Copy Markdown
Contributor

Summary

Implements Issue #620 - Researching Spec Management

Changes

  1. src/core/project_specs.rs - Added function that:

    • Recalculates content hashes for all spec files
    • Updates
    • Updates timestamp
    • Writes the refreshed manifest back to disk
  2. src/core/rpc.rs - Added:

    • and types
    • capability registration
  3. src/core/validate.rs - Modified :

    • NEW: Fails with if spec content hash doesn't match manifest
    • CHANGED: Changed stale fingerprint from to with
  4. src/lib.rs - Added:

    • RPC handler
    • operation dispatch

Verification

The issue mentions these tests:

  • Fingerprint Failure: Modify a codebase file and verify decapod validate fails
  • Content Hash Failure: Modify a spec file and verify decapod validate fails
  • Refresh Success: Run and verify decapod validate passes again

See Issue #620 for full details.

@alexhraber alexhraber force-pushed the agent/unknown/feat-01ksp46aznzmzdtp branch from e615e44 to ccce469 Compare May 28, 2026 02:09
@alexhraber alexhraber merged commit dbfa29a into master May 28, 2026
20 checks passed
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