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.

SharePoint + KINo personal OneDrive contentMCP + API

Where things stand · 10 Nov 2026

What is being indexed

Story

Story overall99.9% · 100,987 of 101,124 items
SourceIn scopeSearchable nowProgress
Story documentsSelected 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 photosJob-folder photos on the Story SharePoint site7,775 in the selected set; 9 are also filed under BCC. Refresh is paused.all
KI invoice PDFsKI 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 recordsJobs, contracts, invoices, vendors, cost codes, booked cost lines, pay applications and estimates66,443 records across eight collections, re-read every six hourssynced
Originals cached / S3Story 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

BCC overall9.7% · 20,768 of 214,660 items
SourceIn scopeSearchable nowProgress
BCC PDFsAbout 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 photosJob-folder photos on the BCC SharePoint site2,660 in the selected set; 9 are also filed under Story. Refresh is paused.all

Tenant-wide work to come

SourceIn scopeCurrent stateProgress
Revit models3,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 / schedules114 .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%
Proof of value · 30 Sep → 30 Nov 2026Week 6 of 9
  1. 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
  2. 1Photos to steady state
    • ●Selected photos indexed: 10,426
    • ●Job, company and year filters
    • ○Continuous refresh confirmed
  3. 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
  4. 3KI PDFs
    • ●20,014 distinct invoice PDFs searchable
    • ●SharePoint and KI copies merged
    • ○Remaining invoice attachment gaps
    • ○Other KI attachment types
  5. 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
  6. 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.

Start with the original. hev layer keeps the source file and folder links with each result. Use them to check the underlying document before acting on a match or a suggested code.
01

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.

Two sources, one indexOpen diagram ↗
Two read-only Warehouses feed hev layer: Story SharePoint, re-read one hour after each processing sweep, and KI, Story’s ERP, re-read every six hours. Both land in the Story index, where pages, photos and KI rows share KI ids. The return arrows mean another read, not a write-back.
The dashed arrows mean “check for changes again.” Nothing is written back to SharePoint or KI.

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.

KI records in hev layer · 10 Nov 2026
  1. Booked cost lines36,071
  2. Invoices20,301
  3. Vendors2,547
  4. Pay applications2,482
  5. Estimates1,900
  6. Cost codes1,356
  7. Jobs and leads1,323
  8. Contracts463
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

02

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.

From a PDF page to a filterOpen diagram ↗
Each PDF page from SharePoint or KI keeps its native text when it is readable; scanned or garbled pages go to OCR on GPUs that scale to zero. Classification Functions then label each page with a document type, suggest cost codes for invoices, and add job, region, stage and year context. Those attributes become filters in MCP and the API.
Example: an invoice’s text produces 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

Pages by doc_type · live, 10 Nov 2026200,366 typed of 849,983 pages
  1. other89,181
  2. drawing20,129
  3. bid_proposal17,001
  4. invoice16,222
  5. schedule14,810
  6. specification8,434
  7. prime_contract5,820
  8. pay_application4,676
  9. estimate4,409
  10. subcontract_po4,200
  11. insurance_certificate3,287
  12. safety3,180
  13. correspondence2,664
  14. permit1,923
  15. submittal1,558
  16. closeout1,492
  17. change_order771
  18. lien_waiver295
  19. meeting_minutes188
  20. solicitation48
  21. daily_report46
  22. rfi32
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

Invoice pages by suggested division · live, 10 Nov 202645 codes in use
  1. 06 Carpentry & millwork7,082
  2. 01 General requirements6,158
  3. 03 Concrete1,074
  4. 12 Cabinetry & countertops553
  5. 05 Structural steel469
  6. 02 Sitework & demolition279
  7. 16 Electrical271
  8. 15 Plumbing & HVAC249
  9. 09 Finishes200
  10. 07 Roofing, siding & insulation121
  11. 10 Specialties96
  12. 08 Doors & windows74
  13. 11 Appliances52
  14. 04 Masonry6
A page can carry more than one code. One code, 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.
Cost codes are suggestions for review.

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

  1. What’s inside “other”? Design presentations, selections, punch lists and warranty requests are candidates. Which documents do your teams go looking for?
  2. 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.
  3. Which documents beyond invoices need a code? Subcontracts and purchase orders, change orders and bids are the natural next set.
  4. Which fields would you filter on? Vendor, amount, invoice date and change-order number are each one more Function over the same pages.
  5. 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

03

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
AttributeTypeWhat it holds · most common valuesValuesAsk it like
doc_typestringDocument 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[]stringSuggested 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[]stringThe 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)[]stringCodes 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)[]stringThe 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”
jobstringKI 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”
companystringStory or Bristlecone.
Story 834,677Bristlecone 14,697
2“Only Story documents, not Bristlecone”
folder_1FolderstringFirst folder level under the job.
Design 109,928Procurement 53,64406_Schedules 52,547Design Files 43,325
224“Procurement documents for a job”
folder_2SubfolderstringSecond folder level under the job.
Deliverables 59,434Presentations 22,083Jurisdiction 16,324Drawing Files 15,755
971“Deliverables from the design team”
job_stageStagestringThe 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”
regionRegionstringState of the job’s division.
CO 259,252AZ 73,076(unknown region) 29,441TX 8,709
5“Arizona jobs only”
ki_projectprojectstringKI project name for the matched job.
Names withheld here; see the search app.
849“Documents for a named project”
clientstringKI client for the matched job.
Names withheld here; see the search app.
780“Documents for a named client”
divisionstringKI division for the matched job.
Denver Construction 191,365Scottsdale Design 68,635Denver Design 60,933Scottsdale Construction 3,859
5“Denver Construction jobs”
job_yearintYear from the job number.
2024 108,9502025 74,1482026 60,8072022 42,548
41“Jobs started since 2024”
file_yearintYear 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
AttributeValuesMost common values
company_memberships2
Story 7,775Bristlecone 2,660
job189
22-120 14622-061 1330124-056 9923-098 88
job_stage8
In progress 5,210Precon · Awarded 128Helios Foundation · Construction 18UEB Projects · Aurora Tempe 12
region5
CO 4,161AZ 1,977TX 85(unknown region) 1
division5
Denver Construction 3,142Scottsdale Design 1,703Denver Design 573Scottsdale Construction 127
taken_year20
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.

05

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.

CapabilityWhy it matters here
Precise cloud-drive selectionMultiple 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 embeddingsNative page embedding removes the previous 1,500-character cap. OCR recovers text from difficult pages; processing records source provenance and failures.
Functions follow changed inputsSource changes can requeue completed rows. Revision checks prevent delayed classification results from overwriting newer inputs.
MCP discovery and retrievalAn assistant can discover readable collections, search with typed filters, fetch rows and cite their source links.
Document groupingGroup 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 zeroInfraRules 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 notificationsEvery 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 statisticsDescribe 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 noticeWhat may explain it
A file never appearsIt may be outside the selected sources, awaiting extraction or indexing, unsupported, or failing processing.
Words on a scan are missingOCR 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 absentEnrichment may be pending, or its evidence may be missing or ambiguous. Remove the filter to broaden the search.
An invoice has no cost codeIts 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 expectedSearch 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.