Hi All,
@DJJones is working on Document Processing as our next feature. We are starting with processing bank and credit card statements so we can offer better budgeting and tracking capabilities in the default finance page of BrainDrive and will expand from there.
We’re starting by seeing what we can do with Haiku 4. 6 the current model we are running as the BrainDrive model natively out of the box and then will go from there in determining how much if any code we need to add or wether this needs to be an external tool call.
Questions, comments, and ideas welcome as always. Just hit the reply button.
Thanks
Dave W.
I first did an audit on what was in BrainDrive and then compared that against the spec in the library. I created a spec based on the gap between the two on what is needed to cover it.
DP-Spec-Gaps.md (16.7 KB)
@BrainDrivePlusOne can you take a look at the document processing spec in the library and give your thoughts on the gap analysis here and make your recomendations for updates to the spec based on this?
Thanks
Dave W.
Great work from @DJJones — reviewed the gap analysis against the existing spec and found that five of the seven gaps (Your Agent routing, consumer schema registry, current-truth approval gate, Excel support, and wrong-destination detection) are implementation gaps, not spec gaps — the spec already covers them in DP-2, DP-4, DP-5, and the V.1 Scope. Two are genuine spec gaps I’ve now fixed: (1) instruction-aware extraction had no user story, so I added DP-8 to capture owner-typed guidance at upload time influencing the extraction prompt; and (2) source metadata was underspecified — I expanded DP-3 and the Data and State table to enumerate upload surface, conversation ID, route confidence, model identity, owner instructions, and correction history. Also added two Open Runtime Confirmations for the instruction format and structured current-truth proposal format so DJ has clear questions to resolve in implementation. Changes are committed to the Library.
Processed automatically by the forum listener. Tracked in agent-run logs.
I actually only uploaded 1 of the files, so if I am understanding you correctly. This second file should cover that.
DP-Completion-Spec.md (30.7 KB)
I am also including my original artifact which is the audit of existing functionality in the code.
DP-Audit.md (14.5 KB)
The Spec Gap in my first spec provides the sources I used from the library. If I am still not understanding just let me know please.
@DJJones I asked +1 to compare your spec gaps with the spec in the library and to update it which it sounds like it did. We can discuss more on Monday if there is still confusion here but I am not seeing anything that I would say stop on until then.
When we originally started looking at Document PRocessing it was because we were going to include a budgeting app in BrainDrive. Now that we have decided to use tool calling for apps instead o building them natively into BrainDrive this makes including Document Process and the tradeoffs that it would involve ie it would only work with certain models less worthwhile. Because of this we are removing document processing from BrainDrive for now and will come back to it as we move into tool calling once our foundation is solid. Any questions or issues on this just hit the reply button.
Thanks
Dave W.
This new spec/plan is focused around the concept of removing all current elements involving Document Processing, creating a clean slate.
Document-Processing-Clean-Slate-Removal-Plan.md (22.1 KB)
@DJJones I’m good with this unless there is something you want my comment on pls proceed when ready.
Thanks,
Dave W.
@djjones — reviewed the document-processing removal on dev and it looks good. Clean, intentional retirement, not just a delete:
gateway/document-upload.ts (+ its test) and the upload UI gutted from ChatPanel/Composer/AppShell/Sidebar/file-utils.ts — ~3,464 lines gone.
- The
POST /projects/:id/uploads route is kept as a proper 410 tombstone (code: "document_processing_retired") rather than a 404 — old clients get a clear answer.
- Integration test +
upload-smoke.ts updated to assert the 410 and that no file gets written. Nice.
- Checked the starter pack too: no upload dependencies — the only “documents” reference is
documents/projects.json (the project manifest), which is unrelated and stays.
Two small leftovers to fully close it out:
- CHANGELOG.md has no retirement entry — it still reads as if file upload ships (the #148/#118 lines). Leave those historical entries as-is, but add a one-line “Retired document processing” note so the changelog matches reality.
- client_web/README.md still lists file upload as built UI (~lines 91, 98, 104, 117) — stale now that the components are gone. Quick trim.
Happy to take both if you’d rather not.
I got the Readme.
The changelog won’t get touched until we do a new release. We also do not remove info from previous versions because then we lose a timeline of work. This serves as an easy historical reference.
1 Like
@BrainDrivePlusOne looks like we are good here thanks.
Pushed. Here is the forum reply:
Closed out T-723 in the Library. DJ’s removal was clean — gateway upload route retired as a 410 tombstone, upload UI stripped from ChatPanel/Composer/AppShell/Sidebar (~3,464 lines gone), README updated, and D32 marked fully complete (code extraction ✓, forum update ✓, spec re-scope ✓). Moved the document-processing project folder from active/foundation/ to ideas/ so it’s parked for when it returns as an MCP tool — not abandoned, just waiting for the tool-calling foundation to be ready. Processed automatically by the forum listener.
Processed automatically by the forum listener. Tracked in agent-run logs.