| name | health-engine-operator |
| description | Use when creating, extending, reviewing, or debugging team health reports in this repository, especially when a team should use the shared health engine, expose --json health scripts, integrate with unified ops health, or align launchd, HTTP, file, and DB checks. |
Health Engine Operator
์ด ์คํฌ์ ์ด ์ ์ฅ์์์ health-report, ops-health, launchd ์ํ, HTTP ๊ฒฝ๋ก, ํ์ผ stale, DB backlog, ํตํฉ ์ด์ ํฌ์ค๋ฅผ ๋ค๋ฃฐ ๋ ์ฌ์ฉํ๋ค.
๋จผ์ ๋ณผ ํ์ผ
packages/core/HEALTH_ENGINE_PLAN.md
packages/core/lib/health-core.js
packages/core/lib/health-provider.js
packages/core/lib/health-db.js
packages/core/lib/health-runner.js
ํฌ์ค consumer:
bots/orchestrator/scripts/health-report.js
bots/orchestrator/src/router.js
bots/orchestrator/lib/night-handler.js
ํ๋ณ adapter ์์:
bots/investment/scripts/health-report.js
bots/claude/scripts/health-report.js
dist/ts-runtime/bots/reservation/scripts/health-report.js
bots/blog/scripts/health-report.js
๊ธฐ๋ณธ ์์น
- ์ health ์ฒดํฌ๋ ํ ๋ก์ปฌ ํ๋ ์์ํฌ๋ฅผ ๋ง๋ค์ง ๋ง๊ณ ๊ณต์ฉ health engine์ ์ฐ์ ์ฌ์ฉํ๋ค.
- ํ ์คํฌ๋ฆฝํธ๋ thin adapter๋ฅผ ๋ชฉํ๋ก ํ๋ค.
- ๊ณต์ฉ ๊ณ์ธต์ด ๋งก๋ ๊ฒ:
- ํฌ๋งท
- decision
- section builder
- launchd provider
- HTTP/JSON/file stale helper
- DB backlog helper
- CLI
--json runner
- ํ๋ณ script๋ ์๋๋ง ๋จ๊ธด๋ค.
- ์ด๋ค ์๋น์ค๊ฐ ์ค์ํ์ง
- ์ด๋ค ์๊ณ์น๊ฐ ์ค์ํ์ง
- ํ ๊ณ ์ business metric
์ ํ ๋ถ์ด๋ ์ ์ฐจ
<team>/scripts/health-report.js๋ฅผ ๋ง๋ ๋ค.
runHealthCli()๋ก --json ๊ฒฝ๋ก๋ฅผ ์ฐ๋ค.
- launchd, HTTP, file, DB ํญ๋ชฉ์ ๊ณต์ฉ provider/helper๋ฅผ ๋จผ์ ์ฌ์ฉํ๋ค.
- ํ ๊ณ ์ metric๋ง ๋ก์ปฌ ํจ์๋ก ๋จ๊ธด๋ค.
- ์ค์ผ์คํธ๋ ์ดํฐ router์ direct route๋ฅผ ๋ถ์ธ๋ค.
/ops-health ํตํฉ ์ง๊ณ์ ์ถ๊ฐํ๋ค.
false warning ์ค์ด๋ ๊ธฐ์ค
- ์ค์ผ์คํ launchd ์์
์ ํญ์ running์ผ๋ก ๋ณด์ง ์๋๋ค.
healthz ok์ webhook registered๋ ๋ถ๋ฆฌํด์ ๋ณธ๋ค.
- stale log๋ ์ค๋๋ backup ํ์ผ์ ํ์ฌ ์ฅ์ ๋ก ์ค์ธํ์ง ์๋๋ค.
- team health ํ๋จ์ ํต์ฌ ์๋น์ค์ ๋ฐฐ์นํ ์์
์ ๊ตฌ๋ถํ๋ค.
๊ฒ์ฆ ๊ธฐ๋ณธ ์ธํธ
node --check bots/<team>/scripts/health-report.js
node bots/<team>/scripts/health-report.js --json
- ์ค์ผ์คํธ๋ ์ดํฐ ์๋น ๊ฒฝ๋ก ํ์ธ:
node bots/orchestrator/scripts/health-report.js --json
/ops-health
/ops-health summary
/ops-health alerts
์์ฃผ ๋ณด๋ ์ง์
launchd drift
health-provider.js์ service row builder๋ฅผ ์ฐ์ ์ฌ์ฉํ๋ค.
- ์ค์ผ์คํ ์์
๊ณผ ์์ ์๋น์ค์ ๊ธฐ์ค์ ์์ง ์๋๋ค.
n8n ๊ด๋ จ health
- webhook ๊ฒฝ๋ก๋ resolved live URL ๊ธฐ์ค์ผ๋ก ๋ณธ๋ค.
- check script์ team health report๊ฐ ๊ฐ์ helper๋ฅผ ์ฐ๋์ง ํ์ธํ๋ค.
reporting / backlog signal
- reporting payload ๊ฒฝ๊ณ , pending command, promotion backlog ๊ฐ์ ์ด์ ํ์ง ์ ํธ๋ ๊ณต์ฉ DB/helper๋ฅผ ์ฐ์ ์ฌ์ฉํ๋ค.
๋ง๋ฌด๋ฆฌ ์ฒดํฌ
- team health script๊ฐ thin adapter ํํ์ธ๊ฐ
--json output์ด ์์ ์ ์ธ๊ฐ
/ops-health์ ์์นจ ๋ธ๋ฆฌํ์ ์์ฐ์ค๋ฝ๊ฒ ๋ฐ์๋๋๊ฐ
- false positive๋ฅผ ๋ง๋ค ๋งํ ๊ธฐ์ค์ด ์๋๊ฐ