diff --git a/AGENTS.md b/AGENTS.md index e50b505..1ee7d9e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,6 +14,8 @@ Read `npm run delivery -- report` before delivery work. Preserve an active owner When completing a new lesson, register its path, title and summary in site/src/data/chapters.ts. Home chapter cards and the Learn index share this list; keep it in reading order and include only complete lessons present in the build. Verify both surfaces and base-path links before handoff. +When a change spans adjacent V3 chapters, the delivery owner uses the [Editor role](agents/EDITOR.md) to read and edit the revised chapters in sequence before the final preview. Move examples and trim repeated setup where this helps the reader understand the next engineering decision. + ## V2 transition (Stage 0–1 draft) For the proposed future learning design, read project/TUTORIAL-SPEC.md, project/CURRICULUM-MAP.md, project/ENGINEERING-WORKFLOW.md, project/DEMONSTRATOR-LEARNING-PLAN.md, project/EDITORIAL-GUIDE.md and project/INFORMATION-ARCHITECTURE.md, then the relevant chapters/ brief. See docs/v2/ADOPTION-STATUS.md for scope, conflicts and verification. These are proposed educational targets, not evidence of implemented capabilities or authorization for later stages. diff --git a/agents/EDITOR.md b/agents/EDITOR.md index 01274b4..8f8f2a1 100644 --- a/agents/EDITOR.md +++ b/agents/EDITOR.md @@ -1,7 +1,15 @@ -# Editor — v2 role contract +# Editor ## Purpose + Write American English engineer-to-engineer. Lead with concrete decisions. Reduce boilerplate and repeated caveats, retain precise limitations in relevant places. Ensure strong transitions and accessible explanations of specialist methods. Check that every paragraph advances learning and AI appears as an operational rather than late theoretical topic. +## Editing adjacent V3 chapters + +Use the [current curriculum map](../project/CURRICULUM-MAP.md) and [revised manuscript index](../project/v3/manuscripts/revised/INDEX.md) to locate the active chapters in reading order. Follow the [editorial guide](../project/EDITORIAL-GUIDE.md) for voice and chapter composition. + +Before the final preview, read the affected chapters together. Bring the example that makes each decision concrete to the place where the reader first needs it. You may move or shorten passages across the chapters in scope. Read each closing paragraph alongside the next opening. Does the reader carry a question forward, and does the next chapter help answer it? Preserve the technical meaning and keep supporting sources with the claims they explain. + ## Shared instructions -Read `AGENTS.md`, v2 tutorial/curriculum/workflow specs, relevant chapter briefs, existing repository implementation and migration plan. Differentiate historical V0 truth from future aspirations. Implement only an explicitly approved scope. Record exact files, what tests were actually run, uncertainties and decisions. Do not fabricate execution, approvals or deployed features. Defer shared-file merges to reviewer/integrator. + +Read the [contributor guidance](../AGENTS.md), the relevant chapter briefs and the existing implementation. For V2 work, also consult the V2 tutorial, curriculum, workflow specifications and migration plan. Differentiate historical V0 truth from future aspirations. Implement only an explicitly approved scope. Record exact files, what tests were actually run, uncertainties and decisions. Do not fabricate execution, approvals or deployed features. Defer shared-file merges to reviewer/integrator. diff --git a/site/src/components/learning/QueueExperiment.astro b/site/src/components/learning/QueueExperiment.astro index af74a8c..afcabb8 100644 --- a/site/src/components/learning/QueueExperiment.astro +++ b/site/src/components/learning/QueueExperiment.astro @@ -1,5 +1,18 @@ --- import inputs from '../../../../project/v3/case-study/model-inputs-v1.json'; +import observations from '../../../../project/v3/case-study/data-quality-v1.json'; +import { moveArrival, runQueue } from '../../../../models/intersection/queue.mjs'; +import QueueTimeline from './QueueTimeline.astro'; +import { makeTimeline, type Direction } from './queue-timeline'; + +const observation = observations.scenario_edit_observation; +const originalResult = observations.valid_records.find(result => result.id === observation.baseline_result)!; +const worked = inputs.scenarios.find(scenario => scenario.id === originalResult.case)!; +const move = observation.arrival_move; +const group = move.group as Direction; +const original = runQueue(inputs, worked.arrivals); +const edited = runQueue(inputs, moveArrival(worked.arrivals, group, move.from_slot, move.to_slot)); +const workedView = makeTimeline(worked.id, group, original, { rows: edited, from: move.from_slot, to: move.to_slot }); ---

Move one arrival

@@ -8,7 +21,7 @@ import inputs from '../../../../project/v3/case-study/model-inputs-v1.json';
@@ -16,6 +29,7 @@ import inputs from '../../../../project/v3/case-study/model-inputs-v1.json';

+
@@ -28,16 +42,19 @@ import inputs from '../../../../project/v3/case-study/model-inputs-v1.json';
Vehicles waiting after each slot. NS is north–south and EW is east–west.
- +