Architecture
Blackboard architecture for AI agents
See how a shared workspace lets independent workers propose, check, and revisit findings, with a worked example from transcript editing.

In this article
A blackboard is a shared store of evidence and partial results. Workers read the parts they need and leave results that other workers can use. A controller chooses the next action from the current state. Use the pattern when several parts of a system need to build and revise an answer together.
What a blackboard stores
Hearsay-II applied this idea to speech understanding. Different sources of knowledge could contribute hypotheses about the same noisy speech signal at different levels. The blackboard stored those representations in one place so components could build on each other’s findings. Lesser and Erman, IJCAI 1977.
In a transcript editor, the shared state can hold source sentences, open questions, candidate answers, and decisions. A search worker adds candidates. A verifier reads the original passages and accepts or declines a link. The controller decides what’s ready to run and what to review again after a result arrives. A worker can be a model, a database query, or a deterministic rule.
- Evidence
- Timecoded source sentences, speakers, and transcript revision.
- Proposals
- Candidate answer spans with a source and a reason to inspect them.
- Decisions
- Verified, declined, or unresolved links with the evidence used.
Think about what a later worker should be able to ask. Which questions are still open? Which candidates have already been compared? Which two passages support this cut? If those answers exist only in the text of a previous model call, the next worker has to infer them again. Store them in fields it can query.
The controller can be ordinary application code. It can keep a predictable loop around reading the board, picking eligible work, and committing a result. A language model can propose a candidate or judge a hard comparison inside that loop. This is useful for a local app where inference has a fixed cost budget and an editor needs to see why a result appeared.
One question, two candidates
Consider a fictional interview. At 05:10, the host asks why the subscription price went up. The next line promises to come back to it, so a transcript worker records an open question. That lets another worker attempt to answer it after reading later passages.
- 05:10
Open question. Why did the subscription get more expensive?
- 12:48
Candidate declined. The guest says when prices rose. The passage leaves the reason unclear.
- 23:16
Candidate accepted in this example. The guest says the old subscription fee failed to cover each order’s costs.
The verifier needs the question, both candidate spans, and nearby dialogue. Once it accepts the answer, an editing worker can propose a question-and-answer cut. It can ask for more context if either span relies on an earlier line. Each step can inspect which passage led to the decision.
Keep the unsuccessful search on the board
The declined 12:48 passage is still useful state. Record the reason it failed and the scope of the search that produced it. A second search can expand beyond that chapter, and the controller can avoid asking the same verification question twice. If no later passage answers the question, the system can leave it open and offer a continuous clip from the source.
In the transcript processing design, each of these steps can fetch the question and a single candidate with its surrounding turns. A run can resolve some questions while leaving others open. This gives the controller a way to make progress on one edit even if a different chapter still needs more work.
How workers hand off
For ClipMill’s proposed design, a run would pin a transcript revision and keep its hypothesis records separate from the transcript. Use sentence IDs as the link endpoints. Look up the exact wording and timestamps from their source rows when a worker needs them.
Put the recording and revision on the run. Give the sentence table a key made of the run ID and the sentence ID. A proposal points to two sentences in that run. Composite foreign keys in the example enforce this relationship, so a link can’t silently pair a question from one run with a similarly numbered line from another. A fuller implementation can store a span of sentence IDs at either end and record the surrounding context used for review.
SQLite is enough to illustrate the handoff. In this sketch, the run and two endpoint IDs form a unique key. An identical proposal retried after interruption leaves a previously reviewed row intact. The verifier reads a pending proposal and records the decision with its evidence and producer.
INSERT INTO candidate_link (run_id, question_id, answer_id, state)
VALUES (:run, :question, :answer, 'proposed')
ON CONFLICT (run_id, question_id, answer_id) DO NOTHING;Keep expensive work outside the write transaction. When the worker returns, check that the run and source revision are still current and that the proposal is still pending before writing the decision. Short writes matter in SQLite because writers take turns. SQLite isolation reference.
Give separate workers ownership of different transitions. Search can insert a candidate. Verification can resolve it. Assembly can read accepted links and write an edit candidate. Store the worker version and evidence with each decision when you need to explain changes across runs.
The hybrid search example shows how keyword and embedding retrieval can find candidates for the board.
Handle a new transcript revision
Imagine the transcript changes while the verifier is reading it. The worker started with a question and an answer from revision A. By the time it returns, an editor has corrected revision B. A late result should stay out of the active run. Check the revision in the same statement that accepts the verdict, along with the condition that the candidate is still pending.
UPDATE candidate_link
SET state = :verdict
WHERE run_id = :run
AND question_id = :question
AND answer_id = :answer
AND state = 'proposed'
AND EXISTS (
SELECT 1 FROM editorial_run AS run
JOIN episode ON episode.id = run.episode_id
WHERE run.id = candidate_link.run_id
AND run.revision = episode.revision
);Check the affected row count. One row means the decision was written. Zero means the proposal may have been resolved or the run may have been superseded. In a production trace, distinguish those outcomes so you can decide whether to read the existing verdict or start a new run. Have readers check the active revision too, so a verdict written just before a correction doesn’t appear on the corrected transcript.
We ran the example with two proposals and three write attempts. The first review saved. Its retry left the reviewed row intact. After changing the episode revision, a review for the second proposal left the old row pending. The fixture uses Python’s standard library and works with an in-memory database. Download the SQLite example.
This protects the result if two workers reach the same row. To avoid paying for the same verification twice, claim work in a separate short transaction before inference. If a worker can disappear, give claims an expiry and use a bounded retry policy. A completed job should record its input IDs and version so the controller can tell a true retry from a new question.
How the controller stops
Give each job a ready condition and a completion condition. Search becomes ready when there’s an open question and usable transcript data. Verification becomes ready when one candidate has both source spans. Assembly becomes ready once a link has passed review. Give retries a stable key and record their outcomes so a failed result doesn’t start the same job on every pass.
For a desktop editor, cap expensive verification work per recording and spend it first on plausible candidates needed for an edit. Stop when no eligible job can make progress or the budget is exhausted. Leave any unfinished work labeled as unresolved so a person can inspect it and decide where to continue.
Budget the next action
A queue can start with a known question and a strong candidate that’s already in the index. Finding more candidates might be a cheap lookup. Comparing both full passages with a local model may be slower. Prioritize jobs that move a plausible clip closer to completion. Charge each attempt against its budget and leave the reason for stopping in the run record.
When restarting, load the completed jobs, pending proposals, and costs already incurred. For a test, stop the process after a proposal commits and before a verifier starts. The resumed run should find the pending proposal and leave the earlier search result intact. Repeat with an edit made to the transcript in between to exercise the revision boundary.
When a blackboard helps
A fixed workflow fits work that has a predictable order and a single pass, such as producing subtitles from a transcript. A blackboard adds value when workers discover information in different orders, later evidence can change an earlier decision, or a run needs to resume with its reasoning intact. It also adds a state model and a controller that have to be maintained.
Salemi and colleagues tested a blackboard approach on data discovery and question answering. In their reported cost analysis, the board cost about 1.8 times as much per question as their centrally assigned worker baseline, with higher end-to-end task success. That result came from their discovery tasks. For editing, measure the equivalent tradeoff in your own workload. Salemi et al., cost analysis.
Compare the linear and shared-state versions on the same recordings, models, and token or runtime limits. Count verified links an editor accepts, false joins they reject, and questions left unresolved. Track how often the controller retries a job, as well as how long it takes to produce the first usable result. Compare the saved traces when a result differs.
A comparison of architectures also needs a verifier you can evaluate. Our guide to calibrating an LLM judge shows how to measure errors and decide which verdicts to send for review.
An incremental test can start with one open question, one search worker, and one verifier. That is enough to learn whether a typed handoff helps before adding adaptive priorities or extra agents. The meaningful comparison is how much useful work an editor gets under the same budget.
References
- A Retrospective View of the Hearsay-II ArchitectureShared working memory and independent knowledge sources in speech understanding.
- LLM-Based Multi-Agent Blackboard System for Information Discovery in Data ScienceA benchmarked application of the pattern to data discovery.
- Isolation in SQLiteTransaction and writer behavior for a local shared store.