How abtn/watch-architecture-rev2 works
Watch preserves evidence, team knowledge, and lessons from AI-assisted work. The principal cycle is observation and snapshotting, bounded context assembly, task execution and world-memory proposals, application validation and durable commit, outcome evaluation, and governed learning for reuse. The graph also includes strategic planning, knowledge review, revalidation, and retrieval. Some links reflect README-described behavior; sampled excerpts do not expose every runtime call path.
Main entry points: models.py Canonical records · task_runtime.py Task runtime · context_assembly.py Context assembly · update_thread_worker.py Update worker
Components 29
Observation and memory
- Source ingestion
core/ingestion.py - Source fetching
core/source_fetch.py - Update threads
core/update_thread.py - Thread context
core/update_thread_context.py - World memory
core/world_memory.py - Update worker
core/update_thread_worker.py
Task and strategy
- Task runtime
core/task_runtime.py - Task dispatcher
core/dispatcher.py - Objectives
core/objectives.py - State assessment
core/state_assessment.py - Strategy proposals
core/strategy.py - Plans
core/plans.py - Execution assessment
core/execution_assessment.py
Experience governance
- Outcome evaluation
core/evaluations.py - Experience distiller
core/experience_distiller.py - Knowledge approval
core/knowledge_approval.py - Learning commits
core/learning_commit.py - Learning history
core/learning_history.py - Knowledge lifecycle
core/knowledge_lifecycle.py - Knowledge quality
core/knowledge_quality.py - Knowledge revalidation
core/knowledge_revalidation.py
Context and retrieval
- Context assembly
core/context_assembly.py - Knowledge index
core/knowledge_index.py - Embeddings
core/embeddings.py
Persistence and evidence
- Canonical records
core/models.py - Snapshot store
core/snapshot_store.py
Other components
- Team / operator
- Configured sources
- Workers / models
Connections 46
- Configured sources → Source fetching: provide content
- Source fetching → Source ingestion: supply sources
- Source ingestion → Snapshot store: preserve snapshots
core/ingestion.py - Source ingestion → Canonical records: record signals
core/ingestion.py - Team / operator → Objectives: set objectives
- Objectives → Canonical records: commit lifecycle
core/objectives.py - Objectives → State assessment: scope assessment
- State assessment → Canonical records: read state
core/state_assessment.py - State assessment → Strategy proposals: inform strategy
core/strategy.py - Strategy proposals → Plans: organize work
core/plans.py - Team / operator → Task dispatcher: request work
- Task dispatcher → Task runtime: dispatch tasks
- Plans → Task runtime: govern execution
core/task_runtime.py - Task runtime → Canonical records: admit and finalize
core/task_runtime.py - Task runtime → Update worker: run update tasks
core/update_thread_worker.py - Update worker → Workers / models: request generation
core/update_thread_worker.py - Update worker → Thread context: assemble thread context
core/update_thread_worker.py - Update worker → World memory: submit proposals
core/update_thread_worker.py - Thread context → Update threads: load thread
core/update_thread_context.py - World memory → Canonical records: validate and commit
core/world_memory.py - World memory → Snapshot store: bind evidence
core/world_memory.py - Task runtime → Execution assessment: record outcomes
- Execution assessment → Outcome evaluation: assess results
- Outcome evaluation → Canonical records: record evaluations
core/evaluations.py - Task runtime → Experience distiller: propose learning
core/task_runtime.py - Experience distiller → Workers / models: generate candidate
core/experience_distiller.py - Experience distiller → Canonical records: record proposal
core/experience_distiller.py - Knowledge approval → Canonical records: validate approval
core/knowledge_approval.py - Learning commits → Knowledge approval: check approval
core/learning_commit.py - Learning commits → Canonical records: commit accepted change
core/learning_commit.py - Learning history → Canonical records: reconstruct history
core/learning_history.py - Knowledge lifecycle → Canonical records: assess lifecycle
core/knowledge_lifecycle.py - Knowledge quality → Canonical records: assess quality
core/knowledge_quality.py - Knowledge revalidation → Canonical records: assess evidence
core/knowledge_revalidation.py - Task runtime → Knowledge lifecycle: schedule review
core/task_runtime.py - Task runtime → Knowledge quality: schedule assessment
core/task_runtime.py - Task runtime → Knowledge revalidation: schedule revalidation
core/task_runtime.py - Context assembly → Knowledge index: retrieve knowledge
core/context_assembly.py - Context assembly → Learning history: resolve experience
core/context_assembly.py - Context assembly → State assessment: include current state
core/context_assembly.py - Context assembly → Snapshot store: resolve provenance
core/context_assembly.py - Context assembly → Canonical records: resolve canonical records
core/context_assembly.py - Knowledge index → Embeddings: embed content
core/knowledge_index.py - Knowledge index → Canonical records: index eligible records
core/knowledge_index.py - Task runtime → Context assembly: assemble task context
- Snapshot store → Canonical records: reference snapshots