docs(10-01): complete KB ingestion pipeline plan

This commit is contained in:
2026-03-26 09:11:56 -06:00
parent a64634ff90
commit e56b5f885b
5 changed files with 339 additions and 22 deletions

View File

@@ -3,14 +3,14 @@ gsd_state_version: 1.0
milestone: v1.0
milestone_name: milestone
status: completed
stopped_at: Phase 10 context gathered
last_updated: "2026-03-26T05:17:22.329Z"
stopped_at: "Completed 10-01: KB ingestion pipeline, text extractors, executor injection"
last_updated: "2026-03-26T15:11:45.385Z"
last_activity: 2026-03-23 — Completed 03-02 onboarding wizard, Slack OAuth, BYO API keys
progress:
total_phases: 10
completed_phases: 9
total_plans: 36
completed_plans: 36
total_plans: 39
completed_plans: 38
percent: 100
---
@@ -88,6 +88,8 @@ Progress: [██████████] 100%
| Phase 09-testing-qa P01 | 5min | 2 tasks | 12 files |
| Phase 09-testing-qa P02 | 1min | 2 tasks | 3 files |
| Phase 09-testing-qa P03 | 3min | 1 tasks | 1 files |
| Phase 10-agent-capabilities P02 | 10m | 2 tasks | 9 files |
| Phase 10-agent-capabilities P01 | 11min | 2 tasks | 16 files |
## Accumulated Context
@@ -208,6 +210,13 @@ Recent decisions affecting current work:
- [Phase 09-testing-qa]: Serious a11y violations are console.warn only — critical violations are hard CI failures
- [Phase 09-testing-qa]: No mypy --strict in CI — ruff lint is sufficient gate; mypy can be added incrementally when codebase is fully typed
- [Phase 09-testing-qa]: seed_admin uses || true in CI — test users created via E2E auth setup login form, not DB seeding
- [Phase 10-agent-capabilities]: calendar_lookup receives _session param for test injection — production obtains session from async_session_factory
- [Phase 10-agent-capabilities]: Tool result formatting instruction added to build_system_prompt when agent has tool_assignments (CAP-06)
- [Phase 10-agent-capabilities]: build() imported at module level in calendar_lookup for patchability in tests; try/except ImportError handles optional google library
- [Phase 10-agent-capabilities]: Migration numbered 014 (not 013) — 013 already used by google_calendar channel type migration from prior session
- [Phase 10-agent-capabilities]: KB is per-tenant not per-agent — agent_id made nullable in kb_documents
- [Phase 10-agent-capabilities]: Executor injects tenant_id/agent_id as strings after schema validation to avoid triggering schema rejections on LLM-provided args
- [Phase 10-agent-capabilities]: Lazy import of ingest_document task in kb.py via _get_ingest_task() — avoids shared→orchestrator circular dependency at module load time
### Roadmap Evolution
@@ -223,6 +232,6 @@ None — all phases complete.
## Session Continuity
Last session: 2026-03-26T05:17:22.325Z
Stopped at: Phase 10 context gathered
Resume file: .planning/phases/10-agent-capabilities/10-CONTEXT.md
Last session: 2026-03-26T15:11:45.381Z
Stopped at: Completed 10-01: KB ingestion pipeline, text extractors, executor injection
Resume file: None