Skip to content

K2POV AI

The K2POV AI app turns authorized report requests into checkpointed jobs, saved workspace files and chat receipts.

The Problem

A chat-requested report needs an authorized source, explicit calculations and document settings. The job must preserve completed sections if the tab closes or the chat ends, then report whether the file was saved.

My Contribution

For K2POV, I am the sole technical builder across application development and cloud infrastructure.

How It Works

  1. 01This case covers K2POV AI's app-owned chat and report-job path. K2POV OS is a separate wrapper around Cloudflare OS for actor-scoped files, scratch and model-comparison controls.
  2. 02Build the TanStack Start app and Hono handlers around Better Auth, D1 records and R2 workspace files. Authenticated requests reach the user's durable chat agent; Think and the Agents SDK provide the conversation and agent runtime.
  3. 03Dispatch scoped data, research and planning tasks through typed tools, then return their results to the requesting chat.
  4. 04Resolve instructions, files, connectors and design independently. Project settings can append instructions, scope files to a folder and select connectors; chat settings can override instructions or design without resetting the other choices.
  5. 05Build a report from a scoped dataset and section specifications. Checkpoint section results before rendering and storing the document. Custom Reports provides a separate editable builder and saved viewer.
  6. 06Render PDF, DOCX, PPTX or XLSX from section results. Register the file in the user's workspace and return a receipt to the originating chat.

Engineering Decisions

  • Checkpoint each summary before rendering

    Each report section has a checkpoint before document rendering and workspace registration. Later updates record the output and notify the chat.

    Rendering, storage and file registration share a step, so the file may exist before its specification or chat notification succeeds. Review its calculations and layout separately.

  • Defer new output tabs while edits are unsaved

    If an open output has unsaved edits, the viewer avoids replacing it automatically when a new file arrives.

    File approval and background report completion follow separate paths, so a new output is offered without discarding an unfinished edit.

  • Keep instruction inheritance explicit

    Project custom instructions retain user instructions and append project text. Chat Replace drops inherited user and project text; Clear also drops the chat's own text. A supplied organization block remains first in both cases.

    This describes the prompt assembled for the agent. It is not a permission boundary or a guarantee that the model follows it. File access and connector policy need their own checks.

  • Show the review boundary for each action

    Draft editing, imports and connector actions can have different review requirements. The interface should identify the resource and intended change before proceeding.

    One approval label does not explain every tool's behavior. Readers need the actual pending action and its scope.

Outcome

The job returns stored section results, a generated file and a completion receipt to the originating chat. The receipt confirms file creation, not correct calculations or layout.