Skip to content

feat(kernel): three-tier ack detection for verbose GPT narration (#1349)#1353

Merged
crrow merged 1 commit intomainfrom
issue-1349-three-tier-ack
Apr 13, 2026
Merged

feat(kernel): three-tier ack detection for verbose GPT narration (#1349)#1353
crrow merged 1 commit intomainfrom
issue-1349-three-tier-ack

Conversation

@crrow
Copy link
Copy Markdown
Collaborator

@crrow crrow commented Apr 13, 2026

Summary

GPT models produce 3000+ char architectural analyses without calling tools, evading the 2000-char ack detector limit. Adds two new detection tiers inspired by Triggerfish's quality classifier:

  • Tier 2 (TrailingIntent): checks last 600 chars of 2000–8000 char responses for lazy patterns. Catches GPT's verbose analyses that end with "if you want, I can..." offers.
  • Tier 3 (DenseNarration): detects 5+ intent phrases in a single response = planning essay.
  • AckKind enum with differentiated nudge messages per tier.
  • 5 new Chinese conditional-offering patterns ("如果你要", "如果你愿意", etc.)
  • 12 new tests (42 total, all passing).

Open-source survey: hermes-agent, aider, Mullet, Triggerfish, Batty, OpenHands, Infinidev — Triggerfish's trailing-intent + dense-narration approach was the best fit.

Type of change

Type Label
New feature enhancement

Component

core

Closes

Closes #1349

Test plan

  • cargo check -p rara-kernel passes
  • cargo test -p rara-kernel -- ack_detector — 42 tests pass
  • Pre-commit hooks pass (fmt, clippy, check, doc)

GPT models produce 3000+ char architectural analyses without calling
tools, evading the 2000-char ack detector limit. Add two new detection
tiers inspired by Triggerfish's quality classifier:

- Tier 2 (TrailingIntent): check last 600 chars of long responses
- Tier 3 (DenseNarration): detect 5+ intent phrases = planning essay
- AckKind enum with differentiated nudge messages per tier
- 5 new Chinese conditional-offering patterns
- 12 new tests (42 total)

Closes #1349
@crrow crrow added enhancement New feature or request core Core system changes labels Apr 13, 2026
@crrow crrow merged commit 835135c into main Apr 13, 2026
9 of 11 checks passed
@crrow crrow deleted the issue-1349-three-tier-ack branch April 13, 2026 15:40
@github-actions github-actions bot mentioned this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core system changes enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

feat(kernel): three-tier ack detection for verbose GPT narration

1 participant