hev layer / Story documentation
Story documents.
Ready for retrieval.
SharePoint files and KI records become searchable text and structured attributes, ready for an AI assistant over MCP or an application through the API.
Where things stand · 10 Nov 2026
What is being indexed
Story
| Source | In scope | Searchable now | Progress |
|---|---|---|---|
| Story documents | Selected inventory on 10 Oct: 73,198 documents (48,141 PDFs and 25,057 Office and text files). A live selection recount is unavailable. | 81,451 documents represented by 849,983 page rows, including 55,292 PDF documents. These retained totals exceed the dated inventory; current selection coverage is not established. The SharePoint Pipelines are paused; this index was last written on 14 Oct. | all |
| Story photos | Job-folder photos on the Story SharePoint site | 7,775 in the selected set; 9 are also filed under BCC. Refresh is paused. | all |
| KI invoice PDFs | KI is Story’s ERP. The last attachment inventory was 20,151 on 10 Oct; KI now has 20,301 invoice records. | 20,014 distinct PDFs in the merged invoice collection, represented by 33,448 page rows. Identical attachments can share a document. This collection is still updating. | 99.3% |
| KI records | Jobs, contracts, invoices, vendors, cost codes, booked cost lines, pay applications and estimates | 66,443 records across eight collections, re-read every six hours | synced |
| Originals cached / S3 | Story source files for an assistant’s fetch_original request. | 33,916 of 81,451 documents (41.6%) have an original reference. Page detail: 462,141 of 849,983 rows (54.4%) have one; 324,827 PDF page rows still lack one. These counts measure references, not verified S3 objects. The worker that adds them is paused. | 41.6% |
BCC
| Source | In scope | Searchable now | Progress |
|---|---|---|---|
| BCC PDFs | About 212,000 PDFs (587 GB), from the scope estimate retained on 10 Oct. The first pass covers 02 Precon; a live site inventory recount is unavailable. | 18,108 documents represented by 208,187 Precon page rows. The rest of the site follows. The BCC Pipeline is paused; this index was last written on 26 Oct. | 8.5% |
| BCC photos | Job-folder photos on the BCC SharePoint site | 2,660 in the selected set; 9 are also filed under Story. Refresh is paused. | all |
Tenant-wide work to come
| Source | In scope | Current state | Progress |
|---|---|---|---|
| Revit models | 3,771 .rvt models (1.17 TB); 8,041 .rfa families are skipped. These tenant-wide figures are from LYR-308; a Story/BCC inventory split is unavailable. | Not started. The first step is metadata per model: version, central/local status, project path and thumbnail. An element-quantity spike follows. | 0% |
| Project plans / schedules | 114 .mpp and 18 .xer files across the tenant (LYR-307). A Story/BCC split is unavailable. | Not started. The goal is one row per task. The recorded Story selection has 64 .mpp files reporting unsupported_format (layer-pro #962). | 0% |
- 0Access and decisions
- ●SharePoint and KI production access
- ●Search site and MCP connection
- ●KI’s MCP connector in production, 5 Nov
- ◐Source selection finalised
- ◐Jobs and clients without a KI match
- ◐Policy for jobs with several estimates
- 1Photos to steady state
- ●Selected photos indexed: 10,426
- ●Job, company and year filters
- ○Continuous refresh confirmed
- 2SharePoint PDFs
- ●SharePoint connector ingest; October OCR sweep finished
- ●Live search and MCP
- ◐55,292 retained PDF documents searchable
- ◐26,159 other retained documents searchable
- ◐Remaining extraction failures and selection recount
- ◐Original references on 41.6% of Story documents; worker paused
- ○Revit model metadata, then element quantities
- ○Project plans and schedules: one row per task
- 3KI PDFs
- ●20,014 distinct invoice PDFs searchable
- ●SharePoint and KI copies merged
- ○Remaining invoice attachment gaps
- ○Other KI attachment types
- 4Cost-code classifier
- ●Three cost-code catalogs as filters
- ●Document types: 22 labels
- ●Suggestions on all 16,222 typed invoice pages
- ◐Document typing: 200,366 of 849,983 pages; paused. LYR-316 backfill fix landed; full run remains paused
- ○Accuracy measured against KI bookings
- 5Hand-over · 30 Nov
- ◐Search site, MCP and these docs
- ○Runbook
- ○Sign-off
- ○Planned, not agreed: decision on 15 Dec 2026, then a move to Bristlecone’s Azure tenant in Feb 2027
● done◐ in progress○ not started
Live index counts are a snapshot taken on the date above. Source inventories retain their stated dates; Revit and schedule figures come from their backlog records. Photo totals overlap by 9 shared rows. The SharePoint document and photo Pipelines are paused, so SharePoint counts stand still until they resume; KI records keep updating. Phases run in order and overlap where they can; whatever is finished on 30 November is handed over with a runbook.
Warehouse sources
Keep hev layer connected to the files and KI
Two Warehouses feed the index, both read-only. The first connects to Microsoft Graph. Story’s Pipeline selects the SharePoint libraries, folders and individual files to read, then processes new or changed documents into the index.
How often do files update?
When running, the Pipeline waits one hour after a processing sweep finishes, then checks again. The SharePoint Pipelines are paused at the moment, so changes in SharePoint are not being picked up until they resume. The effective cycle is sweep time plus one hour. Extraction, OCR, indexing and classification add processing time, especially during the initial backfill; this is not a promise that every change appears within an hour.
No personal OneDrive
Only the selected Story SharePoint document libraries, folders and items are included. No personal OneDrive content is included. The connector supports OneDrive, but Story’s personal-drive setting is mode: none.
What happens on the next pass?
hev layer compares the current source listing with its saved state. Unchanged content can reuse prior extraction; changed content is processed again. Selection controls what enters the pipeline. This does not mean every file in the Microsoft tenant is included.
The Warehouse’s separate hourly connectivity verification checks access; it does not schedule document updates.
KI, Story’s ERP
The second Warehouse connects to KI through hev layer’s REST connector. It signs in with a read-only KI account and never writes to KI. Pipelines sync KI’s jobs, contracts, invoices, vendors, cost codes, booked cost lines, pay applications and estimates into their own collections, and re-read them every six hours.
- Complete
- A sweep checks its row count against KI’s own total and fails rather than publish a partial list. The first invoice sweep matched KI’s 19,563 invoices exactly.
- Invoice PDFs
- Invoice attachments go through the same extraction and OCR as SharePoint files. A PDF that exists in both SharePoint and KI is indexed once, with both locations on its row.
- Linked by KI ids
- Story pages, photos and KI rows carry KI’s job, contract, invoice, vendor and cost-code ids as filterable attributes. An assistant can go from a search hit straight to the matching KI record. On 10 November, 39% of Story pages and 53% of photos matched a KI job. Most of the rest are filed outside a job folder (56% of Story pages) and have none yet.
hev layer 0.8: Cloud-drive Warehouses · REST Warehouses · Extraction and rescan settings
Focus of the engagement
Reading and classifying Story’s documents
This is where the proof of value does its real work. OCR is new in hev layer, built and scaled on Story’s scans. Classification is where the index starts to answer business questions, and it should grow with Story’s input.
doc_type = invoice, and that value becomes an exact filter in a later query. Highlighted steps are the ones this engagement is building out.New in hev layer
OCR
55,292 Story PDF documents searchable
hev layer keeps native text where it reads cleanly and sends scanned, textless or garbled pages to OCR. The October OCR sweep finished, and OCR has read 59,820 Story pages. Three GPU models run behind it and sleep at zero when no pages are waiting. Pages it still can’t read, such as very large scans and image attachments, are tracked by failure reason and become the next extraction work.
Built to expand
Classification
200,366 pages typed into 22 document types
Each label is a Function over the same pages. Adding a type, a field or a new code catalog is configuration, not application code, and every assistant and app sees the new attribute as soon as it is indexed. Labelling runs in the background, so a page can be searchable before its labels arrive.
Document types in the Story index
other is 45% of typed pages. That is the biggest opportunity: the documents inside it are ones Story’s team knows by name and we don’t yet. Typing is paused, so 649,617 of 849,983 pages have no type yet; existing labels stay searchable.Suggested cost codes on invoice pages
06-205 Finish carpentry, accounts for a third of suggestions, which is a sign the catalog needs Story’s review before the counts mean much.Accuracy has not yet been measured. Check suggestions against the invoice and catalog. They stay in hev layer; nothing is written back to KI or SharePoint.
Where we need Story
Five questions that shape the next labels
- What’s inside “other”? Design presentations, selections, punch lists and warranty requests are candidates. Which documents do your teams go looking for?
- Which catalog should suggestions follow? Today they come from a 45-code catalog. KI has 1,356 codes, 338 of them booked on Story jobs, and FINAL 1.5 has 94.
- Which documents beyond invoices need a code? Subcontracts and purchase orders, change orders and bids are the natural next set.
- Which fields would you filter on? Vendor, amount, invoice date and change-order number are each one more Function over the same pages.
- Can someone review 50 suggestions? A short review against KI bookings gives the first accuracy number and a baseline to improve on.
Tell us which documents or fields matter most and they go to the front of the queue.
hev layer 0.8: PDF extraction and OCR · Functions and changed-input processing
Filter reference
What you can filter on
Every attribute below is a filter in the search app and in your AI assistant. The assistant sees the same list, so a question like the examples here becomes a text search narrowed by the right filters. This reference is drawn from each index’s live schema; counts are pages on 10 November 2026.
Story Documents
pov-bcc-story-pages849,983 pages · one row per page| Attribute | Type | What it holds · most common values | Values | Ask it like |
|---|---|---|---|---|
doc_type | string | Document type from the classifier, one per page. other 89,181drawing 20,129bid_proposal 17,001invoice 16,222 | 22 | “Change orders on job 24-063” |
cost_codeCost code | []string | Suggested cost codes on invoice pages, from the 45-code suggestion catalog. 06-205 Finish carpentry — trim, … 5,45901-120 Misc jobsite requirements… 3,30401-100 Equipment rental — lifts,… 1,48706-200 Trim & millwork material (supply) 943 | 45 | “Invoices coded to finish carpentry this year” |
cost_divisionCost division | []string | The division of each suggested code: its first two digits. 06 7,08201 6,15803 1,07412 553 | 14 | “Invoices in division 16, electrical” |
cost_code_kiCost code (KI booked) | []string | Codes KI has booked against the page’s job. They describe the job, not this page. 01-120 Misc. Project Requirements 195,71220-100 Insurance 175,44515-100 Rough In Plumbing 175,44406-100 Wood Framing - Materials 175,399 | 338 | “Documents from jobs that booked rough-in plumbing” |
cost_code_final15Cost code (FINAL 1.5) | []string | The job’s booked codes mapped onto the FINAL 1.5 catalog. 00-162 Interior Design — Final D… 240,56100-112 Architecture — Final Desi… 208,92401-120 Misc Jobsite Requirements… 206,46017-320 Insurance & Builders Risk 199,110 | 94 | “Pages from jobs with warranty costs” |
job | string | KI job number, read from the SharePoint folder path. 0124-097 11,33922-030 10,07224-063 8,79822-071 7,559 | 870 | “Everything filed under job 24-063” |
company | string | Story or Bristlecone. Story 834,677Bristlecone 14,697 | 2 | “Only Story documents, not Bristlecone” |
folder_1Folder | string | First folder level under the job. Design 109,928Procurement 53,64406_Schedules 52,547Design Files 43,325 | 224 | “Procurement documents for a job” |
folder_2Subfolder | string | Second folder level under the job. Deliverables 59,434Presentations 22,083Jurisdiction 16,324Drawing Files 15,755 | 971 | “Deliverables from the design team” |
job_stageStage | string | The job folder’s stage: in progress, archived, proposal and so on. In progress 291,545Archived 42,861Bristlecone Investments · Insura… 7,589Story Renovations · Old Bristlec… 5,166 | 25 | “Proposals from archived jobs” |
regionRegion | string | State of the job’s division. CO 259,252AZ 73,076(unknown region) 29,441TX 8,709 | 5 | “Arizona jobs only” |
ki_projectproject | string | KI project name for the matched job. Names withheld here; see the search app. | 849 | “Documents for a named project” |
client | string | KI client for the matched job. Names withheld here; see the search app. | 780 | “Documents for a named client” |
division | string | KI division for the matched job. Denver Construction 191,365Scottsdale Design 68,635Denver Design 60,933Scottsdale Construction 3,859 | 5 | “Denver Construction jobs” |
job_year | int | Year from the job number. 2024 108,9502025 74,1482026 60,8072022 42,548 | 41 | “Jobs started since 2024” |
file_year | int | Year the file was last modified in SharePoint. 2026 308,6732024 259,6102025 188,5142022 44,196 | 14 | “Files changed this year” |
Some attributes hold several values per page, such as every code booked on a job; a filter matches if any of them match. Pages filed outside a job folder show No job for job-based filters. BCC Documents has the same filters.
Photos
pov-bcc-photos10,426 photos · search by describing the picture| Attribute | Values | Most common values |
|---|---|---|
company_memberships | 2 | Story 7,775Bristlecone 2,660 |
job | 189 | 22-120 14622-061 1330124-056 9923-098 88 |
job_stage | 8 | In progress 5,210Precon · Awarded 128Helios Foundation · Construction 18UEB Projects · Aurora Tempe 12 |
region | 5 | CO 4,161AZ 1,977TX 85(unknown region) 1 |
division | 5 | Denver Construction 3,142Scottsdale Design 1,703Denver Design 573Scottsdale Construction 127 |
taken_year | 20 | 2025 2,1962026 2,1052024 2,0122017 444 |
Photos also carry folder_1, folder_2, ki_project, client and the two KI-booked cost-code lists, with the same meaning as on documents.
Using the collection
Ask your AI assistant
The main workflow is an assistant or application querying hev layer directly. MCP gives an assistant discovery, search and document-retrieval tools. The HTTP API gives an application the same indexed content and structured attributes.
With an AI assistant
- Connect with your own access key. For Claude Desktop, install the hev layer Desktop extension and enter the operator-provided server URL and token. Your key determines which collections you can read. Desktop setup instructions. On Story’s Claude Team account, an Owner adds the extension to the organization once, then each person installs it and enters their own key: Team account setup.
- Discover the collection and its filters. The assistant calls
list_namespacesto see available collections and typed filters. It then uses the advertised search and get tools; exact tool names depend on the server configuration. - Search, retrieve, and cite. Ask for something like “Find Story invoices mentioning cabinetry, and show the source documents.” The assistant can combine text search with an invoice filter, fetch full matching rows and cite source links. Where configured, document grouping returns a best matching page per document.
hev layer 0.8: MCP tools, filters and access
From the POV into the product
New in hev layer 0.8
The Story/BCC workload has helped drive improvements in hev layer itself. These 0.8 capabilities support the document flow above; the release notes record the underlying changes.
| Capability | Why it matters here |
|---|---|
| Precise cloud-drive selection | Multiple roots per library and exact item selection help pick Story’s files out of shared libraries. Retention controls handle previously indexed items when selection changes. |
| Full-page extraction and embeddings | Native page embedding removes the previous 1,500-character cap. OCR recovers text from difficult pages; processing records source provenance and failures. |
| Functions follow changed inputs | Source changes can requeue completed rows. Revision checks prevent delayed classification results from overwriting newer inputs. |
| MCP discovery and retrieval | An assistant can discover readable collections, search with typed filters, fetch rows and cite their source links. |
| Document grouping | Group page hits by their parent document so a long PDF does not dominate a result list. MCP can expose the best page of each matching document. |
| OCR on GPUs that scale to zero | InfraRules declares the OCR services hev layer runs: a CPU baseline and three GPU models (PP-OCRv5, PaddleOCR-VL and olmOCR). Each sleeps at zero and wakes when pages are waiting, so a GPU runs only while there is OCR to do. |
| GPU capacity notifications | Every GPU start, stop and stalled allocation posts to Slack with the workload it serves, how long it ran and an estimated cost. OCR progress and spend are visible while a backfill runs, not after the bill. |
| Field statistics | Describe missing attributes, distinct values and numeric ranges. This is a product capability; its release does not by itself establish current Story coverage or enable a live coverage display here. |
Read the draft hev layer v0.8.0 release notes · GitHub repository access required
Coverage & freshness
What a missing result means
This is an active proof of value. A file being visible in SharePoint does not yet mean its pages and labels are available in search. Each update moves through the sync, extraction, indexing and classification stages. This guide describes that flow. The counts under “Where things stand” are a dated snapshot, not a live report.
| What you notice | What may explain it |
|---|---|
| A file never appears | It may be outside the selected sources, awaiting extraction or indexing, unsupported, or failing processing. |
| Words on a scan are missing | OCR may be pending, may have failed, or may not have recovered usable text. Other pages can still be searchable. |
| A job or filter value is absent | Enrichment may be pending, or its evidence may be missing or ambiguous. Remove the filter to broaden the search. |
| An invoice has no cost code | Its document type may not yet be invoice, the coding backfill may not have reached it, or classification may not have completed. |
| Counts look larger than expected | Search rows represent pages. Grouping, multiple source files and previously indexed material retained after selection changes also affect what you see. |
To report a gap, keep the source link, your search words, selected filters and the behavior you expected. That is enough to trace the file through selection, extraction, indexing and enrichment.