Draft
Add VideoKnowledgeBase blackboard scaffolding and pipeline-side population#116
Conversation
5 tasks
Copilot
AI
changed the title
[WIP] Update architecture for two-phase video analysis using blackboard pattern
Add VideoKnowledgeBase blackboard scaffolding and pipeline-side population
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VidPipe’s current stage-by-stage pipeline keeps analysis outputs siloed and forces repeated detection work. This PR introduces an additive blackboard foundation (
VideoKnowledgeBase) so analysis artifacts can be shared across stages/agents without disrupting current execution flow.Blackboard contract (typed, additive)
VideoKnowledgeBaseand related domain types insrc/L0-pure/types/index.ts.PipelineResultwith optionalknowledgeBaseto expose shared analysis state to downstream consumers.VideoKnowledgeBasefromsrc/index.tsfor SDK/public usage.KB persistence module
src/L6-pipeline/knowledgeBase.tswith:createVideoKnowledgeBase(video)writeVideoKnowledgeBase(videoDir, kb)readVideoKnowledgeBase(videoDir)knowledge-base.jsonin each video directory.Pipeline integration (backward-compatible)
processVideo()now initializes KB post-ingestion and incrementally populates available fields (layout metadata, transcript, shorts, medium clips) alongside existing outputs.processVideo()returns the populatedknowledgeBaseinPipelineResult.Focused test coverage
src/__tests__/unit/L6-pipeline/knowledgeBase.test.tsfor KB init + read/write behavior.src/__tests__/unit/L6-pipeline/pipeline.test.tsto assertPipelineResult.knowledgeBasecontent.