|
Some checks are pending
CI / lint-and-test (push) Waiting to run
* feat(kb): apply-worker to auto-land approved proposals (stage 2 automation) Event-driven worker that turns a HUMAN-approved kb_stage proposal into canonical state, so an approval in Telegram surfaces in Leo's identity without Leo applying its own work. - Fires only on status='approved' (never pending_review) -> proposer != applier holds; the human approval stays the trigger. No auto-approve anywhere. - Reuses scripts/apply_proposal.py verbatim as the sole apply path (same txn, rowcount=1 guard, FK stamp). Connects as the narrow kb_apply role, never superuser, never inside the hermes harness. - Render hook (--render-cmd / KB_APPLY_RENDER_CMD) is inert until the SOUL renderer (PR2) is deployed; applying still works, rendered SOUL just lags. - Ships INERT: report-only unless --enable / KB_APPLY_WORKER_ENABLED=1. systemd oneshot service + 5min timer, both shipped disabled. - 10 unit tests; candidate query validated read-only vs prod (0 applyable today). * fix(kb): apply-worker --max-per-tick cap + poison-pill retry ceiling Fixer draft-exit items: - --max-per-tick=1 (default): an enabled worker lands applies one-at-a-time and observably instead of draining the whole approved queue in one tick. - --max-attempts=3 ceiling with a persisted failure-count state file: a deterministically-failing approved proposal is treated as a poison pill and skipped after N consecutive failures, instead of retrying every tick forever. State persists on disk because the worker runs oneshot per timer tick. Both are inert until the worker is enabled; it still ships disabled. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_activity_classify.py | ||
| test_agent_graph_schema_sql.py | ||
| test_agent_routing.py | ||
| test_apply_proposal.py | ||
| test_apply_worker.py | ||
| test_attribution.py | ||
| test_contributor.py | ||
| test_decision_engine_replay.py | ||
| test_enrichment_dedup.py | ||
| test_entity_queue.py | ||
| test_eval_actions.py | ||
| test_eval_parse.py | ||
| test_eval_pipeline.py | ||
| test_evaluate_agent_routing.py | ||
| test_extraction_prompt.py | ||
| test_feedback.py | ||
| test_install_telegram_agent_token.py | ||
| test_install_telegram_smart_research_gates.py | ||
| test_leaderboard.py | ||
| test_merge.py | ||
| test_phase1b_end_to_end.py | ||
| test_post_extract.py | ||
| test_pr_state.py | ||
| test_research_backfill_idempotent.py | ||
| test_research_eval_schema_sql.py | ||
| test_reweave.py | ||
| test_reweave_merge.py | ||
| test_search.py | ||
| test_telegram_leo_wallet_test_runtime.py | ||
| test_telegram_leo_x402_bridge.py | ||
| test_teleo_agent_healthcheck.py | ||
| test_teleo_agent_systemd.py | ||
| test_tg_batching.py | ||
| test_x_content_pipeline.py | ||