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/32No opening hook detected
EARLY PRIVATE PROTOTYPE · SYNTHETIC DEMO RECORDS · NOT PUBLIC DATASET
30/32Reversal count was 0
EARLY PRIVATE PROTOTYPE · SYNTHETIC DEMO RECORDS · NOT PUBLIC DATASET
32/32Emotional 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.
Gold sets, blind review, final semantic judgment, and continuous calibration from editing diffs.
INPUT
Synthetic Raw Records
Text, author, work, rights fields, and version identifiers.
GATE 01
Rights Gate
Invalid status, purpose, or term sends a record to the rejection path.
PROCESS 02
Text Normalization
Unicode, whitespace, punctuation, and deterministic hash input.
DEDUP 03
SHA-256
Detect exact duplicates in normalized text.
DEDUP 04
MinHash / LSH
Find near-duplicate candidates without treating similarity as a copyright judgment.
SPLIT 05
Author / Work Split
Group by author first, keep each work intact, then derive datasets.
SFT train / validation
Preference pairs
Isolated evaluation
Dataset Card
Manifest + Lineage
Tests + Leakage Checks
Checksums + Release Gate
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.
DETERMINISTIC SYNTHETIC BUILD
byte-stableRepeated builds matched checksums; rebuilt CI artifacts had no diff
LIGHTWEIGHT RELEASE GATE
PASSChecks 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 REPOThese 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.
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.