Project 06 · Product engineering
Clearward
Move toward a calmer life — structured organization systems as a product.
Shipped Excel and Google Sheets products with release gates
Mission
Ship structured organization systems for everyday life and small trades businesses without treating AI-generated workbooks as automatically trustworthy.
Problem
Templates become unmaintainable when inputs, calculations, and presentation collapse into the same cells, when identifiers are unstable, and when “it opened on my machine” is the only release check.
Constraints
- Cross-platform Excel and Google Sheets compatibility.
- No macros, no Power Query, no external data connections.
- Production artifacts strictly separate from internal engineering artifacts.
- AI coding agents operate under persistent AGENTS.md instructions, not ad hoc prompting.
My role
I directed AI coding agents (Codex, ChatGPT) with structured agent instructions covering permitted directories, product requirements, release procedures, browser and account boundaries, QA, packaging, customer-delivery, spending boundaries, credential handling, human-takeover, and verification rules.
Architecture
Structured tables with stable record identifiers, controlled input cells separated from formula-driven state, data validation, configuration tables, dashboards, and bounded formulas. Every release moves through automated QA, visual PDF review, human approval, packaging, and hashing.
Product requirement
Human requirements definition
AGENTS.md / agent policy
AI / Codex engineering agent
Credentials — human-only
Workbook / documentation generation
Formula validation
Schema / structure
Compatibility tests
File integrity
Visual QA (rendered PDF)
Human approval
Internal QA artifacts kept out
Customer packaging
Hash / integrity validation
Excel / Google Sheets delivery
Etsy / website distribution
- Product requirement
- external
- Human requirements definition
- human
- AGENTS.md / agent policy
- policy
- Credentials — human-only
- approval
- AI / Codex engineering agent
- agent
- Workbook / documentation generation
- tool
- Formula validation
- validation
- Schema / structure
- validation
- Compatibility tests
- validation
- File integrity
- validation
- Visual QA (rendered PDF)
- validation
- Human approval
- approval
- Customer packaging
- tool
- Internal QA artifacts kept out
- policy
- Hash / integrity validation
- validation
- Excel / Google Sheets delivery
- output
- Etsy / website distribution
- external
AI architecture
- Agents
- Codex / ChatGPT under persistent AGENTS.md
- Authority
- Pause for CAPTCHA, MFA, or payment confirmation
- Validation
- Automated checks plus visual PDF review before approval
Security architecture
- Secrets
- Never ask for passwords, recovery codes, payment-card data, or MFA secrets
- Verification
- Never claim success without reopening and verifying resulting state
- Artifact separation
- Internal QA files never uploaded as customer-facing products
- Integrity
- Preserve release archives; record package hashes
Build process
- Products evolved from templates into structured, software-like workbooks.
- Pet Care System as a concrete pattern: 13 expected worksheets on 8 structured data tables.
- Second office engine used to open, recalculate, and save files to surface compatibility issues.
Validation
Pet Care System v1.0 automated QA
Formula error scanning, data-validation, Open XML package, expected-sheet/table, customer-package, external-reference and macro checks, formula reconciliation
49 checks run, 48 passed, 1 advisory (non-blocking), 0 failures, 1,358 formula cells scanned
Visual release review
Customer-facing PDFs rendered and inspected for clipping, overlap, missing sections, and artifacts
Required before approval
| Check | Method | Result |
|---|---|---|
| Pet Care System v1.0 automated QA | Formula error scanning, data-validation, Open XML package, expected-sheet/table, customer-package, external-reference and macro checks, formula reconciliation | 49 checks run, 48 passed, 1 advisory (non-blocking), 0 failures, 1,358 formula cells scanned |
| Visual release review | Customer-facing PDFs rendered and inspected for clipping, overlap, missing sections, and artifacts | Required before approval |
Challenges
AI-generated products are not automatically trustworthy, and spreadsheets rarely receive software-grade release discipline.
Investigation
Failures that matter to a customer are compatibility breaks, formula errors, leaked internal files, and unverified “success.” Agent instructions were written to forbid those failure modes.
Resolution
Authorization model for the agent: least privilege, explicit boundaries, mandatory human takeover on ambiguity, verification instead of self-reported success.
Lessons
Privileged automation, even for spreadsheets
An AI agent should operate under an explicit authorization model, exactly like any other privileged automation — least privilege, explicit boundaries, mandatory human takeover on ambiguity, and verification instead of self-reported success.
Cybersecurity equivalent
- AGENTS.md control planemaps toAuthorization policy for privileged automation
- Human approval before packagingmaps toChange control / release authorization
- Package hashesmaps toIntegrity verification
- Internal vs customer artifactsmaps toInformation minimization
AI principles applied
Human-in-the-loop
Consequential actions require a person. The loop is a state machine, not a polite request in a prompt.
Where learned: Publishing, packaging, containment, and deploy all use explicit gates.
Structured outputs
Contracts the next stage can consume: HTML stages, morning reports, triage JSON, workbook tables.
Where learned: If formatting can drift, downstream consumption silently breaks.
Validation and evaluation
Happy path is not enough. Missing, malformed, stale, contradictory, injected, and timed-out inputs are the real suite.
Where learned: Triage functional plus adversarial layers; Clearward 49 automated checks; Basaltborne CI layers.
AI-assisted development
Agents draft under persistent instructions and phase gates. They do not merge, package, or deploy themselves.
Where learned: Clearward AGENTS.md; Basaltborne phase-gated lifecycle with PR review of AI-authored changes.
Concepts exercised in this project
- AI-assisted development
- Agent instruction design
- Human-in-the-loop
- Workflow decomposition
Security principles applied
IAM / authorization
Who can do what is assigned outside the model and enforced at the boundary that matters.
Where learned: Basaltborne RLS and RPCs; Clearward human-only credential boundary; triage least-privilege account.
Least privilege
Separate collection, analysis, and remediation. Give the current task only what it needs.
Where learned: Triage agent; publishing-agent allowlist; Clearward directory and spending boundaries.
Validation
Schema, hashes, required fields, RLS tests, and visual review — not the generator marking its own homework.
Where learned: Clearward formula/package QA; Basaltborne Zod + pgTAP; TinyClaw source checks.
Change control
Publication, packaging, and deploy are privileged transitions with a human on the gate.
Where learned: Clearward release architecture; Basaltborne draft vs published; Self Help human review.
Secrets management
Credentials are a human-only boundary. Service roles stay server-side. Prompts are not a vault.
Where learned: Clearward AGENTS.md; Basaltborne server-only privilege.
Controls exercised in this project
- Secrets handling
- Authorization boundaries
- Least privilege
- Human approval
- Artifact separation
- Change validation
Technologies
- Excel
- Google Sheets
- Open XML
- Codex
- ChatGPT
- Hash validation
Skills demonstrated
- Agent Instruction Design
- Prompt Engineering
- Workflow Decomposition
- Human-in-the-Loop Control
- Structured Data
- Formula Logic
- QA Automation
- File Packaging
- Hash Validation
- Release Management
- Secrets Handling
- Authorization Boundaries