Founder-built product
Wintura
From a client brief to a reviewed proposal.
Wintura is the studio’s own B2B SaaS product, built end to end by the founder — not client work. Teams that quote scoped work paste in a client brief and get back a proposal, a statement of work and a staged invoice schedule, with a person in control before anything is sent or signed.

Illustrative walkthrough
Follow the brief
How a request becomes a reviewed proposal, with a person validating the model’s output before it is used. Choose a stage, or step through in order.
Illustrative walkthrough with fixed sample data. Not a live model and not a capture of the Wintura interface.
Stage 3 of 4: Review.
A person checks and confirms
A person compares the draft with the original brief, resolves the open question and confirms the scope. The model's output is not final until this happens.
Original brief
Add an account dashboard with SSO, usage and invoices.SSO provider
Google Workspace — confirmed by the reviewer (sample data)
The problem
Incoming requests are unstructured: goals, context, deadlines and budget mixed into one email, a pasted Slack thread or a PDF. Turning that into a clear, priced scope takes time — and a generated document is only useful if it is safe to price, send and sign.
The difficult part was never generating text. It was keeping each customer’s data inside their own account, and making sure nothing the model wrote reached a client without a person having had the chance to catch it.
The document workflow, stage by stage
The same shape fits most document features in a SaaS product: a source document comes in, a model proposes structure, the structure is checked, a person resolves what the model cannot, and only then does anything reach a customer. Each stage below names where it lives in Wintura’s codebase.
- SourceThe brief arrives as a forwarded email, a pasted Slack thread or a PDF.Where it lives: Product intake (wintura.ai, “The loop”)
- ExtractionA Claude model returns scope, timeline and budget signals as JSON constrained to a fixed schema with structured outputs. A response cut off at the token limit, or one that does not parse, falls back to a generic plan marked for manual review. Only rate limits, server errors and dropped connections are retried, within a deadline.Where it lives: lib/ai/stage-1-analysis.ts (output_config.format)
- ValidationQuality checks run on the generated statement of work, and the verdict is stored on the proposal rather than only logged.Where it lives: lib/ai/sow-quality-checks.ts; proposals.quality_gate
- Human reviewCommercial conflicts — a deadline that cannot be met, a price that disagrees with the budget — are stored as review advisories with a blocking flag for a person to resolve. On the automated outbound path, a document that fails the gate is held in needs-review instead of being sent.Where it lives: lib/ai/commercial-advisories.ts; proposals.review_advisories; outbound_demos.stage_status
- Approved outputProposal and statement of work render from one agreement. On signature the PDF is sealed with a document hash, the audit trail is hash-chained, and the proposal rejects further edits (HTTP 423).Where it lives: lib/signing/seal-ceremony.ts; lib/db/seal.ts
- BoundaryEvery customer-owned row carries an agency_id, and queries check ownership in the query itself. This is application-layer isolation, not database row-level security.Where it lives: lib/db/schema.sql; lib/db/proposals.ts
Read from the Wintura repository (commit e9dbf2c, 9 October 2026). In-app captures of these stages are not yet published; the walkthrough above is an illustrative diagram.
How the quality checks are tested
The checks that run on every generated statement of work are tested themselves. The repository contains a self-test built from fixture documents — no model calls, no database — in which some fixtures carry a planted defect that the checks must report. We ran it on 7 November 2026 at commit e9dbf2c.
- 137assertions, all passed
- 30fixtures with a planted defect, each reported
- 22distinct checks exercised by those defects
Planted defects include a stated number of deliverables that contradicts the list, a deliverable missing from the contract text, a dollar amount inside a euro document, a penalty clause nobody authorised, a certification nobody evidenced and a date two months past the end of the term.
What this shows, and what it does not. It shows the checks detect these planted defects. It does not show they would catch every defect, and it does not measure how often real model output contains them, how accurately a brief is read, or how the product performs with customers: that needs a set of real briefs with checked answers, which has not been published.
How the other claims on this page are established: the six workflow stages, tenant scoping, retries, sealing and the hash-chained audit trail were read in the code, not exercised by us; the proposal output is observed in the public sample on wintura.ai; the walkthrough is an illustrative diagram.
Where a person stays in control
Model output is treated as untrusted input. The analysis step uses structured outputs to constrain normal completed responses to a fixed schema, and still checks each field. A refusal or a response cut off at the token limit may not match the schema, so the step checks for truncation by name and falls back to a generic plan marked for manual review whenever the response does not parse. Rate limits, server errors and dropped connections are retried within a time budget; a malformed request is not, because retrying it only spends the budget.
The review step exists because of a specific failure, recorded in the codebase: when a client’s deadline could not be met or a published price disagreed with the stated budget, the generator had nowhere to put that conflict, so it wrote a fluent paragraph explaining it away. Conflicts are now stored as review advisories with a blocking flag, and an empty list (checked, nothing found) is kept distinct from “never checked”.
- Structured analysis against a fixed schema
- Retries only for failures that can succeed on retry
- Commercial conflicts stored for a person to resolve
- On the automated outbound path, documents that fail the quality gate are held, not sent
What needs to hold up in production
Tenant scoping. Every table that holds customer data carries an agency_id referencing the account it belongs to. The data layer scopes each read and write by that id, and the ownership check is part of the query itself:
UPDATE proposals
SET access_password = $1
WHERE id = $2
AND agency_id IN (SELECT id FROM agencies WHERE user_id = $3)
RETURNING id
This is application-layer isolation: it holds as long as every query goes through the scoped data functions. That is a real limitation, and the first item under “what we would do differently”.
Signatures that hold up. Each signing event is written as an audit row that includes a hash of the previous row, so the sequence cannot be silently edited; IP addresses are kept only as keyed hashes. On signature the PDF is sealed with a document hash, and from then on the proposal rejects edits.
One agreement, two documents. Proposal and statement of work render from the same underlying agreement, so a deliverable cannot appear in one and not the other.
What it produces
Captures from a proposal Wintura generated for a fictional client and publishes as a public sample. These are the product’s real output, in its own design.
View full size
View full size
The stack
- Application
- Next.js 16, React 19, TypeScript
- Data
- PostgreSQL on Neon, plain SQL through the serverless driver
- Auth
- Auth.js (NextAuth v5) with Google and email sign-in
- Models
- Anthropic Claude models, with smaller model tiers for lighter steps
- Payments
- Stripe, including US bank account (ACH) payments
- Documents
- Rich-text editor, server-rendered PDFs, sealed copies in object storage
- Testing
- Playwright end-to-end suites for sign-in, proposal, invoice and onboarding flows
What we would do differently
Put isolation in the database as well.
Scoping in the data layer works, but one query written outside those functions could cross accounts. Postgres row-level security as a second layer would make the database refuse it — with its own caveats, such as table owners and BYPASSRLS roles skipping policies unless that is forced and tested. It is not in place in Wintura today.
A check is only a control if something acts on it.
A quality gate that only logs its verdict lets a failed document through. On the automated outbound path, generated documents that fail now stop in a needs-review state and are not sent until a person looks.
Wire production error reporting before launch, not after.
Error-reporting calls are in place in the code but still need a production backend. Product analytics arrived first; it should have been the other way round.
How this maps to your product
Most AI features in an existing SaaS product run into the same problems: output that must be checked before anyone relies on it, data that must stay inside one customer’s account, and a person who still needs to approve what the model produced. An Embedded Architect brings that experience into your codebase; the same stages are written up as a specification checklist for a document feature. To see where your own product stands first, start with a Production Audit.
Have a workflow like this?
If you are planning an AI feature with review, permissions or documents at its centre, we would be glad to talk it through.