Skip to content

feat: inject entity context into interpretWriteTurn pipeline#76

Merged
MaxLinCode merged 7 commits into
mainfrom
claude/entity-ctx
Apr 5, 2026
Merged

feat: inject entity context into interpretWriteTurn pipeline#76
MaxLinCode merged 7 commits into
mainfrom
claude/entity-ctx

Conversation

@MaxLinCode

Copy link
Copy Markdown
Owner

Summary

  • Build slim entity projections (buildEntityContext) and render them as semi-structured text (renderEntityContext) for the LLM prompt
  • Inject entityContext into the interpretWriteTurn pipeline so the LLM sees resolved entities when interpreting write turns
  • LLM-resolved targetRef now takes priority over discourse-state entity lookup, improving entity resolution accuracy

Test Plan

  • Unit tests for buildEntityContext and renderEntityContext
  • Wrapper tests confirming entityContext is forwarded through interpretWriteTurn
  • All 150 existing tests pass
  • Typecheck clean across all packages

🤖 Generated with Claude Code

MaxLinCode and others added 7 commits April 2, 2026 21:54
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ding

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ty lookup

When the write interpreter resolves an entity via targetRef (e.g. by
matching a task name), that entityId now overrides the discourse-state
focus entity. Falls back to resolveWriteTarget when the interpreter
does not resolve an entity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
atlas-web Ignored Ignored Preview Apr 3, 2026 7:25pm

@MaxLinCode MaxLinCode left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@MaxLinCode MaxLinCode merged commit 9ede728 into main Apr 5, 2026
2 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