diff --git a/.gitignore b/.gitignore index 0f753cd..5e9cd96 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,8 @@ web-app/node_modules/ web-app/.vite/ web-app/node_modules/.tmp/ web-app/*.tsbuildinfo + +# rendered pitch video (re-render from pitch/video) +docs/design-brief/Tagwerk-Demo.mp4 +pitch/video/out/ +pitch/*/node_modules/ diff --git a/docs/design-brief/CLAUDE-DESIGN-PROMPT.md b/docs/design-brief/CLAUDE-DESIGN-PROMPT.md new file mode 100644 index 0000000..9a5d75f --- /dev/null +++ b/docs/design-brief/CLAUDE-DESIGN-PROMPT.md @@ -0,0 +1,74 @@ +# Prompt for Claude Design: Tagwerk pitch deck + +Paste everything below the line into Claude Design. Attach screenshots (dashboard, Gantt, task graph, 3D scan, +Tagesbericht, notice draft, phone upload) if available. + +--- + +Create a 12-slide 16:9 pitch deck (1920x1080) for **Tagwerk**, our entry for hackathon Challenge B, "AI Site +Manager Assistant for Documentation, Daily Reports and Claims". It is a 5-minute pitch with a 2-minute live demo +in the middle. The jury mixes construction practitioners (site managers, contractor reps, possibly a construction +lawyer) and technical/VC judges. + +**Core message:** The site manager talks while walking the site. By evening Tagwerk has filed the evidence +against the contract (GAEB bill of quantities) and the schedule (Primavera P6), written the Tagesbericht, and +drafted the notice the delay needs. The site manager reviews and signs. + +**German tagline:** "Reden statt tippen: der Tagesbericht schreibt sich beim Rundgang." +**Closing line:** "Tagwerk: the day's work, documented." + +## Visual system (match our app exactly) +- Look: shadcn/ui neutral theme. White background `#FFFFFF`, ink `#0A0A0A`, surface `#F5F5F5`, border `#E5E5E5`, + muted text `#737373`. Dark slides (title, demo, close) on `#141416`. +- One accent only: blue `#2563EB` (voice/recording). +- Semantic colours, used only for meaning: done `#16A34A`, in progress `#F59E0B`, delay/critical `#DC2626`, + vision-only proposal `#8B5CF6` dashed. At most one semantic colour per slide besides blue. Red only where there + is a delay or claim risk. +- Font: Geist (fallback Inter). Headings semibold 40-48 pt, body 18-22 pt, KPI numbers 60-96 pt tabular. + Small uppercase muted labels 12-14 pt with +0.04em tracking. +- 12-column grid, 96 px margins, 24 px gutters. Cards with 10 px radius, 1 px border, no shadows. +- Lucide line icons, 2 px stroke (Mic, Video, FileText, CalendarClock, TriangleAlert, Users, CloudRain, Network, + Box, Check). +- Logo: black rounded square with a white "T". +- Tone: calm, factual, practitioner-first. German site terms stay German (Tagesbericht, Behinderungsanzeige, + Verzug +1 AT). No "revolutionary", no "AI lawyer". No pie charts, no 3D charts. + +## Slides +1. **Tagwerk** (dark). Logo, tagline, team, "Challenge B: AI Site Manager Assistant". Full-bleed photo of a site + manager on site holding a phone, darkened. +2. **16:30 im Baucontainer.** Scattered inputs (photos, voice memos, paper diary, emails) collapsing into one + empty Bautagebuch form. Small stat: "35 % of working time goes to non-productive work such as searching for + project data and rework" (FMI/PlanGrid 2018, ~600 construction leaders), cited in small type. +3. **Ein vergessener Satz kostet Wochen.** Timeline: 10:00 excavator idle, 10:05 quick phone call, nothing in + writing, weeks later the claim is rejected. VOB/B §6(1): hindrance must be reported "unverzüglich + schriftlich", otherwise extension of time and compensation can be lost. Same for Mehrkostenanzeige (§2) and + Bedenkenanzeige (§4(3)). +4. **Reden statt tippen.** One capture, four outputs: phone (30 s video + voice) fanning out to (1) live evidence + graph, (2) dashboard with forecast, (3) Tagesbericht PDF, (4) notice draft (Behinderungsanzeige). +5. **Demo: ein Tag auf der Baustelle** (dark). Only "LIVE" and a small URL/QR. Placeholder for switching to the + browser. +6. **Vom Satz zum Bauteil.** Horizontal pipeline: phone upload, Whisper speech-to-text, YOLO + ArUco vision, + weather, structuring (Claude or German rule fallback), project state, Neo4j graph, live dashboard. Footer: + "Runs on one laptop GPU. Works offline." +7. **Beweis statt Behauptung.** Three trust rules: voice confirms, vision only proposes (dashed violet); states + only go up, every change keeps its quote and timestamp; every element linked to a GAEB position and a P6 + activity. Mini graph: GAEB position, activity, zone, recording, event. +8. **Abweichung erkannt, bevor sie teuer wird.** Gantt-style chart: baseline vs forecast bar with a hatched red + slip segment, annotation "2x Trockenbau krank, +1 AT". KPI chips: Ist/Soll %, SPI, Prognose-Ende 01.12., + Verzug +1 AT, offene Mängel. Caption: "projection from today's evidence". +9. **Vom Verzug zur Anzeige.** Split: left, Tagesbericht section "5. Behinderungen / Verzug" (activity, cause, + +AT, quote, time); right, the generated Behinderungsanzeige draft (project, contract, hindering circumstance, + since when, affected works, expected schedule effect) with "Entwurf, Prüfung durch Bauleitung" stamp and an + approve/edit button. Footer: "Entwurfsunterstützung, keine Rechtsberatung." +10. **Challenge B: abgedeckt.** Checklist grid with green ticks: voice capture on mobile; daily report analysis + vs plan; notice drafts from keywords; structured summaries; correspondence on deviation; human in the loop; + PDF export. +11. **Positionierung.** 2x2: x axis capture effort (manual forms to passive talk/film), y axis link to contract + and schedule (free text to element-level BoQ + schedule). Fieldwire, Procore Daily Log bottom-left; Capmo, + PlanRadar bottom-right; P6 top-left; Buildots, Doxel top-right but "needs BIM + hardware"; Tagwerk top-right + in blue, "works without BIM, captures causes". Proof strip: 2,082-element real BIM project, P6 XML / GAEB + X83/X84 / .ics exports, automated tests. Footnote "Based on public vendor information, Nov 2026." +12. **Tagwerk** (dark, title photo). Core message, "Next: pilot with one Bauleiter", contact/QR, disclaimer + "Entwurfsunterstützung, keine Rechtsberatung." + +Add short speaker notes per slide (2-3 sentences). Keep each slide to one idea. diff --git a/docs/design-brief/DECK-BRIEF.md b/docs/design-brief/DECK-BRIEF.md new file mode 100644 index 0000000..7bdd387 --- /dev/null +++ b/docs/design-brief/DECK-BRIEF.md @@ -0,0 +1,273 @@ +# Tagwerk: pitch deck design brief (Challenge B) + +Status: brief only, no slides built. Every product claim below is checked against the repo as of 2026-11-21 +(`README.md`, `docs/DEMO.md`, `docs/RELEASE-NOTES.md`, `docs/UI-V2-CONTRACT.md`, `docs/REVIEW-2026-11-21.md`, +`web-app/`, `web/`, `tagwerk/`). Anything not in the code is labelled **roadmap**. Repo paths are relative to the +repo root. + +--- + +## 1. Audience, judging criteria, core message, narrative arc + +### Audience +- **Challenge B jury.** Expect a mix of construction practitioners (site managers, a contractor or client + representative, maybe a construction lawyer) and technical or VC judges. Practitioners will check whether the + German terms are right (Bautagebuch, Behinderungsanzeige, VOB/B, AT = Arbeitstage). Technical judges will ask + how it is built and what is real. +- **What they have already seen:** many "ChatGPT writes your letter" prototypes. Tagwerk stands out by + grounding every sentence in evidence (who said what, when, on which element and contract position), not by + producing text. + +### Likely judging criteria (typical hackathon rubric) +| Criterion | Typical weight | What the deck must prove | +| --- | --- | --- | +| Problem clarity and relevance | ~15-20 % | Documentation burden plus the legal stakes of late or missing notices | +| Innovation | ~25-30 % | Voice/video becomes an evidence graph tied to GAEB and P6, not free text | +| Technical execution, working MVP | ~25 % | A live or replayed demo inside the first 90 s of the demo slot; tests; real dataset | +| Impact and feasibility | ~25 % | Hours saved, claims protected, runs on one laptop GPU, fits German standards | +| Presentation | ~20 % | One clear story: "a day in the life" | + +Weights are indicative ([hackhq.io judging guide](https://hackhq.io/planning-guide/judging)). Judges' advice +is consistent: lead with the problem, scope down to one feature done well, and make the demo the centrepiece, +working within about 90 seconds +([JetBrains, "How to Win a Hackathon: Notes From the Judging Table"](https://blog.jetbrains.com/ai/2026/06/how-to-win-a-hackathon-notes-from-the-judging-table/); +[HackerEarth, 10 tips](https://www.hackerearth.com/blog/10-tips-win-hackathon)). Always have a backup recording. + +### Core message (one sentence) +**"The site manager talks while walking the site; by evening Tagwerk has filed the evidence against the contract +and schedule, filled in the Bautagebuch, and flagged the delay that needs a notice."** + +German tagline option for the title slide: *"Reden statt tippen: der Tagesbericht schreibt sich beim Rundgang."* + +### Narrative arc (problem, then turn, then proof) +1. **Pain:** 16:30, the Bauleiter is back in the container with photos, voice memos and a paper diary, and two + hours of typing ahead. +2. **Stakes:** if a hindrance is not reported in writing without undue delay, claims for extra time and money + can be lost (VOB/B §6). +3. **Turn:** what if the walk itself were the documentation? +4. **Demo:** film and talk for 30 s, then show the live graph, dashboard, forecast shift and auto-filled + Tagesbericht. +5. **Why it is trustworthy:** evidence rules (voice confirms, vision only proposes), contract/schedule linkage, + human sign-off. +6. **Where it goes:** from a detected deviation to a drafted Behinderungsanzeige or Mehrkostenanzeige + (roadmap), positioned against Capmo, PlanRadar, Procore and Buildots. +7. **Close:** "Tagwerk: the day's work, documented." + +--- + +## 2. Slide-by-slide outline (12 slides, about 5:00) + +Timing budget: 2:10 of slides and narration, 2:00 of demo, about 0:50 spare. If the demo runs live from the +phone, start the upload during slide 2 (processing takes about 8 s for the result and about 60-75 s for the 3D, +per `docs/DEMO.md` "3-Minuten-Demo"). Put up a Wi-Fi-loss fallback: `curl … -F replay_of=uw-video` or the +`/graph` replay picker. + +| # | Title | Key message | On-slide content | Visual | Speaker-note gist | Time | +|---|---|---|---|---|---|---| +| 1 | **Tagwerk** | The site walk becomes the documentation | Logo (black rounded square, white "T", from `web/app/favicon.svg`), tagline, team names, "Challenge B: AI Site Manager Assistant" | Full-bleed photo: a site manager on a site holding a phone (own photo or a keyframe from `demo-media/user_walk.mp4`) | One sentence on who you are; "we built this for the person who leaves the site last." Start the phone upload now if demoing live. | 0:15 | +| 2 | **16:30 im Baucontainer** | Documentation eats the site manager's day | Three scattered inputs (photos, voice memos, diary, emails) leading to one empty Bautagebuch form. Stat: "35 % of working time goes to non-productive work such as searching for project data and fixing rework (FMI/PlanGrid, ~600 construction leaders)." | Messy collage turning into a clean form | Tell it as a day-in-the-life moment. Do not claim the 35 % is all documentation (see section 5). | 0:25 | +| 3 | **Ein vergessener Satz kostet Wochen** | Late notices lose claims | VOB/B §6(1): hindrance must be reported "unverzüglich schriftlich". Without it, extension of time and compensation may be lost. Same pattern for Mehrkostenanzeige (§2) and Bedenkenanzeige (§4(3)). | Timeline: 10:00 excavator idle, 10:05 a quick call, nothing in writing; weeks later the claim is rejected | The evidence exists (it was said out loud on site) but never reaches a formal document. That is the gap. | 0:20 | +| 4 | **Reden statt tippen** | One capture, three outputs | Left: phone with a 30 s video plus voice. Right: (1) live evidence graph, (2) dashboard with forecast, (3) Tagesbericht PDF. Small label: "Notice drafts: roadmap". | Simple three-way fan-out diagram | The promise in one breath. Hand over to the demo. | 0:15 | +| 5 | **Demo: ein Tag auf der Baustelle** | It works, live | Clean slide with only a QR/URL and "LIVE", or go straight to the browser | Browser: `/app#/dashboard`, then Live-Graph, then 3D, then Tagesbericht | Follow DEMO.md "3-Minuten-Demo": the recording appears under "Aufnahmen des Tages"; changes with quotes; "zwei Mann vom Elektriker sind krank" moves the forecast; Gantt delay in red; open the Tagesbericht and print it to PDF. Fallback: cached replay `uw-video` or the Hörsaal `cap-e2e-2`. | 2:00 | +| 6 | **Vom Satz zum Bauteil** | How it works | Pipeline strip: Phone upload, ffmpeg, Whisper (int8), YOLO11s + YOLO-World + ArUco (+ RelateAnything), weather (Open-Meteo), structuring (Claude tool schema or German/Dutch/English rules), project state, Neo4j, websocket. "Runs on one GTX 1060 laptop." | Horizontal pipeline using the app's semantic colours | Stress "Claude is optional; rule fallback works offline" and "replay with no GPU or network". | 0:20 | +| 7 | **Beweis statt Behauptung** | Trustworthy by design | Three rules: (1) voice/note confirms, vision only proposes (dashed violet nodes); (2) element states only go up, every change keeps its quote and timestamp; (3) linked to GAEB position and P6 activity. Mini task graph: GAEB, activity, zone, recording, event. | Screenshot of the `/app#/graph` task graph (TaskGraph colours) | This answers the jury's hallucination worry. Claude cannot claim voice evidence without a matching quote (`enforce_evidence`, review fix 3). | 0:20 | +| 8 | **Abweichung erkannt, bevor sie teuer wird** | Plan vs actual, automatically | Forecast chart: baseline vs forecast finish, with the shift caused by the absence. KPI chips: Ist/Soll %, SPI, Prognose-Ende, Verzug in AT, offene Mängel. Callout: "Rehearsed: 'zwei Mann krank' moved the forecast 30.11. to 01.12. (12.6 s incl. cold start)." | Line/Gantt chart (see section 4) | Forecast = remaining work simulated day by day with crew minus absences; successors shift. Labelled "projection from today's evidence". | 0:20 | +| 9 | **Vom Verzug zum Anzeigen-Entwurf** | The next step: drafts, not legal advice | Today (implemented): the Tagesbericht section "5. Behinderungen / Verzug" lists activity, cause, +AT. **Roadmap:** one click turns it into a Behinderungsanzeige draft (project, contract, hindering circumstance, since when, affected works, expected effect on schedule), plus Mehrkosten- and Bedenkenanzeige templates; Word/PDF; the site manager reviews and signs. | Split: real report section screenshot on the left, mocked letter draft on the right clearly stamped "Roadmap / Entwurf" | The fields a valid notice needs are exactly what Tagwerk already stores. Say "drafting support, no legal advice". | 0:20 | +| 10 | **Challenge B: abgedeckt** | Fit with the brief | Compressed version of the mapping table (section 3): green tick = implemented, half = partial, outline = roadmap | Checklist grid | Be honest: letter drafting and minutes/email summaries are roadmap. | 0:15 | +| 11 | **Positionierung** | Only tool linking voice evidence to contract and schedule without BIM | 2x2 (section 5). Proof row: 2,082-element real BIM project (Schependomlaan), 100 tasks; P6 XML, GAEB X83/X84, .ics exports; 83+ automated tests | 2x2 matrix plus a strip of numbers | Capmo/PlanRadar do voice-to-diary; Buildots/Doxel do camera progress against BIM; Tagwerk ties the spoken evidence to the BoQ and schedule. | 0:20 | +| 12 | **Tagwerk** | Close and ask | "Next 4 weeks: notice drafts, corrections with audit trail, pilot with one Bauleiter." Contact/QR. Disclaimer line: "Entwurfsunterstützung, keine Rechtsberatung." | Return to the title photo, darkened | End on the core sentence. | 0:15 | + +Total about 5:00 (2:10 slides + 2:00 demo + 0:50 buffer for transitions and questions). + +--- + +## 3. Challenge B mapping: objective/use case to Tagwerk feature + +Legend: **Implemented** (in code and tested or rehearsed), **Partial** (some of it is in code), **Roadmap** (not in code). + +| Challenge B objective / use case | Tagwerk feature | Status | Repo reference | +|---|---|---|---| +| Voice/text capture via mobile | Phone browser upload of video/photos/audio plus typed note; Whisper int8 transcription (German/Dutch/English) | Implemented | `web/upload/index.html`, `tagwerk/api/app.py` (`POST /captures`), `tagwerk/pipeline/speech.py` | +| Automatic daily report analysis vs plan | BoQ-weighted activity %, SPI, day-by-day forecast with absences, FS/SS successors, delay per activity with cause | Implemented | `tagwerk/project.py`, `tagwerk/pipeline/loop.py`, `tagwerk/v2.py` (`/api/v2/day`), `web-app/src/components/KpiStrip.tsx`, `dashboard/Gantt.tsx` | +| Daily report (Bautagebuch) generation | Auto-filled German Tagesbericht: work done with quotes, crew present/absent, 3D-scan inventory, events, delays, lookahead, photos, weather, signature line | Implemented | `tagwerk/report.py`, `/api/v2/report`, `/export/report.html`, `web-app/src/components/report/ReportView.tsx` | +| PDF / Word export | PDF via browser print (A4 print CSS); Word | Partial (PDF via print only; Word is roadmap) | `web-app/src/index.css` (`@media print`), `tagwerk/report.py` | +| Smart letter drafts from keywords (Behinderungs-, Mehrkosten-, Bedenkenanzeige) | Data for the notice exists (cause, affected activity, +AT, quote, time); no letter generator | Roadmap (data layer ready) | Basis: ReportView section "5. Behinderungen / Verzug"; `tagwerk/v2.py` delays/events | +| Structured summaries of diary, minutes, emails | Voice/notes become structured events (absence, delay, defect, delivery, labour); minutes/email ingestion not built | Partial (voice/notes only) | `tagwerk/pipeline/structure.py`, `contracts/structured.schema.json` | +| Automatic correspondence when deviations are detected | Deviations detected live (delay, absence, weather constraint events, defects) and pushed to the dashboard by websocket; outgoing correspondence not built. `.ics` export of captures and daily reports (not a letter) | Partial (detection yes, correspondence roadmap) | `tagwerk/v2.py` (weather events), `tagwerk/events.py`, `web-app/src/components/dashboard/EventsTile.tsx`, `tagwerk/pipeline/export.py` (`captures_to_ics`) | +| Human in the loop | Vision only proposes, voice/note confirms; proposals shown dashed "nur Bild, zu bestätigen"; manual confirm on `/site`; Claude output validated, rule fallback. Correct/reject with audit trail not built | Partial | `tagwerk/pipeline/structure.py` (`enforce_evidence`), `/api/elements/{id}/confirm`, `web/site/index.html`, `TaskGraph.tsx`; roadmap: `tagwerk-fix-plan.md` B1/B2 | +| Use case: form assistant ("excavator idle since 10 am due to …") | Absences by trade, delays, defects, deliveries recognised from speech; idle equipment and hindrance-notice form not built | Partial | `tagwerk/pipeline/structure.py` (rules), `tests/test_demo_phrases.py` | +| Use case: daily report analysis | See row 2 | Implemented | as above | +| Use case: documentation drafts from photos/notes | Photos/keyframes plus note go into the report; 3D room scan with labelled objects and relations ("neben Wand") | Implemented | `tagwerk/pipeline/sfm.py`, `vision.py`, `/api/v2/scan3d/{cid}`, `web-app/src/components/scan/ScanView.tsx` | +| Use case: minute summaries | Not built | Roadmap | none | +| Use case: deviation alerts | In-app: red delay in Gantt, events tile with severity badges, live websocket refresh. Push/email alerts not built | Partial | `EventsTile.tsx`, `Gantt.tsx`, `/events` websocket | +| Deliverable: prototype with chat/voice and PDF/Word export | Voice and video upload, not chat; PDF via print | Partial | `web/upload/index.html`, `/export/report.html` | +| Deliverable: "A day in the life" demo | 3-minute rehearsed runbook with fallbacks | Implemented | `docs/DEMO.md` ("3-Minuten-Demo") | +| No legal advice | Disclaimer not yet in the UI | Roadmap (add to report footer and deck) | none | +| Beyond the brief: link to contract and schedule | GAEB X83/X84 and P6 XML export, element to BoQ position to activity mapping, Neo4j graph | Implemented (P6 XML not yet imported into a real Primavera) | `tagwerk/pipeline/export.py`, `seed/mapping.csv`, `tagwerk/graph/sync.py` | + +--- + +## 4. Visual identity + +The deck should look like the product. The React app (`web-app/`) uses shadcn/ui's neutral theme with Geist, and +colour is used only for meaning (state, severity, evidence type). Keep that discipline: monochrome base, semantic +accents. + +### Palette (from `web-app/src/index.css`, `TaskGraph.tsx`, `BimView.tsx`, `SceneView.tsx`) +| Role | Hex | Source / use | +|---|---|---| +| Ink (text, logo) | `#0A0A0A` / `#171717` | shadcn `--foreground` oklch(0.145 0 0); favicon fill `#171717` | +| Background | `#FFFFFF` | `--background` | +| Surface / muted | `#F5F5F5` | `--muted`, not-started nodes | +| Border | `#E5E5E5` | `--border` oklch(0.922 0 0) | +| Muted text | `#737373` | `--muted-foreground` oklch(0.556 0 0) | +| **Brand accent: recording/voice** | `#2563EB` (dark `#1D4ED8`) | Recording nodes in the task graph; BIM selection. Use as the one accent colour across the deck | +| Done / confirmed | `#16A34A` (tint `#DCFCE7`) | Done activities, PROGRESSED edges, BIM "target state reached" | +| In progress / warning | `#F59E0B` / `#D97706` (tint `#FEF3C7`) | Started elements, medium severity, "Demo-Daten" badge | +| Delay / critical | `#DC2626` (tint `#FEE2E2`) | Delay outline, high severity, "+N AT" | +| Proposal (vision only) | `#8B5CF6` (tint `#F5F3FF`) dashed | "Vorschlag (nur Bild, zu bestätigen)" | +| Zone / place | `#7DD3FC` on `#F0F9FF` | Zone nodes | +| 3D dark stage | `#141416` + cyan `#22D3EE` | 3D scan viewer background and camera path | + +Rules: at most one semantic colour per slide besides the accent blue. Red appears only where there is a delay +or claim risk. Dark slides (title, demo, close) use `#141416` to echo the 3D viewer. + +### Typography +- **Geist** (variable, bundled via `@fontsource-variable/geist`): headings in Semibold/650 at 40-48 pt, body + Regular at 18-22 pt, KPI numbers in Semibold with tabular figures at 60-96 pt. +- Small caps-style labels (12-14 pt, uppercase, +0.04em tracking, muted grey), as in the old dashboard's + `.kpi .label`. +- German UI terms stay German in italics or chips (*Tagesbericht*, *Behinderungsanzeige*, *Verzug +1 AT*); + narration is in English if the jury is international. +- Fallback when Geist is missing in PowerPoint: Inter, then system sans. Embed the font or export to PDF. + +### Layout grid +- 16:9, 1920×1080, 12-column grid, 96 px outer margins, 24 px gutters. +- Title band at top-left (y 96-200), content area below; one idea per slide. +- Cards with 10 px radius (`--radius: 0.625rem`), 1 px `#E5E5E5` border, no drop shadows (shadcn look). +- Screenshots in a thin browser frame or a phone frame with 16 px radius; never stretched. + +### Iconography +- **Lucide** line icons (the app uses `lucide-react`), 2 px stroke, 24/32 px: `Mic`, `Video`, `FileText` + (Tagesbericht), `CalendarClock`, `TriangleAlert`, `Users`, `CloudRain`, `Network`, `Box` (3D), `Check`. +- Logo: black rounded square with a white "T" (`web/app/favicon.svg`); usable as a bullet or watermark. + +### Imagery and screenshot list (capture at 1920×1080, Hörsaal or `userwalk` project, after `reset_demo.py`) +Do not show the amber "Demo-Daten" badge, which appears when the app falls back to mock data. Capture against a +live API. +1. `/app#/dashboard` (today 26.11.): KPI strip plus the three tiles; one recording expanded with transcript, + quotes and changes. +2. `/app#/dashboard`: Gantt view with the red delay and today line; activity detail sheet open (GAEB positions, + cause). +3. `/app#/graph`: task graph (GAEB, activity, zone, recording, event, proposal) with the replay video panel on + the left, mid-replay, captions highlighted. +4. `/app#/scan/uw-video`: 3D point cloud, camera path, labelled objects, one label clicked to show relations. +5. `/app#/report/2026-11-26` and `/export/report.html`: the A4 Tagesbericht, including section 5 + "Behinderungen / Verzug". +6. `/app` on :8081 (Schependomlaan), BIM-Modell tab: building coloured by state; two frames (08.07. and + 24.07.2015) for a "watch it grow" pair. +7. `/upload` on a phone (portrait, in a phone frame). +8. Legacy pages, only as backup or appendix: `/graph` (vis-network live graph with the ▶ Abspielen picker), + `/dashboard` (old Bauleiter dashboard), `/site` (tap-to-confirm states), `/scan`. +9. Photo: a real site walk keyframe from `user_walk.mp4` (own footage) for slides 1 and 12. + +### Chart ideas +- **Forecast shift (slide 8):** two horizontal bars per affected activity (baseline vs forecast), with a + hatched slip segment like `Gantt.tsx` (`#g-hatch`) and an annotation "2× Elektriker krank, +1 AT". Real + rehearsed numbers: forecast 30.11. to 01.12.2026, A1080 28.9 % to 34.4 % (`docs/RELEASE-NOTES.md`). +- **Progress curve:** planned vs actual % over the day slider (Hörsaal plan history 09.-19.11. plus captures). +- **SPI gauge or chip:** Schependomlaan replay 1.09 to 1.10, Ist 83.7 % to 84.6 % (`docs/DEMO.md`). Note on the + slide that these are planned-state snapshots, not as-built data. +- **Time saved (slide 2 or 12):** a simple bar "today: X h typing" vs "with Tagwerk: review and sign". + Present it as a target hypothesis, not a measured result. +- Use the semantic palette only; no 3D charts, no pie charts. + +### Tone +Calm, factual, practitioner-first. Short German site phrases quoted verbatim ("Stuhlreihe A ist montiert", +"zwei Mann vom Trockenbau sind krank"). Claims carry a source or the label "rehearsed" / "roadmap". No +"revolutionary", no "AI lawyer". + +--- + +## 5. Proof points, stats, competitor positioning + +### External stats (with confidence) +| Claim for the deck | Source | Confidence / caveat | +|---|---|---| +| Construction leaders spend 35 % of their time (>14 h/week) on non-productive activities: looking for project data (5.5 h), conflict resolution (4.7 h), mistakes and rework (3.9 h); survey of ~600 leaders, 2018; ~$177 bn US labour cost | FMI / PlanGrid "Construction Disconnected" (2018), [PDF](https://pg.plangrid.com/rs/572-JSV-775/images/Construction_Disconnected.pdf); [Autodesk summary](https://www.autodesk.com/blogs/construction/construction-disconnected-fmi-report/); [Construction Dive](https://www.constructiondive.com/news/industry-could-be-overspending-177b-per-year-study-finds/529450/) | High as a figure. It is not "documentation time"; use the wording "non-productive work such as searching for data and rework". Many vendor blogs misquote it | +| German trades lose on average 1.2 working days per week to documentation duties (survey of 1,097 businesses) | BENZ24 survey via [openPR](https://www.openpr.de/news/1292604/Dokumentationsaufwand-kostet-Handwerker-12-Arbeitstage-Woche-BENZ24-digitalisiert-Baustellen-Buerokratie.html) | Medium-low: vendor survey, Handwerk not Bauleiter. Use only as "industry surveys suggest" | +| Bauleiter spend 3-5 h/week reworking documentation afterwards, ~200 h/year | [digital-magazin.de](https://digital-magazin.de/ki-baustellendokumentation/); similar 5 h/week at [bau-master.com](https://bau-master.com/baublog/digitales-bautagebuch/) | Low: unnamed surveys, vendor blogs. Do not put on a slide as hard data | +| Peer-reviewed German time study of site managers (activity shares in %) | TU Wien diploma thesis, Chriti (2015), [repositum.tuwien.at](https://repositum.tuwien.at/bitstream/20.500.12708/3040/2/Chriti%20Manuela%20-%202015%20-%20Aufnahme%20des%20zeitlichen%20Arbeitsaufwandes%20und%20Ermittlung...pdf) | Not yet read; the team should pull the documentation share from it if a German academic figure is wanted | +| VOB/B §6(1): the contractor must report a hindrance to the client "unverzüglich schriftlich" (without culpable delay, §121 BGB); already when it threatens; addressed to the client, not only the architect; content: circumstance, since when, affected works, expected effect on schedule. Without notice, extension of time (§6(2)) and compensation/damages (§642 BGB, §6(6)) can be lost unless the client obviously knew | [hoai.de](https://www.hoai.de/gesetze-recht/vob/behinderungsanzeige/), [forum-verlag.com](https://www.forum-verlag.com/fachwissen/bau-und-gebaeudemanagement/behinderungsanzeige/), [nevaris.com](https://www.nevaris.com/blog/behinderungsanzeige/) | High on the norm text; practice guides, not commentary. Whether e-mail counts as "schriftlich" is disputed: say "documented delivery" | +| Mehrkosten/Nachträge: VOB/B §2(5)/(6); additional work under §2(6) must be announced before execution. Bedenkenanzeige: §4(3) | Standard VOB/B structure (verify wording on the slide against the VOB/B text) | Medium: from domain knowledge, not re-fetched in this research | + +### Internal proof points (repo-grounded) +- Rehearsed 3-minute demo: 70 s walk video done after **8 s**, 3D after **61 s** (30 frames registered, 21 + objects) on a GTX 1060 laptop (`docs/DEMO.md`). +- End-to-end test: E-ROW-A confirmed with evidence `both`; A1080 28.9 % to 34.4 %; forecast 2026-11-30 to + 2026-12-01 from "zwei Mann krank"; **12.6 s including cold model load** (`docs/RELEASE-NOTES.md`). +- Real open BIM data: Schependomlaan import with **2,082 elements, 100 real tasks, 6 storeys**; the Dutch note + confirms 91 walls (`README.md`, `docs/RELEASE-NOTES.md`). The BIM viewer shows 3,504 elements, 2,081 linked + (`docs/DEMO.md`). +- Exports: P6 XML (baseline and progress, FS+SS), GAEB DA XML X83/X84, Outlook .ics, A4 Tagesbericht. +- Tests: 83 passed / 1 skipped at the release (`docs/RELEASE-NOTES.md`); the later review baseline reports 113 + passed / 3 skipped (`tagwerk-fix-plan.md`). Quote whichever the current `pytest` run shows on demo day. +- Works offline: rule-based structuring without Claude, bundled fonts and vis-network/three.js, replay with no + GPU or network. + +### Competitor positioning +Competitor features are from vendor pages and third-party comparisons, not verified hands-on. + +| Tool | What it does (per sources) | Gap Tagwerk fills | +|---|---|---| +| **Capmo** (DE) | "KI Diktiergerät": speak observations, get a structured Bautagebuch draft; voice to tickets; weather auto-filled ([Capmo support](https://support.capmo.com/sprechen-statt-tippen-im-bautagebuch-mit-der-capmo-ki), [Capmo Bautagebuch](https://www.capmo.com/en/produkt/bautagebuch)) | No element-level link to the GAEB BoQ and P6 schedule, no forecast from spoken absences (not seen in sources) | +| **PlanRadar** (AT) | AI form/report builders, voice-to-ticket, AI agents ([PlanRadar 2026 comparison, vendor](https://www.planradar.com/us/the-15-best-construction-management-software-tools-in-2026-compared-honestly/)) | Ticket/defect-centric; schedule impact not shown | +| **Procore** | Daily Log with ~20 entry types, weather, AI summaries / Daily Log Agent; still largely manual field input ([SmartBarrel](https://smartbarrel.io/blog/best-construction-daily-report-apps/), [constructiondailyreportsoftware.com](https://constructiondailyreportsoftware.com/)) | US-centric, heavy; no VOB/GAEB focus | +| **Fieldwire** | Forms and punch lists, daily report from the Business tier ($64/user/mo); limited AI write-ups ([Fieldwire](https://www.fieldwire.com/blog/best-construction-management-software/), [PunchIQ](https://punchiq.ai/resources/best-construction-site-reporting-software)) | Manual capture | +| **Buildots** | Automated progress tracking from 360° helmet cameras vs BIM ([ONES.com](https://ones.com/blog/10-best-ai-tools-for-construction-project-management-in-2026/)) | Needs BIM and hardware; progress only, no diary/notices, no spoken causes (absences, hindrances) | +| **Doxel** | Robot/lidar scans compared to the design model daily ([ONES.com](https://ones.com/blog/10-best-ai-tools-for-construction-project-management-in-2026/)) | Same as Buildots | + +**2x2 for slide 11** +- X axis: *capture effort*, from manual forms (left) to passive talk/film while walking (right). +- Y axis: *link to contract and schedule*, from free text (bottom) to element-level BoQ + schedule (top). +- Bottom-left: Fieldwire, Procore Daily Log. Bottom-right/middle: Capmo KI, PlanRadar voice (easy capture, + weak linkage). Top-left/middle: P6 itself, Procore scheduling (linked, but manual). Top-right but BIM- and + hardware-bound: Buildots, Doxel. **Tagwerk:** top-right, with the label "works without BIM, captures causes, + not only progress". +- Footnote: "Positions based on public vendor information, Nov 2026." + +--- + +## 6. Risks and pitfalls + +1. **Overclaiming letter generation.** Behinderungs-, Mehrkosten- and Bedenkenanzeige drafting, minutes/email + summaries, Word export, push/email alerts and correction/reject with audit trail are **not implemented**. + Mark them "Roadmap" on slides 9, 10 and 12. If you mock a letter, stamp it "Entwurf / Mock-up". +2. **Legal-advice disclaimer.** The challenge says no legal advice. Put "Entwurfsunterstützung, keine + Rechtsberatung; Prüfung und Versand durch die Bauleitung" on slides 9 and 12 and later in the report footer + (not yet in the UI). Do not say a draft is "legally sound"; say "contains the elements a §6 notice needs". + The e-mail form question is disputed, so do not claim e-mail delivery is sufficient. +3. **Claude path maturity.** The Claude structuring path is tested only with a fake client (no API key on the + laptop; `docs/RELEASE-NOTES.md`). The demo runs on the German rules. Say "LLM-ready with a validated rule + fallback", not "Claude understands everything". The rules cannot resolve pronouns. +4. **Vision limits.** Vision recall on large surfaces is weak, with false positives. This is why vision only + proposes; say so before a judge spots it. +5. **Data realism.** The Hörsaal seed is a placeholder. Schependomlaan snapshots are planned states, so SPI is + inflated and started tasks read 100 %. The P6 XML was never imported into a real Primavera. Do not present + KPI values from `UI-V2-CONTRACT.md` or `src/mock/` as real results. Hide the "Demo-Daten" badge by using the + live API. +6. **Licences.** RelateAnything is **AGPL-3.0** (weights under the DINOv3 licence). The Schependomlaan dataset + is CC BY 4.0 for **academic use** with attribution (`seed/projects/schependomlaan/ATTRIBUTION.md`). Put a + credit line on any slide showing Schependomlaan. If asked about commercialisation, say RelateAnything would + be replaced or isolated, and pilot data would come from partner sites (`README.md` "Licences"; + `tagwerk-fix-plan.md` proposes freezing both). +7. **Stats hygiene.** Do not quote the FMI 35 % as "documentation time". Do not use vendor-blog hour figures as + facts. Cite on-slide in small type. +8. **Demo risk.** Hardware resume can break CUDA (`cuInit 999`), Wi-Fi may fail, and 3D may not finish in time. + Pre-warm models, keep the `uw-video` cached scan and `cap-e2e-2` replay ready, and have a screen recording as + the last fallback (`docs/DEMO.md` "Fallbacks"). Do not demo features added in the last hours. +9. **Privacy.** Filming people on site raises GDPR questions. Persons are detected by YOLO (and show up as + multiple 3D instances). Have one sentence ready: on-premise processing on the laptop, no cloud required in + rule mode; blurring is roadmap. +10. **Terminology.** Use Arbeitstage (AT), Bautagebuch/Tagesbericht, Auftraggeber/Auftragnehmer correctly. A + practitioner judge will notice errors. diff --git a/docs/design-brief/DEMO-VIDEO-SHOTLIST.md b/docs/design-brief/DEMO-VIDEO-SHOTLIST.md new file mode 100644 index 0000000..edc6ff5 --- /dev/null +++ b/docs/design-brief/DEMO-VIDEO-SHOTLIST.md @@ -0,0 +1,93 @@ +# Tagwerk demo video v2: "Das Einzige war das Wasser" + +Replaces the shot list in `VIDEO-BRIEF.md` §3. Style (§5), the Hörsaal recording checklist (§4.4) and the risk +notes (§6) in that brief still apply. + +**Length:** 3:00. **Format:** 1920×1080, 30 fps. **Language:** German site audio and dictation with burned-in +English captions; English voice-over (VO) for the explanations. +**Story:** the video follows the deck. It opens on 35 s of real excavation footage with no explanation, then takes +that clip apart: what the camera saw, what the site manager said, and how it lands on the schedule and the GAEB +bill of quantities. The water remark turns into a delay and a notice draft. Then the same engine runs live on the +seeded Hörsaal project, and the video closes back on the water. + +## Structure + +| Act | Time | Purpose | Deck slide | +| --- | --- | --- | --- | +| 1 Cold open | 0:00–0:35 | The real clip, uncut. Make the jury watch a site, not a product | 1 | +| 2 Breakdown | 0:35–1:20 | What Tagwerk saw (boxes) and heard (voice note) | 2, 3 | +| 3 Connection | 1:20–2:00 | Clip → element → P6 activity → GAEB position; water → delay → notice | 6, 8, 9 | +| 4 Live engine | 2:00–2:40 | Real screen capture on the Hörsaal project: dashboard, forecast, Tagesbericht, PDF | 10 | +| 5 Close | 2:40–3:00 | Back to the wall crest; the sentence is now documented | 13 | + +## Shot list + +Status: **have** = asset exists, **record** = still to film or screen-capture, **build** = motion graphic in the editor. + +| # | Time | Visual | Audio | Captions / on-screen | Asset | Status | +| --- | --- | --- | --- | --- | --- | --- | +| 1 | 0:00–0:02 | Black, small white text fades in | Site ambience fades up | "Baugrube · 21.11.2026 · 07:40" | none | build | +| 2 | 0:02–0:15 | `opening-baugrube.mp4` 0–13 s, vertical clip centred on dark background (as in deck slide 1): pit, crane lifting scaffold, wall-crest walk with water | Original audio | At 0:02 (the line at 0:00–0:02 of WA0000): DE small grey "Ich weiß nicht, wie tief das ist." / EN "I don't know how deep that is." | `site-frames/opening-baugrube.mp4` | have | +| 3 | 0:15–0:35 | Same file 13–35 s: excavation under the steel struts, two excavators, tractor hauling | Original audio | Near the end: DE "… das Einzige … war das Wasser." / EN "… the only thing … was the water." Hold the last frame 1 s | same | have | +| 4 | 0:35–0:40 | Freeze on the last frame; title card slides over: "35 Sekunden. Was hat Tagwerk daraus gemacht?" | Music in (soft) | EN subtitle "35 seconds. What did Tagwerk make of it?" | none | build | +| 5 | 0:40–0:52 | Four freeze frames side by side (deck slide 2 layout). Boxes draw on one after another: violet equipment, green elements, red water last | VO: "Every second, Tagwerk looks at a frame. Equipment and people, the building elements that are in the contract, and one thing that shouldn't be there." | Box labels from `boxes.json`; stats "33 frames · 17 objects · 1 deviation" | `det-*.jpg` or animate from `site-frames/boxes.json` on the raw frames | build | +| 6 | 0:52–0:58 | Zoom into `det-person` frame, red box "stehendes Wasser" pulses | VO: "Water on the pile wall. The camera can see it. It can't decide what it means." | none | `det-person.jpg` | build | +| 7 | 0:58–1:10 | Phone in hand (vertical, picture-in-picture left third): site manager taps record on `/upload` and speaks. Right two thirds: the transcript appearing | Dictation (DE, recorded clean): "Baugrube Abschnitt drei. Aushub dritte Lage unter der zweiten Steifenlage zur Hälfte fertig, zwei Bagger, ein Traktor mit Mulde. Gerüst an Achse zwölf umgesetzt. An der Bohrpfahlwand Nord steht Wasser, die Wasserhaltung reicht nicht." | EN captions, two lines at a time | phone footage + screen capture of `/upload` | record | +| 8 | 1:10–1:20 | Five fact cards stack in (deck slide 3 right column): 3× green, 1× red, 1× violet "Bohrgerät ×2 · offen" | VO: "Each sentence confirms something the camera saw. The piling rigs got no sentence, so they stay a proposal." | Card text as on slide 3 | none | build | +| 9 | 1:20–1:35 | Graph build: from the `struts-excavator` thumbnail, lines draw to "Baugrube BA 3, Lage 3" → "B2030 Aushub Lage 3" → "LV 01.02.0030 Aushub BK 3–5, m³"; chip "Ist 50 %" turns green | VO: "Every fact lands on an element, a schedule activity and a contract position. Progress is weighted by the bill of quantities." | Small footer: "Example LV positions for this site" | deck slide 6 row 1 | build | +| 10 | 1:35–1:45 | Second row draws: water → "Bohrpfahlwand Nord" → "B2040 Wasserhaltung" → "B2060 Sohle" | VO: "The water goes onto the dewatering activity. The slab can only start after the excavation." | none | deck slide 6 row 4 | build | +| 11 | 1:45–1:52 | Gantt (deck slide 8): red slip segment grows on Aushub, then Sohle moves; KPI "+2 AT" flips in | Music swell | "Sohle betonieren +2 AT · projection from today's evidence" | deck slide 8 | build | +| 12 | 1:52–2:00 | Notice draft (deck slide 9) slides in; cursor clicks "Freigeben & PDF" | VO: "And the delay that needs a notice gets a draft, with the video attached. The site manager decides." | "Entwurfsunterstützung, keine Rechtsberatung" | deck slide 9 or app screen | build / record | +| 13 | 2:00–2:05 | Title card: "Läuft heute schon. Live im Projekt Hörsaal." | VO: "This isn't a mock-up. Here's the engine running on our seeded project." | EN "Running today. Live on our demo project." | none | build | +| 14 | 2:05–2:15 | Screen: `/app#/dashboard`, morning state, then the hero walk replay arriving under "Aufnahmen des Tages" with quotes | Hero walk audio (DE) | EN captions of the dictation | Hörsaal hero walk replay | record | +| 15 | 2:15–2:25 | Dictation "Zwei Mann vom Trockenbau sind krank." → forecast moves 30.11. → 01.12., red delay in the Gantt | Dictation + click | Callout red outline on the forecast KPI | screen capture | record | +| 16 | 2:25–2:40 | `/app#/report/2026-11-26`: Tagesbericht scrolls to "5. Behinderungen / Verzug", notice draft generated, print to PDF | VO: "By evening: the daily report, the schedule impact, and the notice draft. Printed, ready to sign." | none | screen capture | record | +| 17 | 2:40–2:52 | Back to `walk-wall` footage (WA0000 10–13 s), slow push-in, darkened | Original ambience | Large: "„Das Einzige war das Wasser.“" then "Jetzt steht es im Bautagebuch, im Terminplan und in der Anzeige." / EN "Now it's in the site diary, the schedule and the notice." | `opening-baugrube.mp4` 10–13 s | have | +| 18 | 2:52–3:00 | End card (deck slide 13 style): logo, "Tagwerk: the day's work, documented.", team, repo | Music out | Disclaimer: "Entwurfsunterstützung, keine Rechtsberatung." | none | build | + +Acts 1 and 5 use only real footage. Acts 2–3 are motion graphics built from the deck slides, which can be exported +as PNG layers. Act 4 is the only live screen capture and must show the real app, never mock data. + +## Assets + +| Asset | Path (under `docs/design-brief/`) | Use | +| --- | --- | --- | +| Opening clip, 35.2 s, 478×850, H.264 + AAC | `site-frames/opening-baugrube.mp4` | #2, #3, #17 | +| Annotated frames (hand-corrected boxes) | `site-frames/det-crane.jpg`, `det-person.jpg`, `det-dig.jpg`, `det-struts.jpg` | #5, #6 | +| Box coordinates for animating boxes in the editor | `site-frames/boxes.json` | #5 | +| Square thumbnails | `site-frames/*-sq.jpg` | #9, #10 | +| Raw GPU worker output (vision + speech JSON) | `site-frames/worker-output/` | Proof if asked; not on screen | +| Deck slides 2, 3, 6, 8, 9, 13 | `Tagwerk-Pitch.pptx` (export slides as PNG) | #5, #8–#12, #18 | + +The source clip is only 478 px wide. Show it at its native size or in a phone frame and never stretch it to full +1080p width. A light sharpen pass in the editor helps. + +## Still to record + +1. **Voice note (#7).** About 15 s, German, quiet place or lavalier mic, phone held as on site. Read the script in + #7 exactly. Film the phone screen too (another phone or a screen capture via QuickTime + cable). +2. **Hörsaal screen capture (#14–#16).** Follow `VIDEO-BRIEF.md` §4.4: reset, restart, `DATA_DATE=2026-11-26`, no + "Demo-Daten" badge, 1920×1080 window at 110–125 % zoom. +3. **Notice draft in the app (#12).** If the letter feature is on the demo branch, capture its real screen for #12 + and #16 instead of the deck mock-up. + +## Editing rules + +- Vertical footage sits in the centre (Act 1) or the left third in a phone frame (Acts 2 and 4); the right two + thirds show the effect. +- **Box colours:** violet for equipment and people, green for building elements, red for the deviation. These match + the deck, and red appears only for the water. +- **Captions:** German original in small grey italics above the English line, only for real site audio and + dictation. +- **VO:** calm and factual, English, about 140 words per minute. Total VO in the script above is about 120 words. +- **Music:** minimal, no vocals, ducked under speech. One swell at #11. + +## Before publishing + +- Blur the colleague's face in the wall-walk shots (#2, #6, #17) unless he agrees in writing to appear. +- The excavation schedule, activity IDs and LV positions are examples. Keep the "Example" footer visible in #9–#11, + or seed this site as a project and capture the real screens instead. +- Test the dictation in #7 against the app before recording. Without an LLM key, the keyword rules don't know + "Aushub", "Steife" or "Wasserhaltung". +- The boxes are hand-corrected labels on the worker's frames. If a judge asks, the raw detections are in + `site-frames/worker-output/`. Say the labels were refined for construction vocabulary. diff --git a/docs/design-brief/README.md b/docs/design-brief/README.md new file mode 100644 index 0000000..07cce3f --- /dev/null +++ b/docs/design-brief/README.md @@ -0,0 +1,62 @@ +# Tagwerk design brief: pitch deck and demo video + +Two detailed briefs, one shared design system: + +- [DECK-BRIEF.md](DECK-BRIEF.md): 12-slide pitch (~5 min) with a 2-min live demo in the middle. +- [VIDEO-BRIEF.md](VIDEO-BRIEF.md): 2:45 "A day in the life of a site manager" demo video, 20-shot list. + +## Shared core message + +The site manager talks while walking the site. By evening Tagwerk has filed the evidence against the contract +(GAEB) and schedule (P6), filled in the Tagesbericht, and flagged the delay that needs a notice. The site manager +stays in control: vision proposes, voice confirms. + +Positioning: voice capture alone is not unique (Capmo, PlanRadar). The difference is the element-level link to +contract and schedule plus the forecast that moves with the day's evidence. + +## Unified visual system (both deck and video) + +Taken from `web-app/src/index.css` and components: + +| Role | Value | +| --- | --- | +| Base | neutral shadcn black/white; dark surfaces `#141416` | +| Accent (only one) | blue `#2563EB` | +| Done | green `#16A34A` (app also uses Tailwind emerald-500/600; use `#16A34A` everywhere in deck and video) | +| In progress / warning | amber `#F59E0B` | +| Delay / defect | red `#DC2626` | +| Vision-only proposal | violet `#8B5CF6`, dashed | +| Type | Geist (Variable) | +| Icons | Lucide | +| Corners | 10 px radius | +| Canvas | 1920x1080, 12-column grid | + +State colours carry meaning only, never decoration. + +## Challenge B fit (agreed by both briefs) + +| Status | Items | +| --- | --- | +| Implemented | phone voice/video capture; daily analysis vs plan (SPI, forecast shifted by absences); auto-filled German Tagesbericht; drafts from photos and 3D scan; in-app deviation alerts | +| Partial | PDF via browser print; human in the loop (no correct/reject UI yet); summaries of voice notes only | +| Roadmap | Behinderungs-, Mehrkosten-, Bedenken-/Mängelanzeige drafts; Word export; email and minutes summaries; automatic correspondence; in-app legal disclaimer | + +Roadmap items appear once, on a card labelled "ROADMAP", never as live features. Bridge line: the +"Behinderungen / Verzug" section of the Tagesbericht already holds the facts such a notice needs. + +## Open items before production + +1. Confirm the forecast numbers (A1080 28.9 % to 34.4 %, finish 30.11. to 01.12.) on a freshly reset state before + putting them on slides or captions. +2. Quote the test count `pytest` shows on demo day (docs disagree: 83 vs 113). +3. Record a new 25-35 s German site walk in a lecture hall; add it to `demo_replays` in `seed/project.json`. + Existing footage is not usable: the phone video is a finished venue (no construction), the screen recording is a + copyrighted third-party video, `id.m4a` is an internal English memo. +4. Do not pitch the `.ics` export as correspondence: it holds captures and daily reports. +5. "Drafting support, no legal advice" on the PDF shot, the end card and the closing slide. +6. No sourced German statistic on documentation time found. FMI/PlanGrid 2018 (35 % of time on non-productive + work) is the fallback; do not present it as documentation time. +7. Licences: RelateAnything AGPL-3.0, Schependomlaan academic use with attribution (credit on slide). +8. Highest-value build to close the gap before the deadline: a Behinderungsanzeige draft generated from the + Tagesbericht delay section, with PDF/Word export and an edit/approve step. That would move three roadmap + items to implemented. diff --git a/docs/design-brief/SITE-NARRATIVE.md b/docs/design-brief/SITE-NARRATIVE.md new file mode 100644 index 0000000..94d88de --- /dev/null +++ b/docs/design-brief/SITE-NARRATIVE.md @@ -0,0 +1,72 @@ +# Narrative: "Das Einzige war das Wasser" (real site footage) + +Two real phone clips from a deep excavation (Baugrube), filmed 21.11.2026. Both are vertical, 478×850. + +| Clip | Length | What is in it | Audio (Whisper, German) | +| --- | --- | --- | --- | +| `VID-20261121-WA0000.mp4` | 13 s | Pile wall and pit, snow patches, MEWP, site container; tower crane lifting a scaffold section; walk along the wall crest with a hi-vis colleague, standing water beside the walkway, piling rigs behind | "Ich weiß nicht, wie tief das ist." (0–2 s) | +| `VID-20261121-WA0003.mp4` | 22 s | Excavation under steel pipe struts, two excavators digging, a tractor with dump trailer hauling spoil, dust/water spray | Mostly unclear; clearly audible: "… das Einzige, was … war das Wasser." | + +Stills are in `site-frames/` (`walk-wall`, `crane-lift`, `struts-excavator`, `struts-haul`, plus `-sq` thumbnails). + +## The story in one line + +Thirty-five seconds of phone video on a real site become a Bautagebuch entry. Every observation is tied to a schedule +activity and a contract position, and one throwaway sentence about water turns into a delay with a notice draft. + +## Story beats (for the pitch and the video) + +1. **07:40, Kontrollgang Pfahlwand** (`walk-wall`). The site manager walks the wall crest. Water stands along the + wall. He says it out loud. *Engine:* voice note → event "Wasser an Bohrpfahlwand Nord" on activity + *Wasserhaltung*. The camera sees a hi-vis vest (person), nothing more. +2. **08:15, Gerüst umsetzen** (`crane-lift`). The crane moves a scaffold section. *Engine:* vision detects `crane`; + with no spoken confirmation this stays a **proposal** (dashed violet) on *Gerüst umsetzen*. This is the + human-in-the-loop moment: the camera suggests, the site manager decides. +3. **09:30, Aushub unter Steifen** (`struts-excavator`). Two excavators under the struts. Dictation: "Aushub dritte + Lage halb fertig." *Engine:* `excavator ×2`, `pipe` (struts) plus the sentence → progress 50 % on activity + *Aushub Lage 3*, BoQ-weighted against the GAEB excavation position (m³). +4. **09:45, Abfuhr** (`struts-haul`). Tractor and dump trailer. *Engine:* loads counted as evidence for the + *Boden laden und abfahren* position, which feeds the Aufmaß. +5. **The turn.** Back to the real audio: "Das Einzige … war das Wasser." Dewatering is behind, so the slab + (*Sohle*), which finishes-to-start after it, moves. Forecast shifts, the Gantt turns red. +6. **17:00.** Tagesbericht written, the delay section filled with the quote, time and affected activity, and a + Behinderungsanzeige draft waiting for approval. Disclaimer: drafting support, no legal advice. + +## Deck (added) + +- **Slide 5** "35 Sekunden Video. Ein ganzer Bautagebuch-Eintrag." Four real frames with detection chips (dashed + violet = camera proposal) and voice chips (blue = confirms). +- **Slide 6** "Vom Video zu Terminplan und LV". One row per piece of evidence: signal → element/zone → P6 + activity → GAEB position → effect (Ist 50 %, Fuhren fürs Aufmaß, Vorschlag, Verzug + Anzeige). + +## Demo video segment (about 45 s, insert after the hook) + +| # | Time | Visual | Audio / VO | On-screen | +| --- | --- | --- | --- | --- | +| 1 | 0:00–0:05 | `WA0000` 0–3 s, pit pan | Site ambience | "Baugrube, 21.11. Echtes Handyvideo." | +| 2 | 0:05–0:12 | `WA0000` 6–9 s, crane lift | Ambience | Violet dashed chip "crane → Vorschlag" pops on | +| 3 | 0:12–0:20 | `WA0003` 0–8 s, excavators under struts | Dictation: "Aushub dritte Lage halb fertig." | Chips `excavator ×2`, `pipe → Steife`; blue voice chip | +| 4 | 0:20–0:27 | `WA0000` 10–13 s, wall crest with water | Real audio: "… das Einzige war das Wasser." | Blue voice chip with the quote, English caption | +| 5 | 0:27–0:37 | Screen capture: graph links clip → element → activity → GAEB position | VO: "Every sentence lands on an element, an activity and a contract position." | Slide 6 row animation as fallback | +| 6 | 0:37–0:45 | Screen capture: Gantt slip and Behinderungsanzeige draft | VO: "The water becomes a delay, and the delay becomes a draft notice. The site manager signs." | "Entwurf, keine Rechtsberatung" | + +Edit notes: keep the clips vertical in a phone frame next to the screen capture (picture-in-picture), and blur the +colleague's face in `walk-wall` unless you have his consent. Add English captions to all German audio. + +## What has to be true before you show this as live + +1. **The engine needs this site as a project.** The seeded projects are the Hörsaal and Schependomlaan; neither has + excavation, struts or dewatering. To show it live, create a small seed (zones, elements, activities B2030–B2060, + GAEB positions) or run `scripts/scan_video.py --make-project baugrube` and add the activities and BoQ + by hand. Until then, the activity ids and LV positions on slide 6 are examples. The slide footnote says so. +2. **The rule fallback does not know excavation words.** `structure.py` and `seed/glossary.txt` cover the + auditorium vocabulary. "Aushub", "Steife", "Wasserhaltung" will only be understood via the Claude path or after + adding aliases. Test the exact dictation line before recording. +3. **The original audio is weak.** Only the water sentence is usable. Record the progress dictation ("Aushub + dritte Lage halb fertig") separately and lay it over the footage, or re-film on site. +4. **Vision vocabulary.** `crane`, `excavator`, `pipe`, `safety vest`, `hard hat` are in the YOLO-World class list + (`tagwerk/pipeline/vision.py`); "dump trailer" and "scaffold" are not, so check what the worker actually returns + on these clips and use those labels in the overlays. +5. **Two projects in one pitch.** The live demo runs on the Hörsaal; this footage is a different site. Either frame + the Baugrube as "the real-world test" before switching to the rehearsed demo, or seed the Baugrube and make it + the demo. diff --git a/docs/design-brief/Tagwerk-Pitch.pdf b/docs/design-brief/Tagwerk-Pitch.pdf new file mode 100644 index 0000000..a2aefc4 Binary files /dev/null and b/docs/design-brief/Tagwerk-Pitch.pdf differ diff --git a/docs/design-brief/Tagwerk-Pitch.pptx b/docs/design-brief/Tagwerk-Pitch.pptx new file mode 100644 index 0000000..61995e2 Binary files /dev/null and b/docs/design-brief/Tagwerk-Pitch.pptx differ diff --git a/docs/design-brief/VIDEO-BRIEF.md b/docs/design-brief/VIDEO-BRIEF.md new file mode 100644 index 0000000..3b4428e --- /dev/null +++ b/docs/design-brief/VIDEO-BRIEF.md @@ -0,0 +1,312 @@ +# Tagwerk demo video: design brief and shot list + +> **Superseded shot list (2026-11-21):** the story and shot list now open on the real excavation footage. See +> [DEMO-VIDEO-SHOTLIST.md](DEMO-VIDEO-SHOTLIST.md). Sections 4.4 (recording checklist), 5 (visual style) and 6 +> (risks) here still apply. + + +Status: brief only, nothing edited yet. Written 2026-11-21 against the repo state described in `docs/DEMO.md`, +`docs/UI-V2-CONTRACT.md` and `docs/RELEASE-NOTES.md`. Every on-screen action below is something the app does today, +unless it is marked **ROADMAP (do not show as live)**. + +--- + +## 1. Goal, audience, length, message, tone, language + +**Goal.** Win Challenge B ("AI Site Manager Assistant for Documentation, Daily Reports and Claims") by showing the +required use case, *"A day in the life of a site manager with an AI assistant"*, end to end on the real prototype, +ending on the PDF daily report (the required export). + +**Audience.** Hackathon judges (mix of construction practitioners, investors, engineers). Many watch the first pass +muted, so the story must read from captions and screen alone ([Devpost help](https://help.devpost.com/article/84-video-making-best-practices), +[recorded.app](https://recorded.app/en/blog/hackathon-demo-videos/)). + +**Length.** Target **2:45** (hard window 2:30-3:00). Most hackathons cap at 3:00 and judges stop at the limit +([recorded.app](https://recorded.app/en/blog/hackathon-demo-videos/)). Budget about 15 s hook, 15 s problem, +~1:50 product, 20 s outcome/next/end card, in line with AngelHack's "most of the time on the demo" split +([AngelHack](https://angelhack.com/blog/10-tips-to-help-you-rock-your-next-hackathon-demo/)). + +**Core message (one sentence).** *The site manager just walks and talks; Tagwerk turns it into the Bautagebuch, +the schedule impact and the paper trail, tied to the contract and the P6 plan, and the human signs off.* + +**Tone.** Calm, competent, practical. A real working day, not a sci-fi pitch. No hype words ("revolutionary", +"fully autonomous"). Let the UI changing on screen carry the excitement. + +**Language (recommendation).** German site audio (the Bauleiter dictating, exactly as the product expects) with +**burned-in English captions**, plus an English voice-over only for the hook, problem and outro (or no VO at all and +English title cards). Reasons: the UI is German (`Aufnahmen des Tages`, `Tagesbericht`, `Behinderungen / Verzug`), +the dictation must be German for the keyword rules to fire, and German audio signals domain authenticity. English +captions keep it readable for non-German judges and for muted viewing. Put a small English gloss next to German UI +terms the first time they appear (e.g. "Tagesbericht = daily site report"). + +--- + +## 2. "Day in the life" story structure + +Grounding for the routine: a typical German Bauleiter day runs roughly 06:30 arrival and plan, 07:00 site walk before +work starts, 07:30 morning meeting with foremen and subcontractors, 08:00-11:00 coordination on site, a Baubesprechung, +and an office block for Bautagebuch, minutes, change orders and measurements +([M&S Akademie](https://m-s-akademie.de/wordpress/was-macht-ein-bauleiter/)). The Jour fixe is a weekly fixed-date +site meeting, usually a walk followed by a sit-down, minuted with status, decisions, open points and deadlines +([Deutscher Bauzeiger](https://www.deutscher-bauzeiger.de/bauen/bauleitung/baubesprechung/jour-fixe/)). The Bautagebuch +records weather, attendance per trade, work done, instructions, hindrances (Behinderungen) and extra work; on paper it +costs 20-45 min a day and incidents should be logged immediately, not at the end of the day +([GREENOX](https://greenox-group.de/bautagebuch/), [Baugrid](https://www.baugrid.de/blog/bautagebuch-fuehren-pflicht-vorlage-digital)). +A Behinderungsanzeige under § 6 (1) VOB/B must be given "unverzüglich" and in writing, naming since when, the cause, +the affected work and the effect on time; without it the contractor generally loses extension and compensation claims +([nevaris](https://www.nevaris.com/blog/behinderungsanzeige/), [lb-consult](https://www.lb-consult.com/ratgeber/behinderungsanzeige-vob)). +That last point is the emotional stake of the video: the sick crew at 10:30 is a claim that must not get lost. + +Project in the video: **"Hörsaal Sanierung"** (seed project `hoersaal`, API :8080), a lecture-hall refurbishment +with 10 P6 activities (A1010 Baustelleneinrichtung ... A1090 Abnahme), 15 GAEB positions, 32 elements (Stuhlreihe A-H, +Bühne, Licht-Traverse, Lautsprecher, Leinwand ...), zones Bühne / Zuschauerraum / Technik / Eingang. +Project "today" (`DATA_DATE`) = **Thu 26.11.2026**, the planned Abnahme day. + +| Clock (story) | Video time | Beat | Challenge B objective | Tagwerk feature / route | +|---|---|---|---|---| +| — | 0:00-0:12 | Hook: Bauleiter speaks one sentence on site, graph lights up | Voice capture via mobile | phone footage + `/graph` replay (synced video, captions, "Erfasst") | +| — | 0:12-0:27 | Problem: paper Bautagebuch, claims lost when not reported "unverzüglich" | (framing) | title cards | +| 06:45 | 0:27-0:45 | Morning briefing: where do we stand vs plan, what runs the next 3 days | Daily report analysis vs plan | `/app#/dashboard`: KPI strip (Ist/Soll, SPI, Prognose-Ende, offene Mängel, Wetter), Gantt, "Vorschau: nächste 3 Arbeitstage"; day slider | +| 07:15 | 0:45-1:05 | Site walk: films and dictates in the Zuschauerraum and on the Bühne | Voice/text capture via mobile | phone footage; `/upload` on the phone (zone, video, note, Hochladen) | +| 07:20 | 1:05-1:25 | The walk becomes structured data, element by element | Structured summaries; automatic analysis | `/graph` replay picker ▶ Abspielen (video left, live captions, graph fills at each spoken second) or `/app` Live-Graph | +| 09:30 / 10:00 | 1:25-1:35 | Delivery logged, defect logged | Documentation; defect capture | `/app` Ereignisse tile (Lieferung, Mangel), KPI "Offene Mängel" | +| 10:30 | 1:35-1:58 | Two drywallers sick: forecast moves, delay shows red with its cause | Detect deviations | Gantt red delay, ActivitySheet ("cause: 2× Trockenbau krank"), KPI Prognose-Ende | +| 11:00 | 1:58-2:10 | Human in the loop: vision only *proposes*, the Bauleiter confirms with a tap | Human in the loop | proposals (dashed, "nur Bild") in the recording accordion / task graph; `/site` tap-to-confirm | +| 14:00 | 2:10-2:20 | Jour fixe: the plan goes back to the tools the office already uses | Automatic correspondence (partial) | `/export/p6.xml`, `/export/day.ics` (Outlook), `/export/boq.x84` | +| 16:45 | 2:20-2:38 | Tagesbericht filled itself; print to PDF, sign | Daily report + PDF export (required) | `/app#/report/2026-11-26` → *Drucken / PDF*; `/export/report.html` A4 with signature lines | +| 17:00 | 2:38-2:45 | Report out, day done; roadmap line; end card | Smart letter drafts (**ROADMAP**) | end card | + +Coverage honesty: Challenge B objectives that Tagwerk does **not** implement today and must only appear as roadmap: +**smart letter drafts** (Behinderungsanzeige, Mehrkostenanzeige, Mängelanzeige), **Word (.docx) export**, ingestion +and summarisation of **emails / meeting minutes**, and **automatic sending** of correspondence. What it does have that +feeds these: the delay with its cause, the defect events and the dated quote ("Behinderungen / Verzug" section of the +report), which are exactly the facts a Behinderungsanzeige needs (since when, cause, affected activity, time effect). +Say this out loud in the video as "next step", never as a working feature. + +--- + +## 3. Shot list + +Conventions: **PH** = phone footage (vertical, shown in a 9:16 frame or cropped), **SC** = screen capture of the +running app on the laptop API :8080 (Hörsaal), 1920×1080. **VO** = English voice-over (optional, can be replaced by +title cards). **DE** = German site audio from the Bauleiter, captioned in English. + +All German dictation lines are taken from or built strictly on the phrases verified by `tests/test_demo_phrases.py` +and the keyword tables in `tagwerk/pipeline/structure.py` (state words: `montiert`, `angeschlossen`, `in Betrieb`, +`unterkonstruktion`, `verkabelt`; absence: count word + trade word + `krank`; delivery: `geliefert`; defect: +`kratzer`). Rules for the speaker: one fact per short sentence, name the element every time (the rules cannot resolve +"das"/"die"), avoid future words (`morgen`, `wird noch`, `nächste Woche`, `später`) in a sentence that should count +as done, and avoid `fehlt` about work. Each element only moves up once per reset, so every take needs a fresh reset +(or use replay). + +| # | Time | Scene | Visual | Audio (VO or DE line) | English caption | On-screen text / overlay | Transition | +|---|---|---|---|---|---|---|---| +| 1 | 0:00-0:05 | Cold open on site | PH: Bauleiter in the hall, phone filming the seat rows | DE: "Stuhlreihe A ist montiert." | "Row A of the seating is installed." | — | hard cut in on the word "Stuhlreihe" | +| 2 | 0:05-0:12 | It lands in the plan | SC `/graph`: replay video panel left, node "Stuhlreihe A" turns green, "Erfasst 00:03" appears | DE (continues): "Zwei Mann vom Trockenbau sind krank." | "Two drywall workers are off sick." | Big type: **"He just talked. Tagwerk updated the schedule."** | quick zoom-in on the Erfasst list, cut | +| 3 | 0:12-0:20 | Problem | Black title card, Geist type, then a stock-free illustration: paper Bautagebuch page | VO: "Site managers spend up to 45 minutes a day writing the site diary. And a delay that isn't reported right away can cost the claim." | (same as VO) | "20-45 min/day on paper" · "§ 6 VOB/B: report hindrances without delay" (small source line) | dissolve | +| 4 | 0:20-0:27 | Title | Logo (black rounded square, white "T") + wordmark | VO: "This is Tagwerk. One day on a lecture-hall refurbishment." | — | "Tagwerk · Hörsaal Sanierung · Thursday 26.11." | wipe to screen | +| 5 | 0:27-0:37 | 06:45 Morning briefing | SC `/app#/dashboard` day 26.11: KPI strip, Gantt with today line | VO: "06:45. Before anyone arrives: progress against plan, schedule index, forecast finish, open defects, weather." | "Progress vs plan, SPI, forecast finish" | Lower-third clock "06:45 · Morgenbriefing"; callouts on KPI tiles | cursor-led pan | +| 6 | 0:37-0:45 | Lookahead | SC: scroll to "Vorschau: nächste 3 Arbeitstage"; drag the day slider back a few days and forward to today (graph/Gantt build up) | VO: "And what has to happen in the next three working days." | "3-day lookahead from the P6 schedule" | Gloss: "Vorgänge = P6 activities" | cut on slider release | +| 7 | 0:45-0:55 | 07:15 Site walk, audience area | PH: walking the seat rows, rows visibly in place | DE: "Stuhlreihe A ist montiert. Reihen F bis H Unterkonstruktion." | "Row A installed. Rows F to H: substructure done." | Lower-third "07:15 · Rundgang Zuschauerraum" | match cut on movement | +| 8 | 0:55-1:05 | Stage | PH: stage, speakers, screen | DE: "Lautsprecher links und Lautsprecher rechts angeschlossen. Die Leinwand ist in Betrieb." | "Left and right speakers connected. The screen is commissioned." | — | cut | +| 9 | 1:05-1:10 | Upload | PH or SC phone mirror: `/upload`, zone "Zuschauerraum", video picked, *Hochladen* | ambient | "One upload. No forms." | — | swipe | +| 10 | 1:10-1:25 | Structuring | SC `/graph` (old page) replay: ▶ Abspielen; video left at ~38 %, live captions with recognised phrases highlighted, graph nodes update at each spoken second; toast "fertig: N Änderungen" | VO: "Whisper transcribes, vision checks markers and objects, and every sentence is matched to an element, an activity in P6 and a position in the GAEB contract." | "Speech → element → P6 activity → GAEB position" | Callout arrows: "voice confirms", "vision only proposes" | cut | +| 11 | 1:25-1:30 | 09:30 Delivery | PH: boxes of chairs at the door (or close-up of a delivery note) | DE: "40 Stühle geliefert." | "40 chairs delivered." | Lower-third "09:30 · Lieferung" | cut | +| 12 | 1:30-1:35 | 10:00 Defect | PH close-up of a scratch on the stage edge | DE: "Kratzer an der Bühne." | "Scratch on the stage." | SC inset: Ereignisse tile shows "Mangel", KPI "Offene Mängel" increments | cut | +| 13 | 1:35-1:47 | 10:30 Deviation | PH: Bauleiter on phone call, then speaks | DE: "Zwei Mann vom Trockenbau sind krank." | "Two drywall workers are off sick." | Lower-third "10:30 · Ausfall" | cut to screen on "krank" | +| 14 | 1:47-1:58 | Forecast moves | SC `/app` dashboard: Gantt bar of "Bestuhlung neu" (A1080) extends, delay in red; click opens ActivitySheet with cause "2× Trockenbau krank"; KPI Prognose-Ende shifts by a day | VO: "Tagwerk recomputes the forecast from today's crew. The delay shows up with its cause, the same morning." | "Forecast recalculated from crew absences" | Callout: "Verzug + cause = the facts for a hindrance notice" | push-in on the red bar | +| 15 | 1:58-2:10 | 11:00 Human in the loop | SC: recording accordion "was der Agent daraus erkannt hat" with a dashed proposal "… begonnen? (nur Bild)"; cut to `/site` on the phone, tap a state, toast "✓ … bestätigt" | VO: "What the camera only sees stays a proposal. The site manager confirms with one tap." | "Vision proposes. The human confirms." | Badge overlay "Human in the loop" | cut | +| 16 | 2:10-2:20 | 14:00 Jour fixe | SC: `/app` Live-Graph tab (GAEB → activity → zone → recording → event); then quick cuts of the export downloads: P6 XML, `day.ics` opening in Outlook/Calendar, GAEB X84 | VO: "For the Jour fixe, the updated schedule goes back to Primavera, the day's captures to Outlook, progress to the GAEB bill of quantities." | "Exports: Primavera P6 XML · Outlook .ics · GAEB X84" | File-type chips | cut | +| 17 | 2:20-2:32 | 16:45 Tagesbericht | SC `/app#/report/2026-11-26`: scroll sections 1 Arbeitskräfte, 3 Ausgeführte Arbeiten (one row per spoken sentence with quote), 4 Besondere Vorkommnisse, 5 Behinderungen / Verzug, Vorschau | VO: "At the end of the day the Bautagebuch has written itself: crew, work done in the site manager's own words, incidents, delays and their causes." | "The daily report filled itself from the day's recordings" | Gloss "Tagesbericht = daily site report" | scroll | +| 18 | 2:32-2:38 | PDF + signature | SC: *Drucken / PDF* → browser print dialog A4 → saved PDF; zoom on "Bauleitung (Datum, Unterschrift)" | VO: "The site manager reviews it, signs it, sends it. 17:00, done." | "Reviewed and signed by the site manager" | Lower-third "17:00 · Bericht raus"; disclaimer line (see section 6) | dissolve | +| 19 | 2:38-2:42 | Next | Static roadmap card, clearly styled differently (outline, "Roadmap" label) | VO: "Next: one-click drafts of the hindrance notice and additional-cost notice from those same facts." | "Roadmap: Behinderungsanzeige & Mehrkostenanzeige drafts, Word export" | Label "ROADMAP" top-left | fade | +| 20 | 2:42-2:45 | End card | Logo, tagline, team, repo URL, tech strip | music out | — | "Tagwerk · Walk. Talk. Done." · Whisper · YOLO · ArUco · Claude (with rule fallback) · Neo4j · P6 · GAEB · github.com/Current-cmd/Tagwerk | cut to black | + +Notes on specific shots: +- **#2 and #10** use the replay of a cached capture with video (`▶ Abspielen` on `/graph`, `POST /captures` with + `replay_of` + `sync=1`): the graph changes at the second each phrase is spoken. The existing entry is `cap-e2e-2` + ("Demo-Video: Stuhlreihe A montiert, 2× Trockenbau krank, Traverse verkabelt", synthetic German voice + row-A + marker). Its text says "Traverse verkabelt", not the full script. For the video, record the real walk once with the + script lines, upload it, and add it to `demo_replays` in `seed/project.json` (see `docs/DEMO.md`, "New replay entry + with video"); then every take replays it deterministically. +- **#14** numbers: the release notes measured A1080 28.9 % → 34.4 % and forecast 30.11. → 01.12. for the row-A + + sick-crew capture. Re-check them on the reset state before writing any number into a caption; never hard-code an + unverified number. +- **#12** "Kratzer an der Bühne" creates a defect event only (no state change); that is correct, do not caption it as + "status updated". +- **#16** the `.ics` contains one 15-minute event per capture plus an all-day daily-report entry. Do not claim it + sends e-mails or invitations; it is a file the user imports. +- **Optional 8-second insert (if time allows, replace part of #16):** the 3D room scan `/app#/scan/uw-video` (point + cloud, camera path, labelled objects with relations "neben Wand"). It is real, but it belongs to the scan project on + :8082, not the Hörsaal; caption it "Room scan from the same phone video (separate project)" or leave it out. + +Word count check: the VO above is about 190 English words plus ~45 German words, which fits 2:45 with breathing room +(~150 wpm guidance, [recorded.app](https://recorded.app/en/blog/hackathon-demo-videos/)). + +--- + +## 4. Footage inventory and recording plan + +### 4.1 Existing raw footage (in `/Users/anoushk/Developer/hacka/`, originals untouched) + +Probed with `ffprobe`; frames extracted to `/tmp/tw-frames/` and inspected. + +| File | Tech | Content | Usable for the video? | +|---|---|---|---| +| `20261121_200042.mp4` | 2:01, HEVC 1920×1080 at 30 fps with −90° rotation (plays as **vertical 1080×1920**), AAC, 210 MB | Handheld walk through a finished conference/venue building at night: catering counter with plates (~0:25), hall with high tables and tiled floor (~0:05), exposed-concrete column and parquet hall with chairs (~0:45), people working at desks (~1:05), corridor with dark doors and a door display (~1:25), wall with a red fire-hose cabinet (~1:50). Fast pans and some motion blur. | **Limited.** It is not a construction site and shows no seat rows, stage or AV, so it cannot illustrate the Hörsaal dictation. Usable as atmospheric B-roll only ("walking the building", 2-3 s steady stretches around 0:00-0:10 and 0:40-0:50), or as input for the room-scan feature. People at desks are identifiable: blur faces or get consent before publishing. See 4.3 for audio. | +| `Screen Recording 2026-11-21 at 01.46.34.mov` | 1:10, H.264 3024×1964 at 60 fps (Retina), AAC, 615 MB | Screen capture of a **third-party YouTube video**: "Expertentipp: Nachhaltig renovieren im Hochbau" (project "Die Baustelle in Amstetten"), a site manager in hi-vis and a fischer-branded presenter on a renovation site, scaffolding, insulation and timber-frame close-ups, YouTube player chrome visible. This is the "user's German construction walkthrough" used as test input in the release notes. | **Do not use in the published video.** It is someone else's copyrighted content with visible branding. Fine as internal pipeline test input; showing even a few seconds would need the rights holder's permission. | +| `id.m4a` | 3:40, AAC audio, 3.6 MB | English voice memo: the spoken UI v2 brief (walks through the Hörsaal dashboard, asks to remove costs, keep recordings / activities + Gantt / events tiles, task-based live graph, a day slider "to go left and right and see the work getting done"). This is the source of `docs/UI-V2-CONTRACT.md`. | **No** as audio (internal, informal, off-topic for judges). Useful as a content reference only: it confirms the slider and "recordings of the day" are the views the team cares about. | + +### 4.2 What still needs recording + +Shoot in a real lecture hall (any university Hörsaal with seat rows and a stage fits the seed project exactly): + +1. **PH hero walk, 25-35 s, vertical**, Bauleiter in hi-vis (or at least a jacket and a clipboard) speaking the script + of shots #1, #7, #8, #13 in one take, slowly, phone held steady at chest height. Clip-on mic into the phone if + possible; site audio must be clean for Whisper and for the captions. This single clip is uploaded once and becomes + the replay entry (4.4, step 6). +2. **PH inserts, 3-5 s each:** seat rows close-up, stage edge (for "Kratzer"), speakers left/right, projection screen, + chair boxes or stacked chairs at the entrance (delivery), Bauleiter on a phone call (sick crew), hand tapping the + phone on `/site` (shot #15), hand holding the printed/signed report (shot #18, optional). +3. **SC takes** (laptop screen, 1920×1080), each as a separate short clip so a mistake costs one take, not the whole + video ([recorded.app](https://recorded.app/en/blog/hackathon-demo-videos/)): dashboard briefing + slider, replay on + `/graph`, dashboard after the capture (Gantt, ActivitySheet, Ereignisse), recording accordion with a proposal, + Live-Graph tab, exports (+ `.ics` import into a calendar app), Tagesbericht scroll, print-to-PDF dialog. +4. **VO** recorded separately in a quiet room (or skip VO and use title cards). +5. **Logo/end card** assets: black rounded square with white "T" (as in the app header) and the "Tagwerk" wordmark in Geist. + +### 4.3 Audio +All three audio tracks were transcribed locally with faster-whisper (small, CPU) for this inventory: +- **Phone walk** (`20261121_200042.mp4`): English, low level (mean −35.6 dB), loose commentary about the venue + ("the tables over here ... slab has been placed, dustbins here ... storage here"). Not German, not a Hörsaal script, + so the structuring rules would match little. **Not usable** as site audio; mute it if any B-roll is used. +- **Screen recording**: German dialogue from the third-party YouTube video (thin concrete facade, Mineralschaum + eingefüllt, Leibungsblech, Holzrahmen-Elemente vorgefertigt). Third-party, **not usable**. +- **id.m4a**: English internal UI brief (see 4.1). **Not usable** in the video. + +Conclusion: no existing audio is usable. The German dictation for the video must be newly recorded (4.2, item 1), +and the English VO separately (4.2, item 4). + +### 4.4 Recording checklist (laptop, `~/Developer/hacka/Tagwerk`, `export PYTHONPATH=$PWD`) + +Environment +- [ ] Power plugged in, suspend disabled (a resume can break CUDA; fix in `docs/DEMO.md`). +- [ ] `.env`: `DATA_DATE=2026-11-26`. Decide token mode: the laptop runs `TAGWERK_DEV=1` (no token). If `API_TOKEN` is + set instead, open every page once as `?token=` **before** recording, and never record the URL bar + while the token is in it. +- [ ] `ANTHROPIC_API_KEY` empty for recording, so structuring uses the deterministic German rules that + `tests/test_demo_phrases.py` verifies (Claude path is real but only tested with a fake client). If the key is set, + rehearse every phrase again. +- [ ] `docker compose up -d neo4j`. + +Clean state before every take that changes data +- [ ] `.venv/bin/python scripts/reset_demo.py` (resets Hörsaal results, keeps `cache/` so replays survive). +- [ ] `~/tw-restart.sh`, then `curl localhost:8080/health` shows `"graph":"Neo4jStore"`. +- [ ] Warm the models once with a throwaway clip, then reset and restart again. +- [ ] `PYTHONPATH=$PWD .venv/bin/python -m pytest -q tests/test_demo_phrases.py` passes. + +Replay entry for the hero walk (once) +- [ ] Upload the hero clip on `/upload` (zone Zuschauerraum). The API copies the video (under 300 MB) to + `cache//media/`. +- [ ] Add `{"id": "", "label": "Rundgang 26.11.: Reihe A, Lautsprecher, Leinwand, 2× Trockenbau krank"}` + to `demo_replays` in `seed/project.json`; reset; confirm it appears in the ▶ Abspielen picker on `/graph` + (`GET /api/replays`). +- [ ] Check which phrases Whisper actually caught in "Erfasst"; if one is missed, re-record that line rather than + captioning a change that did not happen. + +Browser and screen +- [ ] Chrome, clean profile (no extensions, no bookmarks bar), notifications off (macOS Focus mode), dock hidden. +- [ ] Window exactly 1920×1080 content area (record at that size or at 2× and downscale); browser zoom 110-125 % so + KPI numbers are readable on a phone screen; mouse cursor enlarged; click highlighting on. +- [ ] Header shows the green live dot and **no amber "Demo-Daten" badge** (the badge means `/api/v2` was unreachable + and the app fell back to mock data; never record that as "live"). +- [ ] Open tabs in order: `/app#/dashboard`, `/graph` (replay), `/app#/report/2026-11-26`, `/site` on the phone. +- [ ] Record the dashboard twice: once before the replay (morning state) and once after (forecast moved). + +Fallbacks (from `docs/DEMO.md`) +- [ ] Upload or GPU fails: use the replay (no GPU, network or Claude needed). +- [ ] GPU worker down: API runs speech/vision in-process (slower; fine for a recording). +- [ ] Everything down: rebuild, do not fake screens. Mock mode (`?mock=1`) exists for UI development only. + +--- + +## 5. Visual style + +Match the app (`web-app/src/index.css`, shadcn/ui neutral theme): + +- **Palette.** Mostly neutral: background white `oklch(1 0 0)`, foreground near-black `oklch(0.145 0 0)` (#0A0A0A), + muted surfaces `oklch(0.97 0 0)` (#F5F5F5), borders `oklch(0.922 0 0)` (#EBEBEB), muted text `oklch(0.556 0 0)` + (#737373). Semantic accents taken from the UI: emerald (live dot, confirmed / target reached), amber (begun, + proposals, Demo badge), red `oklch(0.577 0.245 27.3)` (delay, open defects). Use colour only to mean these things; + everything else stays black/white/grey. +- **Type.** Geist Variable (bundled in the app via `@fontsource-variable/geist`). Titles Geist Semibold, tight + tracking; captions Geist Medium. Numbers in tabular figures. +- **Shapes.** Cards with 10 px radius (`--radius: 0.625rem`), 1 px #EBEBEB border, no heavy shadows. The logo is the + app's black 28 px rounded square with a white bold "T" + "Tagwerk" wordmark. +- **Lower-thirds.** Left-bottom white card, 10 px radius: line 1 clock in tabular Geist Semibold ("10:30"), line 2 + German beat name ("Ausfall") with English gloss in muted grey ("crew absence"). 0.3 s slide-in, 3 s hold. +- **Callouts.** Thin 1.5 px black outline boxes with a short label tab, pointing at real UI; red outline only for + delay, amber dashed outline for proposals (mirrors the dashed proposal nodes in the graph). +- **Captions.** Burned in, bottom centre, Geist Medium ~44 px at 1080p, white on a 70 % black rounded box, max two + lines, 42 characters per line; German original in small grey italics above the English line only for the dictation + shots (#1, #7, #8, #11-13) so judges see the exact phrase the system parsed. +- **Phone footage framing.** Vertical clips in a 9:16 phone frame on the left third of a 16:9 canvas, with the matching + screen state on the right two thirds whenever cause and effect should be visible together (#2, #12, #14, #15). +- **Music.** Light, steady, optimistic minimal electronic or acoustic-electronic, 90-105 BPM, no vocals, ducked to + -20 dB under speech and VO; one soft swell on the forecast change (#14) and on the PDF (#18). Use a track whose + licence clearly allows public use (check the specific licence before publishing). +- **End card (3 s).** White, centred logo, tagline "Walk. Talk. Done.", one-line value prop "Voice and video to + Bautagebuch, schedule impact and exports", team names, repo URL, small tech strip. Disclaimer line at the bottom + (section 6). + +--- + +## 6. Human in the loop, disclaimer, risks + +**Human-in-the-loop moments to make visible (all real):** +1. Vision only proposes; voice or a typed note confirms (structuring rule). Show the dashed "nur Bild" proposal (#15). +2. One-tap confirmation in `/site` (`POST /api/elements/{id}/confirm`, counts like voice evidence) (#15). +3. Every work-done row in the Tagesbericht carries the spoken quote it came from, so the Bauleiter can check it (#17). +4. The report ends with signature lines for Bauleitung and Auftraggeber; nothing is sent automatically (#18). +5. Element states only move up, and every change keeps its source capture, so nothing is silently overwritten. + +**Legal disclaimer placement.** The challenge says no legal advice. Show a small, readable line (Geist Regular, +~24 px, muted grey) for at least 3 s in shot #18 and again on the end card: +"Tagwerk documents and drafts. It is not legal advice; the site manager reviews and signs every report and notice." +In the roadmap shot (#19), add "drafts for review, not legal advice" right under the Behinderungsanzeige line, and +do not mention VOB/B deadlines as something the tool enforces. + +**Risks and mitigations** + +| Risk | Mitigation | +|---|---| +| Live processing fails or is slow during a take | Record from replay of a cached capture; split takes; the video is edited, so a failed take is simply re-shot after `reset_demo.py`. | +| Whisper mishears a dictation line, so a caption claims a change that did not happen | Check "Erfasst" after the hero upload; re-record the line; only caption what the screen shows. | +| Demo-Daten (mock fallback) recorded by accident | Check the header before every take: green dot, no amber badge. | +| Overclaiming letter drafts, Word export, email/minutes ingestion, automatic correspondence | Only in the roadmap card (#19), visually marked "ROADMAP"; VO says "next". | +| Overclaiming Claude | Say "Claude structuring with a rule-based fallback"; the recording uses the rules. Do not say the AI "understands everything"; pronouns are not resolved by the rules. | +| Overclaiming P6 / GAEB integration | Say "exports P6 XML and GAEB X83/X84"; the P6 XML has not been imported into a real Primavera yet (release notes), so do not show a Primavera screen. | +| Overclaiming accuracy of vision | Say vision proposes; release notes list weak recall on walls and false positives. | +| Forecast presented as certainty | Use the app's own framing: "projection from today's evidence". | +| Copyright / privacy | Do not use the YouTube screen recording; blur or get consent for people in the phone walk; licensed music only. | +| Numbers on screen differ between takes | Always reset before data-changing takes; record morning and afternoon dashboard states in one session. | +| Token leaks in the URL bar | Use `TAGWERK_DEV=1` on the recording machine or hide the URL bar; never record `?token=`. | + +--- + +## Sources + +- Devpost, video-making best practices: https://help.devpost.com/article/84-video-making-best-practices +- Devpost blog, 6 tips for a hackathon demo video: https://info.devpost.com/blog/6-tips-for-making-a-hackathon-demo-video +- recorded.app, how to record a winning hackathon demo video: https://recorded.app/en/blog/hackathon-demo-videos/ +- AngelHack, 10 hackathon demo tips: https://angelhack.com/blog/10-tips-to-help-you-rock-your-next-hackathon-demo/ +- hackathon.com, creating the best demo video: https://tips.hackathon.com/article/creating-the-best-demo-video-for-a-hackathon-what-to-know +- M&S Akademie, Was macht ein Bauleiter (typical day): https://m-s-akademie.de/wordpress/was-macht-ein-bauleiter/ +- Deutscher Bauzeiger, Jour fixe: https://www.deutscher-bauzeiger.de/bauen/bauleitung/baubesprechung/jour-fixe/ +- GREENOX, Bautagebuch Pflicht und Inhalt: https://greenox-group.de/bautagebuch/ +- Baugrid, Bautagebuch führen: https://www.baugrid.de/blog/bautagebuch-fuehren-pflicht-vorlage-digital +- nevaris, Behinderungsanzeige nach VOB/B: https://www.nevaris.com/blog/behinderungsanzeige/ +- lb-consult, Behinderungsanzeige nach § 6 VOB/B: https://www.lb-consult.com/ratgeber/behinderungsanzeige-vob + +(Several Bautagebuch and Behinderungsanzeige sources are software vendors; the facts used here, the content list and +the "unverzüglich, schriftlich" requirement, are consistent across them.) diff --git a/docs/design-brief/app-grabs/bim-hoersaal.png b/docs/design-brief/app-grabs/bim-hoersaal.png new file mode 100644 index 0000000..cc0b425 Binary files /dev/null and b/docs/design-brief/app-grabs/bim-hoersaal.png differ diff --git a/docs/design-brief/app-grabs/bim-schependomlaan.png b/docs/design-brief/app-grabs/bim-schependomlaan.png new file mode 100644 index 0000000..dd520b3 Binary files /dev/null and b/docs/design-brief/app-grabs/bim-schependomlaan.png differ diff --git a/docs/design-brief/app-grabs/dashboard-lower.png b/docs/design-brief/app-grabs/dashboard-lower.png new file mode 100644 index 0000000..4b41fcb Binary files /dev/null and b/docs/design-brief/app-grabs/dashboard-lower.png differ diff --git a/docs/design-brief/app-grabs/dashboard.png b/docs/design-brief/app-grabs/dashboard.png new file mode 100644 index 0000000..429a03b Binary files /dev/null and b/docs/design-brief/app-grabs/dashboard.png differ diff --git a/docs/design-brief/app-grabs/graph.png b/docs/design-brief/app-grabs/graph.png new file mode 100644 index 0000000..fa65a85 Binary files /dev/null and b/docs/design-brief/app-grabs/graph.png differ diff --git a/docs/design-brief/app-grabs/report-delays.png b/docs/design-brief/app-grabs/report-delays.png new file mode 100644 index 0000000..eb09da1 Binary files /dev/null and b/docs/design-brief/app-grabs/report-delays.png differ diff --git a/docs/design-brief/app-grabs/report.png b/docs/design-brief/app-grabs/report.png new file mode 100644 index 0000000..5a3f1bb Binary files /dev/null and b/docs/design-brief/app-grabs/report.png differ diff --git a/docs/design-brief/app-grabs/scan-hackathon.png b/docs/design-brief/app-grabs/scan-hackathon.png new file mode 100644 index 0000000..a4d218b Binary files /dev/null and b/docs/design-brief/app-grabs/scan-hackathon.png differ diff --git a/docs/design-brief/build-deck.js b/docs/design-brief/build-deck.js new file mode 100644 index 0000000..6bb618e --- /dev/null +++ b/docs/design-brief/build-deck.js @@ -0,0 +1,487 @@ +// Tagwerk pitch deck v2: opens on the real site video, then breaks it down. Run: NODE_PATH=./node_modules node build2.js +const fs = require("fs"); +const pptxgen = require("pptxgenjs"); +const React = require("react"); +const ReactDOMServer = require("react-dom/server"); +const sharp = require("sharp"); +const L = require("react-icons/lu"); +const { applyTheme } = require(process.env.PPTX_SKILL + "/scripts/apply_theme.js"); + +const FR = "/Users/anoushk/Developer/hacka/tagwerk/docs/design-brief/site-frames/"; +const OUT = "/Users/anoushk/Developer/hacka/tagwerk/docs/design-brief/Tagwerk-Pitch.pptx"; + +const THEME = { + name: "Tagwerk", headFontFace: "Arial", bodyFontFace: "Arial", + colors: { dk1: "0A0A0A", lt1: "FFFFFF", dk2: "141416", lt2: "F5F5F5", accent1: "2563EB", accent2: "16A34A", + accent3: "F59E0B", accent4: "DC2626", accent5: "8B5CF6", accent6: "737373", hlink: "2563EB", folHlink: "1D4ED8" }, +}; +const H = { + ink: "0A0A0A", dark: "141416", dark2: "1F1F23", darkLine: "2E2E33", muted: "737373", border: "E5E5E5", surface: "F5F5F5", + blue: "2563EB", blueL: "60A5FA", blueTint: "DBEAFE", green: "16A34A", greenTint: "DCFCE7", amber: "F59E0B", amberDk: "92400E", + amberTint: "FEF3C7", red: "DC2626", redTint: "FEE2E2", violet: "8B5CF6", violetDk: "6D28D9", violetTint: "F5F3FF", + grey4: "A3A3A3", grey3: "D4D4D4", white: "FFFFFF", +}; + +async function icon(Comp, color, size = 256) { + const svg = ReactDOMServer.renderToStaticMarkup(React.createElement(Comp, { color: "#" + color, size: String(size), strokeWidth: 2 })); + return "image/png;base64," + (await sharp(Buffer.from(svg)).png().toBuffer()).toString("base64"); +} + +(async () => { + const pres = new pptxgen(); + pres.layout = "LAYOUT_WIDE"; + pres.title = "Tagwerk – Challenge B pitch"; + pres.author = "Team Tagwerk"; + pres.theme = { headFontFace: THEME.headFontFace, bodyFontFace: THEME.bodyFontFace }; + const W = 13.333, M = 0.75; + + // ---------- layouts ---------- + pres.defineSlideMaster({ title: "DARK", background: { color: H.dark }, objects: [] }); + const footer = [{ text: { text: "Tagwerk", options: { x: M, y: 7.0, w: 3, h: 0.3, fontSize: 10, color: H.muted, margin: 0 } } }]; + const sn = { x: W - M - 0.5, y: 7.0, w: 0.5, h: 0.3, fontSize: 10, color: H.muted, align: "right" }; + pres.defineSlideMaster({ + title: "CONTENT_TITLED", background: { color: H.white }, slideNumber: sn, + objects: [...footer, + { placeholder: { options: { name: "kicker", type: "body", x: M, y: 0.5, w: 11.5, h: 0.3, fontSize: 12, bold: true, color: H.blue, + charSpacing: 2, margin: 0 }, text: "" } }, + { placeholder: { options: { name: "title", type: "title", x: M, y: 0.82, w: 11.8, h: 0.8, fontSize: 36, bold: true, color: H.ink, + margin: 0, valign: "top", align: "left" }, text: "" } }], + }); + pres.defineSlideMaster({ + title: "DARK_TITLED", background: { color: H.dark }, slideNumber: { ...sn, color: "71717A" }, + objects: [ + { placeholder: { options: { name: "kicker", type: "body", x: M, y: 0.5, w: 11.5, h: 0.3, fontSize: 12, bold: true, color: H.blueL, + charSpacing: 2, margin: 0 }, text: "" } }, + { placeholder: { options: { name: "title", type: "title", x: M, y: 0.82, w: 11.8, h: 0.8, fontSize: 32, bold: true, color: H.white, + margin: 0, valign: "top", align: "left" }, text: "" } }], + }); + + const titled = (master, section, kicker, title) => { + const s = pres.addSlide({ masterName: master, sectionTitle: section }); + s.addText(kicker.toUpperCase(), { placeholder: "kicker" }); + s.addText(title, { placeholder: "title" }); + return s; + }; + const content = (sec, k, t) => titled("CONTENT_TITLED", sec, k, t); + const dark = (sec, k, t) => titled("DARK_TITLED", sec, k, t); + const card = (s, x, y, w, h, o = {}) => s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w, h, rectRadius: 0.1, + fill: { color: o.fill || H.white }, line: { color: o.line || H.border, width: o.lw || 1, dashType: o.dash } }); + const txt = (s, text, o) => s.addText(text, { isTextBox: true, margin: 0, color: H.ink, fontSize: 14, ...o }); + const iconCircle = async (s, Comp, x, y, d, bg, fg) => { + s.addShape(pres.shapes.OVAL, { x, y, w: d, h: d, fill: { color: bg }, line: { type: "none" } }); + s.addImage({ data: await icon(Comp, fg), x: x + d * 0.25, y: y + d * 0.25, w: d * 0.5, h: d * 0.5 }); + }; + const logo = (s, x, y, d, inv) => { + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: d, h: d, rectRadius: d * 0.22, fill: { color: inv ? H.white : "171717" }, line: { type: "none" } }); + s.addText("T", { isTextBox: true, x, y, w: d, h: d, align: "center", valign: "middle", margin: 0, fontSize: d * 40, bold: true, color: inv ? "171717" : H.white }); + }; + const arrow = (s, x1, y1, x2, y2, color = H.grey4) => s.addShape(pres.shapes.LINE, { x: Math.min(x1, x2), y: Math.min(y1, y2), + w: Math.abs(x2 - x1) || 0.001, h: Math.abs(y2 - y1) || 0.001, flipV: y2 < y1, line: { color, width: 1.5, endArrowType: "triangle" } }); + const line = (s, x1, y1, x2, y2, color = H.grey4, dash, width = 1.25) => s.addShape(pres.shapes.LINE, { x: Math.min(x1, x2), + y: Math.min(y1, y2), w: Math.abs(x2 - x1) || 0.001, h: Math.abs(y2 - y1) || 0.001, flipV: (y2 < y1) !== (x2 < x1), + line: { color, width, dashType: dash } }); + const chip = (s, text, x, y, w, fg, bg, o = {}) => { + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w, h: o.h || 0.36, rectRadius: (o.h || 0.36) / 2, fill: { color: bg }, + line: o.line ? { color: o.line, dashType: o.dash } : { type: "none" } }); + txt(s, text, { x, y, w, h: o.h || 0.36, fontSize: o.fs || 12, bold: true, color: fg, align: "center", valign: "middle" }); + }; + const VR = 0.5624; // frame aspect w/h (478x850) + + // ================= 1. The video ================= + pres.addSection({ title: "Opening" }); + { + const s = pres.addSlide({ masterName: "DARK", sectionTitle: "Opening" }); + const vh = 6.9, vw = vh * VR, vx = (W - vw) / 2, vy = 0.3; + const poster = "image/png;base64," + fs.readFileSync(FR + "opening-poster.png").toString("base64"); + s.addMedia({ type: "video", path: FR + "opening-baugrube.mp4", x: vx, y: vy, w: vw, h: vh, cover: poster }); + txt(s, "Baugrube · 21.11.2026 · 35 s Handyvideo", { x: M, y: 6.85, w: 4.5, h: 0.3, fontSize: 11, color: "71717A" }); + s.addNotes("Say nothing, or one line: 'This is 35 seconds from a real site this morning.' Let the whole clip play (click to start). The last audible sentence is 'das Einzige ... war das Wasser'."); + } + + // ================= 2. What the engine saw ================= + { + const s = dark("Opening", "What Tagwerk sees", "Was Tagwerk im Video erkennt"); + const stats = [["35 s", "video"], ["33", "frames, 1 per second"], ["17", "objects tagged"], ["1", "deviation: Wasser"]]; + stats.forEach((st, i) => { + const x = M + (i % 2) * 1.95, y = 1.6 + Math.floor(i / 2) * 0.85; + txt(s, st[0], { x, y, w: 1.9, h: 0.45, fontSize: 22, bold: true, color: i === 3 ? "F87171" : H.white }); + txt(s, st[1], { x, y: y + 0.45, w: 1.9, h: 0.3, fontSize: 11, color: H.grey4 }); + }); + const fw = 1.79, fh = fw / VR, gap = 0.18, fx0 = W - M - 4 * fw - 3 * gap, fy = 1.6; + const frames = [ + ["det-crane.jpg", "Kran, Pfahlwand"], + ["det-person.jpg", "Gerüst, Wasser"], + ["det-dig.jpg", "Bagger ×2, Steifen"], + ["det-struts.jpg", "Abfuhr, Aushub"], + ]; + frames.forEach(([f, cap], i) => { + const x = fx0 + i * (fw + gap); + s.addImage({ path: FR + f, x, y: fy, w: fw, h: fh, altText: cap }); + chip(s, cap, x, fy + fh + 0.12, fw, H.grey3, H.dark2, { fs: 11, h: 0.34 }); + }); + // left explanation + const pts = [ + [H.violet, "Geräte & Personen", "Kran, Bagger, Traktor, Bohrgeräte, Personen mit Schutzausrüstung."], + [H.green, "Bauteile", "Pfahlwand, Schlitzwand, Rohrsteifen, Aushub: the things in the LV and the schedule."], + [H.red, "Abweichung", "Standing water on the wall crest. Only a proposal until the site manager confirms it."], + ]; + for (let i = 0; i < pts.length; i++) { + const y = 3.45 + i * 1.05; + s.addShape(pres.shapes.RECTANGLE, { x: M, y: y + 0.06, w: 0.22, h: 0.22, fill: { color: H.dark }, line: { color: pts[i][0], width: 2.5 } }); + txt(s, pts[i][1], { x: M + 0.4, y, w: 3.4, h: 0.35, fontSize: 15, bold: true, color: H.white }); + txt(s, pts[i][2], { x: M + 0.4, y: y + 0.36, w: 3.4, h: 0.65, fontSize: 12, color: H.grey4, valign: "top" }); + } + s.addNotes("The same clip, frame by frame: equipment and people in violet, building elements that exist in the LV and schedule in green, the deviation in red. Everything the camera tags is a proposal until the site manager's words confirm it."); + } + + // ================= 3. Voice note ================= + { + const s = content("Opening", "What Tagwerk heard", "Was Tagwerk hört: 15 s Sprachnotiz"); + // left: raw audio + card(s, M, 1.85, 5.3, 1.6, { fill: H.surface, line: H.surface }); + s.addImage({ data: await icon(L.LuAudioLines, H.muted), x: M + 0.25, y: 2.05, w: 0.36, h: 0.36 }); + txt(s, "Originalton im Video", { x: M + 0.8, y: 2.03, w: 4, h: 0.4, fontSize: 15, bold: true }); + txt(s, "Whisper: „… was weiß, was weiß, was weiß …“ Only one clear sentence: „das Einzige … war das Wasser“.", + { x: M + 0.8, y: 2.45, w: 4.3, h: 0.85, fontSize: 12, color: H.muted, valign: "top" }); + // voice note + card(s, M, 3.65, 5.3, 2.95, { fill: H.blueTint, line: H.blueTint }); + await iconCircle(s, L.LuMic, M + 0.25, 3.85, 0.56, H.blue, H.white); + txt(s, "Sprachnotiz nach dem Rundgang", { x: M + 1.0, y: 3.9, w: 4.1, h: 0.4, fontSize: 15, bold: true, color: "1E3A8A" }); + txt(s, "„Baugrube Abschnitt drei. Aushub dritte Lage unter der zweiten Steifenlage zur Hälfte fertig, zwei Bagger, ein Traktor mit Mulde. Gerüst an Achse zwölf umgesetzt. An der Bohrpfahlwand Nord steht Wasser, die Wasserhaltung reicht nicht.“", + { x: M + 0.3, y: 4.55, w: 4.75, h: 1.9, fontSize: 13, italic: true, color: "1E3A8A", valign: "top" }); + // right: structured + arrow(s, 6.2, 4.1, 6.75, 4.1, H.grey4); + txt(s, "STRUCTURED, LINKED TO THE CLIP", { x: 6.9, y: 1.85, w: 5.6, h: 0.3, fontSize: 11, bold: true, color: H.muted, charSpacing: 1 }); + const ev = [ + [L.LuShovel, "Fortschritt", "Aushub Lage 3 → 50 %", "confirms: Bagger ×2, Aushub", H.green, H.greenTint], + [L.LuTruck, "Leistung", "Boden laden, abfahren", "confirms: Traktor mit Mulde", H.green, H.greenTint], + [L.LuConstruction, "Fortschritt", "Gerüst Achse 12 umgesetzt", "confirms: Kran, Gerüst am Haken", H.green, H.greenTint], + [L.LuDroplets, "Behinderung", "Wasser an Bohrpfahlwand Nord", "confirms: stehendes Wasser", H.red, H.redTint], + [L.LuDrill, "Offen", "Bohrgerät ×2", "no voice evidence, stays a proposal", H.violetDk, H.violetTint], + ]; + for (let i = 0; i < ev.length; i++) { + const y = 2.25 + i * 0.88; + card(s, 6.9, y, 5.68, 0.76); + await iconCircle(s, ev[i][0], 7.05, y + 0.13, 0.5, ev[i][5], ev[i][4]); + txt(s, ev[i][1].toUpperCase(), { x: 7.7, y: y + 0.1, w: 1.6, h: 0.25, fontSize: 10, bold: true, color: ev[i][4], charSpacing: 1 }); + txt(s, ev[i][2], { x: 7.7, y: y + 0.36, w: 2.9, h: 0.3, fontSize: 13, bold: true }); + txt(s, ev[i][3], { x: 10.5, y: y, w: 1.95, h: 0.76, fontSize: 11, color: H.muted, valign: "middle", align: "right" }); + } + s.addNotes("Construction sites are loud; the wind ate most of the original audio, and Whisper hallucinates on it. The real workflow is a short voice note after the walk. Each sentence confirms or adds to what the camera saw. The piling rigs get no sentence, so they stay a proposal."); + } + + // ================= 4. The stakes ================= + pres.addSection({ title: "Problem" }); + { + const s = content("Problem", "Why this sentence matters", "Ohne Tagwerk ist dieser Satz weg"); + const y0 = 2.6, step = (W - 2 * M) / 4; + line(s, M + 0.3, y0, W - M - 0.3, y0, H.border, undefined, 2); + const ev = [ + ["07:40", "Wasser an der Wand", "gesehen, gesagt, gefilmt", H.ink, H.surface], + ["08:00", "Kurzer Anruf", "mündlich, ohne Protokoll", H.ink, H.surface], + ["18:00", "Nichts schriftlich", "Bautagebuch bleibt leer", H.amber, H.amberTint], + ["+6 Wochen", "Nachtrag abgelehnt", "keine Anzeige, kein Anspruch", H.red, H.redTint], + ]; + ev.forEach((e, i) => { + const cx = M + step * i + step / 2; + s.addShape(pres.shapes.OVAL, { x: cx - 0.16, y: y0 - 0.16, w: 0.32, h: 0.32, fill: { color: e[3] }, line: { color: H.white, width: 3 } }); + txt(s, e[0], { x: cx - 1.3, y: 1.9, w: 2.6, h: 0.4, fontSize: 18, bold: true, align: "center", color: e[3] }); + card(s, cx - 1.35, 3.0, 2.7, 1.05, { fill: e[4], line: e[4] }); + txt(s, e[1], { x: cx - 1.2, y: 3.12, w: 2.4, h: 0.4, fontSize: 15, bold: true, align: "center" }); + txt(s, e[2], { x: cx - 1.2, y: 3.52, w: 2.4, h: 0.4, fontSize: 13, color: H.muted, align: "center" }); + }); + card(s, M, 4.5, 7.3, 1.95); + s.addImage({ data: await icon(L.LuScale, H.ink), x: M + 0.3, y: 4.8, w: 0.4, h: 0.4 }); + txt(s, "VOB/B § 6 (1)", { x: M + 0.9, y: 4.75, w: 6, h: 0.4, fontSize: 16, bold: true }); + txt(s, "A hindrance must be reported to the client in writing without undue delay („unverzüglich schriftlich“). Without it, extension of time and compensation can be lost.", + { x: M + 0.9, y: 5.17, w: 6.2, h: 1.1, fontSize: 14, valign: "top" }); + txt(s, "35 %", { x: 8.45, y: 4.45, w: 4.1, h: 0.95, fontSize: 60, bold: true }); + txt(s, "of construction leaders' time goes to non-productive work such as searching for project data and rework.", + { x: 8.45, y: 5.4, w: 4.1, h: 0.75, fontSize: 13, valign: "top" }); + txt(s, "FMI / PlanGrid, Construction Disconnected (2018), ~600 leaders", { x: 8.45, y: 6.2, w: 4.1, h: 0.3, fontSize: 10, color: H.muted }); + s.addNotes("Without a tool, this is what happens to the water sentence: seen, said, maybe a phone call, nothing in writing, and weeks later the claim for the extra time is rejected. The 35 % is general non-productive time, not documentation alone."); + } + + // ================= 5. Pipeline on this clip ================= + pres.addSection({ title: "How it works" }); + { + const s = content("How it works", "How it works · on this clip", "Vom Video zum Datensatz in sieben Schritten"); + const st = [ + [L.LuSmartphone, "Upload", "2 clips, 35 s, Handy-Browser"], + [L.LuAudioLines, "Speech", "Whisper int8, Sprachnotiz DE"], + [L.LuScanEye, "Vision", "33 frames, Kran, Bagger, Steifen"], + [L.LuCloudSun, "Context", "Wetter zum Ort und Datum"], + [L.LuBrainCircuit, "Structuring", "4 facts, 1 proposal open"], + [L.LuDatabase, "Project state", "Graph: Bauteil, Vorgang, LV"], + [L.LuFileText, "Outputs", "Bericht, Prognose, Anzeige"], + ]; + const n = st.length, gap = 0.22, bw = (W - 2 * M - gap * (n - 1)) / n, y = 2.0; + for (let i = 0; i < n; i++) { + const x = M + i * (bw + gap), hot = i === 4; + card(s, x, y, bw, 2.55, { fill: hot ? H.blueTint : H.white, line: hot ? H.blue : H.border }); + await iconCircle(s, st[i][0], x + bw / 2 - 0.35, y + 0.3, 0.7, hot ? H.blue : H.surface, hot ? H.white : H.ink); + txt(s, st[i][1], { x: x + 0.08, y: y + 1.15, w: bw - 0.16, h: 0.4, fontSize: 15, bold: true, align: "center" }); + txt(s, st[i][2], { x: x + 0.1, y: y + 1.55, w: bw - 0.2, h: 0.85, fontSize: 12, color: H.muted, align: "center", valign: "top" }); + if (i < n - 1) arrow(s, x + bw + 0.02, y + 0.65, x + bw + gap - 0.02, y + 0.65); + } + const facts = [ + [L.LuCpu, "One laptop GPU", "Everything above ran on a GTX 1060."], + [L.LuWifiOff, "Works offline", "German keyword rules when no LLM is available."], + [L.LuRotateCcw, "Replayable", "Every stage cached; any capture replays exactly."], + ]; + for (let i = 0; i < 3; i++) { + const x = M + i * 4.0; + s.addImage({ data: await icon(facts[i][0], H.blue), x, y: 5.1, w: 0.42, h: 0.42 }); + txt(s, facts[i][1], { x: x + 0.6, y: 5.03, w: 3.2, h: 0.35, fontSize: 16, bold: true }); + txt(s, facts[i][2], { x: x + 0.6, y: 5.4, w: 3.2, h: 0.6, fontSize: 13, color: H.muted, valign: "top" }); + } + s.addNotes("The same clip, stage by stage. Structuring is the heart: Claude with a strict tool schema, or German keyword rules offline. Every stage output is cached, so this exact capture can be replayed without GPU or network."); + } + + // ================= 6. Mapping to schedule and GAEB ================= + { + const s = content("How it works", "How the engine connects it", "Vom Video zu Terminplan und LV"); + const cols = [["SIGNAL", 3.1], ["BAUTEIL / ZONE", 2.0], ["P6-VORGANG", 2.2], ["GAEB-POSITION", 2.55], ["WIRKUNG", 1.6]]; + const cg = 0.1; let cx = M; const colX = []; + cols.forEach(([h, w]) => { colX.push(cx); txt(s, h, { x: cx, y: 1.7, w, h: 0.3, fontSize: 11, bold: true, color: H.muted, charSpacing: 1 }); cx += w + cg; }); + const rows = [ + ["struts-excavator-sq.jpg", "Bagger ×2, Aushub", "„Aushub dritte Lage zur Hälfte“", "Baugrube BA 3\nLage 3", "B2030\nAushub Lage 3", "01.02.0030\nAushub Baugrube BK 3–5 · m³", "Ist 50 %", H.green, H.greenTint], + ["struts-haul-sq.jpg", "Traktor mit Mulde", "„ein Traktor mit Mulde“", "Baugrube BA 3\nAbfuhr", "B2030\nAushub Lage 3", "01.02.0040\nBoden laden, abfahren · m³", "Fuhren fürs Aufmaß", H.ink, H.surface], + ["crane-lift-sq.jpg", "Kran, Gerüst am Haken", "„Gerüst an Achse zwölf umgesetzt“", "Achse 12\nArbeitsgerüst", "B2050\nGerüst umsetzen", "03.01.0020\nArbeitsgerüst umsetzen · St", "Erledigt", H.green, H.greenTint], + ["walk-wall-sq.jpg", "stehendes Wasser", "„Wasser an der Bohrpfahlwand Nord“", "Bohrpfahlwand\nNord", "B2040 Wasserhaltung\n→ B2060 Sohle", "01.04.0010\nWasserhaltung betreiben · h", "Verzug + Anzeige", H.red, H.redTint], + ]; + const rh = 1.08, ry0 = 2.05; + for (let i = 0; i < rows.length; i++) { + const r = rows[i], y = ry0 + i * (rh + 0.1); + card(s, M, y, W - 2 * M, rh, { fill: i === 3 ? "FFF7F7" : H.white, line: i === 3 ? "FECACA" : H.border }); + s.addImage({ path: FR + r[0], x: colX[0] + 0.12, y: y + 0.12, w: 0.84, h: 0.84 }); + txt(s, [{ text: "◇ " + r[1], options: { color: H.violetDk, bold: true, breakLine: true } }, { text: r[2], options: { color: H.blue, bold: true } }], + { x: colX[0] + 1.08, y: y + 0.08, w: cols[0][1] - 1.15, h: rh - 0.16, fontSize: 11, valign: "middle" }); + [3, 4, 5].forEach((k, j) => { + const [a, b] = r[k].split("\n"); + txt(s, [{ text: a, options: { bold: true, breakLine: true } }, { text: b, options: { color: H.muted } }], + { x: colX[j + 1], y: y + 0.08, w: cols[j + 1][1], h: rh - 0.16, fontSize: 12, valign: "middle" }); + }); + const ew = cols[4][1] - 0.15; + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: colX[4], y: y + rh / 2 - 0.22, w: ew, h: 0.44, rectRadius: 0.1, fill: { color: r[8] }, line: { color: r[7], width: 1 } }); + txt(s, r[6], { x: colX[4], y: y + rh / 2 - 0.22, w: ew, h: 0.44, fontSize: 11, bold: true, color: r[7], align: "center", valign: "middle" }); + } + txt(s, "◇ camera detection · blue = site manager's voice note. Example LV positions and activity ids for this site; real values come from its GAEB X83 and P6 XML.", + { x: M, y: 6.72, w: 11.8, h: 0.25, fontSize: 9, color: H.muted }); + s.addNotes("One row per piece of evidence. Camera plus voice confirms progress on the excavation, which updates the P6 activity and the quantity against the GAEB position for the Aufmaß. The water sentence becomes an event on dewatering, and the slab that follows it moves."); + } + + // ================= 7. Trust ================= + { + const s = content("How it works", "Human in the loop", "Beweis statt Behauptung"); + const rules = [ + [L.LuMic, "Voice confirms, vision only proposes", "The piling rigs stay a proposal: no sentence backed them.", H.blue, H.blueTint], + [L.LuQuote, "Every change keeps its quote", "States only go up. Each change stores who said what, when, on which element.", H.ink, H.surface], + [L.LuLink, "Tied to contract and schedule", "Element → GAEB position → P6 activity. Progress is BoQ-weighted.", H.green, H.greenTint], + [L.LuUserCheck, "Nothing leaves without sign-off", "Reports and notices are drafts until the site manager approves them.", H.amber, H.amberTint], + ]; + for (let i = 0; i < rules.length; i++) { + const y = 1.95 + i * 1.18; + await iconCircle(s, rules[i][0], M, y, 0.62, rules[i][4], rules[i][3]); + txt(s, rules[i][1], { x: M + 0.85, y: y - 0.02, w: 5.6, h: 0.35, fontSize: 16, bold: true }); + txt(s, rules[i][2], { x: M + 0.85, y: y + 0.36, w: 5.6, h: 0.65, fontSize: 13, color: H.muted, valign: "top" }); + } + card(s, 7.45, 1.95, 5.13, 4.65, { fill: "FAFAFA" }); + const N = { + cap: [10.0, 2.75, "Video 07:40", H.blue, H.blueTint, H.blue], + el: [8.6, 4.0, "Aushub Lage 3", H.green, H.greenTint, H.green], + act: [10.0, 5.25, "B2030 Aushub", H.ink, H.white, H.ink], + boq: [11.5, 4.0, "LV 01.02.0030", H.ink, H.white, H.ink], + ev: [11.75, 2.75, "Wasser", H.red, H.redTint, H.red], + prop: [8.25, 2.75, "Bohrgerät?", H.violetDk, H.violetTint, H.violet], + }; + const E = [["cap", "el"], ["el", "act"], ["el", "boq"], ["boq", "act"], ["cap", "ev"], ["ev", "act"], ["prop", "cap"]]; + E.forEach(([a, b]) => line(s, N[a][0], N[a][1], N[b][0], N[b][1], a === "prop" ? H.violet : "C4C4C4", a === "prop" ? "dash" : undefined)); + Object.entries(N).forEach(([k, n]) => { + const w = 1.45, h = 0.5; + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: n[0] - w / 2, y: n[1] - h / 2, w, h, rectRadius: 0.25, fill: { color: n[4] }, + line: { color: n[5], width: 1.25, dashType: k === "prop" ? "dash" : undefined } }); + txt(s, n[2], { x: n[0] - w / 2, y: n[1] - h / 2, w, h, fontSize: 11, bold: true, color: n[3], align: "center", valign: "middle" }); + }); + txt(s, "Dashed = camera proposal without voice evidence, never applied", { x: 7.7, y: 6.1, w: 4.7, h: 0.3, fontSize: 10, color: H.muted }); + s.addNotes("This answers the hallucination worry with the clip itself: the piling rigs stay a dashed proposal because no sentence confirms them. The LLM cannot claim voice evidence without a matching quote (enforce_evidence)."); + } + + // ================= 8. Deviation ================= + pres.addSection({ title: "Impact" }); + { + const s = content("Impact", "Deviation detection", "Das Wasser verschiebt die Sohle"); + const gx = M + 2.6, gw = 5.35, gy = 2.25, days = ["20", "21", "22", "23", "24", "25", "26", "27", "28", "29"]; + const dw = gw / days.length; + days.forEach((d, i) => { + if (i === 2 || i === 3) s.addShape(pres.shapes.RECTANGLE, { x: gx + i * dw, y: gy + 0.4, w: dw, h: 3.2, fill: { color: "FAFAFA" }, line: { type: "none" } }); + txt(s, d + ".", { x: gx + i * dw, y: gy, w: dw, h: 0.3, fontSize: 11, color: H.muted, align: "center" }); + }); + // [id, name, planStart, planEnd, slipStart, slipEnd, done?] + const rows = [ + ["B2050", "Gerüst umsetzen", 0, 2, null, null, true], + ["B2030", "Aushub Lage 3", 0, 4, 4, 6, false], + ["B2040", "Wasserhaltung", 0, 9, null, null, false], + ["B2060", "Sohle betonieren", 5, 8, 7, 10, false], + ]; + rows.forEach((r, i) => { + const y = gy + 0.55 + i * 0.75; + txt(s, r[0], { x: M, y, w: 0.8, h: 0.45, fontSize: 12, bold: true, color: H.muted, valign: "middle" }); + txt(s, r[1], { x: M + 0.8, y, w: 1.75, h: 0.45, fontSize: 13, bold: true, valign: "middle" }); + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: gx + r[2] * dw + 0.03, y: y + 0.08, w: (r[3] - r[2]) * dw - 0.06, h: 0.3, rectRadius: 0.06, + fill: { color: r[6] ? H.greenTint : i === 2 ? H.amberTint : H.surface }, line: { color: r[6] ? H.green : i === 2 ? H.amber : "C4C4C4", width: 1 } }); + if (r[4] !== null) s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: gx + r[4] * dw + 0.03, y: y + 0.08, w: (Math.min(r[5], 10) - r[4]) * dw - 0.06, + h: 0.3, rectRadius: 0.06, fill: { color: H.redTint }, line: { color: H.red, width: 1.25 } }); + }); + line(s, gx + 1.5 * dw, gy + 0.35, gx + 1.5 * dw, gy + 3.65, H.blue, undefined, 2); + txt(s, "heute 21.11.", { x: gx + 1.5 * dw - 0.6, y: gy + 3.7, w: 1.2, h: 0.3, fontSize: 11, bold: true, color: H.blue, align: "center" }); + card(s, M, 6.0, 7.95, 0.6, { fill: H.redTint, line: H.redTint }); + s.addImage({ data: await icon(L.LuDroplets, H.red), x: M + 0.2, y: 6.13, w: 0.34, h: 0.34 }); + txt(s, "„Die Wasserhaltung reicht nicht“ → event on B2040, Aushub slows, Sohle (finish-to-start) moves", + { x: M + 0.7, y: 6.0, w: 7.15, h: 0.6, fontSize: 13, bold: true, color: H.red, valign: "middle" }); + const k = [ + ["+2 AT", "Sohle betonieren", "forecast from today's evidence", H.red], + ["50 %", "Aushub Lage 3", "confirmed by voice + 2 excavators", H.ink], + ["4", "facts from 35 s", "1 proposal still open", H.ink], + ["07:40", "Beleg", "video timestamp + quote, kept", H.ink], + ]; + k.forEach((kk, i) => { + const x = 9.1 + (i % 2) * 1.8, y = 2.25 + Math.floor(i / 2) * 1.95; + card(s, x, y, 1.68, 1.8); + txt(s, kk[0], { x: x + 0.15, y: y + 0.15, w: 1.45, h: 0.6, fontSize: 26, bold: true, color: kk[3] }); + txt(s, kk[1], { x: x + 0.15, y: y + 0.8, w: 1.45, h: 0.35, fontSize: 12, bold: true }); + txt(s, kk[2], { x: x + 0.15, y: y + 1.13, w: 1.45, h: 0.55, fontSize: 10, color: H.muted, valign: "top" }); + }); + txt(s, "Example schedule for this site, for illustration.", { x: M, y: 6.72, w: 6, h: 0.25, fontSize: 9, color: H.muted }); + s.addNotes("Plan versus actual for this pit. The water event lands on dewatering; excavation slows, and the slab, which can only start after excavation, moves two working days. The schedule here is an example for this site; in the live demo you'll see the forecast engine do this on our seeded project."); + } + + // ================= 9. Notice ================= + { + const s = content("Impact", "Correspondence", "Vom Wasser zur Behinderungsanzeige"); + card(s, M, 1.9, 5.1, 4.25, { fill: H.surface, line: H.surface }); + txt(s, "TAGESBERICHT 21.11.2026", { x: M + 0.3, y: 2.1, w: 4.5, h: 0.3, fontSize: 11, bold: true, color: H.muted, charSpacing: 1 }); + txt(s, "5. Behinderungen / Verzug", { x: M + 0.3, y: 2.45, w: 4.5, h: 0.4, fontSize: 17, bold: true }); + const f = [["Vorgang", "B2040 Wasserhaltung"], ["Umstand", "Wasser an Bohrpfahlwand Nord"], ["Seit", "21.11.2026, 07:40"], + ["Auswirkung", "+2 AT, B2060 Sohle"], ["Beleg", "Video 07:40 + Sprachnotiz"]]; + f.forEach((r, i) => { + const y = 3.05 + i * 0.58; + txt(s, r[0], { x: M + 0.3, y, w: 1.3, h: 0.45, fontSize: 12, color: H.muted, valign: "middle" }); + txt(s, r[1], { x: M + 1.6, y, w: 3.3, h: 0.45, fontSize: 13, bold: true, valign: "middle", color: r[0] === "Auswirkung" ? H.red : H.ink }); + }); + await iconCircle(s, L.LuArrowRight, 6.15, 3.7, 0.6, H.ink, H.white); + card(s, 7.05, 1.9, 5.53, 4.25, { lw: 1.25 }); + txt(s, "Behinderungsanzeige", { x: 7.35, y: 2.05, w: 3.6, h: 0.35, fontSize: 16, bold: true }); + txt(s, "gem. § 6 (1) VOB/B", { x: 7.35, y: 2.4, w: 3.6, h: 0.25, fontSize: 11, color: H.muted }); + chip(s, "ENTWURF", 11.25, 2.1, 1.1, H.amberDk, H.amberTint); + const lines = ["Bauvorhaben: Baugrube, Abschnitt 3", "Behindernder Umstand: Wasserandrang an der Bohrpfahlwand Nord, Wasserhaltung unzureichend", + "Betroffen: Aushub Lage 3, Sohle (B2030, B2060)", "Voraussichtlich: +2 Arbeitstage", "Anlage: Video 21.11., 07:40"]; + let ly = 2.75; + lines.forEach((l, i) => { const h = i === 1 ? 0.6 : 0.36; txt(s, l, { x: 7.35, y: ly, w: 5.0, h, fontSize: 12, valign: "top" }); ly += h + 0.06; }); + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 7.35, y: 5.35, w: 1.7, h: 0.5, rectRadius: 0.08, fill: { color: H.white }, line: { color: H.border } }); + txt(s, "Bearbeiten", { x: 7.35, y: 5.35, w: 1.7, h: 0.5, fontSize: 13, bold: true, align: "center", valign: "middle" }); + s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 9.2, y: 5.35, w: 2.4, h: 0.5, rectRadius: 0.08, fill: { color: H.ink }, line: { type: "none" } }); + txt(s, "Freigeben & PDF", { x: 9.2, y: 5.35, w: 2.4, h: 0.5, fontSize: 13, bold: true, color: H.white, align: "center", valign: "middle" }); + txt(s, "Entwurfsunterstützung, keine Rechtsberatung. Prüfung und Versand durch die Bauleitung.", + { x: M, y: 6.35, w: 11.8, h: 0.35, fontSize: 11, italic: true, color: H.muted }); + s.addNotes("The sentence from the video is now a notice draft with the evidence attached: circumstance, since when, affected works, expected effect, and the clip at 07:40. The site manager edits and approves. We draft; we do not give legal advice."); + } + + // ================= 10. Live demo ================= + { + const s = pres.addSlide({ masterName: "DARK", sectionTitle: "Impact" }); + chip(s, "● LIVE DEMO", M, 0.85, 1.8, H.white, H.blue); + txt(s, "Jetzt live: ein ganzer Tag", { x: M, y: 1.6, w: 11, h: 1.0, fontSize: 54, bold: true, color: H.white }); + txt(s, "Same engine, our seeded project: Hörsaal-Sanierung, Thursday 26.11.2026", { x: M, y: 2.65, w: 11, h: 0.4, fontSize: 18, color: H.grey4 }); + const beats = [["07:15", "Rundgang", "Film + talk on the phone"], ["07:20", "Live-Graph", "Changes with quotes appear"], + ["10:30", "Absence", "Forecast moves 30.11. → 01.12."], ["16:45", "Tagesbericht", "Filled automatically"], ["17:00", "Anzeige", "Draft reviewed, PDF out"]]; + const y0 = 4.4, step = (W - 2 * M) / beats.length; + line(s, M + step / 2, y0, W - M - step / 2, y0, "3F3F46", undefined, 2); + beats.forEach((b, i) => { + const cx = M + step * i + step / 2, hot = i === 2 || i === 4; + s.addShape(pres.shapes.OVAL, { x: cx - 0.13, y: y0 - 0.13, w: 0.26, h: 0.26, fill: { color: hot ? H.blue : "52525B" }, line: { type: "none" } }); + txt(s, b[0], { x: cx - 1.2, y: 3.75, w: 2.4, h: 0.4, fontSize: 18, bold: true, color: H.white, align: "center" }); + txt(s, b[1], { x: cx - 1.2, y: 4.7, w: 2.4, h: 0.35, fontSize: 15, bold: true, color: H.white, align: "center" }); + txt(s, b[2], { x: cx - 1.2, y: 5.05, w: 2.4, h: 0.6, fontSize: 12, color: H.grey4, align: "center", valign: "top" }); + }); + txt(s, "Fallback: cached replay (no GPU, no network)", { x: M, y: 6.6, w: 8, h: 0.3, fontSize: 11, color: "71717A" }); + s.addNotes("Switch to the browser. docs/DEMO.md 3-Minuten-Demo: recording under 'Aufnahmen des Tages', changes with quotes, 'zwei Mann vom Trockenbau sind krank' moves the forecast, red delay in the Gantt, Tagesbericht, notice draft, approve, PDF. Fallback: replay uw-video or cap-e2e-2."); + } + + // ================= 11. Challenge fit ================= + pres.addSection({ title: "Market" }); + { + const s = content("Market", "Challenge B", "Challenge B: abgedeckt"); + const items = [ + ["Voice / text capture on mobile", "Phone browser upload, Whisper DE/NL/EN"], ["Daily report analysis vs plan", "Ist/Soll, SPI, forecast from evidence"], + ["Notice drafts from keywords", "Behinderungs-, Mehrkosten-, Bedenkenanzeige"], ["Structured summaries", "Events: absence, delay, defect, delivery"], + ["Correspondence on deviation", "Delay detected → draft proposed"], ["Human in the loop", "Vision proposes, voice confirms, manager signs"], + ["PDF export", "A4 Tagesbericht and notice drafts"], ["“A day in the life” demo", "Real site clip + rehearsed live run"], + ]; + for (let i = 0; i < items.length; i++) { + const x = M + (i % 2) * 6.0, y = 1.95 + Math.floor(i / 2) * 1.15; + card(s, x, y, 5.8, 0.98); + await iconCircle(s, L.LuCheck, x + 0.2, y + 0.2, 0.58, H.greenTint, H.green); + txt(s, items[i][0], { x: x + 0.98, y: y + 0.14, w: 4.7, h: 0.38, fontSize: 15, bold: true }); + txt(s, items[i][1], { x: x + 0.98, y: y + 0.52, w: 4.7, h: 0.32, fontSize: 12, color: H.muted }); + } + s.addNotes("Walk the checklist quickly; the clip and the demo already showed it."); + } + + // ================= 12. Positioning ================= + { + const s = content("Market", "Positioning", "Sprache, verknüpft mit Vertrag und Terminplan"); + const px = M + 0.5, py = 1.95, pw = 6.6, ph = 4.4; + card(s, px, py, pw, ph, { fill: "FAFAFA" }); + line(s, px + pw / 2, py, px + pw / 2, py + ph, H.border); + line(s, px, py + ph / 2, px + pw, py + ph / 2, H.border); + txt(s, "Capture effort → passive (talk & film)", { x: px, y: py + ph + 0.08, w: pw, h: 0.3, fontSize: 11, color: H.muted, align: "right" }); + txt(s, "Link to contract & schedule →", { x: px - 0.3 - 2.2, y: py + ph / 2 - 0.15, w: 4.4, h: 0.3, fontSize: 11, color: H.muted, rotate: 270, align: "center" }); + [["Fieldwire", 0.18, 0.2], ["Procore Daily Log", 0.25, 0.32], ["Primavera P6", 0.18, 0.8], ["Capmo KI", 0.72, 0.28], ["PlanRadar", 0.62, 0.18], + ["Buildots / Doxel*", 0.78, 0.64]].forEach(([n, fx, fy]) => { + const cx = px + fx * pw, cy = py + (1 - fy) * ph; + s.addShape(pres.shapes.OVAL, { x: cx - 0.09, y: cy - 0.09, w: 0.18, h: 0.18, fill: { color: H.grey4 }, line: { type: "none" } }); + txt(s, n, { x: cx + 0.15, y: cy - 0.17, w: 2, h: 0.34, fontSize: 12, color: H.muted, valign: "middle" }); + }); + const tx = px + 0.86 * pw, ty = py + 0.12 * ph; + s.addShape(pres.shapes.OVAL, { x: tx - 0.17, y: ty - 0.17, w: 0.34, h: 0.34, fill: { color: H.blue }, line: { color: H.white, width: 2 } }); + txt(s, "Tagwerk", { x: tx - 1.6, y: ty - 0.18, w: 1.35, h: 0.36, fontSize: 15, bold: true, color: H.blue, align: "right", valign: "middle" }); + txt(s, "* needs BIM model + camera hardware", { x: px, y: py + ph + 0.4, w: 4, h: 0.3, fontSize: 10, color: H.muted }); + [["35 s", "of phone video became 4 linked facts and a notice draft"], ["4", "export formats: P6 XML, GAEB X83/X84, Outlook .ics, PDF"], + ["0", "BIM or extra hardware required: a phone and a laptop"]].forEach((p, i) => { + const y = 1.95 + i * 1.5; + txt(s, p[0], { x: 8.35, y, w: 4.2, h: 0.7, fontSize: 40, bold: true, color: i === 0 ? H.blue : H.ink }); + txt(s, p[1], { x: 8.35, y: y + 0.72, w: 4.2, h: 0.6, fontSize: 13, color: H.muted, valign: "top" }); + }); + txt(s, "Positions based on public vendor information, Nov 2026.", { x: 8.35, y: 6.45, w: 4.3, h: 0.3, fontSize: 9, color: H.muted }); + s.addNotes("Capmo and PlanRadar turn voice into diary entries and tickets, but as free text. Buildots and Doxel link to the model but need BIM and cameras and capture progress, not causes. Tagwerk ties spoken causes to BoQ positions and the schedule."); + } + + // ================= 13. Close ================= + pres.addSection({ title: "Close" }); + { + const s = pres.addSlide({ masterName: "DARK", sectionTitle: "Close" }); + s.addImage({ path: FR + "walk-wall.jpg", x: W - 7.5 * VR, y: 0, w: 7.5 * VR, h: 7.5 }); + s.addShape(pres.shapes.RECTANGLE, { x: W - 7.5 * VR, y: 0, w: 7.5 * VR, h: 7.5, fill: { color: H.dark, transparency: 35 }, line: { type: "none" } }); + logo(s, M, 0.75, 0.7, true); + txt(s, "„Das Einzige war das Wasser.“", { x: M, y: 1.8, w: 8.3, h: 0.8, fontSize: 36, bold: true, color: H.white }); + txt(s, "Jetzt steht es im Bautagebuch, im Terminplan und in der Anzeige.", { x: M, y: 2.6, w: 8.3, h: 0.6, fontSize: 20, color: H.blueL }); + txt(s, "Tagwerk: the day's work, documented.", { x: M, y: 3.35, w: 8.3, h: 0.5, fontSize: 18, color: H.grey3 }); + const nx = [[L.LuHardHat, "Pilot", "This Baugrube, four weeks"], [L.LuHistory, "Audit trail", "Corrections with full history"], + [L.LuPlug, "Integrations", "P6 import, mail, Capmo / PlanRadar"]]; + for (let i = 0; i < 3; i++) { + const x = M + i * 2.8; + card(s, x, 4.45, 2.6, 1.3, { fill: H.dark2, line: H.darkLine }); + s.addImage({ data: await icon(nx[i][0], H.blueL), x: x + 0.2, y: 4.65, w: 0.34, h: 0.34 }); + txt(s, nx[i][1], { x: x + 0.65, y: 4.62, w: 1.85, h: 0.4, fontSize: 15, bold: true, color: H.white }); + txt(s, nx[i][2], { x: x + 0.2, y: 5.1, w: 2.3, h: 0.55, fontSize: 11, color: H.grey4, valign: "top" }); + } + txt(s, "Team Tagwerk · github.com/Current-cmd/Tagwerk", { x: M, y: 6.3, w: 5.5, h: 0.3, fontSize: 13, color: H.grey4 }); + txt(s, "Entwurfsunterstützung, keine Rechtsberatung.", { x: M, y: 6.65, w: 5.5, h: 0.3, fontSize: 11, italic: true, color: "71717A" }); + s.addNotes("Close the loop on the opening clip. The sentence that would have been lost is now in the daily report, the schedule and a notice draft. Ask: a pilot on a real site like this one."); + } + + await pres.writeFile({ fileName: OUT }); + await applyTheme(OUT, THEME); + console.log("wrote", OUT); +})().catch((e) => { console.error(e); process.exit(1); }); diff --git a/docs/design-brief/site-frames/boxes.json b/docs/design-brief/site-frames/boxes.json new file mode 100644 index 0000000..8b55463 --- /dev/null +++ b/docs/design-brief/site-frames/boxes.json @@ -0,0 +1,24 @@ +{ + "_note": "Hand-corrected boxes, pixel coords [x1,y1,x2,y2] on the 960x1708 frames the GPU worker analysed (1 fps, frame N = t N-1 s). Colour: violet = equipment/people, green = building element, red = deviation.", + "WA0000_t5": {"src_time_s": 5, "boxes": [ + {"label": "Turmdrehkran", "bbox": [440, 0, 745, 1090], "kind": "equipment"}, + {"label": "Bohrpfahlwand", "bbox": [0, 1095, 960, 1275], "kind": "element"}, + {"label": "Baucontainer", "bbox": [430, 1195, 590, 1300], "kind": "equipment"}, + {"label": "Arbeitsbühne", "bbox": [690, 1130, 960, 1262], "kind": "equipment"}]}, + "WA0000_t10": {"src_time_s": 10, "boxes": [ + {"label": "Gerüst am Haken", "bbox": [15, 560, 140, 875], "kind": "equipment"}, + {"label": "Bohrgerät ×2", "bbox": [330, 860, 515, 1200], "kind": "equipment"}, + {"label": "Person · Weste, Helm", "bbox": [330, 1170, 540, 1708], "kind": "equipment"}, + {"label": "stehendes Wasser", "bbox": [530, 1335, 765, 1525], "kind": "deviation"}]}, + "WA0003_t2": {"src_time_s": 2, "boxes": [ + {"label": "Rohrsteifen", "bbox": [0, 0, 960, 770], "kind": "element"}, + {"label": "Bagger", "bbox": [260, 810, 565, 1000], "kind": "equipment"}, + {"label": "Bagger", "bbox": [736, 810, 960, 1330], "kind": "equipment"}, + {"label": "Traktor", "bbox": [50, 895, 225, 995], "kind": "equipment"}]}, + "WA0003_t8": {"src_time_s": 8, "boxes": [ + {"label": "Rohrsteifen", "bbox": [0, 0, 960, 770], "kind": "element"}, + {"label": "Schlitzwand", "bbox": [630, 720, 960, 1000], "kind": "element"}, + {"label": "Bagger", "bbox": [400, 815, 640, 1000], "kind": "equipment"}, + {"label": "Traktor mit Mulde", "bbox": [150, 900, 400, 1000], "kind": "equipment"}, + {"label": "Aushub", "bbox": [320, 1005, 960, 1300], "kind": "element"}]} +} diff --git a/docs/design-brief/site-frames/close-bg.jpg b/docs/design-brief/site-frames/close-bg.jpg new file mode 100644 index 0000000..1b3fa53 Binary files /dev/null and b/docs/design-brief/site-frames/close-bg.jpg differ diff --git a/docs/design-brief/site-frames/crane-lift-sq.jpg b/docs/design-brief/site-frames/crane-lift-sq.jpg new file mode 100644 index 0000000..95bbb90 Binary files /dev/null and b/docs/design-brief/site-frames/crane-lift-sq.jpg differ diff --git a/docs/design-brief/site-frames/crane-lift.jpg b/docs/design-brief/site-frames/crane-lift.jpg new file mode 100644 index 0000000..900e708 Binary files /dev/null and b/docs/design-brief/site-frames/crane-lift.jpg differ diff --git a/docs/design-brief/site-frames/det-crane.jpg b/docs/design-brief/site-frames/det-crane.jpg new file mode 100644 index 0000000..b953b87 Binary files /dev/null and b/docs/design-brief/site-frames/det-crane.jpg differ diff --git a/docs/design-brief/site-frames/det-dig.jpg b/docs/design-brief/site-frames/det-dig.jpg new file mode 100644 index 0000000..509103f Binary files /dev/null and b/docs/design-brief/site-frames/det-dig.jpg differ diff --git a/docs/design-brief/site-frames/det-person.jpg b/docs/design-brief/site-frames/det-person.jpg new file mode 100644 index 0000000..3df6ed0 Binary files /dev/null and b/docs/design-brief/site-frames/det-person.jpg differ diff --git a/docs/design-brief/site-frames/det-struts.jpg b/docs/design-brief/site-frames/det-struts.jpg new file mode 100644 index 0000000..5c46fdc Binary files /dev/null and b/docs/design-brief/site-frames/det-struts.jpg differ diff --git a/docs/design-brief/site-frames/opening-baugrube.mp4 b/docs/design-brief/site-frames/opening-baugrube.mp4 new file mode 100644 index 0000000..7dbe464 Binary files /dev/null and b/docs/design-brief/site-frames/opening-baugrube.mp4 differ diff --git a/docs/design-brief/site-frames/opening-poster.png b/docs/design-brief/site-frames/opening-poster.png new file mode 100644 index 0000000..4922616 Binary files /dev/null and b/docs/design-brief/site-frames/opening-poster.png differ diff --git a/docs/design-brief/site-frames/pit-wall.jpg b/docs/design-brief/site-frames/pit-wall.jpg new file mode 100644 index 0000000..c19c11e Binary files /dev/null and b/docs/design-brief/site-frames/pit-wall.jpg differ diff --git a/docs/design-brief/site-frames/struts-excavator-sq.jpg b/docs/design-brief/site-frames/struts-excavator-sq.jpg new file mode 100644 index 0000000..6d3ca1a Binary files /dev/null and b/docs/design-brief/site-frames/struts-excavator-sq.jpg differ diff --git a/docs/design-brief/site-frames/struts-excavator.jpg b/docs/design-brief/site-frames/struts-excavator.jpg new file mode 100644 index 0000000..3d0e906 Binary files /dev/null and b/docs/design-brief/site-frames/struts-excavator.jpg differ diff --git a/docs/design-brief/site-frames/struts-haul-sq.jpg b/docs/design-brief/site-frames/struts-haul-sq.jpg new file mode 100644 index 0000000..3427784 Binary files /dev/null and b/docs/design-brief/site-frames/struts-haul-sq.jpg differ diff --git a/docs/design-brief/site-frames/struts-haul.jpg b/docs/design-brief/site-frames/struts-haul.jpg new file mode 100644 index 0000000..0e5fe3b Binary files /dev/null and b/docs/design-brief/site-frames/struts-haul.jpg differ diff --git a/docs/design-brief/site-frames/walk-wall-sq.jpg b/docs/design-brief/site-frames/walk-wall-sq.jpg new file mode 100644 index 0000000..c70f16e Binary files /dev/null and b/docs/design-brief/site-frames/walk-wall-sq.jpg differ diff --git a/docs/design-brief/site-frames/walk-wall.jpg b/docs/design-brief/site-frames/walk-wall.jpg new file mode 100644 index 0000000..37863a1 Binary files /dev/null and b/docs/design-brief/site-frames/walk-wall.jpg differ diff --git a/docs/design-brief/site-frames/worker-output/WA0000-speech.json b/docs/design-brief/site-frames/worker-output/WA0000-speech.json new file mode 100644 index 0000000..91fd549 --- /dev/null +++ b/docs/design-brief/site-frames/worker-output/WA0000-speech.json @@ -0,0 +1 @@ +{"capture_id":"site-WA0000","lang":"de","segments":[{"start":10.4,"end":11.8,"text":"und","words":[{"start":10.4,"end":11.8,"word":"und"}]}]} \ No newline at end of file diff --git a/docs/design-brief/site-frames/worker-output/WA0000-vision.json b/docs/design-brief/site-frames/worker-output/WA0000-vision.json new file mode 100644 index 0000000..be74feb --- /dev/null +++ b/docs/design-brief/site-frames/worker-output/WA0000-vision.json @@ -0,0 +1 @@ +{"capture_id":"site-WA0000","frames":[{"t":0.0,"media_path":"frames/0001.jpg","objects":[{"obj_id":"f0_o1","label":"ladder","bbox":[312.3,828.6,430.1,967.3],"conf":0.7863,"marker_id":null,"source":"world"}],"triplets":[]},{"t":1.0,"media_path":"frames/0002.jpg","objects":[],"triplets":[]},{"t":2.0,"media_path":"frames/0003.jpg","objects":[],"triplets":[]},{"t":3.0,"media_path":"frames/0004.jpg","objects":[{"obj_id":"f3_o1","label":"person","bbox":[606.8,975.1,634.8,1039.7],"conf":0.6543,"marker_id":null,"source":"coco"},{"obj_id":"f3_o2","label":"person","bbox":[277.1,912.7,305.4,982.8],"conf":0.5366,"marker_id":null,"source":"coco"},{"obj_id":"f3_o3","label":"crane","bbox":[899.8,523.1,959.7,556.4],"conf":0.2671,"marker_id":null,"source":"world"}],"triplets":[{"s":"f3_o1","rel":"below","o":"f3_o3","score":0.4667,"source":"model"},{"s":"f3_o3","rel":"above","o":"f3_o1","score":0.3115,"source":"model"}]},{"t":4.0,"media_path":"frames/0005.jpg","objects":[{"obj_id":"f4_o1","label":"car","bbox":[0.2,996.3,61.7,1094.9],"conf":0.5713,"marker_id":null,"source":"coco"},{"obj_id":"f4_o2","label":"crane","bbox":[741.3,0.0,960.0,803.4],"conf":0.5399,"marker_id":null,"source":"world"},{"obj_id":"f4_o3","label":"person","bbox":[213.4,977.9,240.6,1045.5],"conf":0.5382,"marker_id":null,"source":"coco"},{"obj_id":"f4_o4","label":"concrete mixer","bbox":[414.4,683.8,592.6,782.7],"conf":0.3445,"marker_id":null,"source":"world"},{"obj_id":"f4_o5","label":"ladder","bbox":[85.6,947.6,198.9,1065.9],"conf":0.2976,"marker_id":null,"source":"world"},{"obj_id":"f4_o6","label":"crane","bbox":[858.2,0.0,960.0,740.8],"conf":0.269,"marker_id":null,"source":"world"}],"triplets":[{"s":"f4_o3","rel":"next to","o":"f4_o5","score":0.4966,"source":"model"},{"s":"f4_o6","rel":"behind","o":"f4_o2","score":0.4223,"source":"model"},{"s":"f4_o5","rel":"next to","o":"f4_o1","score":0.4167,"source":"model"},{"s":"f4_o2","rel":"next to","o":"f4_o6","score":0.4089,"source":"model"},{"s":"f4_o5","rel":"next to","o":"f4_o3","score":0.4061,"source":"model"},{"s":"f4_o5","rel":"in front of","o":"f4_o4","score":0.3238,"source":"model"},{"s":"f4_o4","rel":"below","o":"f4_o2","score":0.3218,"source":"model"},{"s":"f4_o2","rel":"behind","o":"f4_o4","score":0.3175,"source":"model"},{"s":"f4_o4","rel":"behind","o":"f4_o5","score":0.3139,"source":"model"}]},{"t":5.0,"media_path":"frames/0006.jpg","objects":[{"obj_id":"f5_o1","label":"crane","bbox":[433.0,0.1,776.4,1026.7],"conf":0.7706,"marker_id":null,"source":"world"},{"obj_id":"f5_o2","label":"crane","bbox":[429.1,0.0,752.9,404.2],"conf":0.5155,"marker_id":null,"source":"world"},{"obj_id":"f5_o3","label":"concrete mixer","bbox":[98.8,954.1,290.3,1056.6],"conf":0.4063,"marker_id":null,"source":"world"}],"triplets":[{"s":"f5_o1","rel":"below","o":"f5_o2","score":0.6055,"source":"model"},{"s":"f5_o3","rel":"below","o":"f5_o2","score":0.5185,"source":"model"},{"s":"f5_o2","rel":"above","o":"f5_o1","score":0.5181,"source":"model"},{"s":"f5_o3","rel":"below","o":"f5_o1","score":0.4228,"source":"model"},{"s":"f5_o2","rel":"above","o":"f5_o3","score":0.4012,"source":"model"},{"s":"f5_o1","rel":"above","o":"f5_o3","score":0.3215,"source":"model"}]},{"t":6.0,"media_path":"frames/0007.jpg","objects":[{"obj_id":"f6_o1","label":"cable tray","bbox":[594.0,1354.1,741.8,1451.5],"conf":0.6671,"marker_id":null,"source":"world"},{"obj_id":"f6_o2","label":"crane","bbox":[155.8,7.3,458.2,1124.7],"conf":0.6492,"marker_id":null,"source":"world"},{"obj_id":"f6_o3","label":"crane","bbox":[826.2,0.2,952.9,793.3],"conf":0.5287,"marker_id":null,"source":"world"},{"obj_id":"f6_o4","label":"crane","bbox":[175.9,0.0,788.5,1062.3],"conf":0.4827,"marker_id":null,"source":"world"},{"obj_id":"f6_o5","label":"crane","bbox":[179.3,0.0,686.3,430.1],"conf":0.4733,"marker_id":null,"source":"world"}],"triplets":[{"s":"f6_o4","rel":"below","o":"f6_o5","score":0.5806,"source":"model"},{"s":"f6_o5","rel":"above","o":"f6_o4","score":0.5064,"source":"model"},{"s":"f6_o2","rel":"below","o":"f6_o5","score":0.5034,"source":"model"},{"s":"f6_o5","rel":"above","o":"f6_o2","score":0.4991,"source":"model"},{"s":"f6_o1","rel":"below","o":"f6_o4","score":0.3461,"source":"model"},{"s":"f6_o1","rel":"below","o":"f6_o2","score":0.3345,"source":"model"},{"s":"f6_o1","rel":"below","o":"f6_o3","score":0.3252,"source":"model"},{"s":"f6_o4","rel":"above","o":"f6_o1","score":0.3178,"source":"model"},{"s":"f6_o2","rel":"above","o":"f6_o1","score":0.3121,"source":"model"}]},{"t":7.0,"media_path":"frames/0008.jpg","objects":[{"obj_id":"f7_o1","label":"crane","bbox":[6.7,1.5,371.0,1022.7],"conf":0.6549,"marker_id":null,"source":"world"},{"obj_id":"f7_o2","label":"cable tray","bbox":[393.1,1322.7,538.0,1418.9],"conf":0.6361,"marker_id":null,"source":"world"},{"obj_id":"f7_o3","label":"crane","bbox":[632.3,0.0,750.4,781.9],"conf":0.5502,"marker_id":null,"source":"world"},{"obj_id":"f7_o4","label":"car","bbox":[538.3,1315.5,590.6,1359.5],"conf":0.4167,"marker_id":null,"source":"coco"}],"triplets":[{"s":"f7_o2","rel":"next to","o":"f7_o4","score":0.3194,"source":"model"}]},{"t":8.0,"media_path":"frames/0009.jpg","objects":[{"obj_id":"f8_o1","label":"crane","bbox":[594.0,0.0,713.5,708.2],"conf":0.7395,"marker_id":null,"source":"world"},{"obj_id":"f8_o2","label":"crane","bbox":[1.3,2.0,240.9,1009.7],"conf":0.5622,"marker_id":null,"source":"world"},{"obj_id":"f8_o3","label":"cable tray","bbox":[368.3,1244.2,515.5,1340.2],"conf":0.5418,"marker_id":null,"source":"world"}],"triplets":[{"s":"f8_o3","rel":"below","o":"f8_o2","score":0.4289,"source":"model"},{"s":"f8_o3","rel":"below","o":"f8_o1","score":0.4138,"source":"model"},{"s":"f8_o2","rel":"behind","o":"f8_o3","score":0.3557,"source":"model"},{"s":"f8_o1","rel":"above","o":"f8_o3","score":0.3348,"source":"model"}]},{"t":9.0,"media_path":"frames/0010.jpg","objects":[{"obj_id":"f9_o1","label":"person","bbox":[718.3,1187.6,932.8,1706.1],"conf":0.9182,"marker_id":null,"source":"coco"},{"obj_id":"f9_o2","label":"cable tray","bbox":[138.2,1463.1,294.9,1584.3],"conf":0.7855,"marker_id":null,"source":"world"},{"obj_id":"f9_o3","label":"crane","bbox":[343.1,1.1,468.2,893.0],"conf":0.5251,"marker_id":null,"source":"world"},{"obj_id":"f9_o4","label":"crane","bbox":[669.0,860.5,766.0,1206.6],"conf":0.3487,"marker_id":null,"source":"world"},{"obj_id":"f9_o5","label":"hard hat","bbox":[780.7,1186.7,842.0,1230.1],"conf":0.2542,"marker_id":null,"source":"world"}],"triplets":[{"s":"f9_o4","rel":"below","o":"f9_o3","score":0.5178,"source":"model"},{"s":"f9_o4","rel":"behind","o":"f9_o1","score":0.511,"source":"model"},{"s":"f9_o1","rel":"in front of","o":"f9_o4","score":0.4986,"source":"model"},{"s":"f9_o3","rel":"above","o":"f9_o4","score":0.4803,"source":"model"},{"s":"f9_o1","rel":"below","o":"f9_o3","score":0.4408,"source":"model"},{"s":"f9_o2","rel":"below","o":"f9_o3","score":0.3695,"source":"model"},{"s":"f9_o2","rel":"below","o":"f9_o4","score":0.3072,"source":"model"}]},{"t":10.0,"media_path":"frames/0011.jpg","objects":[{"obj_id":"f10_o1","label":"person","bbox":[331.7,1174.9,535.1,1706.8],"conf":0.9022,"marker_id":null,"source":"coco"},{"obj_id":"f10_o2","label":"crane","bbox":[327.2,860.9,436.9,1206.8],"conf":0.4692,"marker_id":null,"source":"world"},{"obj_id":"f10_o3","label":"hard hat","bbox":[398.7,1173.6,461.0,1221.7],"conf":0.3796,"marker_id":null,"source":"world"},{"obj_id":"f10_o4","label":"crane","bbox":[690.0,959.8,738.2,1202.5],"conf":0.3354,"marker_id":null,"source":"world"},{"obj_id":"f10_o5","label":"crane","bbox":[16.1,2.4,134.5,882.2],"conf":0.3265,"marker_id":null,"source":"world"},{"obj_id":"f10_o6","label":"rebar","bbox":[38.8,1184.0,309.4,1707.8],"conf":0.2699,"marker_id":null,"source":"world"}],"triplets":[{"s":"f10_o2","rel":"behind","o":"f10_o1","score":0.5181,"source":"model"},{"s":"f10_o1","rel":"in front of","o":"f10_o2","score":0.5171,"source":"model"},{"s":"f10_o1","rel":"below","o":"f10_o5","score":0.5072,"source":"model"},{"s":"f10_o5","rel":"above","o":"f10_o2","score":0.476,"source":"model"},{"s":"f10_o2","rel":"below","o":"f10_o5","score":0.4699,"source":"model"},{"s":"f10_o1","rel":"next to","o":"f10_o6","score":0.4667,"source":"model"},{"s":"f10_o1","rel":"in front of","o":"f10_o4","score":0.4267,"source":"model"},{"s":"f10_o5","rel":"above","o":"f10_o6","score":0.4207,"source":"model"},{"s":"f10_o6","rel":"below","o":"f10_o5","score":0.3743,"source":"model"},{"s":"f10_o2","rel":"behind","o":"f10_o6","score":0.3597,"source":"model"}]},{"t":11.0,"media_path":"frames/0012.jpg","objects":[{"obj_id":"f11_o1","label":"person","bbox":[49.0,1054.1,259.9,1676.1],"conf":0.911,"marker_id":null,"source":"coco"},{"obj_id":"f11_o2","label":"crane","bbox":[457.0,861.7,506.4,1077.5],"conf":0.4221,"marker_id":null,"source":"world"},{"obj_id":"f11_o3","label":"crane","bbox":[88.1,751.9,203.7,1091.5],"conf":0.3975,"marker_id":null,"source":"world"}],"triplets":[{"s":"f11_o3","rel":"behind","o":"f11_o1","score":0.5242,"source":"model"},{"s":"f11_o1","rel":"in front of","o":"f11_o3","score":0.4884,"source":"model"},{"s":"f11_o2","rel":"behind","o":"f11_o1","score":0.4182,"source":"model"},{"s":"f11_o1","rel":"in front of","o":"f11_o2","score":0.4003,"source":"model"}]},{"t":12.0,"media_path":"frames/0013.jpg","objects":[{"obj_id":"f12_o1","label":"crane","bbox":[226.9,712.8,292.1,948.5],"conf":0.3666,"marker_id":null,"source":"world"}],"triplets":[]}]} \ No newline at end of file diff --git a/docs/design-brief/site-frames/worker-output/WA0003-speech.json b/docs/design-brief/site-frames/worker-output/WA0003-speech.json new file mode 100644 index 0000000..9b82624 --- /dev/null +++ b/docs/design-brief/site-frames/worker-output/WA0003-speech.json @@ -0,0 +1 @@ +{"capture_id":"site-WA0003","lang":"de","segments":[{"start":0.0,"end":19.18,"text":"Jetzt sind wir einfach nur über den Preßpinfel, oder einfach rausgepresst aus dem, die Stein ist einziger, was eigentlich garisch war, aus dem Sinn kann ich nicht glauben, Hauptsache, dass es einziger war, weil die Gerüsch war, was weiß, was weiß, was weiß, was weiß, was weiß, was weiß, was weiß, was weiß, was weiß, was weiß,","words":[{"start":0.0,"end":0.24,"word":"Jetzt"},{"start":0.24,"end":0.34,"word":"sind"},{"start":0.34,"end":0.42,"word":"wir"},{"start":0.42,"end":0.74,"word":"einfach"},{"start":0.74,"end":1.06,"word":"nur"},{"start":1.06,"end":1.9,"word":"über"},{"start":1.9,"end":2.02,"word":"den"},{"start":2.02,"end":4.18,"word":"Preßpinfel,"},{"start":4.18,"end":5.2,"word":"oder"},{"start":5.2,"end":5.46,"word":"einfach"},{"start":5.46,"end":6.34,"word":"rausgepresst"},{"start":6.34,"end":6.48,"word":"aus"},{"start":6.48,"end":6.78,"word":"dem,"},{"start":7.02,"end":7.38,"word":"die"},{"start":7.38,"end":7.58,"word":"Stein"},{"start":7.58,"end":7.8,"word":"ist"},{"start":7.8,"end":8.22,"word":"einziger,"},{"start":8.28,"end":8.42,"word":"was"},{"start":8.42,"end":8.64,"word":"eigentlich"},{"start":8.64,"end":9.14,"word":"garisch"},{"start":9.14,"end":9.38,"word":"war,"},{"start":10.18,"end":10.44,"word":"aus"},{"start":10.44,"end":10.56,"word":"dem"},{"start":10.56,"end":10.7,"word":"Sinn"},{"start":10.7,"end":11.06,"word":"kann"},{"start":11.06,"end":11.22,"word":"ich"},{"start":11.22,"end":11.26,"word":"nicht"},{"start":11.26,"end":11.44,"word":"glauben,"},{"start":12.24,"end":13.0,"word":"Hauptsache,"},{"start":13.12,"end":13.12,"word":"dass"},{"start":13.12,"end":13.12,"word":"es"},{"start":13.12,"end":13.5,"word":"einziger"},{"start":13.5,"end":13.66,"word":"war,"},{"start":13.86,"end":13.86,"word":"weil"},{"start":13.86,"end":13.98,"word":"die"},{"start":13.98,"end":14.3,"word":"Gerüsch"},{"start":14.3,"end":14.44,"word":"war,"},{"start":14.66,"end":14.66,"word":"was"},{"start":14.66,"end":14.9,"word":"weiß,"},{"start":15.0,"end":15.08,"word":"was"},{"start":15.08,"end":15.22,"word":"weiß,"},{"start":15.22,"end":15.22,"word":"was"},{"start":15.22,"end":15.28,"word":"weiß,"},{"start":15.72,"end":17.96,"word":"was"},{"start":17.96,"end":17.96,"word":"weiß,"},{"start":17.96,"end":18.02,"word":"was"},{"start":18.02,"end":18.26,"word":"weiß,"},{"start":18.3,"end":18.3,"word":"was"},{"start":18.3,"end":18.3,"word":"weiß,"},{"start":18.38,"end":18.38,"word":"was"},{"start":18.38,"end":18.38,"word":"weiß,"},{"start":18.4,"end":18.4,"word":"was"},{"start":18.4,"end":18.4,"word":"weiß,"},{"start":18.42,"end":18.42,"word":"was"},{"start":18.42,"end":18.42,"word":"weiß,"},{"start":18.62,"end":19.18,"word":"was"},{"start":19.18,"end":19.18,"word":"weiß,"}]}]} \ No newline at end of file diff --git a/docs/design-brief/site-frames/worker-output/WA0003-vision.json b/docs/design-brief/site-frames/worker-output/WA0003-vision.json new file mode 100644 index 0000000..2ea2d5d --- /dev/null +++ b/docs/design-brief/site-frames/worker-output/WA0003-vision.json @@ -0,0 +1 @@ +{"capture_id":"site-WA0003","frames":[{"t":0.0,"media_path":"frames/0001.jpg","objects":[{"obj_id":"f0_o1","label":"excavator","bbox":[591.0,775.1,934.4,1115.2],"conf":0.6017,"marker_id":null,"source":"world"},{"obj_id":"f0_o2","label":"airplane","bbox":[2.5,2.1,958.7,547.1],"conf":0.3967,"marker_id":null,"source":"coco"}],"triplets":[{"s":"f0_o1","rel":"below","o":"f0_o2","score":0.5895,"source":"model"},{"s":"f0_o2","rel":"above","o":"f0_o1","score":0.4788,"source":"model"}]},{"t":1.0,"media_path":"frames/0002.jpg","objects":[{"obj_id":"f1_o1","label":"ladder","bbox":[691.6,792.1,958.4,1118.0],"conf":0.52,"marker_id":null,"source":"world"},{"obj_id":"f1_o2","label":"excavator","bbox":[173.7,782.0,558.2,990.9],"conf":0.3957,"marker_id":null,"source":"world"},{"obj_id":"f1_o3","label":"excavator","bbox":[669.7,792.5,959.1,1283.4],"conf":0.3312,"marker_id":null,"source":"world"}],"triplets":[{"s":"f1_o1","rel":"behind","o":"f1_o3","score":0.5107,"source":"model"},{"s":"f1_o3","rel":"next to","o":"f1_o1","score":0.483,"source":"model"},{"s":"f1_o2","rel":"behind","o":"f1_o3","score":0.3503,"source":"model"},{"s":"f1_o3","rel":"in front of","o":"f1_o2","score":0.34,"source":"model"},{"s":"f1_o1","rel":"behind","o":"f1_o2","score":0.3146,"source":"model"},{"s":"f1_o2","rel":"behind","o":"f1_o1","score":0.309,"source":"model"}]},{"t":2.0,"media_path":"frames/0003.jpg","objects":[{"obj_id":"f2_o1","label":"excavator","bbox":[717.5,803.1,958.1,1265.0],"conf":0.7052,"marker_id":null,"source":"world"},{"obj_id":"f2_o2","label":"excavator","bbox":[250.5,799.0,568.6,1009.7],"conf":0.5171,"marker_id":null,"source":"world"},{"obj_id":"f2_o3","label":"ladder","bbox":[475.6,803.8,567.4,997.8],"conf":0.4869,"marker_id":null,"source":"world"},{"obj_id":"f2_o4","label":"truck","bbox":[255.6,804.6,569.9,1011.3],"conf":0.3528,"marker_id":null,"source":"coco"}],"triplets":[{"s":"f2_o3","rel":"behind","o":"f2_o2","score":0.6486,"source":"model"},{"s":"f2_o3","rel":"behind","o":"f2_o4","score":0.6482,"source":"model"},{"s":"f2_o4","rel":"behind","o":"f2_o2","score":0.5163,"source":"model"},{"s":"f2_o2","rel":"in front of","o":"f2_o4","score":0.4808,"source":"model"},{"s":"f2_o4","rel":"in front of","o":"f2_o3","score":0.4716,"source":"model"},{"s":"f2_o2","rel":"in front of","o":"f2_o3","score":0.4705,"source":"model"},{"s":"f2_o2","rel":"behind","o":"f2_o1","score":0.3532,"source":"model"},{"s":"f2_o4","rel":"behind","o":"f2_o1","score":0.3515,"source":"model"}]},{"t":3.0,"media_path":"frames/0004.jpg","objects":[{"obj_id":"f3_o1","label":"excavator","bbox":[195.2,799.1,536.9,1000.4],"conf":0.6254,"marker_id":null,"source":"world"}],"triplets":[]},{"t":4.0,"media_path":"frames/0005.jpg","objects":[{"obj_id":"f4_o1","label":"excavator","bbox":[260.4,798.5,559.2,1010.9],"conf":0.6654,"marker_id":null,"source":"world"},{"obj_id":"f4_o2","label":"ladder","bbox":[471.3,802.9,555.4,995.5],"conf":0.334,"marker_id":null,"source":"world"},{"obj_id":"f4_o3","label":"excavator","bbox":[419.5,798.3,561.8,1003.5],"conf":0.2602,"marker_id":null,"source":"world"}],"triplets":[]},{"t":6.0,"media_path":"frames/0007.jpg","objects":[{"obj_id":"f5_o1","label":"excavator","bbox":[127.5,819.2,654.6,1023.9],"conf":0.6926,"marker_id":null,"source":"world"},{"obj_id":"f5_o2","label":"airplane","bbox":[3.3,6.8,960.0,559.6],"conf":0.5223,"marker_id":null,"source":"coco"},{"obj_id":"f5_o3","label":"excavator","bbox":[377.5,818.2,654.1,1012.8],"conf":0.4691,"marker_id":null,"source":"world"},{"obj_id":"f5_o4","label":"ladder","bbox":[519.6,819.3,637.4,966.5],"conf":0.3584,"marker_id":null,"source":"world"}],"triplets":[{"s":"f5_o4","rel":"behind","o":"f5_o1","score":0.5923,"source":"model"},{"s":"f5_o4","rel":"behind","o":"f5_o3","score":0.5687,"source":"model"},{"s":"f5_o3","rel":"behind","o":"f5_o1","score":0.5573,"source":"model"},{"s":"f5_o1","rel":"below","o":"f5_o2","score":0.5241,"source":"model"},{"s":"f5_o3","rel":"below","o":"f5_o2","score":0.4962,"source":"model"},{"s":"f5_o2","rel":"above","o":"f5_o3","score":0.4834,"source":"model"},{"s":"f5_o2","rel":"above","o":"f5_o1","score":0.4679,"source":"model"},{"s":"f5_o2","rel":"above","o":"f5_o4","score":0.4506,"source":"model"},{"s":"f5_o4","rel":"below","o":"f5_o2","score":0.4428,"source":"model"},{"s":"f5_o1","rel":"in front of","o":"f5_o4","score":0.4254,"source":"model"}]},{"t":7.0,"media_path":"frames/0008.jpg","objects":[{"obj_id":"f6_o1","label":"excavator","bbox":[146.4,824.5,640.4,1027.9],"conf":0.736,"marker_id":null,"source":"world"},{"obj_id":"f6_o2","label":"train","bbox":[150.8,827.4,641.0,1023.7],"conf":0.4739,"marker_id":null,"source":"coco"},{"obj_id":"f6_o3","label":"truck","bbox":[149.6,825.9,641.2,1024.2],"conf":0.4654,"marker_id":null,"source":"coco"},{"obj_id":"f6_o4","label":"airplane","bbox":[3.0,10.9,960.0,555.0],"conf":0.4187,"marker_id":null,"source":"coco"},{"obj_id":"f6_o5","label":"ladder","bbox":[525.6,822.1,631.9,1002.2],"conf":0.4119,"marker_id":null,"source":"world"}],"triplets":[{"s":"f6_o5","rel":"behind","o":"f6_o2","score":0.6157,"source":"model"},{"s":"f6_o5","rel":"behind","o":"f6_o3","score":0.6152,"source":"model"},{"s":"f6_o5","rel":"behind","o":"f6_o1","score":0.6138,"source":"model"},{"s":"f6_o2","rel":"behind","o":"f6_o1","score":0.5456,"source":"model"},{"s":"f6_o3","rel":"behind","o":"f6_o1","score":0.532,"source":"model"},{"s":"f6_o2","rel":"behind","o":"f6_o3","score":0.4938,"source":"model"},{"s":"f6_o1","rel":"in front of","o":"f6_o2","score":0.4827,"source":"model"},{"s":"f6_o1","rel":"in front of","o":"f6_o3","score":0.4713,"source":"model"},{"s":"f6_o2","rel":"in front of","o":"f6_o5","score":0.4605,"source":"model"},{"s":"f6_o3","rel":"in front of","o":"f6_o5","score":0.4594,"source":"model"}]},{"t":8.0,"media_path":"frames/0009.jpg","objects":[{"obj_id":"f7_o1","label":"airplane","bbox":[3.0,7.8,958.7,550.8],"conf":0.6799,"marker_id":null,"source":"coco"},{"obj_id":"f7_o2","label":"excavator","bbox":[176.6,812.0,634.9,1013.9],"conf":0.6026,"marker_id":null,"source":"world"},{"obj_id":"f7_o3","label":"ladder","bbox":[529.8,811.1,628.6,976.9],"conf":0.5169,"marker_id":null,"source":"world"},{"obj_id":"f7_o4","label":"trash can","bbox":[34.4,943.8,77.3,984.1],"conf":0.2841,"marker_id":null,"source":"world"}],"triplets":[{"s":"f7_o3","rel":"behind","o":"f7_o2","score":0.5338,"source":"model"},{"s":"f7_o2","rel":"below","o":"f7_o1","score":0.4671,"source":"model"},{"s":"f7_o1","rel":"above","o":"f7_o2","score":0.4386,"source":"model"},{"s":"f7_o1","rel":"above","o":"f7_o3","score":0.3711,"source":"model"},{"s":"f7_o3","rel":"below","o":"f7_o1","score":0.3625,"source":"model"},{"s":"f7_o2","rel":"next to","o":"f7_o3","score":0.3517,"source":"model"},{"s":"f7_o2","rel":"using","o":"f7_o4","score":0.3334,"source":"model"}]},{"t":9.0,"media_path":"frames/0010.jpg","objects":[{"obj_id":"f8_o1","label":"airplane","bbox":[3.5,7.1,959.3,548.8],"conf":0.6208,"marker_id":null,"source":"coco"},{"obj_id":"f8_o2","label":"excavator","bbox":[202.2,800.6,590.8,1015.7],"conf":0.6081,"marker_id":null,"source":"world"},{"obj_id":"f8_o3","label":"concrete column","bbox":[237.6,264.1,270.6,325.5],"conf":0.3466,"marker_id":null,"source":"world"},{"obj_id":"f8_o4","label":"excavator","bbox":[404.5,800.2,587.9,1005.9],"conf":0.2661,"marker_id":null,"source":"world"}],"triplets":[{"s":"f8_o4","rel":"on","o":"f8_o2","score":0.5727,"source":"model"},{"s":"f8_o3","rel":"on","o":"f8_o1","score":0.3683,"source":"model"},{"s":"f8_o2","rel":"using","o":"f8_o4","score":0.3296,"source":"model"}]},{"t":10.0,"media_path":"frames/0011.jpg","objects":[{"obj_id":"f9_o1","label":"airplane","bbox":[3.2,6.0,960.0,541.6],"conf":0.5056,"marker_id":null,"source":"coco"},{"obj_id":"f9_o2","label":"ladder","bbox":[454.6,791.7,543.5,993.3],"conf":0.4153,"marker_id":null,"source":"world"},{"obj_id":"f9_o3","label":"excavator","bbox":[201.8,784.5,600.3,1144.3],"conf":0.4104,"marker_id":null,"source":"world"},{"obj_id":"f9_o4","label":"concrete column","bbox":[241.7,259.0,274.3,322.7],"conf":0.3636,"marker_id":null,"source":"world"},{"obj_id":"f9_o5","label":"excavator","bbox":[337.0,787.9,558.8,1003.3],"conf":0.2786,"marker_id":null,"source":"world"}],"triplets":[{"s":"f9_o2","rel":"on","o":"f9_o5","score":0.574,"source":"model"},{"s":"f9_o2","rel":"on","o":"f9_o3","score":0.5233,"source":"model"},{"s":"f9_o5","rel":"on","o":"f9_o3","score":0.5159,"source":"model"},{"s":"f9_o4","rel":"on","o":"f9_o1","score":0.3759,"source":"model"}]},{"t":11.0,"media_path":"frames/0012.jpg","objects":[{"obj_id":"f10_o1","label":"excavator","bbox":[195.6,784.1,619.2,1013.6],"conf":0.8797,"marker_id":null,"source":"world"},{"obj_id":"f10_o2","label":"airplane","bbox":[3.3,4.1,960.0,337.0],"conf":0.5932,"marker_id":null,"source":"coco"}],"triplets":[{"s":"f10_o1","rel":"below","o":"f10_o2","score":0.4966,"source":"model"},{"s":"f10_o2","rel":"above","o":"f10_o1","score":0.3651,"source":"model"}]},{"t":12.0,"media_path":"frames/0013.jpg","objects":[{"obj_id":"f11_o1","label":"excavator","bbox":[325.6,788.6,661.1,1018.0],"conf":0.4974,"marker_id":null,"source":"world"},{"obj_id":"f11_o2","label":"airplane","bbox":[1.9,2.1,956.1,330.5],"conf":0.4934,"marker_id":null,"source":"coco"},{"obj_id":"f11_o3","label":"concrete column","bbox":[251.0,262.4,283.8,316.6],"conf":0.3048,"marker_id":null,"source":"world"},{"obj_id":"f11_o4","label":"excavator","bbox":[192.8,786.6,674.2,1139.9],"conf":0.2898,"marker_id":null,"source":"world"}],"triplets":[{"s":"f11_o1","rel":"on","o":"f11_o4","score":0.5092,"source":"model"},{"s":"f11_o3","rel":"on","o":"f11_o2","score":0.3887,"source":"model"}]},{"t":13.0,"media_path":"frames/0014.jpg","objects":[{"obj_id":"f12_o1","label":"excavator","bbox":[310.1,787.2,702.6,1019.5],"conf":0.5654,"marker_id":null,"source":"world"},{"obj_id":"f12_o2","label":"airplane","bbox":[1.4,8.5,959.0,523.9],"conf":0.4547,"marker_id":null,"source":"coco"},{"obj_id":"f12_o3","label":"ladder","bbox":[547.8,787.5,668.6,1006.8],"conf":0.3773,"marker_id":null,"source":"world"}],"triplets":[{"s":"f12_o3","rel":"on","o":"f12_o1","score":0.5587,"source":"model"},{"s":"f12_o1","rel":"below","o":"f12_o2","score":0.4462,"source":"model"},{"s":"f12_o2","rel":"above","o":"f12_o1","score":0.3843,"source":"model"},{"s":"f12_o3","rel":"below","o":"f12_o2","score":0.3604,"source":"model"},{"s":"f12_o2","rel":"above","o":"f12_o3","score":0.3381,"source":"model"},{"s":"f12_o1","rel":"next to","o":"f12_o3","score":0.3079,"source":"model"}]},{"t":14.0,"media_path":"frames/0015.jpg","objects":[{"obj_id":"f13_o1","label":"airplane","bbox":[3.7,1.6,954.1,318.9],"conf":0.4097,"marker_id":null,"source":"coco"},{"obj_id":"f13_o2","label":"excavator","bbox":[326.4,789.1,638.7,1004.8],"conf":0.2717,"marker_id":null,"source":"world"}],"triplets":[{"s":"f13_o2","rel":"below","o":"f13_o1","score":0.4595,"source":"model"},{"s":"f13_o1","rel":"above","o":"f13_o2","score":0.3429,"source":"model"}]},{"t":15.0,"media_path":"frames/0016.jpg","objects":[{"obj_id":"f14_o1","label":"truck","bbox":[335.0,781.4,801.1,1001.5],"conf":0.528,"marker_id":null,"source":"coco"},{"obj_id":"f14_o2","label":"excavator","bbox":[321.0,780.7,805.9,1007.4],"conf":0.4404,"marker_id":null,"source":"world"},{"obj_id":"f14_o3","label":"motorcycle","bbox":[455.1,971.8,603.5,1125.6],"conf":0.4282,"marker_id":null,"source":"coco"},{"obj_id":"f14_o4","label":"concrete column","bbox":[249.3,242.3,281.8,298.9],"conf":0.2813,"marker_id":null,"source":"world"}],"triplets":[{"s":"f14_o1","rel":"behind","o":"f14_o2","score":0.5339,"source":"model"},{"s":"f14_o1","rel":"above","o":"f14_o3","score":0.389,"source":"model"},{"s":"f14_o2","rel":"above","o":"f14_o3","score":0.3889,"source":"model"},{"s":"f14_o3","rel":"below","o":"f14_o1","score":0.3877,"source":"model"},{"s":"f14_o3","rel":"below","o":"f14_o2","score":0.3843,"source":"model"},{"s":"f14_o2","rel":"in front of","o":"f14_o1","score":0.3783,"source":"model"},{"s":"f14_o4","rel":"above","o":"f14_o2","score":0.3626,"source":"model"},{"s":"f14_o4","rel":"above","o":"f14_o1","score":0.3589,"source":"model"}]},{"t":17.0,"media_path":"frames/0018.jpg","objects":[{"obj_id":"f15_o1","label":"excavator","bbox":[330.3,757.4,629.5,993.1],"conf":0.4978,"marker_id":null,"source":"world"},{"obj_id":"f15_o2","label":"ladder","bbox":[526.1,763.3,621.2,964.3],"conf":0.4376,"marker_id":null,"source":"world"},{"obj_id":"f15_o3","label":"concrete column","bbox":[258.8,227.9,292.6,290.2],"conf":0.3019,"marker_id":null,"source":"world"}],"triplets":[{"s":"f15_o3","rel":"behind","o":"f15_o2","score":0.3234,"source":"model"},{"s":"f15_o2","rel":"on","o":"f15_o1","score":0.3175,"source":"model"}]},{"t":18.0,"media_path":"frames/0019.jpg","objects":[{"obj_id":"f16_o1","label":"ladder","bbox":[552.6,755.5,644.9,930.4],"conf":0.6104,"marker_id":null,"source":"world"},{"obj_id":"f16_o2","label":"concrete column","bbox":[264.8,220.7,299.5,281.3],"conf":0.4275,"marker_id":null,"source":"world"},{"obj_id":"f16_o3","label":"excavator","bbox":[552.4,755.1,658.6,977.1],"conf":0.3247,"marker_id":null,"source":"world"},{"obj_id":"f16_o4","label":"excavator","bbox":[419.1,753.9,660.4,976.8],"conf":0.32,"marker_id":null,"source":"world"}],"triplets":[{"s":"f16_o1","rel":"on","o":"f16_o4","score":0.3924,"source":"model"},{"s":"f16_o3","rel":"on","o":"f16_o4","score":0.3685,"source":"model"}]},{"t":19.0,"media_path":"frames/0020.jpg","objects":[{"obj_id":"f17_o1","label":"ladder","bbox":[565.4,755.1,664.1,955.4],"conf":0.7134,"marker_id":null,"source":"world"},{"obj_id":"f17_o2","label":"excavator","bbox":[436.4,753.1,673.8,966.9],"conf":0.6068,"marker_id":null,"source":"world"},{"obj_id":"f17_o3","label":"excavator","bbox":[553.0,753.7,672.1,966.0],"conf":0.4545,"marker_id":null,"source":"world"}],"triplets":[{"s":"f17_o1","rel":"on","o":"f17_o2","score":0.3103,"source":"model"},{"s":"f17_o3","rel":"on","o":"f17_o2","score":0.3092,"source":"model"}]},{"t":20.0,"media_path":"frames/0021.jpg","objects":[{"obj_id":"f18_o1","label":"concrete column","bbox":[265.2,212.9,297.7,266.7],"conf":0.4667,"marker_id":null,"source":"world"},{"obj_id":"f18_o2","label":"airplane","bbox":[3.8,2.3,959.1,283.4],"conf":0.4392,"marker_id":null,"source":"coco"},{"obj_id":"f18_o3","label":"excavator","bbox":[346.0,750.3,628.0,973.7],"conf":0.361,"marker_id":null,"source":"world"}],"triplets":[{"s":"f18_o1","rel":"holding","o":"f18_o2","score":0.4753,"source":"model"},{"s":"f18_o3","rel":"below","o":"f18_o2","score":0.4669,"source":"model"},{"s":"f18_o3","rel":"below","o":"f18_o1","score":0.4529,"source":"model"},{"s":"f18_o1","rel":"above","o":"f18_o3","score":0.4518,"source":"model"},{"s":"f18_o2","rel":"above","o":"f18_o3","score":0.4099,"source":"model"}]},{"t":21.0,"media_path":"frames/0022.jpg","objects":[{"obj_id":"f19_o1","label":"truck","bbox":[741.8,833.4,958.7,974.5],"conf":0.5489,"marker_id":null,"source":"coco"},{"obj_id":"f19_o2","label":"person","bbox":[543.0,744.8,595.6,906.4],"conf":0.3769,"marker_id":null,"source":"coco"},{"obj_id":"f19_o3","label":"airplane","bbox":[5.5,0.3,958.3,272.9],"conf":0.36,"marker_id":null,"source":"coco"},{"obj_id":"f19_o4","label":"excavator","bbox":[425.1,741.2,602.9,933.2],"conf":0.2581,"marker_id":null,"source":"world"}],"triplets":[{"s":"f19_o2","rel":"using","o":"f19_o4","score":0.4862,"source":"model"},{"s":"f19_o2","rel":"using","o":"f19_o1","score":0.409,"source":"model"},{"s":"f19_o3","rel":"above","o":"f19_o4","score":0.3927,"source":"model"},{"s":"f19_o4","rel":"using","o":"f19_o1","score":0.3631,"source":"model"},{"s":"f19_o4","rel":"below","o":"f19_o3","score":0.3552,"source":"model"},{"s":"f19_o4","rel":"next to","o":"f19_o2","score":0.3487,"source":"model"},{"s":"f19_o3","rel":"above","o":"f19_o1","score":0.3364,"source":"model"},{"s":"f19_o1","rel":"below","o":"f19_o3","score":0.3162,"source":"model"}]}]} \ No newline at end of file diff --git a/docs/tasks/HANDOFF-integration.md b/docs/tasks/HANDOFF-integration.md new file mode 100644 index 0000000..7f2d0ac --- /dev/null +++ b/docs/tasks/HANDOFF-integration.md @@ -0,0 +1,125 @@ +# Handoff: integrate, deploy and rehearse Tagwerk (UI v2 + Scan 3D + Tagesbericht) + +You take over from the orchestrator. Work autonomously on the Linux GPU laptop. The user is about to demo. + +## 1. Context +- **Tagwerk** is a hackathon project: site videos, photos and voice notes turn into element progress, a task graph, a Bauleiter dashboard and exports (P6 XML, GAEB, .ics). +- **Repo:** `github.com/Current-cmd/Tagwerk`. On the laptop it is checked out at `~/Developer/hacka/Tagwerk`, the **main checkout**: the services run from it. +- **Read first:** + - `CLAUDE.md` + - `docs/UI-V2-CONTRACT.md`: the spec for `/api/v2/*`, `/app`, Scan 3D and the Tagesbericht. + - `docs/DEMO.md` + - `docs/REVIEW-2026-11-21.md` +- **Always** `export PYTHONPATH=$PWD`. Use the venv `~/Developer/hacka/Tagwerk/.venv`, which has torch `2.14.1+cu126` and pycolmap 4.2.1. Never change torch. +- **Never** use `pkill -f`: it kills your own shell. Kill by PID or pid file only. + +**Services (laptop):** + +| Port | Service | Restart | +|---|---|---| +| 8100 | GPU worker | `~/tw-restart.sh` | +| 8080 | API, Hörsaal, Neo4j | `~/tw-restart.sh` | +| 8081 | API, Schependomlaan (`DATA_DIR=./data-sp CACHE_DIR=./cache-sp`, in-memory graph) | `~/tw-restart.sh` | +| 8082 | API, scan project `userwalk` (`./data-scan-userwalk`, `./cache-scan-userwalk`) | `~/tw-scanproject.sh userwalk` | + +`~/tw-restart.sh` restarts 8100/8080/8081 and keeps data. Always run `~/tw-scanproject.sh userwalk` after it. + +**Resets (clean demo state):** +- `.venv/bin/python scripts/reset_demo.py` resets Hörsaal and keeps `cache/`. +- `DATA_DIR=./data-sp CACHE_DIR=./cache-sp NEO4J_URI= PROJECT=schependomlaan .venv/bin/python scripts/reset_demo.py` resets Schependomlaan. +- `rm -rf data-scan-userwalk` resets the scan project (keep `cache-scan-userwalk/`). +- Then restart both service sets as above. + +**Pushing:** use the askpass procedure in CLAUDE.md "Rules". The token is the `git=` line in `~/Developer/hacka/.env`; never print, log or commit it. +- **User's instruction for this handoff:** you may push `main` (fast-forward only, never force) once the integration is verified. + +**The user's Mac** reaches the laptop at `100.118.181.69`. The user opens the UI on the Mac through an SSH tunnel to localhost:8080/8081/8082; it is not your job. The user decides about the tunnel. + +## 2. Current state +- `origin/main` was **`58345af`** (now `a7cc367`), deployed on the laptop. All four services answer 200. It has: + - UI v2 backend (`tagwerk/v2.py`, `/api/v2/days|day|taskgraph`) + - the React + shadcn app built into `web/app/` and served at `/app` (source in `web-app/`) + - the replay picker, the video-beside-graph and the bundled vendor libraries +- **Merged and archived (2026-11-22):** `feat/report`, `feat/scan3d`, `feat/integration`, `feat/core` and every other merged branch are in `main` (`a7cc367`) and were deleted. Each one is kept as a tag `archive/`; restore with `git branch archive/`. The parked `draft/orchestrator-integration` no longer exists. + +### Active branches +Only these branches are still being worked on: + +| Branch | Where | State | +|---|---|---| +| `main` | origin | `a7cc367`, deploy target | +| `feat/whisper-turbo` | origin | 1 commit not in `main` (`6071357`: speech large-v3-turbo on CPU int8 with fallback to small; worker warms models at startup). 9 commits behind `main`. | +| `fix/mobile-review` | Mac, local only | Based on `a7cc367`. Uncommitted work in `mobile/`. | + +## 3. Tasks, in order +1. **Integrate.** + - Create a worktree: `git worktree add ~/Developer/hacka/Tagwerk-int -b feat/integration origin/feat/core`. + - Merge `origin/feat/report` (fast-forward), then `origin/feat/scan3d`, and resolve as above. + - Run the full `pytest -q` and `ruff check .` (line length 130). Both must be green. + - Run a **CI-like check** too, because GitHub Actions has no GPU, no models and no PYTHONPATH: + - make a fresh clone or worktree + - `uv venv --python 3.12 && uv pip install -e ".[dev]"` + - `.venv/bin/ruff check .`, then `.venv/bin/python scripts/validate_fixtures.py`, then `.venv/bin/pytest -q` + - Tests that post captures must monkeypatch `speech.transcribe` and `vision.analyse`. +2. **Reconcile the two halves.** + - **`has_3d`:** `v2.py` sets it true whenever an `sfm.json` exists, failed ones included, while the report sets it only when `ok: true`. Make both use `ok: true`, with a test. + - **German state labels:** `v2.STATE_DE` says `checked→geprüft`, while `report.py` says `checked→abgenommen`. Use one shared mapping, with `checked→abgenommen` and `tested→geprüft`. +3. **Backend items the frontend asked for.** Each needs a failing test first, and must stay in line with the contract. + - `activities[].recordings` in `/api/v2/day`: make it `[{capture_id, date, time}]` instead of bare ids. Update `web-app/src` to read it (it currently fetches nearby days to find dates), then rebuild: + ```bash + cd web-app && pnpm install && pnpm build + ``` + The build writes `web/app/`; commit it. + - Taskgraph: emit `recording -> event` and `recording -> proposal` edges with type `RAISED` (the client adds them today as a workaround). + - Hörsaal A1020 has `forecast_start` 2026-11-23 although it finished on 2026-11-11. A finished activity's `forecast_start`/`finish` must be its actual dates. Find out why in `project.forecast`. +4. **Deploy.** + - Fast-forward `feat/core`, then `main`, to the integration head and push both. + - In the main checkout: `git fetch && git merge --ff-only origin/main`, then `~/tw-restart.sh` and `~/tw-scanproject.sh userwalk`. + - Check: + - `/health` returns 200 on all four ports. + - `/app` loads. + - `/api/v2/report` returns 200 on 8080 and 8081. + - `/export/report.html` contains "Tagesbericht". + - `/api/v2/scan3d/uw-video` on 8082 has `ok: true`, about 30 registered frames and about 20 objects with German relations. If `cache-scan-userwalk/uw-video/sfm.json` is missing, generate it by running the sfm stage on `cache-scan-userwalk/uw-video/media/user_walk.mp4`. The backup clip is `~/Developer/hacka/demo-media/user_walk.mp4`. + - Wait for the GitHub Actions run on `main` to pass: `gh run list -R Current-cmd/Tagwerk -L 1`. +5. **Rehearse the 3-minute demo end to end.** The flow: + 1. Film a room with voice for about 30 s and upload it. + 2. Pitch for about 2 minutes while it processes. + 3. Show `/app`: the recording, then "3D ansehen" (point cloud with tagged objects), the Live-Graph and the Tagesbericht. + + Simulate it with a real clip: upload `~/Developer/datasets/construction-video/screeding_walls_ghana_60s.mp4`, or your own room clip, to a fresh scan project or to 8082 via `/captures` with a video. Measure: + - the time until `done` + - the time until the `sfm` websocket step, which must be under ~120 s + - whether `/app#/scan/` and `/app#/report/` show real data, with no "Demo-Daten" badge + + Write the exact presenter steps (URLs, which project and port, what to click, fallback if SfM fails) into `docs/DEMO.md`, in a "3-Minuten-Demo" section. Then reset all projects to a clean state, keeping the caches, and restart. +6. **Open low items.** Do these only if time remains; otherwise list them in `docs/REVIEW-2026-11-21.md`. + - `context.weather()` blocks the event loop. + - `/api/scan` answers 409 for a taken project name only after the vision pass. + - Untraded "Zwei Mann sind krank" gets no activity. + - Consider raising the RelateAnything `REL_MIN_SCORE` from 0.30 to about 0.40, since many weak or nonsense relations got through on the user's walkthrough. Show before/after counts on `uw-video`. + +## 4. Useful extras +- **Annotated video:** `/tmp/annotate.py` on the laptop (it may be gone after a reboot; the Mac has a copy at `/tmp/annotate.py`) draws the cached vision boxes and RelateAnything triplets onto a video: + ```bash + .venv/bin/python /tmp/annotate.py