Skip to content

DRAFT — Clean-room competitive reader research/spec — per-feature approval required - #260

Closed
aehlke wants to merge 28 commits into
mainfrom
clean-room/competitive-reader-spec-2026-10-02
Closed

aehlke wants to merge 28 commits into
mainfrom
clean-room/competitive-reader-spec-2026-10-02

Conversation

@aehlke

@aehlke aehlke commented Oct 3, 2026 •

Copy link
Copy Markdown

Mainline consolidation status (2026-11-09)

The seven research/specification documents from this PR were selectively imported through PR #279 and are now on main in merge ad61da3932bc4ed6f9b45ac2f0f93c4eb384cd62. This PR is closed to prevent duplicate integration. This administrative close does not approve any CR feature or authorize target-side implementation. Active feature approvals remain None, delegated approval authority remains None, and the source branch is preserved for provenance.


DRAFT — research/specification only

Do not mark this PR ready, merge it, close it as completed, or treat it as an implementation work order without an explicit user/project-owner instruction referring to PR #260.

No clean-room feature is currently approved for design, tests, implementation, or integration.

CLEAN_ROOM_APPROVALS.md is the branch-local authorization ledger. Its current state is Active approvals: None and no delegated approval authority.

A future worker may review/refine these research/spec documents when explicitly asked, but must not create target-side CR-derived designs, fixtures/tests, modify product/runtime code, open implementation PRs, or “finish nearby work” unless a separate per-feature approval names the relevant CR IDs, approval level, target, bounded deliverable, and approval basis.

Generic instructions such as “continue,” “go deeper,” “review,” “refine,” “finish the clean-room work,” or “work through the backlog” do not count as per-feature implementation approval.

Purpose

Establish an implementation-safe competitive research program without admitting competitor implementation material into Reader work.

This PR contains only:

  • an explicit per-feature approval gate;
  • an implementation-side clean-room protocol;
  • a research-only consistency/review checklist;
  • a sanitized behavior/correctness specification;
  • a sanitized adversarial qualification plan;
  • a DISCOVERY_ONLY optional feature-opportunity registry; and
  • a sealed handoff manifest pinned to exact Git blob identities.

The named-source observer dossier and evidence ledger are stored outside this repository and are intentionally not implementation dependencies.

Approval model

Approval and specification severity are deliberately separate.

Approval levels are defined in CLEAN_ROOM_APPROVALS.md:

  • DISCOVERY_ONLY
  • APPROVED_FOR_DESIGN
  • APPROVED_FOR_TESTS
  • APPROVED_FOR_IMPLEMENTATION
  • APPROVED_FOR_INTEGRATION

All clean-room feature work currently remains DISCOVERY_ONLY.

Workers cannot grant themselves approval by editing the ledger. Approval must be traceable to an explicit project-owner instruction. The ledger also defines revocation precedence, spec-change invalidation, delegation rules, prerequisite/bug-fix boundaries, and the minimal-shared-primitive rule.

Firewall

Observer material may use public user-facing docs, release notes, store/screenshots, behavior-only issue reports, and ordinary black-box runs.

Implementation input excludes competitor:

  • source code;
  • source symbols/file names;
  • comments;
  • patches/diffs;
  • source-bearing implementation descriptions;
  • copied test fixtures;
  • distinctive/copyrighted UI assets.

The protocol also defines evidence classes, screenshot/video functional-only use, strict black-box boundaries, contaminated-note quarantine, behavior-ID-only clarification, and visual/copy similarity review.

Sanitized correctness contract

The core and adversarial specs cover:

  • Unicode/ruby boundaries;
  • EPUB navigation and publisher-style conflicts;
  • media/resource failure isolation;
  • selection/gesture ownership;
  • search/lookup state;
  • restore and stale-async fencing;
  • library/import robustness;
  • audio/read-along lifecycle;
  • statistics correctness;
  • sync rollback/conflicts/reconnect;
  • cache corruption and account scoping;
  • OCR ordering/edit/version behavior;
  • metamorphic tests;
  • cross-engine qualification;
  • fuzz domains;
  • soak tests;
  • product-boundary benchmarks.

These contracts are dormant for target-side execution until their feature/suite receives the required approval level.

Optional feature registry

specs/clean-room-reader-feature-opportunities.md is an idea registry, not a roadmap.

It contains 146 actual CR-OPP entries, with IDs extending through CR-OPP-186. Numeric gaps are intentional topical ranges.

The registry covers learning-aware reading, personalized material difficulty, adaptive furigana, entity/occurrence navigation, reading planning, per-book presentation, library organization, vocabulary/mining, media study, manga/OCR, imports/connectors, contextual assistants, review workflows, privacy and data portability.

The document includes a target-overlap guard so existing Reader primitives are not rebuilt merely because similar ideas appear in competitive research.

No CR-OPP entry is approved merely by being listed, detailed, called useful, or placed in a candidate subset.

Research-review discipline

CLEAN_ROOM_REVIEW.md defines how future workers review this PR without turning review into execution.

It checks:

  • GitHub Draft state;
  • approval-ledger integrity;
  • authority-language drift;
  • per-feature boundaries;
  • source/observer firewall;
  • CR definition uniqueness;
  • target-overlap classification;
  • benchmark/test quality;
  • privacy/migration implications;
  • platform scope;
  • manifest freshness;
  • research-only branch shape;
  • the no-finish rule.

A passing research review means only “internally consistent at this revision.” It does not mean READY, MERGE, or implement.

Sealed chain of custody

CLEAN_ROOM_HANDOFF.md pins:

  1. CLEAN_ROOM_APPROVALS.md
  2. CLEAN_ROOM_COMPETITIVE_RESEARCH.md
  3. CLEAN_ROOM_REVIEW.md
  4. specs/clean-room-reader-competitive-spec.md
  5. specs/clean-room-reader-adversarial-qualification.md
  6. specs/clean-room-reader-feature-opportunities.md

A clean implementation worker must read the approval gate first.

The worker must not inspect/request the observer dossier/evidence ledger or independently research the external products that motivated these requirements.

Current state

Current branch shape: 7 documentation/specification files only; 4,520 additions, 0 deletions.

Explicit stop rule

If a future worker discovers useful adjacent work while operating under an approval, it must report the relevant CR IDs and stop at the approval boundary. It must not complete the adjacent feature “while here.”

If the relevant specification materially expands after approval, the expanded portion is unapproved until explicitly reapproved.

Shared-primitives boundary

The opportunity registry now includes an informative dependency map for recurring target primitives such as knowledge state, semantic source text, durable locations, mining context, OCR, timed media, library metadata, ingestion, assistance/model boundaries, and presentation/scaffolding.

This map does not bundle approvals. Approving one consumer authorizes only the minimum coherent shared primitive necessary for that approved behavior. It does not authorize neighboring CR-OPP entries or a broad future-facing refactor.

Current research review

Review record at head 3d897ebab2c03c3c8af4739afcf2d5873076b6b8:

  • GitHub Draft status: confirmed
  • Active approvals: None
  • Delegated approval authority: None
  • CR-OPP definitions: 146
  • Highest CR-OPP ID: 186
  • Duplicate CR-OPP definitions: none
  • Duplicate CR definition headings in core/adversarial/opportunity specs: none
  • Named-source contamination in implementation-side files: none found
  • External URLs in implementation-side files: none
  • External GitHub links in implementation-side files: none
  • Product/runtime files in PR: none
  • Requested reviewers: none
  • Review result: CONSISTENT

“CONSISTENT” is a research-review result only. It does not mean ready, complete, approved, or mergeable by policy.

aehlke commented Oct 3, 2026 •

Copy link
Copy Markdown
Author

Sealed implementation-worker handoff — v8

This supersedes all earlier handoff comments.

Live PR state

PR #260 must remain Draft unless the user/project owner explicitly authorizes a PR-state transition referring to PR #260 or this clean-room research PR.

Approval gate — read first

  • CLEAN_ROOM_APPROVALS.md — 233c10acda33879c36b829d23b8492ac7de1f413

The ledger currently authorizes only DISCOVERY_ONLY research/spec refinement.

Workers cannot create or broaden their own approval. Approval must be traceable to an explicit project-owner instruction and is bound to feature/CR scope, work level, target, bounded deliverable, and approval basis/spec revision.

Sanitized research inputs

  • CLEAN_ROOM_COMPETITIVE_RESEARCH.md — 6cb64cd45478906d3648860945b33c35f75e450d
  • specs/clean-room-reader-competitive-spec.md — fd1269b0426ce7b526a99f985c15b4192634fcdd
  • specs/clean-room-reader-adversarial-qualification.md — b4249481022cb010cfcee89d5263c3766201208b
  • specs/clean-room-reader-feature-opportunities.md — 61383888e92c7d56959ed70d71d8a54230c60be8

Research-review aid:

  • CLEAN_ROOM_REVIEW.md — 6066bbcd69a9512b57a58d232156140fc0deef3e

Current handoff manifest:

  • CLEAN_ROOM_HANDOFF.md — e59220344d9daf5238ce483860f97ee16e6b0044

A stale manifest is invalid for implementation handoff.

Approval levels

DISCOVERY_ONLY
→ APPROVED_FOR_DESIGN
→ APPROVED_FOR_TESTS
→ APPROVED_FOR_IMPLEMENTATION
→ APPROVED_FOR_INTEGRATION

The arrows describe possible later escalation, not automatic transitions.

Design-only stops at design. Tests-only stops at tests and reported failures. Implementation does not authorize integration. Material later spec expansion requires reapproval for the expanded scope.

Hard scope rules

No authority may be inferred from:

  • MUST/SHOULD language;
  • a failed test/benchmark;
  • feature value/ease;
  • feature adjacency;
  • a shared subsystem;
  • section membership;
  • labels/reactions/assignments;
  • an earlier worker's claim;
  • generic “continue / go deeper / review / refine / finish” wording.

A necessary shared primitive must be the minimum coherent target-owned abstraction for the approved behavior and may not preimplement neighboring features.

Opportunity registry

  • 146 actual CR-OPP definitions
  • IDs extend through CR-OPP-186
  • numeric gaps are intentional topical bands
  • every CR-OPP remains DISCOVERY_ONLY

The shared-primitives dependency map is informational only and does not create bundle approval.

Clean-room boundary

Do not inspect/request observer dossiers/evidence ledgers or named-source provenance. Do not independently research motivating external products. Do not use external source, patches, diffs, symbols, comments, implementation descriptions, copied fixtures, or distinctive UI assets.

Current audit

At the current research head:

Research-review result: CONSISTENT.

This does not authorize READY, MERGE, implementation, tests, design, or integration.

@aehlke aehlke changed the title Add sealed clean-room competitive reader specification DRAFT — Clean-room competitive reader research/spec — per-feature approval required Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant