Prosocial Coding
Back to Apps

Construct-aware lesson adaptation

Adaptation Engine

Adapt existing lessons while keeping instructional intent, source traceability, and teacher judgment visible.

Adaptation Engine is a teacher-facing proof of concept for adapting existing Texas middle school lessons. A teacher uploads an instructional bundle, reviews a structured Lesson Map of what major tasks appear to measure, and can generate one of five bounded adaptations for reading access, emergent bilingual support, teacher-selected access supports, classroom time, or deeper reasoning. Generated materials remain drafts until the teacher reviews them, and the system keeps source references and instructional boundaries visible throughout the workflow.

Safety note

Adaptation Engine is designed for instructional materials, not student records. Do not upload IEPs, 504 plans, ARD or LPAC records, BIPs, rosters, gradebooks, identified student work, or student information tied to performance or support needs. The current screening controls are backstops, not a complete PII detection system.

adaptation-engine.preview/lesson/workspace
Authentic Workspace
Adaptation Engine lesson workspace showing materials, roles, and construct analysis
01
Status
Narrow proof of concept
02
Adaptation modes
5 bounded outputs
03
Access
Approved testers only
04
Production deployment
Not deployed

The problem

Changing access should not quietly change what a lesson is asking students to do.

ORIGIN & CONTEXT // FOUNDER BRIEF
Executive Narrative // Origin

Lesson adaptation is not simply a rewriting problem. Reading, writing, English proficiency, computation, or production demands may be central to a task, incidental barriers around the task, or absent altogether. A change that helps in one lesson can change the intended work in another.

Adaptation Engine makes those decisions inspectable. It analyzes the lesson first, asks the teacher to resolve uncertain judgments, and then generates within a bounded adaptation mode rather than treating every request as unrestricted rewriting.

Product walkthrough

See the lesson adaptation workflow in the interface.

The current application connects lesson upload, Lesson Map review, adaptation configuration, generated output, source inspection, editing, review, and export in one teacher-owned workspace.

Annotated views based on the current Adaptation Engine interface.

Interactive Walkthrough (4 Stages)Tap to switch

Multi-format lesson bundle upload and privacy verification

Upload source lesson materials, student worksheets, and rubrics. Adaptation Engine parses content client-side with zero PII retention and auto-identifies academic standards.

adaptation-engine.preview/demo
Watch Demo · 1:05
00:00 / 01:05

60-second executive walkthrough of Adaptation Engine from multi-file bundle upload to verified DOCX export.

1 of 18 · Upload

How it works

The teacher stays in the loop from source material to final export.

Operational Workflow ArchitectureVERIFIED PIPELINE
Operational Workflow Architecture
  1. 01

    Upload the lesson

    Create a private lesson workspace and add supported instructional files such as PDF, DOCX, TXT, or Markdown.

  2. 02

    Analyze the bundle

    The system extracts readable content, organizes source blocks, identifies major instructional tasks, and proposes intended constructs and instructional loads.

  3. 03

    Confirm the Lesson Map

    The teacher reviews uncertain construct, load, and file-role judgments. Generation stays blocked while required judgments remain unresolved.

  4. 04

    Choose the adaptation

    Select Reading Access, Emergent Bilingual Support, Access Supports, Time Fit, or Depth Extension and configure the options allowed for that mode.

  5. 05

    Review and edit the draft

    Inspect the generated classroom document, adaptation explanation, source references, and construct-risk guidance. Teacher edits return the artifact to draft status.

  6. 06

    Mark reviewed and export

    Complete the review checkpoint, explicitly mark the current version reviewed, and export an eligible teacher or student DOCX.

Five adaptation modes

Different classroom problems use different generation constraints.

01

Reading Access

Reduce incidental reading barriers while preserving the teacher-confirmed lesson target and keeping every selected instructional task represented.

02

Emergent Bilingual Support

Add lesson-level language supports across teacher-selected listening, speaking, reading, or writing domains without inferring an individual learner’s proficiency.

03

Teacher-Selected Access Supports

Apply only support types selected by the teacher. The application does not diagnose a disability, determine eligibility, or create a 504 plan.

04

Time Fit

Build a teacher-facing keep, compress, and cut plan for a selected class period while retaining evidence needed for the lesson’s central target.

05

Depth Extension

Increase cognitive demand through approaches such as comparison, argumentation, evidence weighing, source evaluation, synthesis, or inquiry rather than simply adding more work.

06

Saved Setups and Quick Create

Save eligible generic adaptation configurations, pin frequently used setups, and start a new lesson from a reusable configuration without storing student-specific support information.

Teacher authority

AI proposes. Application rules constrain. The teacher decides final use.

01

Lesson Map correction

Teachers can correct intended constructs, instructional loads, and uncertain analysis before generation proceeds.

02

Task targeting

Eligible adaptation modes can target selected instructional tasks rather than automatically changing the entire lesson.

03

Source inspection

Generated content can retain links to canonical lesson source blocks so teachers can inspect where material came from.

04

Editable drafts

Generated documents remain editable, while protected source excerpts are resolved from canonical stored source text rather than rewritten by the model.

05

Review reset

Editing generated content resets its review state so an earlier approval cannot silently carry over to changed material.

06

Stale-output protection

If the underlying lesson or analysis changes, older generated artifacts become stale and cannot be exported as though they still reflected the current lesson.

Data and instructional boundaries

The current proof of concept deliberately avoids student-specific records.

Adaptation Engine is built around teacher-owned instructional material rather than student profiles. Authentication and ownership checks isolate lesson workspaces, Firestore access stays server-side, source uploads use owner-scoped Storage paths, and student-facing generation excludes raw teacher-guide, answer-key, and uncertain-role source material.

Operational Safety Boundary FlowVERIFIED GATE
Operational Safety Boundary Flow

Do not assume the current POC provides

OPERATIONAL BOUNDARIES
  1. 01

    student accounts or student-facing AI sessions

  2. 02

    IEP, 504, ARD, LPAC, BIP, roster, gradebook, or identified student-work processing

  3. 03

    automatic disability, eligibility, accommodation, or language-proficiency inference

  4. 04

    formal proof that an adaptation preserved a construct

  5. 05

    legal-compliance or STAAR-allowability determinations

  6. 06

    complete PII or student-record detection

  7. 07

    automatic publishing, sharing, emailing, or assignment

Intended use

Built around a teacher adapting material they already plan to teach.

Current primary user

AUDIENCE LEDGER
  1. 01

    Texas middle school teachers

  2. 02

    Teachers adapting existing lesson bundles rather than generating an entire curriculum from scratch

  3. 03

    Teachers who want access, language, pacing, or depth changes to remain inspectable before classroom use

A suitable testing context provides

OPERATING CRITERIA
  1. 01

    pre-cleared instructional materials rather than student records

  2. 02

    a teacher who can review instructional intent and generated output

  3. 03

    a controlled account rather than anonymous public access

  4. 04

    time to inspect and revise generated material before classroom use

The current runtime models one authenticated teacher or tester who owns their own lessons. Student, department, district, and shared-workspace roles are outside the present POC.

Current implementation

A functioning end-to-end proof of concept, not a production deployment.

Operational Brief & Review Scope

The current main branch implements the teacher workflow from authentication and upload through analysis, adaptation, review, DOCX export, feedback, and deletion. Automated verification includes unit and integration coverage plus authenticated Firebase end-to-end and cross-user isolation testing. A bounded live-Gemini Reading Access run has also been observed. Production deployment, broader accessibility validation, and equivalent live-model verification for the other four adaptation modes remain open.

Product & Operational Parameters

SPECIFICATION LEDGER
01
Product stage
Narrow proof of concept
02
Teacher workflow
Implemented end to end
03
Live-model verification
Reading Access smoke passed
04
External access
Controlled testers
05
Production deployment
Not yet deployed

Technical foundation

Structured AI output sits inside deterministic application controls.

Adaptation Engine is a Next.js application using Firebase Authentication, server-side Firestore access through Firebase Admin, owner-scoped Cloud Storage, the Google Gen AI SDK, Zod schemas, structured source extraction, deterministic validation, and DOCX rendering. AI output is treated as proposed structured data rather than trusted application state.

Subsystem Architecture CutawayVERIFIED SCHEMATIC
Subsystem Architecture Cutaway

Current technical characteristics

SYSTEM PROFILE
  1. 01

    Next.js App Router with React and strict TypeScript

  2. 02

    Firebase Authentication with controlled tester access

  3. 03

    Server-side Firestore ownership enforcement

  4. 04

    Owner-scoped, create-once Cloud Storage source uploads

  5. 05

    Configurable Gemini model with structured JSON-schema output

  6. 06

    Zod validation at external and AI boundaries

  7. 07

    PDF, DOCX, TXT, and Markdown source extraction

  8. 08

    Canonical source-block references for traceability

  9. 09

    Lesson-version and artifact-revision guards against stale work

  10. 10

    Teacher and student DOCX rendering

  11. 11

    Vitest and Playwright verification

  12. 12

    Vercel as the current deployment target

The AI construct-risk check is advisory. Deterministic application rules enforce specific source, audience, provenance, state, and adaptation-contract constraints, but they do not establish instructional effectiveness or legal compliance.

Current project contents

The proof of concept includes more than the visible teacher interface.

01

Lesson workspace application

NEXT.JS TEACHER WORKSPACE AND INTERACTIVE LESSON MAP

02

Extraction & schema engine

SOURCE-BLOCK, CONSTRUCT ANALYSIS, AND COGNITIVE LOAD SCHEMAS

03

Adaptation prompt contracts

5 BOUNDED ADAPTATION MODES WITH STRICT SCOPE DEFENSE

04

Teacher verification gate

EXPLICIT TEACHER EDIT, APPROVAL, AND PROVENANCE VALIDATION

05

Document & slide export

ACCESSIBLE TEACHER/STUDENT DOCX AND PRESENTATION EXPORTS

06

Synthetic fixture harness

BOUNDED LIVE-PROVIDER BENCHMARKS AND DETERMINISTIC SUITES

07

Engineering handoff docs

STATE-MODEL SPECS, SECURITY RULES, AND DEPLOYMENT MANUALS

Current project contents

The proof of concept includes more than the visible teacher interface.

Adaptation Engine construct-aware lesson adaptation transfer package
01

Lesson workspace application

NEXT.JS TEACHER WORKSPACE AND INTERACTIVE LESSON MAP

02

Extraction & schema engine

SOURCE-BLOCK, CONSTRUCT ANALYSIS, AND COGNITIVE LOAD SCHEMAS

03

Adaptation prompt contracts

5 BOUNDED ADAPTATION MODES WITH STRICT SCOPE DEFENSE

04

Teacher verification gate

EXPLICIT TEACHER EDIT, APPROVAL, AND PROVENANCE VALIDATION

05

Document & slide export

ACCESSIBLE TEACHER/STUDENT DOCX AND PRESENTATION EXPORTS

06

Synthetic fixture harness

BOUNDED LIVE-PROVIDER BENCHMARKS AND DETERMINISTIC SUITES

07

Engineering handoff docs

STATE-MODEL SPECS, SECURITY RULES, AND DEPLOYMENT MANUALS

Proposed Transfer Inventory & Asset Scope

VERIFIED ARTIFACTS
  1. 01

    Teacher-facing Next.js application and lesson workspace

    Implemented
  2. 02

    Lesson extraction, source-block, construct, load, and generated-document schemas

    Implemented
  3. 03

    Structured lesson-analysis, adaptation-generation, and construct-risk AI contracts

    Implemented
  4. 04

    Deterministic source, audience, adaptation, version, and provenance validation

    Implemented
  5. 05

    Firebase authentication, persistence, storage rules, and ownership controls

    Implemented
  6. 06

    Teacher and student DOCX export plus slide-companion support

    Implemented
  7. 07

    Synthetic evaluation fixtures and evaluation framework

    Documented and versioned
  8. 08

    Unit, integration, browser, and bounded live-provider verification materials

    Implemented
  9. 09

    Architecture, security, API, state-model, deployment, and engineering documentation

    Documented

This section describes what exists in the repository. It does not represent every dependency, service account, provider account, domain, credential, or third-party right as transferable.

Questions

Important limits of the current proof of concept

FREQUENTLY ASKED QUESTIONS
01Does Adaptation Engine create a 504 plan?

No. A teacher may select an access-support type that has already been authorized elsewhere. The application does not diagnose a disability, determine eligibility, interpret an individual plan, or create one.

02Does it use student records to personalize a lesson?

No. The current product boundary is instructional material only. Student records, student profiles, identified student work, rosters, gradebooks, and accommodation-plan documents are outside the POC.

03Does it prove that a generated adaptation preserves the original construct?

No. The application analyzes intended constructs and loads, applies deterministic checks where possible, and produces an advisory construct-risk review. Final instructional judgment remains with the teacher.

04Can it export Google Docs, Slides, PDF, or PowerPoint files?

Not currently. DOCX is the supported export format. Native PPTX, Google Workspace export, and PDF export are outside the current POC.

05Is it available to the public?

No. The current application uses controlled authenticated tester access and has not been deployed as a public production service.

Next step

Review Adaptation Engine as a working proof of concept.

The useful next step is a guided review of the current workflow, its instructional assumptions, and the boundaries that would need to be addressed before a broader teacher pilot. The repository supports a functioning prototype, but the current evidence should not be presented as production or instructional-effectiveness validation.

Staged Review & Diligence Path

ENGAGEMENT SEQUENCE

Public acquisition, licensing, pricing, or production-availability claims should be added only after those decisions are explicitly established. Inquiries are routed through the canonical contact route.