P03 · AI DATA ENGINEERING · SYNTHETIC DEMO

Governed Novel Data Pipeline

From pseudo-precise literary features to an auditable AI data pipeline

In June 2025, I began building a private AI writing workspace with an algorithm engineer and a content editor. I later rebuilt the exposed rights, label-truth, evaluation-isolation, and version-governance problems as this 100% synthetic, publicly auditable data pipeline.

The private project provides problem context; the public demo provides auditable engineering evidence. They do not share the same data or code. The public repository contains no private code, manuscripts, logs, configurations, prompts, contracts, or operating records.
01 / Background

Origin: A Private Three-person AI Writing Workspace

Planning began in June 2025 and development started in July. The workspace connected ideation, source material, outlines, drafting, revision, and review. The algorithm engineer owned model calls and workflows, the editor owned content rules and final acceptance, and I owned ingestion, cleaning, databases, vector retrieval, and later the data audit and governance rebuild.

PRIVATE PROJECT · REAL CONTEXT

Private project: where the problems came from

The three-person project exposed real issues in rights traceability, semantic validation, editorial bottlenecks, retry recovery, version management, and model replacement. Its code, manuscripts, logs, prompts, contracts, and operating records remain private.

PUBLIC REPOSITORY · 100% SYNTHETIC DEMO

Public portfolio: how I demonstrate the solution

I independently rebuilt the pre-training governance layer as a public demo. All public data is 100% synthetic, and every reproducible metric comes from a pinned release rather than the private project's scale or business results.

The private project explains the problem chain; the public demo supplies a verifiable implementation chain. They appear together for context while their assets remain strictly separated.

Why the original data was not training-ready

The schema contract drifted

Comparing the early field specification, database tables, and analysis modules revealed three conflicting definitions of the supposed “12-dimensional literary features.”

Literary semantics were over-reduced to rules

Hooks, reversals, and emotional progression relied mainly on keywords, lexicons, and templates. These detect surface signals but cannot reliably judge irony, dry humor, or language whose literal meaning conflicts with intent.

Generation and evaluation were not independent

Similar model services participated in both generation and evaluation without independent gold labels, blind review, or calibration. Some model scores were stored but never used in the final gate, which still relied mostly on surface-format rules.

My role: I initially owned data collection, cleaning, databases, vector retrieval, and feature engineering, then led the data audit and governance rebuild after the issues surfaced. I independently designed, implemented, and released the public repository. AI assisted development, but I remain responsible for data boundaries, engineering decisions, validation results, and release quality.
02 / Failure analysis

Most Valuable Failure: Structural Checks Passed While Semantics Collapsed

Every format check passed, yet the literary signals had no meaningful variation.

“All passed” in the original report referred only to sampled format, range, and enum checks—not full semantic validation.
Report says PASS

What the automated report actually checked

  • Field types and basic formats
  • Nonnegative values and ratings within 1–5
  • Enum and Boolean membership
  • Some semantic fields could still pass when empty or None
Semantics collapse

What those checks did not prove

  • Whether a passage actually created an opening hook
  • Whether the plot contained a genuine semantic reversal
  • Whether emotional progression was meaningfully differentiated
  • Whether a same-family model could serve as independent ground truth
EARLY PRIVATE PROTOTYPE · SYNTHETIC DEMO RECORDS · NOT PUBLIC DATASET 21/32 No opening hook detected
EARLY PRIVATE PROTOTYPE · SYNTHETIC DEMO RECORDS · NOT PUBLIC DATASET 30/32 Reversal count was 0
EARLY PRIVATE PROTOTYPE · SYNTHETIC DEMO RECORDS · NOT PUBLIC DATASET 32/32 Emotional progression was always 2

These aggregates come from 32 synthetic AI experiment records in a private early prototype. The source material remains private evidence and is not reproduced in the public repository; it is neither the public demo’s pinned regression data nor a claim of business scale.

From Private Project to Public Demo

Project Planning and Development

A three-person team began building a private fiction-writing workbench. I owned collection, cleaning, databases, and vector retrieval; the algorithm engineer owned model calls and workflows; the editor defined content rules and acceptance criteria.

Multi-Agent Demo Operational

Streamlit, LangGraph, Qwen, Chroma, and SQLite connected ideation, source material, outlines, prose, and scoring. At this stage, “can generate” was still being mistaken for “training-ready data.”

Rights and Data Ingress Rebuilt

Provenance and permitted use could not be proved work by work. I isolated the legacy corpus as read-only experimental data and rebuilt ledgers for author, source, license scope, withdrawal path, and version.

Structure Passed; Semantics Collapsed

Editorial review found highly homogeneous samples. I traced the issue across source material, databases, and the analysis agent, confirming drifting field definitions, collapsed feature distributions, and insufficient separation between generation and evaluation.

From Generation Throughput to Usable-Draft Cost

Batch generation exposed editorial bottlenecks, rate-limit retries, checkpoint recovery, and vector-version drift. Blind comparisons reinforced that agent orchestration should remain replaceable and evaluation must be pinned and independent.

Private Project Closed with Clear Asset Boundaries

When the commercial hypothesis missed its stop criteria, we stopped expanding. I documented ownership, versions, secrets, indexes, dependencies, and handoff boundaries, preserving the reusable value in workflows, governance standards, and evaluation assets.

Public Synthetic Governance Demo

I independently rebuilt the pre-training governance layer as a public repository using 100% synthetic data, a pinned release, two-version CI, reproducible builds, and auditable governance documents.

03 / Governed architecture

Repair Strategy: Give Every Type of Judgment a Clear Owner

Instead of adding more literary terminology to rules, I separated deterministic gates, candidate retrieval, semantic pre-screening, and final editorial judgment. The public repository implements the pre-training data-engineering layer.

01 PUBLIC DEMO · IMPLEMENTED

Rules

Rights admission, schema, format, length, hashes, versions, and file integrity.

02 PRIVATE BLUEPRINT · NOT IMPLEMENTED

Retrieval

Similar characters, conflicts, historical material, prior outlines, and editorial experience.

03 PRIVATE BLUEPRINT · NOT IMPLEMENTED

AI

Ideation, candidate generation, style rewrites, editorial suggestions, and evidence-backed semantic pre-screening.

04 PRIVATE BLUEPRINT · REQUIRES REAL EVALUATION

Editor

Gold sets, blind review, final semantic judgment, and continuous calibration from editing diffs.

04 / Verification

Pinned Synthetic Regression: From Data Funnel to Release Evidence

All counts are pinned to v0.1.0-demo to verify rights gating, deduplication, splitting, dataset derivation, and file reconciliation. They are not business-scale metrics.

Synthetic raw records
SYNTHETIC DEMO
27
Passed rights gate
SYNTHETIC DEMO
25
Final unique works
SYNTHETIC DEMO
20
2 SYNTHETIC DEMO rights cases blocked
2 SYNTHETIC DEMO exact duplicates
3 SYNTHETIC DEMO near duplicates
SYNTHETIC DEMO DATASET 36 / 12 SFT train / validation
SYNTHETIC DEMO DATASET 24 Preference pairs
SYNTHETIC DEMO DATASET 30 Isolated evaluation tasks
SYNTHETIC DEMO · SIMULATED EVENTS 40 Simulated editing events
SYNTHETIC DEMO BUILD 17/17 Automated tests passed
RELEASE CI 3.10 / 3.12 Both Python jobs passed
DETERMINISTIC SYNTHETIC BUILD byte-stable Repeated builds matched checksums; rebuilt CI artifacts had no diff
LIGHTWEIGHT RELEASE GATE PASS Checks for secret patterns, local paths, private directories, archives, and DEMO markers
05 / Engineering decisions

Four Key Design Decisions

These choices keep unprovable judgments out of deterministic gates.

DECISION 01

Why split by author first?

An author’s style, preferences, and narrative habits can recur across works. Random chapter- or sample-level splits may expose validation data to stable author patterns from training. The pipeline freezes author groups, keeps each work intact, and only then derives SFT, preference, and evaluation tasks.

DECISION 02

Why use both SHA-256 and MinHash?

SHA-256 is deterministic, fast, and traceable for identical normalized text. MinHash/LSH surfaces candidates with light rewrites or local changes. The former cannot detect semantic similarity; the latter cannot prove copyright safety. They serve different responsibilities.

DECISION 03

Why can’t model review be the only ground truth?

When similar models generate and review the same material, they can share blind spots. Model scores are useful for pre-screening, explanations, and evidence—not as a replacement for independent gold labels, real editorial blind review, and calibrated release thresholds.

DECISION 04

Why separate rules, retrieval, and AI?

Rules handle deterministic constraints, retrieval brings back historical evidence, AI proposes candidates and semantic suggestions, and editors own final content judgment. The layers make failure modes, validation methods, and accountability clearer.

06 / Private project context

Three-Person Collaboration and Private Workbench

PRIVATE PROJECT · REAL CONTEXT · NOT IN PUBLIC REPO These roles and workflows reflect real collaboration in the private project. Automation varied by stage, while final content always required editorial acceptance. The public repository implements only the pre-training data-governance layer.

Editor

  • Maintain scorecards and gold sets
  • Run blind reviews and final content acceptance
  • Capture editing diffs as traceable feedback

Data Engineer

  • Rights, cleaning, deduplication, and splitting
  • Dataset, evaluation, and release versioning
  • Blinded statistics, lineage, and quality dashboards

Algorithm Engineer

  • Model adapters, RAG, and inference
  • Optional fine-tuning and provider switching
  • Cost, latency, and maintenance optimization

Iterated Creation Workflow

01Create work
02Upload licensed material
03Generate topic / outline candidates
04Lock Story Bible
05Generate chapter by chapter
06Check characters / setups / logic
07Edit and retain diffs
08Export delivery draft
PRIVATE PROJECT DECISION · MODEL-AGNOSTIC DELIVERY Models and agent orchestration remain replaceable. If an in-house model fails to outperform external foundation models on editorial blind tests, usable-draft cost, and maintenance cost across two pinned evaluation versions, training stops. The durable assets are proprietary code, creation workflows, model adapters, scoring standards, rights-cleared editorial feedback and gold sets, plus deployment and operating guides.
07 / Public evidence

Public Evidence Pinned to a Release Snapshot

The governance evidence below is pinned to release commit b19b3b5…; CI links point to the corresponding Actions run.

RELEASE

v0.1.0-demo

Synthetic Portfolio Build and pinned commit snapshot.

View release →
CI

Python 3.10 / 3.12

Both jobs passed the lightweight public release gate, deterministic rebuild, tests, CLI, compilation, and artifact diff.

View Actions →
GOVERNANCE

Dataset Card

Data sources, intended use, split strategy, limitations, and authenticity boundaries.

View document →
VERIFICATION

Verification Report

Counts, tests, deduplication, isolation, and validation for the pinned synthetic build.

View report →
MANIFEST

Release Manifest

Dataset versions, stage artifacts, source snapshot, and release lineage.

View manifest →
SPLIT CHECK

Cross-Split Overlap 0 / 0 / 0

Author, work, and text-hash overlap checks for the pinned synthetic splits.

View report →
CHECKSUMS

23 SHA-256 Entries

Pinned checksums for governed synthetic build files.

View checksums →
ARCHITECTURE

System Architecture

Public data-engineering scope, stage boundaries, and unimplemented areas.

View architecture →
LINEAGE

DEMO Data Lineage

Implemented stages, dataset and evaluation versions, plus placeholder links for unexecuted training and models; the production withdrawal path remains target design.

View lineage →
OWNERSHIP

Contributions

Independent implementation, AI-assisted development, and final accountability boundaries.

View statement →
PROVENANCE

Provenance Statement

How synthetic data was generated and the boundary excluding third-party project assets.

View statement →
PUBLIC SAFETY

Security Policy

Sensitive assets prohibited from the public repository and the manual-review boundary.

View policy →

Local Reproduction

python scripts/run_demo.py --output-dir artifacts
python -m unittest discover -s tests -v
python scripts/check_public_repo.py
08 / Limits

Public Demo Scope

This section describes only the pinned public implementation. It neither dismisses the real private-project experience nor presents private assets as publicly reproducible evidence.

Implemented in the Public Demo

  • Deterministic synthetic data can be regenerated and reconciled.
  • Rights gating, normalization, SHA-256 exact deduplication, and educational MinHash/LSH near-duplicate candidate detection run on the synthetic regression.
  • SFT, preference, and isolated evaluation formats are derived consistently.
  • The manifest, DEMO stage and placeholder lineage, tests, author/work/text-hash cross-split checks, and lightweight public release gate are reviewable.

Not Covered

  • No fiction model was trained or fine-tuned; model and training runs are placeholder relations only.
  • No real users, publication outcomes, revenue, or production throughput.
  • Not a production-grade copyright-legal, PII, or content-safety system.
  • Baseline, ablation, and blind-test files are synthetic format examples, not real editorial experiments.
  • Real deployment still requires a private environment, work-level authorization, and independent editorial blind review.

What This Project Demonstrates

This project does not predict “hits” and did not train a fiction model. It demonstrates how I identify falsely precise labels, establish data contracts, and turn rights, deduplication, isolation, versioning, and release validation into an executable pipeline. Literary judgment remains the responsibility of real editorial evaluation and human review.