Skip to content

core: implement deterministic prompt assembly (T1.1) - #4

Merged
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/t1.1-prompt-assembly
Jun 28, 2026
Merged

core: implement deterministic prompt assembly (T1.1)#4
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/t1.1-prompt-assembly

Conversation

@alejandro-nexcade

Copy link
Copy Markdown
Collaborator

Summary

  • Implements prompt.rs with rework prompt assembly per SPEC.md §9
  • Fixed section order: Intent → Approved Plan → Current Artifact → Comments with anchors → Scope Guard
  • SHA-256 hashing for dedup/audit; three golden files lock down exact output

Test plan

  • 9 tests: three golden-file tests (diff-gate, plan-gate, no-comments), hash determinism, hash content-sensitivity, anchor rendering for all variants
  • cargo fmt, cargo clippy -- -D warnings, cargo test --all green

🤖 Generated with Claude Code

@LifeLex
LifeLex force-pushed the alejandro/t1.1-prompt-assembly branch from 9ffc9f0 to 10eeaec Compare June 28, 2026 11:20
@alejandro-nexcade
alejandro-nexcade changed the base branch from alejandro/t0.2-domain-model to main June 28, 2026 11:20
Add prompt.rs with rework prompt assembly per SPEC.md §9. Sections
appear in fixed order: intent, approved plan (diff gate only), current
artifact, anchored comments, scope guard with test-weakening clause.
Prompts are hashed with SHA-256 for dedup/audit. Three golden-file
tests lock down exact output for diff-gate, plan-gate, and
no-comments cases. Nine new tests total.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@LifeLex
LifeLex force-pushed the alejandro/t1.1-prompt-assembly branch from 10eeaec to fc47baa Compare June 28, 2026 11:23
@alejandro-nexcade
alejandro-nexcade merged commit be27bc4 into main Jun 28, 2026
1 check 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.

2 participants