| name | intent-engine-maintainer |
| description | Use when extending, reviewing, or debugging the shared intent engine in this repository, especially when working on learned patterns, unrecognized phrase capture, auto-promotion, rollback, team intent reports, or shared intent-core and intent-store behavior. |
Intent Engine Maintainer
์ด ์คํฌ์ ์ด ์ ์ฅ์์์ intent-core, intent-store, ์๋ํ์ต, ๋ฏธ์ธ์ ๋ช
๋ น, promotion, rollback, team intent report๋ฅผ ๋ค๋ฃฐ ๋ ์ฌ์ฉํ๋ค.
๋จผ์ ๋ณผ ํ์ผ
packages/core/INTENT_ENGINE_PLAN.md
packages/core/lib/intent-core.js
packages/core/lib/intent-store.js
bots/orchestrator/lib/intent-parser.js
bots/orchestrator/src/router.js
์ ์ฉ ๋์:
- Claude:
bots/claude/src/claude-commander.js
- Luna:
bots/investment/luna-commander.cjs
- Ska:
bots/reservation/src/ska.ts
๊ธฐ๋ณธ ์์น
- intent ์ ์ฑ
๊ณผ storage๋ app ์์ ๋ค์ ๋ง๋ค์ง ๋ง๊ณ core/store๋ฅผ ์ฐ์ ์ด๋ค.
- slash/keyword/handler switchboard๋ ์ฑ ์ฑ
์์ผ๋ก ๋จ๊ฒจ๋๋ค.
- learned pattern, unknown capture, candidate/event persistence, report framing์ ๊ณต์ฉ ๊ณ์ธต์ ์ฌ์ฌ์ฉํ๋ค.
- ์คํํ intent๋ ์๋๋ฐ์๋ณด๋ค ์์ ์ ์ฑ
์ ์ฐ์ ํ๋ค.
์์
์ ์ฐจ
1. ์ intent learning ๊ฒฝ๋ก ์ถ๊ฐ
- ๊ธฐ์กด ์ฑ์ด ์ด๋ค schema๋ฅผ ์ฐ๋์ง ํ์ธํ๋ค.
ensureIntentTables()๋ก bootstrap์ด ๋์ด ์๋์ง ๋ณธ๋ค.
- unknown phrase๋ normalize ํ ์ ์ฅํ๋ค.
- candidate/event๋ ๊ณต์ฉ store helper๋ก ์ ์ฌํ๋ค.
- auto-promotion์
evaluateAutoPromoteDecision() ๊ธฐ์ค์ผ๋ก๋ง ํ์ ํ๋ค.
2. ๋ณด๊ณ /์ด์ ๊ฒฝ๋ก ์์
/unrec
/promotions
/promotions summary
/promotions events
- ํ๋ณ
/luna-intents, /ska-intents, /claude-intents
์ด๋ฐ ๋ฆฌํฌํธ๋ ๋ฐ๊นฅ ํ๋ ์๊ณผ ์น์
์ ๋จผ์ intent-core์์ ์ฐพ๊ณ , router์์ ๋ฌธ์์ด์ ์๋ก ๋ง๋ค์ง ์๋๋ค.
3. ๋กค๋ฐฑ/์์
- learned pattern ํ์ผ์ ์ง์ ์กฐ์ํ๊ธฐ ์ ์
intent-store์ rollback/update helper๋ฅผ ์ฐ์ ์ด๋ค.
- ํ๋ณ report/rollback ๋ฉํ๋
getTeamIntentMeta() ๊ธฐ์ค์ผ๋ก ๋ง์ถ๋ค.
๊ฒ์ฆ ๊ธฐ๋ณธ ์ธํธ
- ๊ด๋ จ JS ์์ ํ:
node --check <file>
- orchestrator routing ํ์ธ:
/unrec
/unrec summary
/promotions pending
/promotions summary
/promotions events
/reporting-health๊ฐ ์๋๋ผ intent health๋ /intent-health
- ํ๋ณ:
/luna-intents
/ska-intents
/claude-intents
ํํ ํจ์
- schema ์ด๋ฆ๊ณผ ํ ์ด๋ฆ์ ์์ง ์๋๋ค.
- learned pattern ํ์ผ ๊ฒฝ๋ก๋ฅผ ์ฑ์์ ๋ค์ ๊ณ์ฐํ์ง ์๋๋ค.
- ์๋๋ฐ์ ๊ธฐ์ค์ ์ฑ ๋ก์ปฌ ์์๋ก ์ค๋ณต ์ ์ธํ์ง ์๋๋ค.
- ์คํํ intent๋ฅผ query/status intent์ฒ๋ผ ์๋๋ฐ์ํ์ง ์๋๋ค.
๋ง๋ฌด๋ฆฌ ์ฒดํฌ
- core/store helper๋ฅผ ์ฐ์ ์ผ๋๊ฐ
- app ๋ ์ด์ด๋ routing/orchestration ์ค์ฌ์ผ๋ก ๋จ์๋๊ฐ
- team meta์ threshold profile์ด ํ ๊ณณ์์ ๊ด๋ฆฌ๋๋๊ฐ
- report/rollback ๊ฒฝ๋ก๊ฐ ํ๋ณ๋ก ์ด๊ธ๋์ง ์๋๊ฐ