Skip to content

feat: lightweight cross-session action tag context for curator#385

Merged
BYK merged 1 commit into
mainfrom
feat-tag-context
May 19, 2026
Merged

feat: lightweight cross-session action tag context for curator#385
BYK merged 1 commit into
mainfrom
feat-tag-context

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 19, 2026

Summary

Adds compact cross-session behavioral pattern context to the curator prompt via action tag counting. No LLM calls, no recall queries — just a DB scan of distillation observations.

How it works

buildActionTagContext() scans all distillation observations for action tags ([requested-tests], [corrected-style], etc.), counts distinct sessions per tag, and appends a compact summary when tags appear in 2+ sessions:

Cross-session behavioral patterns detected:
- [requested-tests] appeared in 4 prior sessions
- [corrected-style] appeared in 3 prior sessions

This gives the curator direct evidence of repeated user behaviors without the noise of full recall results (which caused regression in a previous attempt).

Eval Results

PR-2 (implicit preferences): 4.63 — matches best previous score, no regression.

Why this works where full recall didn't

The previous recall-augmented curation attempt (broad queries → full recall results → curator prompt) dropped PR-2 from 4.63 to 3.82. The recall results were too long and noisy, overwhelming the curator. This approach provides the same cross-session signal in 2-3 lines instead of pages of context.

Files Changed

  • packages/core/src/curator.tsbuildActionTagContext() + wiring

Add buildActionTagContext() to curator — scans distillation observations
for action tags across the project and passes a compact summary to the
curator prompt. This gives the curator direct visibility into cross-session
behavioral patterns without the noise of full recall results.

Example context appended to curator prompt:
  Cross-session behavioral patterns detected:
  - [requested-tests] appeared in 4 prior sessions
  - [corrected-style] appeared in 3 prior sessions

PR-2 eval: 4.63 (matches best previous score, no regression)
@BYK BYK self-assigned this May 19, 2026
@BYK BYK merged commit e39c989 into main May 19, 2026
10 checks passed
@BYK BYK deleted the feat-tag-context branch May 19, 2026 09:22
This was referenced May 21, 2026
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