diff --git a/project/CURRICULUM-MAP.md b/project/CURRICULUM-MAP.md index 88182e1..7df137e 100644 --- a/project/CURRICULUM-MAP.md +++ b/project/CURRICULUM-MAP.md @@ -7,11 +7,11 @@ | Part | # | Chapter | Distinct learning gain | Primary intersection teaching view | |---|---:|---|---|---| -| I — Frame the Work | 01 | The New Engineering Paradigm | Explain changing expectations, software-inspired workflows, AI, and two co-evolving systems | Executive overview; no detailed case | -| I | 02 | Introducing the Engineering Challenge | Understand stakeholders, system boundaries, and the fictional case | Establish the intersection story and its evidence limits | -| I | 03 | Planning Under Uncertainty | Select a meaningful investigation and decide what is ready to commit | Compare investigation choices, dependencies and decision criteria | -| II — Build and Test Knowledge | 04 | Engineering Knowledge as Code | Explain controlled engineering information, typed relationships and change impact | Source-backed functional/interface views | -| II | 05 | Learning Through Models and Prototypes | Select a model, define assumptions and interpret a bounded experiment | Fixed-phase state model and traceable queue/arrival comparison | +| I — Frame the Work | 01 | The New Engineering Paradigm | Decide where earlier feedback could save engineering time and reduce rework | Compare a product change with the repeatable check that helps teams integrate it | +| I | 02 | Setting Up the Intersection Workshop | Turn a road user's concern into a question a first prototype can investigate | Explore the four-way intersection, who uses it and what a vehicle-queue model can represent | +| I | 03 | Planning Under Uncertainty | Revise the next increment when a prototype changes what the team knows | Reconcile two readings of the same queue before requesting arrival data | +| II — Build and Test Knowledge | 04 | Engineering Knowledge as Code | Use typed relationships to check a proposed change against engineering sources | Trace a phase-selection change to the queue model that represents the function | +| II | 05 | Learning Through Models and Prototypes | Run an experiment and save what it taught the team about the model | Move one arrival, compare the queue traces and record the result against the model revision | | II | 06 | Engineering Data: From Measurements to Decisions | Curate, annotate, inspect and reuse engineering observations | Original, checked and derived records | | II | 07 | Spec-Driven Development Without Waterfall | Define a bounded next increment while leaving other uncertainties open | Progressive specification and decisions | | III — Develop an Integrated Product | 08 | Directing AI Engineering Agents | Bound, observe and review delegated engineering work | Illustrative task context, tool actions and handover | diff --git a/project/v3/case-study/data-quality-v1.json b/project/v3/case-study/data-quality-v1.json index 51504bc..2f4c65f 100644 --- a/project/v3/case-study/data-quality-v1.json +++ b/project/v3/case-study/data-quality-v1.json @@ -28,6 +28,26 @@ "status": "computed_from_synthetic_inputs" } ], + "scenario_edit_observation": { + "id": "RESULT-B-NS-3-TO-2", + "experiment_id": "INT-EXP-001", + "model_id": "INT-MOD-001", + "model_revision": "T1", + "baseline_result": "RESULT-B", + "arrival_move": { + "group": "NS", + "from_slot": 3, + "to_slot": 2, + "vehicles": 1 + }, + "metric": "pending_at_horizon", + "value": 1, + "unit": "vehicles", + "horizon": 8, + "sample_point": "after arrivals and service", + "status": "computed_from_synthetic_inputs", + "proposed_follow_up": "If the same phases and each scenario’s own arrivals repeat for a second cycle, how many vehicles remain after slot 16?" + }, "original_incompatible_record": { "id": "LEGACY-C", "raw_field": "queue_final", diff --git a/project/v3/case-study/verify-fixture.mjs b/project/v3/case-study/verify-fixture.mjs index 39d13b9..927ecba 100644 --- a/project/v3/case-study/verify-fixture.mjs +++ b/project/v3/case-study/verify-fixture.mjs @@ -5,7 +5,7 @@ import { readFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { dirname, join } from 'node:path'; import assert from 'node:assert/strict'; -import { runQueue } from '../../../models/intersection/queue.mjs'; +import { moveArrival, runQueue } from '../../../models/intersection/queue.mjs'; const root = dirname(fileURLToPath(import.meta.url)); const read = (name) => readFileSync(join(root, name), 'utf8'); @@ -68,6 +68,27 @@ for (const [scenario, departures, remaining] of [['A',3,1],['B',2,2]]) { assert.equal(derived.value, finalQueue, 'Data-quality fixture agrees with calculated trace'); assert.equal(derived.model_revision, input.revision, 'Revision identity'); } + +const observation = data.scenario_edit_observation; +const baseline = data.valid_records.find(record => record.id === observation.baseline_result); +assert.ok(baseline, 'Edited observation names a stored baseline result'); +const scenario = input.scenarios.find(record => record.id === baseline.case); +assert.ok(scenario, 'Baseline result names an input scenario'); +assert.equal(observation.model_id, input.id); +assert.equal(observation.model_revision, input.revision); +assert.ok(graph.edges.some(edge => + edge.from === observation.experiment_id && edge.relation === 'examines_model' && + edge.to === observation.model_id && edge.asserted_in_revision === observation.model_revision +), 'Recorded experiment examines this model revision'); +assert.equal(observation.horizon, input.horizon_slots); +assert.equal(observation.metric, baseline.metric); +assert.equal(observation.unit, baseline.unit); +const move = observation.arrival_move; +assert.equal(move.vehicles, 1, 'Browser edit moves one vehicle'); +const edited = moveArrival(scenario.arrivals, move.group, move.from_slot, move.to_slot); +const finalQueue = runQueue(input, edited).at(-1).queue; +assert.equal(observation.value, finalQueue.NS + finalQueue.EW, 'Edited observation matches the model result'); + assert.equal(data.original_incompatible_record.status, 'withhold_comparison'); assert.equal(data.original_incompatible_record.unit, null); assert.equal(data.original_incompatible_record.model_revision, null); @@ -75,4 +96,5 @@ assert.equal(data.original_incompatible_record.observation_window, null); assert.ok(!input.metrics.mean_wait.includes('DEFINED') || input.metrics.mean_wait.startsWith('NOT DEFINED')); console.log('V3 fictional fixture PASS: 12 graph nodes, 8 typed edges, 16 trace rows, A=1 pending, B=2 pending, legacy C withheld; invalid inputs rejected.'); +console.log(`Verified ${observation.id}. Queue count (${observation.unit}) after slot ${observation.horizon} = ${observation.value}.`); console.log('PASS verifies internal educational consistency only, NOT physical validity, traffic safety, source approvals, or learning outcomes.'); diff --git a/project/v3/illustrations/four-way-intersection.jpg b/project/v3/illustrations/four-way-intersection.jpg new file mode 100644 index 0000000..37ad120 Binary files /dev/null and b/project/v3/illustrations/four-way-intersection.jpg differ diff --git a/project/v3/learning/quizzes/eel-v3-ch01-new-paradigm.json b/project/v3/learning/quizzes/eel-v3-ch01-new-paradigm.json index 21b2204..2440ac3 100644 --- a/project/v3/learning/quizzes/eel-v3-ch01-new-paradigm.json +++ b/project/v3/learning/quizzes/eel-v3-ch01-new-paradigm.json @@ -1,35 +1,35 @@ [ { "id": "repeatable-feedback", - "prompt": "Teams discover the same interface mismatch late in integration. Which investment would shorten the next decision cycle?", + "prompt": "Teams first compare their interface definitions when the assembled modules reach the test rig. Which investment would expose disagreements before the modules are built?", "options": [ { - "text": "Add a second sign-off meeting before integration.", - "feedback": "The team would still discover the mismatch at integration. Identify where the two interface definitions first become comparable." + "text": "Reserve a second test-rig slot for the assembled modules.", + "feedback": "Another slot can help when teams are waiting for equipment. They would still discover the disagreement after building the modules, when several teams may have to repeat design and integration work." }, { "text": "Check the two versioned interface definitions whenever either changes.", - "feedback": "An early comparison exposes a disagreement while the teams can still change their designs. The reusable check improves the engineering system.", + "feedback": "The teams can settle the disagreement while both designs are still open. The reusable check improves the engineering system and can spare the next variant the same late rework.", "correct": true }, { - "text": "Build the next product variant before investigating the mismatch.", - "feedback": "A further variant increases the number of configurations the teams must investigate. It does little to locate the existing disagreement." + "text": "Automate distribution of the integration report after each rig test.", + "feedback": "Faster reporting helps teams act on a finding once they have it. The first comparison of the definitions would still come after assembly." } ] }, { "id": "what-a-check-supports", - "prompt": "A model check passes for a proposed design change. Which decision can the team now make?", + "prompt": "An automated check finds that both modules declare the same unit. Which decision does that result support?", "options": [ { - "text": "Use the result to decide what to integrate or investigate next.", - "feedback": "The check gives timely evidence about the modeled condition. The team can use that evidence to choose its next integration or test step.", + "text": "Take those revisions to integration and investigate timing under load.", + "feedback": "The definitions agree on the unit. A test of the integrated modules can address the separate question of whether the value arrives in time.", "correct": true }, { "text": "Release the product in every intended operating condition.", - "feedback": "The check covered a particular model and condition. Release also depends on integration and evidence for the intended use." + "feedback": "The check compared the declared units. Release also depends on how the integrated product behaves under its intended operating conditions." }, { "text": "Count the check as a measured reduction in total development cost.", diff --git a/project/v3/learning/quizzes/eel-v3-ch02-intersection-challenge.json b/project/v3/learning/quizzes/eel-v3-ch02-intersection-challenge.json index f858893..71a6bab 100644 --- a/project/v3/learning/quizzes/eel-v3-ch02-intersection-challenge.json +++ b/project/v3/learning/quizzes/eel-v3-ch02-intersection-challenge.json @@ -1,39 +1,39 @@ [ { "id": "first-question", - "prompt": "The city wants better flow and safe crossings. Which question fits the first fixed-phase queue prototype?", + "prompt": "The team keeps the signal sequence and the total arrivals on each road fixed. Which question can its first prototype investigate?", "options": [ { - "text": "Which crossing time is suitable for all pedestrians?", - "feedback": "The prototype has vehicle arrivals and signal phases. Answering a crossing-time question requires information about pedestrians, geometry and timing." + "text": "Can a person at the curb see the crossing indication clearly?", + "feedback": "The prototype represents vehicle phases. Visibility depends on the installed signal and the view from the curb." }, { - "text": "Which detector should the city purchase?", - "feedback": "Choosing hardware requires sensing and interface needs that the first queue experiment leaves open." + "text": "Would a detector on the busiest approach make the signal respond sooner?", + "feedback": "The signal follows a fixed sequence in the model. A detector comparison would need readings and a rule for responding to them." }, { - "text": "Can different arrival patterns leave different queues under the same phases?", - "feedback": "Arrivals, phases and queues are part of the prototype. Varying arrivals while holding the phases fixed isolates a question it can answer.", + "text": "Can moving the same arrivals to different steps change how many vehicles are still waiting at the end?", + "feedback": "The model records arrivals, departures and queues at each step. The team can vary the placement of the arrivals and compare the final counts.", "correct": true } ] }, { "id": "intent-and-criteria", - "prompt": "Two groups agree to improve the intersection but give different meanings to “better.” What is the next useful step?", + "prompt": "A pedestrian asks whether someone can reach the far curb before a conflicting turn is permitted. What evidence would help the team answer?", "options": [ { - "text": "Identify each group’s intended outcome and choose one uncertainty to investigate.", - "feedback": "A driver’s queue and a pedestrian’s crossing opportunity call for different observations. Naming both helps turn a shared intent into meaningful criteria.", + "text": "The crossing distance, observations of people crossing and the indications shown to pedestrians and turning drivers.", + "feedback": "These observations connect the time people need with the permissions they encounter on that crossing. The first prototype represents vehicles moving in two groups.", "correct": true }, { - "text": "Make the shortest vehicle queue the acceptance criterion for everyone.", - "feedback": "Queue length describes one outcome for one group. It leaves the crossing concern unanswered." + "text": "The longest queue observed when the team tries more arrival patterns in the prototype.", + "feedback": "A longer queue tells the team more vehicles are waiting. It contains no record of a person reaching the far curb or of a turning vehicle's permission." }, { - "text": "Choose adaptive control so that everyone can work to one design.", - "feedback": "Selecting a controller settles the proposed mechanism before the team has agreed which outcomes it should improve." + "text": "The number of model steps for which one vehicle group has a green signal.", + "feedback": "The steps describe the order of vehicle phases. Converting them into time available to cross would require physical durations and pedestrian indications." } ] } diff --git a/project/v3/learning/quizzes/eel-v3-ch03-planning.json b/project/v3/learning/quizzes/eel-v3-ch03-planning.json index 1929f11..18f16a8 100644 --- a/project/v3/learning/quizzes/eel-v3-ch03-planning.json +++ b/project/v3/learning/quizzes/eel-v3-ch03-planning.json @@ -1,38 +1,38 @@ [ { "id": "replan-increment", - "prompt": "Two teams count arrivals on different sides of the same service step. What should change in the next increment?", + "prompt": "At the review, the groups get different queues from the same first slot. Which work should come before the planned request for arrival data?", "options": [ { - "text": "Order detectors to get a larger set of arrival records.", - "feedback": "Additional records will still have two interpretations until the event order is agreed." + "text": "Try more arrival patterns with each group's interpretation.", + "feedback": "A difference between the groups' traces could come from the arrival pattern or from their counting convention. Adding patterns would leave that ambiguity in place." }, { - "text": "Agree on event order, record the decision and rerun the comparison.", - "feedback": "The disagreement affects the meaning of the result. A small, reviewable rerun makes the investigation useful again.", + "text": "Check one slot together against the recorded rule, then rerun both existing patterns.", + "feedback": "This revises the next increment and its backlog. Once both groups add arrivals before service and reproduce the same traces, they can return to deciding which arrival data to request.", "correct": true }, { - "text": "Replace the long-term aim for the intersection.", - "feedback": "The ambiguity concerns an experiment. It provides grounds to revise the increment while the stakeholder aim still guides planning." + "text": "Ask a detector supplier which timing convention its equipment uses.", + "feedback": "A supplier can explain its records. The prototype already defines its own event order, and the teams need to apply it before deciding what equipment data would be useful." } ] }, { "id": "planning-horizon", - "prompt": "A team wants to keep its direction while learning whether the fixed-phase model is useful. Which entry belongs in its immediate backlog?", + "prompt": "The city now wants the next concept review to address pedestrian crossing opportunities. Which change best fits that priority?", "options": [ { - "text": "Improve how people move through the intersection.", - "feedback": "That describes a longer-term outcome. A backlog item identifies a concrete piece of work toward it." + "text": "Add more vehicle arrival patterns to the current backlog.", + "feedback": "Additional vehicle patterns could help with the queue question. To study crossings, the team needs to identify pedestrian movements and the vehicle movements they could conflict with." }, { - "text": "Set the full hardware procurement schedule.", - "feedback": "Procurement depends on choices that this investigation is meant to inform." + "text": "Replace the vision of easier movement and safe crossings.", + "feedback": "The vision already includes people crossing the road. The city's new priority changes which problem the team should investigate first." }, { - "text": "Write down how each slot treats arrivals and check one trace together.", - "feedback": "The task can be done and reviewed within the next increment. Its result gives the team grounds to keep or revise the plan.", + "text": "Revisit the vehicle-queue initiative and bring the movement-conflict study forward.", + "feedback": "The decision now calls for different evidence. Reviewing crossing movements with road users and operators serves the same long-term intent and gives the team a new first increment.", "correct": true } ] diff --git a/project/v3/learning/quizzes/eel-v3-ch04-engineering-knowledge.json b/project/v3/learning/quizzes/eel-v3-ch04-engineering-knowledge.json index 27a5c1e..098cd43 100644 --- a/project/v3/learning/quizzes/eel-v3-ch04-engineering-knowledge.json +++ b/project/v3/learning/quizzes/eel-v3-ch04-engineering-knowledge.json @@ -1,40 +1,59 @@ [ { "id": "follow-a-relation", - "prompt": "The phase-selection function may change. The source says the queue model represents that function. What should an engineer do with this link?", + "prompt": "Starting at the phase-selection function, the engineer follows an incoming ‘represents’ link back to INT-MOD-001. What belongs in the change review?", "options": [ { - "text": "Review the model assumptions that depend on phase selection.", - "feedback": "The directed link identifies a concrete model to inspect. The engineer can then establish and record the effect of the proposed change.", + "text": "Record the model as a candidate for review of its fixed phase sequence.", + "feedback": "E03 points from the model to the function it represents. Following that link backward identifies the model whose assumptions the reviewer should inspect.", "correct": true }, { - "text": "Mark the signal interface as failed.", - "feedback": "The link records what the model represents. A failure claim requires an observed result against a criterion." + "text": "Record a new link saying the function represents the model.", + "feedback": "The search began at the target of E03. Its recorded direction still runs from the model to the function." }, { - "text": "Update every diagram independently.", - "feedback": "The views draw on maintained definitions. Checking the shared definition first shows which views actually need updating." + "text": "Record a finding that the adaptive proposal invalidates the model.", + "feedback": "A finding of incompatibility requires comparing the proposed behavior with the model assumptions. E03 gives the engineer a reason to start that review." } ] }, { "id": "unresolved-target", - "prompt": "An assistant suggests an interface ID that is missing from the source graph. How should the engineer record it?", + "prompt": "The graph lists INT-IF-001 as a possible impact. A suggested second link names INT-IF-UNKNOWN. How should the engineer handle that second link?", "options": [ { - "text": "Connect it to the nearest-looking interface name.", - "feedback": "A similar label provides no evidence of identity. That guessed connection would mislead the next review." + "text": "Use INT-IF-001 as the target because its name is similar.", + "feedback": "E08 already identifies INT-IF-001. Resolving the second ID requires a source that establishes which interface it denotes." }, { - "text": "Remove the question because the graph has no edge.", - "feedback": "A missing edge can identify a gap in the recorded information. Other sources may still show an effect." + "text": "Mark the interface question as settled because no object has that ID.", + "feedback": "A failed lookup identifies a gap in the records. The interface owner may know which definition or correction is needed." }, { - "text": "Keep it as an unresolved review question and check its source.", - "feedback": "The uncertainty stays visible and reviewable. A verified identity can later support a recorded relationship.", + "text": "Keep the question open and ask for the defining source before adding the link.", + "feedback": "The source flags INT-IF-UNKNOWN as unresolved. When the interface owner identifies the target, the reviewer can decide whether to record the link.", "correct": true } ] + }, + { + "id": "proposed-check", + "prompt": "INT-TST-001 targets the rule against simultaneous greens. Which statement does that link support?", + "options": [ + { + "text": "The fixed-phase model passed the check in T1.", + "feedback": "A pass needs a recorded execution with the model revision, the criterion and the observed outcome. The link records only the check's purpose." + }, + { + "text": "The proposed check addresses the rule. Its outcome is still open.", + "feedback": "E06 records the target property and marks the check as proposed and unrun. A later result could be linked to the exact revision examined.", + "correct": true + }, + { + "text": "The check covers the behavior of the proposed adaptive controller.", + "feedback": "The target is one property. To claim coverage for another strategy, the reviewer would need its behavior definition and the conditions the check examines." + } + ] } ] diff --git a/project/v3/learning/quizzes/eel-v3-ch05-models-prototypes.json b/project/v3/learning/quizzes/eel-v3-ch05-models-prototypes.json index da1c6fe..24c06c2 100644 --- a/project/v3/learning/quizzes/eel-v3-ch05-models-prototypes.json +++ b/project/v3/learning/quizzes/eel-v3-ch05-models-prototypes.json @@ -1,39 +1,39 @@ [ { "id": "bounded-claim", - "prompt": "Two scenarios have the same four arrivals and fixed signal phases, yet finish with different queues. What accounts for the difference?", + "prompt": "Moving one north–south arrival in B from slot 3 to slot 2 changes the final queue from two vehicles to one. Which claim do the rows support?", "options": [ { - "text": "The model has selected a better controller for one scenario.", - "feedback": "Both scenarios use the same phase sequence. Look at when each vehicle arrives relative to a green slot." + "text": "The smaller queue came from an extra north–south green slot.", + "feedback": "Both runs use the same phases. Inspect slot 2 to see how the edited run uses the green already there." }, { - "text": "The timing of arrivals changes which vehicles can depart within the eight slots.", - "feedback": "The rule serves the active green group after arrivals join its queue. An arrival that misses that group’s green can still be waiting at the end.", + "text": "One vehicle could leave on the last north–south green because it arrived a slot earlier.", + "feedback": "In the edited run that vehicle arrives and leaves in slot 2. Only one north–south vehicle then joins the queue in slot 3, and it is still there after slot 8.", "correct": true }, { - "text": "The smaller final queue establishes a shorter average wait in city traffic.", - "feedback": "The trace counts vehicles remaining at one horizon. It contains neither a mean waiting-time measure nor observed city traffic." + "text": "The edit reduced the average wait by one slot per vehicle.", + "feedback": "The difference is one vehicle waiting at the horizon. Estimating an average wait would require following each vehicle, including the one still queued." } ] }, { "id": "capture-observation", - "prompt": "What should be saved so a colleague can use this experiment in the next investigation?", + "prompt": "A colleague wants to reproduce the edited B observation and investigate a second cycle. Which record gives them the provenance they need?", "options": [ { - "text": "The model revision, scenario edit, observation horizon, queue result and next question.", - "feedback": "These details connect the observation to the exact assumptions and inputs that produced it and make the follow-up reproducible.", + "text": "Link the experiment, model revision and original B, specify the move, give the queue in vehicles after service at slot 8, and label the second cycle as a proposed investigation.", + "feedback": "That record identifies the original inputs and rules, describes exactly how to replay the edit, and distinguishes the computed result from a question that remains open.", "correct": true }, { - "text": "Only the smallest queue shown by the experiment.", - "feedback": "A count on its own omits the arrival pattern, model revision and time at which it was taken." + "text": "Save the baseline trace and label its B result “one vehicle queued after slot 8.”", + "feedback": "The stored B baseline has two vehicles queued. A separate observation needs to identify the input edit that produced one." }, { - "text": "An instruction to use the simulated schedule for the real intersection.", - "feedback": "A source-linked observation supports the next investigation. Choosing an operational schedule requires evidence about the real system." + "text": "Save the two final counts under T1 and use them as the expected second-cycle results.", + "feedback": "Both counts belong to the eight-slot window. A second cycle needs a defined arrival pattern, a longer horizon and its own result." } ] } diff --git a/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md b/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md index 33e6945..259578f 100644 --- a/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md +++ b/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md @@ -17,29 +17,31 @@ When two disciplines discover an interface disagreement during integration, they Building that check improves how the organization engineers its products. Reusing it on the next variant helps the team support more designs and gives new colleagues a way to understand the interface. The investment pays off when it improves a product decision or reduces avoidable rework. -## Expectations are changing + -Competitive pressure can make shorter development cycles, higher quality and frequent improvements valuable. A team that produces changes faster than it can integrate or test them moves work into a queue. A leader can ask where an earlier check would actually change a decision. +## Where earlier feedback improves delivery -A web service may deploy repeatedly, embedded software may need controlled integration, and a physical design may depend on suppliers and test equipment. Each team can shorten the path from a question to reliable feedback within its own delivery constraints. +For a business competing on the quality and frequency of product improvements, the delivery objective is to get a useful change into service sooner, with evidence that it works. A team that produces changes faster than it can integrate or test them moves work into a queue. + +In a software-intensive program, an interface mismatch found at the end of that queue can send several teams back to trace dependencies, revise designs and repeat tests. That rework can take more engineering time than the original change, and a missed integration date can delay the release. + +A web service may deploy repeatedly, embedded software may need controlled integration, and a physical design may depend on an expensive component order or a scarce slot on a test rig. Each team can shorten the path from a question to reliable feedback within its own delivery constraints. ## Software-inspired engineering moves beyond software -Software development has pioneered practices that other disciplines can adapt: smaller increments, explicit configurations, automated checks, continuous integration, versioned information, simulation and feedback from operation. Their contribution is not that an electrical or mechanical product becomes software. It is that more of the *engineering work* can become connected, reviewable and progressively testable. +Software development offers practices that other disciplines can adapt, including smaller increments, explicit configurations, versioned information and continuous integration. For multidisciplinary systems, the challenge is to connect these practices without assuming that every discipline has the same cycle time. -A model of a physical function can be executed before hardware is ready. An interface contract can be checked when either side changes. An engineering decision can retain its rationale and applicable evidence. Automated checks can detect regressions early, while system-level validation still determines whether the complete product meets its intended use. +A model of a physical function can be executed before hardware is ready. An interface contract can be checked when either side changes. If several product variants use the same module, recording which revision each uses tells the integration lead which teams a change affects. -For multidisciplinary systems, the challenge is to connect these practices without assuming that every discipline has the same cycle time. Early model learning can prevent expensive physical changes; physical experiments can reveal assumptions the model cannot represent. +An engineering decision can retain its rationale and applicable evidence. A new engineer joining the next variant can read why the team chose an interface limit and rerun its check without tracking down the original designer. Sharing modules, decisions and checks across compatible designs gives the business a way to support more variants without a proportional increase in engineering staff. ## AI expands what engineering teams can do -AI assistance can help teams explore alternatives, work with large collections of engineering information, draft and review technical artifacts, write software, prepare experiments and interpret results. Tool-using AI agents may also carry out bounded tasks: propose a change, invoke tools, inspect feedback and revise the work before handing it back for review. +AI assistance can help teams explore alternatives, draft and review technical artifacts, prepare experiments and interpret results. An engineer might describe an interface rule in plain language and give a tool-using AI agent a bounded task. The agent could draft a small model of the rule, run the agreed checks and revise it after a failure before handing it back for review. -These capabilities matter most when the environment provides meaningful, sufficiently independent checks. An agent iterating against weak or self-modified acceptance criteria can produce a convincing-looking but invalid result. Engineering judgment is still needed to set objectives, protect constraints, decide what evidence is credible and authorize consequential changes. +These capabilities matter most when the environment provides meaningful, sufficiently independent checks. If the agent's language model confuses seconds with milliseconds, a test it writes from the same interpretation may agree with a faulty change. Engineering judgment is still needed to set objectives, protect constraints, decide what evidence is credible and authorize consequential changes. -**AI used to develop a product is distinct from AI built into that product.** A team may use agents to improve engineering workflows without deploying AI in the delivered system. Conversely, a product may use predictive or adaptive AI that requires its own safety, performance and validation work. - -AI is therefore a major accelerator and potentially an enabler of new ways of working—but it is not the original reason engineering needs to evolve. +Giving an agent access to current definitions, maintaining independent checks and reviewing exceptions all take engineering time. Those costs belong in the case for using AI in development, alongside any time saved on recurring investigations. An AI function built into the product would change its behavior in use and would need its own performance evidence. ## Two systems must evolve together @@ -47,43 +49,35 @@ Every engineering organization is developing two related systems. The **product system** includes software, electronics, physical components, interfaces, operators and the operating environment. It is judged by what it can actually do, under the conditions that matter. -The **engineering system** includes people, methods, engineering knowledge, executable models, development environments, automated tests, integration equipment, decision processes, supply-chain relationships and AI-enabled workflows. It is judged by how well it helps the organization make sound product decisions and deliver improvements. +The **engineering system** includes the people, methods, engineering knowledge, executable models, automated tests and integration equipment used to design, build and validate the product. It is judged by how well it helps the organization make sound product decisions and deliver improvements. -**“We build the machine that builds the machine.”** This is a reminder that engineering capability itself requires intentional design, investment, operation and improvement. It is not an argument for building a large new tool platform before solving a product problem. +A Word specification can explain an interface decision, an Excel workbook can hold its limits, and a specialist design tool can show how the circuit uses them. When those sources travel separately, reviewers have to establish which revisions belong together. The team can keep those tools, agree where to maintain a structured interface definition and connect it to the models and tests that use it. -The two systems form a feedback relationship. A difficult product question may reveal the need for a new simulation or test fixture. A better engineering capability may make previously expensive options practical to investigate. Improvements to the engineering system should be justified by the product decisions and delivery outcomes they enable. +**“We build the machine that builds the machine.”** A difficult product question may reveal the need for a new simulation or test fixture. A better engineering capability may make previously expensive options practical to investigate. Managers can fund a check that removes a recurring delay and keep a handoff manual when the cost of automating it outweighs the benefit. > **Concept** > -> Changing a product interface changes what teams must deliver. Adding a repeatable compatibility check changes how teams can investigate that interface on this product and the next. +> Changing a module to report elapsed time in milliseconds changes the product. A repeatable check that compares the units declared by sender and receiver improves the engineering system. Teams can run it on the next variant before the hardware is ready. ## From document-driven handoffs to executable feedback -Documents and reviews remain useful; the problem arises when engineering knowledge is disconnected from the models, tests and decisions that give it meaning. - -In this lab, **executable engineering** describes an approach in which suitable models, analyses, checks and workflow steps can be run, evaluated and improved. A requirements definition may connect to a model, an experiment, a verified interface and evidence of system behavior. That does not mean every engineering activity becomes executable. Stakeholder negotiation, model validity, physical integration, safety judgment and release authority still require suitable human and real-world processes. +In this lab, **executable engineering** describes an approach in which suitable models, analyses, checks and workflow steps can be run, evaluated and improved. A passing test is evidence about a stated check under specific conditions. Two connected feedback loops guide what the team does with that evidence. -Two connected feedback loops are especially important: - -- **Fast executable feedback:** make a bounded change, run a model or test, inspect a failure and refine the work. Automation and agents can accelerate this loop when its checks are dependable. -- **Whole-product feedback:** ask whether the model, checks and change are appropriate for the actual intended use. Bring in physical evidence, integration results, operational constraints and authorized decisions. - -A passing test is evidence about a stated check under specific conditions. It is not automatically evidence that the product is fit for use. +- With **fast executable feedback**, engineers make a bounded change, run a model or test, inspect a failure and refine the work. If the units agree, the team can choose those revisions for integration. +- With **whole-product feedback**, engineers ask whether the integrated product meets its intended use. Even when the declared units agree, a physical test may reveal that the receiver gets a value too late under load. Reviewing the consequence with an operator can change both the interface definition and the next automated check. ## What this means for engineering leadership -The transformation changes the questions leaders should ask. Beyond measuring tasks completed or documents produced, they should examine what the teams can now demonstrate, which major uncertainties have been resolved, how quality is established and how often useful improvements can be delivered responsibly. - -That means investing selectively in shared engineering information, simulation and test capability, integration practices, multidisciplinary interfaces and the skills to direct and evaluate AI-supported work. It also means allowing exploration where the design is uncertain and making stronger commitments when the evidence supports them. +A useful investment gives teams an earlier signal about a decision that costs time or money to reverse. Before funding the interface check, a leader can look at recent integrations. When did each mismatch surface, how many teams had to revisit their work, and what delivery commitment was affected? Those cases give the team a baseline for judging whether earlier detection on subsequent changes saves enough rework to justify maintaining the check. -A useful investment gives teams an earlier signal about a decision that costs time or money to reverse. Leaders can judge its value by looking at which changes a team caught earlier, how much rework it avoided and where uncertainty still affects delivery. +If mismatches now surface early but the release still depends on timing under load, the next investment might be time on the test rig. A team might use a risk burndown chart to track its estimated exposure over successive integrations. A leader can then see which risks have fallen and which still affect a delivery commitment. > **Explore further** > -> [Choosing an engineering capability when several investments compete](15-choosing-the-next-engineering-capability.md#decide-from-what-is-blocking-the-product) develops this decision later in the course. +> In Chapter 15, [compare four investments against the product decision they would support](15-choosing-the-next-engineering-capability.md#decide-from-what-is-blocking-the-product). ## From the paradigm to a working example -A city wants people to move through a busy intersection more easily. Before choosing a controller, its engineers need to decide whose experience to improve and what they can learn first. [Chapter 2 introduces the intersection and its stakeholders](02-introducing-the-engineering-challenge.md). +A fictional city brings a question to the [intersection workshop in Chapter 2](02-introducing-the-engineering-challenge.md). How could we improve traffic flow at our busy four-way intersection while keeping crossings safe and the signals easy to understand and maintain? diff --git a/project/v3/manuscripts/revised/02-introducing-the-engineering-challenge.md b/project/v3/manuscripts/revised/02-introducing-the-engineering-challenge.md index f72cb31..804564b 100644 --- a/project/v3/manuscripts/revised/02-introducing-the-engineering-challenge.md +++ b/project/v3/manuscripts/revised/02-introducing-the-engineering-challenge.md @@ -2,82 +2,59 @@ id: eel-v3-ch02-intersection-challenge chapter: 2 part: "I — Frame the Work" -title: "Introducing the Engineering Challenge" +title: "Setting Up the Intersection Workshop" status: draft publication: review-in-pr reference_case: four-way-traffic-intersection teaching_fixture: "T1 — fictional teaching case, not a qualified controller" --- -# Introducing the Engineering Challenge + -*One familiar system. Many engineering questions.* +# Setting Up the Intersection Workshop -A city wants to improve how people move through a busy four-way intersection. Drivers report queues when vehicles arrive in bursts. People walking across the road want safe, understandable crossing opportunities. Maintenance staff want to know how to diagnose a fault when a controller and a signal indication disagree. Operations staff must keep the intersection usable during changes. +Imagine joining a city workshop about a busy four-way intersection. Drivers describe queues that build when cars arrive in bursts. Someone who walks there every day asks whether clearing those queues faster would make the street harder to cross. What would you want to learn before changing the signals? -An adaptive controller sounds appealing. New detectors might help. Perhaps the existing signal sequence could be improved. But the city has not yet established which problem is most important, which movements must be protected or what evidence would justify a change. +
-We will return to this four-way intersection throughout the course. Here it gives us a first question to investigate before the team selects a controller. +![Three cars queue on the near approach to a four-way intersection. A pedestrian crosses the street on the left while others wait at the curb beside traffic lights.](../../illustrations/four-way-intersection.jpg) + +
If the lead car turns left, its driver and the person on the crosswalk need to know whose turn it is to move.
+
+ +This fictional intersection is our shared case for the course. We will return to it as the work moves from a first model to deciding what evidence the city would need before making a change at the roadside. > **Explore further** > -> The [intersection case description](../../REFERENCE-INTERSECTION.md#the-shared-engineering-question) explains the city's question. The [case source collection](../../case-study/README.md) contains the assumptions, inputs and observations used later. +> The [intersection scope](../../REFERENCE-INTERSECTION.md#the-shared-engineering-question) sets out the city's question and the people, movements and equipment it concerns. The [teaching sources](../../case-study/README.md) let you inspect the invented arrival patterns and follow the vehicle counts recorded at each model step. ## Start with engineering intent -The city's engineering intent is to improve traffic flow while protecting people crossing the road. Different stakeholders experience the intersection differently. Their concerns help the team decide what to observe and which requirements it can define with confidence. +The city's **engineering intent** is to improve traffic flow while protecting people crossing the road. A different signal sequence, new detectors and adaptive control are all possible ways to pursue that intent. To understand what a change would have to achieve, listen to the questions around the table. -| Stakeholder | Example concern | Question that remains open | -| --- | --- | --- | -| Drivers | Long queues and unpredictable waiting | Which traffic conditions and outcomes matter? | -| Pedestrians | Safe and understandable crossing opportunities | Which movements, conflicts and timing constraints must be protected? | -| Operators | Predictable behavior and manageable changes | What conditions and procedures define acceptable operation? | -| Maintainers | Fault diagnosis and equipment state | How will commanded, acknowledged and observed states be distinguished? | -| Engineering team | A defensible concept and credible evidence | Which experiments can answer which product questions? | - -These concerns cannot be reduced to one queue metric. Optimizing an abstract model without defining crossing safety, interfaces and intended operation could make the wrong problem easier to solve. +| Who is at the workshop? | What do they need to know? | +| --- | --- | +| Drivers | How many cars are still waiting after a green light? | +| Pedestrians | When can I start across, and could a turning car cross my path? | +| Operators | How can we keep the intersection usable while a change is in progress? | +| Maintainers | If a signal looks wrong, can we tell what the controller requested and what the lamp actually showed? | > **Concept** > -> An intent sets a direction, such as improving pedestrian crossings. A requirement needs a criterion that people can check. Agreeing on whose crossing, under which conditions and what to measure gives the team a way to develop that criterion. - -## Establish a whole-system boundary +> For drivers, reducing queues is the **intent**. Their **question** is how many cars are still waiting after a burst has had a chance to clear. A future **requirement** could call for fewer vehicles left waiting than under an agreed reference sequence, given the same arrivals and counting period. The city would need to agree on representative conditions and a separate criterion for people crossing. -The conceptual product includes the control function, signal indications, relevant electrical and communication interfaces, physical installation, road users, maintenance, operating procedures and environmental conditions. Software is an important part, but not the complete system. +## A prototype for the first question -Our earliest executable model is deliberately smaller. It considers a **simplified fixed-phase signal sequence and invented vehicle arrivals**. It can help us reason about some queue behavior under stated rules. It cannot establish safe crossing times, real traffic performance, controller reliability, hardware timing or compliance with traffic regulations. +The drivers' accounts suggest a hypothesis about *when* cars arrive. Imagine that two patterns bring the same number of vehicles to each road over the same period. If the signals follow the same sequence, could the timing of the arrivals alone change how many vehicles are still waiting at the end? -An engineer can use a language model to sketch this small prototype from the signal sequence and the arrival rule, then check the result by tracing one time slot by hand. That makes an early assumption cheap to change while the team learns which details matter. +We can explore that question with a prototype small enough to follow on paper. Give north–south traffic one queue and east–west traffic another. Start both empty. At each model step, invented arrivals join their queue and the fixed signal phase determines whether one vehicle can leave. Record how many are still waiting after each step. -## The first learning question +An engineer who rarely writes simulations can describe those rules to an AI assistant and ask for a runnable draft. Following one vehicle through a step by hand gives the engineer a way to check the draft and correct a mistaken assumption. Keeping the rules and inputs together lets a colleague move a burst and run the comparison again. If the final count hides a queue that formed and cleared earlier, they can go back to the count for each step. -Imagine two scenarios with the same total number of arriving vehicles but different arrival patterns. Would a deliberately simplified fixed-phase model produce different queues at the end of the observation window? - -That is a suitable initial *learning question*, not a promise of improved traffic throughput. The team needs a defined phase sequence, a meaning for arrivals and departures, explicit event-order rules and traceable results. The answer may show something useful about the abstraction—or expose missing assumptions. - -We will not solve that question here. Later chapters will introduce the controlled engineering information, executable model and data needed to investigate it properly. +That prototype covers vehicle arrivals, signal phases and queues. On the street, the controller, its electrical connections and the signal heads must work together to show people when they may move. Can someone reach the far curb before a turning car is allowed across the same path? To investigate that, the team needs the crossing distance, the indications people actually see and observations of how people use the crossing. -## Two kinds of work follow from the same question - -**On the product side**, the team must define relevant road-user movements, intended behavior, interfaces and acceptable trade-offs. It must distinguish what is known from what is merely proposed. - -**On the engineering side**, the team needs ways to manage shared definitions, run bounded experiments, inspect outputs, test changes and retain decisions. A simple script may be sufficient for one experiment; a reusable test environment may be worth developing when the same checks recur. - -This is where the two-system idea from Chapter 1 becomes practical. The engineering environment should grow in response to an actual product need, and the improved environment should make subsequent product decisions more reliable. - -## How the example develops through the course - -We will use this same intersection from start to finish, with each chapter adding a distinct engineering concern: - -- **Planning and information:** choose the next uncertainty to investigate, then preserve definitions and relationships so disciplines share the same meaning. -- **Models, data and specifications:** make a bounded behavior executable, inspect what it reveals, and define a controlled next increment without pretending to know every answer. -- **Agents and integration:** delegate suitable work with feedback and review, connect software to electrical and physical interfaces, and discover discrepancies that a pure software model might miss. -- **Evidence, authority and evolution:** establish what has been verified and validated, determine what may responsibly be released, and decide which engineering capability is worth improving next. - -The storyline is educational rather than a prescribed project sequence. Real teams must consider integration, verification, safety, security and operational needs from the beginning, even though later chapters examine those topics in greater depth. - -## From the first question to the next experiment +## Choosing the first increment -The team now has an intent, a question about arrival patterns and a small prototype it could build. It must decide what to investigate first and what finding would change that choice. [Chapter 3 develops a plan around that uncertainty](03-planning-under-uncertainty.md). +The team could spend its first increment comparing arrival patterns or mapping where turning vehicles and pedestrians share a path. Which uncertainty matters more to the city's next decision? Carry your choice into [Chapter 3, Planning Under Uncertainty](03-planning-under-uncertainty.md). diff --git a/project/v3/manuscripts/revised/03-planning-under-uncertainty.md b/project/v3/manuscripts/revised/03-planning-under-uncertainty.md index 11a29f6..72157d9 100644 --- a/project/v3/manuscripts/revised/03-planning-under-uncertainty.md +++ b/project/v3/manuscripts/revised/03-planning-under-uncertainty.md @@ -11,111 +11,73 @@ teaching_fixture: "T1 — fictional planning decision" # Planning Under Uncertainty -*What should change in the plan when an experiment changes what the team knows?* +*How can a first prototype change what the team works on next?* -The city wants to improve its intersection. The team has a question about arrivals and an idea for a small prototype. Signal timing, new detectors and adaptive control remain possible directions. Choosing the next investigation lets the team make progress while those choices are open. +The city wants traffic to flow more easily through its four-way intersection while people can cross safely. The workshop team can start exploring that intent while the control requirements are still taking shape. Its proposed prototype follows a fixed signal cycle. If the same number of vehicles arrive during that cycle, does the queue at the end depend on when they arrive? -A useful first increment produces something colleagues can examine together. Its result can change the next experiment, reveal a dependency or justify a delivery commitment. The plan needs room for each of those outcomes. +The answer would shape the team's next request to operations staff. Counts for a whole period might be easy to supply. If arrival timing matters, the engineers have a reason to seek records they can match to the signal phases. -## Begin with the next decision, not a backlog + -The initial purpose is broader than any one solution: improve useful intersection operation without losing sight of competing road-user, physical and operational needs. +## Choose the next investigation -Imagine the team has capacity for **one substantial investigation**. It has three options. +Before the next concept review, the team has time for one substantial investigation. Each option would prepare it for a different decision. -| Candidate investigation | What is uncertain? | Smallest useful result | Dependency or stopping condition | -|---|---|---|---| -| **A. Define movement conflicts** | Which intended movements and users must never receive incompatible indications? | A reviewed conceptual movement/constraint map | If the intended scope is unclear, clarify stakeholders and system boundary first | -| **B. Compare arrival patterns** | Does the proposed fixed-phase abstraction respond differently to invented arrival clustering? | A transparent model and reproducible trace | Requires an agreed simplified function and input meaning; stop if the model cannot answer the question | -| **C. Commit to new detection equipment** | Will hardware provide the information and behavior needed? | An interface and feasibility hypothesis before procurement | Premature until the intended sensing, command and installation needs are understood | +| Investigation | What the team could bring to the review | Decision it would inform | +| --- | --- | --- | +| Map conflicting movements | A sketch of vehicle and pedestrian movements, reviewed with operators and road users | Which movements would a proposed change to the signal sequence need to protect? | +| Compare arrival patterns | A prototype that traces two invented patterns through the same fixed phases | How much detail about arrivals does the team need to study queues? | +| Investigate detector feasibility | An account of what a candidate detector can report and what installation would require | Once the team knows what it needs to observe, could this equipment supply it? | -Option C is not a bad idea. It is simply too early to call it a responsible product commitment in this hypothetical situation. Option A helps define what the system must consider. A bounded part of option B may then test a specific modeling hypothesis. - -The team proposes to clarify the movement conflicts and investigate a small fixed-phase model. It can revisit detector procurement and adaptive control once it knows what those options would need to achieve. +The team chooses the arrival comparison. The north–south and east–west vehicle groups in the workshop sketch are enough to start. Fixed phases give the engineers a reference for a later proposal, such as a controller that adjusts its phases in response to arrivals. Mapping conflicts takes priority before a change to which movements can proceed together. ## Vision, initiative, increment and backlog are different things -Planning language helps only when each term carries a useful distinction. - -A **vision** describes the intended longer-term outcome for users. A **theme** groups a direction of effort, such as improving confidence in traffic-control alternatives. An **initiative** identifies a problem worth addressing. A **roadmap** makes the intended progression and key dependencies visible. A **delivery increment** is a bounded capability or result that can be evaluated; a **backlog** holds the more detailed work needed to create it. - -None of these labels makes uncertainty disappear. - -The initiative might be “understand whether different fixed-time concepts warrant further study.” Its first increment could be **a controlled, inspectable model comparison**. That increment does not promise reduced real-world traffic delay. - -A different initiative might concern physical installation feasibility. Its first result could be a reviewed interface assumption, not a delivered piece of equipment. - -The question is whether each activity earns the commitment implied by its position on the roadmap. - -## Exploration and delivery can run together - -It is tempting to picture a sequence in which all questions are resolved, then every requirement is specified, then the product is implemented. In an unfamiliar engineering problem, that is often neither practical nor desirable. - -A team may investigate a new control concept while implementing a well-understood reporting improvement. It may build an emulator for a risky interface while another group prepares a bounded software change. Exploration and controlled delivery are **concurrent loops**, linked by evidence and decisions. - -This is not a license for unrecorded improvisation. It is a reason to distinguish what is **candidate**, **controlled**, **observed** and **approved** at each point. - -For our intersection, the fixed-phase model is an exploratory learning baseline. It can help the team ask a sharper question without becoming an approved traffic-control architecture. +The **vision** describes the lasting outcome the city wants for the people who use the intersection. A **theme**, such as improving signal operation, groups related efforts toward that outcome. Within it, an **initiative** focuses on a problem worth sustained work. The vehicle-queue initiative asks under what arrival conditions a fixed sequence merits further study. -## Two roadmaps should influence each other +The **roadmap** shows how one decision depends on another. First the engineers plan to compare the two arrival patterns. If they can explain the traces at the review, their next increment will be to draw up that request for arrival data with operations staff. A detector study moves up the roadmap if the information they need is missing. -A product question may require a new engineering capability before it can be answered. +An **increment** is a piece of work with a result the team can evaluate. The first delivers the prototype and its two queue traces. The **backlog** orders the work for this and later increments. Entering the two patterns and tracing the queues over eight abstract time slots are tasks for this review. Further out, uncertainty is expected. A question about what a detector might need to sense is enough to keep that option on the roadmap. -Consider the selected model investigation. The **product-side** question concerns how a control concept behaves with different arrivals. The **engineering-environment** work is to maintain a simple source definition, construct valid input scenarios, compute reproducible outputs and review what those outputs mean. - -Those tasks deserve planning attention, but they are not products for their own sake. - -The team should ask whether a new fixture, an automated check or a source relation will support one investigation or a broad set of recurring questions. A lightweight script may be enough for one study. A reusable integration test may be justified when similar changes occur frequently or have serious consequences. - -“We build the machine that builds the machine” becomes a planning discipline when the team explicitly chooses **which engineering capability is worth investing in now**. + ## Plan for more than software -The software and modeling team may iterate on a candidate behavior quickly. New sensors or electrical adapters may need supplier interface agreements, physical samples and installation considerations. Operational evaluation depends on users, conditions and evidence that a simple model cannot supply. + -A useful roadmap displays those different dependencies without pretending they share one cadence. It also reveals when an early model result can change a costly later commitment. +The product roadmap leaves the choice of controller open, but the team can commit to delivering a trace for the review. Its engineering work depends on how often it expects to run that comparison. For one study, two colleagues might check a short trace by hand. If several designs will use the same model, a check that reruns a known input after each change may be worth building. The [case source collection](../../case-study/README.md) includes inputs and a reference trace for that purpose. -The team should not create fictitious durations to make the roadmap appear precise. It can still identify critical dependencies, which unknowns must be answered first and which commitments would be expensive to reverse. +The modelers can try a change as soon as the inputs are ready. Assessing a new detector also depends on a supplier's interface definition and access to a sample. An installation trial would need cabinet access and a work window agreed with operators. Electrical and operations staff can identify those dependencies on the roadmap now, then schedule the physical work if the team takes the detector option forward. ## Define a stopping and replanning rule -A decision to explore is more useful when everyone knows what would make the team change course. - -For the fixed-phase comparison, the question is narrow: *Can the same invented vehicle totals produce different end-of-window queues when arrival placement changes?* - -If the team cannot clearly define the arrival units, event order or model scope, it should **stop interpreting results** and repair the source definition before extending the experiment. +Before the comparison, the groups agree that if they cannot reproduce one slot by hand from the same inputs, they will pause before interpreting the full traces. Otherwise, a difference caused by how they counted could look like an effect of the arrival pattern. -If the comparison is reproducible but does not address operational needs, the next action is not necessarily to build an adaptive controller. It may be to improve data, revisit stakeholder criteria or choose a different type of experiment. - -A failed or inconclusive exploration can be progress when it reveals what is not yet fit for decision. - -The plan should therefore track both completed work and **knowledge gained, remaining uncertainties, decision owners and triggers for change**. - -Suppose one team counts arriving vehicles just before the signal serves the queue and another counts them just after. Their results can differ even when their input files match. The immediate task is to agree on event order and rerun a small comparison. +Suppose this happens at the review. In the first slot of the staggered pattern, the north–south queue starts empty. The signal is green for that group and one vehicle arrives. The modelers add the vehicle before serving the queue, so it leaves on green. In the operations group's sketch, service comes first. The group serves an empty queue, adds the arrival and records one vehicle waiting. What would you schedule ahead of the planned data request? Which level of the plan would that change? > **Explore further** > -> The [model input and event-order rule](../../case-study/model-inputs-v1.json) show where the two teams can check which convention applies. +> In each slot the model adds arrivals, serves at most one vehicle from the green group and records the remaining queues. Check the first slot of scenario A against the [event-order rule and scenario inputs](../../case-study/model-inputs-v1.json). ## Keep a small decision record -The team records its decision while the assumptions are fresh. +The systems lead records why the next increment has changed and what would make the team ready to move on. -**Decision:** Use a fixed-phase teaching model as an exploratory reference. -**Reason:** It makes one arrival-pattern question inspectable with a limited, understandable source set. -**Not decided:** Adaptive control, real signal timing, detector procurement, physical interface selection or operational readiness. -**Needed engineering capability:** Versioned model assumptions, scenario inputs and a transparent result trace. -**Review trigger:** A changed system boundary, invalid scenario data or findings that make the model unfit for the question. -**Decision status:** Provisional, for learning. +| Planning decision | Entry for the concept review | +| --- | --- | +| Provisional choice and reason | Keep fixed phases as the working baseline. The first-slot disagreement concerns when a vehicle can leave, and the prototype already defines that rule. | +| Revised increment | Postpone the request for arrival data. Deliver a comparison of the two existing patterns that both groups can reproduce. | +| First backlog items | Correct the operations sketch, check the first slot together and rerun both patterns using the recorded rule. | +| Review trigger | When the modeler and operations engineer can account for the same queues slot by slot, return to the data request. Ask which available records could place an arrival within a signal phase. | > **Concept** > -> Correcting the order of events changes the next increment and its backlog. If the city decides that pedestrian access is its principal concern, the team has a reason to revisit the initiative itself. - -The [case source collection](../../case-study/README.md) gives the investigation a common set of definitions to work from. +> The disagreement about one slot changes the increment and its backlog. If the city makes pedestrian crossings its immediate priority, the team would revisit the vehicle-queue initiative and bring the movement-conflict investigation forward. Both choices serve the city's long-term intent. -## Why the information must become connected + + +## From a planning decision to shared knowledge -The two teams have agreed when arrivals enter a queue. Where should they record that decision so that a model, a diagram and a later experiment all refer to the same rule? [Chapter 4 follows an engineering decision into its maintained sources](04-engineering-knowledge-as-code.md). +The decision record explains why the work changed. Where should the event-order rule live so both teams use the same version as the prototype evolves? [Chapter 4 shows how teams connect shared definitions to the models that use them](04-engineering-knowledge-as-code.md). diff --git a/project/v3/manuscripts/revised/04-engineering-knowledge-as-code.md b/project/v3/manuscripts/revised/04-engineering-knowledge-as-code.md index 37d739f..4fd6fbf 100644 --- a/project/v3/manuscripts/revised/04-engineering-knowledge-as-code.md +++ b/project/v3/manuscripts/revised/04-engineering-knowledge-as-code.md @@ -11,111 +11,87 @@ teaching_fixture: "T1 — synthetic editorial source" # Engineering Knowledge as Code -*What does a recorded engineering relationship actually let us conclude?* +*If the team changes how signal phases are selected, where should the review begin?* -A city wants to explore whether a four-way intersection could operate more effectively. The engineers have an intended outcome, a candidate signal-selection function, a simple interface idea and several unknowns. A proposed adaptive control strategy could change far more than the timing algorithm: it might affect what detector information is available, how signal commands are represented and which properties need checking. +The two teams designing the four-way intersection have agreed when an arriving vehicle joins a queue. In each slot, arrivals join first, up to one vehicle departs on green, and the model records the departures and remaining queues. Both teams can cite the `event_order` field in the [T1 model inputs](../../case-study/model-inputs-v1.json). -Systems engineers use model-based systems engineering (MBSE) and modeling languages such as SysML to explore functions, interfaces, behavior and requirements. A change to phase selection gives us a practical question to ask of those sources. What else should the engineer review? +Systems engineers explore what road users need, which movements may get green together and which part of a controller should select the next phase, all while the design is still open. In model-based systems engineering (MBSE), models help teams develop candidate requirements and compare ways of meeting them. Treating that knowledge as code extends the practice. Engineers can keep model definitions, assumptions and decisions under version control and review a change alongside the sources it affects. -A diagram of connected boxes might be a useful starting point. But the answer depends on what each box means, what each line asserts, and whether the information refers to the same revision of the concept. The useful capability is not drawing a network. It is maintaining engineering information that people and tools can inspect, question and revise. +An assistant powered by a large language model (LLM) gives engineers another way into those sources. A colleague considering adaptive signal selection can ask which assumptions the fixed-time design makes and where to find them. The response can point to a model to inspect and explain why it matters to the proposal. ## Documents, engineering information and views -Documents are convenient ways to communicate. They can explain a need, record a decision, or give an overview of a design. The difficulty appears when the same requirement, interface or assumption is copied into several independently maintained files. After a change, each copy may tell a different story. +Documents are convenient ways to communicate. They can explain a need, record a decision or give an overview of a design. The difficulty appears when the same requirement, interface or assumption is copied into several independently maintained files. After a change, each copy may tell a different story. -An **engineering information model** gives important concepts stable identities and defined meanings. For our small intersection case, we use candidate source objects with IDs rather than relying solely on a paragraph's wording. +An **engineering information model** gives important concepts stable identities and defined meanings. In the fictional intersection, a reviewer can refer to the same object by ID while the team is still working out the answers. -| Teaching record | Meaning in the fictional T1 concept | What it does not establish | +| Teaching record | Meaning in the T1 concept | A question it leaves open | |---|---|---| -| INT-NEED-001 | Intent to investigate more useful intersection operation | A settled operational performance target | -| INT-FUN-001 | Candidate function to select signal phases | A controller that has been built or qualified | -| INT-REQ-001 | Candidate rule against simultaneous NS/EW permissive greens | Safety in every real operating situation | -| INT-IF-001 | Proposed controller-side signal command interface | Compatibility with installed electronics | -| INT-MOD-001 | Simplified phase-state model | The behavior of a physical traffic signal | - -Each entry has a stable ID in the [intersection source records](../../case-study/source-graph-v1.json). Engineers can use the ID to find the same object in different views and check its meaning and status. - -A **view** is a purposeful representation of those sources. A functional diagram answers what the controller needs to do. An interface view asks which information crosses a system boundary. A requirements view asks which rules constrain behavior. A behavioral model explores change over time. - -The views may look quite different. They should not quietly create competing definitions of the same interface. +| INT-NEED-001 | Intent to investigate intersection flow | Which improvement matters most to road users? | +| INT-FUN-001 | Candidate function to select signal phases | How should it choose the next phase? | +| INT-REQ-001 | Candidate rule against simultaneous north-south and east-west permissive greens | How will the team check this property? | +| INT-IF-001 | Proposed controller-side signal command interface | How will the receiving equipment interpret a command? | +| INT-MOD-001 | Two-queue model with a fixed phase sequence | What happens to a vehicle arriving just after its green? | ## One source, several useful perspectives -Consider the candidate phase-selection function. +A **view** is a purposeful representation of those sources. Consider the candidate phase-selection function. A functional view might show inputs, decisions and commanded states. A structural view might show the controller and a signal-driving interface. A requirements view shows the rule on conflicting greens. A behavior view can show how one phase follows another. -A functional view might show inputs, decisions and commanded states. A structural view might show the controller and a signal-driving interface. A requirement view might show the no-conflicting-permissive rule. A behavior view might point to a phase state machine, which we will investigate in the next chapter. - -A SysML model can express structure, behavior and requirements. A team can select the parts of that model that answer a particular engineering question and maintain the definitions under version control. +A team using the Systems Modeling Language (SysML) can express those requirements, parts, interfaces and behaviors in one model. While exploring an adaptive alternative, an engineer could give an LLM the model definitions and ask it to sketch which detector inputs the controller would need. The interface owner can compare that sketch with the existing definitions and decide which proposed inputs belong in the model. The owner can check a drawing against the textual definition because both forms use the language defined in the [OMG SysML v2 specification](https://www.omg.org/spec/SysML/2.0). > **Concept** > -> The source gives the phase-selection function its identity. A functional view shows what that function does. A behavioral model can explore how its state changes over time. Each can refer to the same function. - -> **Explore further** -> -> The [OMG SysML v2 specification](https://www.omg.org/spec/SysML/2.0) defines the modeling language and its semantics. +> The T1 model-input file is the **source** for the order of the phases. The **model**, INT-MOD-001, uses that sequence to calculate what happens to the queues. A **view**, such as a table showing the phase in each slot, lets a colleague see when each group gets a green. ## Relationships need types, direction and a source -Our small teaching graph includes twelve objects and eight typed relationships. A few are enough to make the issue concrete: +Our small teaching graph includes twelve objects and eight typed relationships. Four of its links illustrate what a reviewer can learn about phase selection. | From | Recorded type | To | What a reader may infer | |---|---|---|---| -| INT-REQ-001 | constrains | INT-FUN-001 | The candidate function is described as subject to that model property | -| INT-MOD-001 | represents | INT-FUN-001 | The teaching model is intended to represent that function | -| INT-EXP-001 | examines_model | INT-MOD-001 | The defined experiment is intended to examine the teaching model | -| INT-TST-001 | check_targets | INT-REQ-001 | A *proposed check* addresses a property; **no passing result is asserted** | - -Each relationship records its direction and source revision. To find what was actually checked, follow the link to the relevant test and look for its execution result. - -This distinction becomes especially important with automated reasoning. A relationship saying that a test **targets** a requirement is not a result showing that the requirement **passed**. An arrow saying that a model **represents** a function does not tell us whether the model predicts real physical behavior. - -If a view hides those differences, it can make incomplete knowledge appear more complete than it is. - -## A change-impact question the graph can answer +| INT-REQ-001 | constrains | INT-FUN-001 | The candidate rule constrains phase selection. | +| INT-MOD-001 | represents | INT-FUN-001 | The teaching model is intended to represent that function. | +| INT-EXP-001 | examines_model | INT-MOD-001 | The arrival-pattern experiment names this model. | +| INT-TST-001 | check_targets | INT-REQ-001 | A proposed check would examine this property. | -Now imagine a request to investigate adaptive signal selection, recorded as **INT-CHG-001**. It is a proposed alternative, not an approved design decision. +Each relationship records its direction and source revision. The last link, E06, has the status `proposed_check_not_run` in T1. A result would identify the revision checked and say what happened when the check ran. -Which objects should the engineer examine first? - -The graph explicitly connects the simplified model to the phase-selection function. That gives the engineer a defensible starting point: **INT-MOD-001 is a model-review candidate** if the function changes. The proposed change also flags the controller interface as a possible impact. - -But a *possible impact* is not yet an established changed requirement, a broken interface or an evidence-based conclusion. Someone must investigate the connection and document what was found. - -There is a second, easily missed case. Suppose a proposed link points to **INT-IF-UNKNOWN**, which is not an object in the maintained source. A graph interface must show the unresolved reference. It must not draw a convincing-looking line to a similarly named node or conclude that the unrecognized target does not matter. +## Digital threads and knowledge graphs -Try the reverse question: if there is no direct edge from the proposed change to an operator procedure, have we shown the procedure is unaffected? +A **digital thread** connects relevant engineering information across the life of a system, from intent and architecture to implementation, verification and later change. A **knowledge graph** is one way to represent objects and their typed relationships so that those connections can be inspected or queried. -No. A missing recorded relationship is not proof of independence. It may reveal an information gap. +An engineer might ask whether the city has chosen fixed-time control. An assistant can retrieve decision INT-DEC-001, which identifies fixed timing as the provisional teaching baseline. The model inputs give the actual phase sequence. Reading the two together tells the engineer what the team chose to study and which behavior the choice applies to. -## Digital threads and knowledge graphs +## Greenfield and brownfield need different questions -A **digital thread** connects relevant engineering information across the life of a system: intent, definition, architecture, implementation, verification and later change. It becomes useful when an engineer can follow a particular question to the sources and results that bear on it. +At the beginning of a new project, much engineering information is provisional. Engineers learn which functions, interfaces and constraints are worth developing further. The T1 records are a small example of that **greenfield** situation. -A **knowledge graph** is one way to represent objects and their typed relationships so that those connections can be inspected or queried. +When changing an established configuration, the team must identify what is actually present, which revision was tested and whether older evidence still applies. That is the **brownfield** impact question. An interface with the same name may have different semantics after a supplier change. If the graph has no link to the operator's procedure, its owner can help determine whether the changed meaning affects it. -The two ideas are related but not interchangeable. A graph visualization is not the entire digital thread, and a list of traceability links is not automatically sufficient for engineering reasoning. We need object identity, revision, relation meaning, source provenance and a way to distinguish current information from an unselected proposal. +## A change-impact question the graph can answer -The [intersection source graph](../../case-study/source-graph-v1.json) records the direction, meaning and revision of each link. Looking up an edge there gives reviewers a way to check a diagram or an assistant's suggestion. +Consider INT-CHG-001, the proposal to investigate adaptive signal selection. An engineer gives an LLM the T1 graph and asks, “If phase selection changes, which model and interface should we revisit? Identify the links that support your answer.” Suppose the assistant suggests, “Review the queue model and change the controller's command interface.” -## Greenfield and brownfield need different questions +The engineer follows link E07 from INT-CHG-001 through `may_affect` to the phase-selection function, INT-FUN-001. To find a model of that function, she looks for an **incoming** `represents` link. The recorded T1 link, E03, reads **INT-MOD-001 → represents → INT-FUN-001**. Following it back from its target identifies the model. The engineer opens its T1 inputs and finds the assumption worth examining. The phases follow a fixed sequence even when arrivals change. -At the beginning of a new project, much engineering information is provisional. Engineers learn which functions, interfaces and constraints are worth developing further. The T1 records are a small example of that **greenfield** situation. +E08 also records `may_affect`, this time from the change to INT-IF-001. Both E07 and E08 have the status `inferred_review_candidate`. The engineer turns “change the interface” into a question for its owner. Could the controller select a different phase using the commands the interface already defines? -Later, when a team is changing an established configuration, it must identify what is actually present, which revision was tested, who owns each source and whether older evidence still applies. That is the **brownfield** impact question. +The source also includes a suggested link to INT-IF-UNKNOWN. Its target has no matching object. The reviewer rejects the link and keeps a question open for the interface owner. Which source, if any, identifies the intended target? -A stable identifier helps both situations, but it is never a substitute for knowing the revision and context. An interface with the same name may have different semantics after a supplier change. We will return to exactly that problem when the course reaches physical integration. +> **Explore further** +> +> The [T1 typed source graph](../../case-study/source-graph-v1.json) lists the endpoints and status of E03, E07 and E08. Its `interpretation.supported` entry preserves the conclusion that the model is a review candidate. -## What agents can use—and what still needs judgment +## What the reviewer records -Consider a language-model assistant helping an engineer review the proposed change to phase selection. A plausible suggestion is “review the queue model and the signal command interface.” The engineer can check each part against the [maintained relationship records](../../case-study/source-graph-v1.json). +The model and interface owners can pick up the work from a short, versioned note kept with the proposal. -The model record `INT-MOD-001` has a `represents` link to the phase-selection function `INT-FUN-001`. That gives the engineer a reason to inspect the model. The change record identifies the interface as a possible impact. Establishing what changes there requires a separate investigation. +> **Review note for INT-CHG-001, revision T1.** The model INT-MOD-001 is a review candidate (E07, E03). Ask its owner to examine the fixed phase sequence. The interface owner should check whether any command in INT-IF-001 needs to change (E08). INT-IF-UNKNOWN remains unresolved. -Before review, the suggestion is a list in a conversation. After review, the engineering note can say “Review the phase-selection assumptions in INT-MOD-001, revision T1, and investigate the controller interface separately.” A colleague can trace both statements back to their sources. +When an owner responds, the reviewer can attach the finding to the model or interface revision examined. An assistant can locate diagrams and reports that cite a changed definition and propose updates to their links. Their authors can check the resulting views against the revised source. ## From connected knowledge to a useful experiment -The review has identified a model and the function it represents. How will its queues respond if one arrival moves to a different part of the signal cycle? [Chapter 5 runs that experiment](05-learning-through-models-and-prototypes.md). +The model reviewer can start by examining the fixed-time baseline. Experiment INT-EXP-001 uses INT-MOD-001 with four synthetic arrivals per scenario. What happens to the final queue if one north-south arrival in scenario B moves from slot 3 to slot 2? [Chapter 5 runs that comparison and records the observation](05-learning-through-models-and-prototypes.md). diff --git a/project/v3/manuscripts/revised/05-learning-through-models-and-prototypes.md b/project/v3/manuscripts/revised/05-learning-through-models-and-prototypes.md index b369b7e..6cc9173 100644 --- a/project/v3/manuscripts/revised/05-learning-through-models-and-prototypes.md +++ b/project/v3/manuscripts/revised/05-learning-through-models-and-prototypes.md @@ -11,136 +11,90 @@ teaching_fixture: "T1 — synthetic editorial inputs and calculated trace" # Learning Through Models and Prototypes -*How much can a simple model teach us before we commit to a design?* +*Four vehicles arrive at a four-way intersection. If the lights follow the same sequence, can moving one arrival leave fewer vehicles waiting at the end?* -An engineer looking at our fictional four-way intersection might propose a more sophisticated signal controller to reduce queues. Another might suggest observing arrival patterns first. Both ideas could be reasonable. Neither can be evaluated merely by drawing the controller's intended states. - -Models help teams answer questions before committing to an expensive physical configuration. But useful engineering does not begin by choosing the most impressive model. It begins by identifying which uncertainty needs to be reduced, then choosing the simplest investigation that can address it. - -For now we will study a much smaller question: **with the same fixed signal sequence and the same total arrivals, can changing the arrival pattern leave a different number of vehicles waiting?** +The city wants traffic to flow while people can cross safely. In the Chapter 2 workshop, the team asked how queues would change if vehicles arrived at different times under fixed signal phases. Chapter 3 exposed a disagreement that could spoil the comparison. When one vehicle arrives at an empty queue on green, can it leave in that same slot? The team agreed to add arrivals before serving the queue. We can now turn that decision into a working prototype. [Intersection workshop](02-introducing-the-engineering-challenge.md) · [Planning under uncertainty](03-planning-under-uncertainty.md). ## Different questions demand different models -Our structured information from Chapter 4 identifies a candidate phase-selection function, a proposed conflict property and a teaching model. Those objects tell us what the team intends to study, but not the behavior of the actual system. +In Chapter 4, an engineer reviewed the proposed adaptive strategy `INT-CHG-001`. It could affect the phase-selection function, `INT-FUN-001`. The two-queue model `INT-MOD-001` *represents* that function, so the engineer selected it for review. The graph also says which experiment examines the model and which data it uses. Its separate check for conflicting greens is still proposed. [Chapter 4 review](04-engineering-knowledge-as-code.md) · [T1 source relationships](../../case-study/source-graph-v1.json). -Different representations can help with different questions. A functional diagram explains inputs and responsibilities. A state machine can define which abstract phase follows which. A queue calculation can represent what happens when invented vehicles arrive while one direction is allowed to depart. A bench test could later investigate a particular controller–adapter interface. A physical prototype or installation observation would be needed for different kinds of real-world questions. - -No one method is universally cheaper or better. For a question about a short queue comparison under an invented phase schedule, the bounded calculation below is sufficient. For an electrical acknowledgment, it would not be. +A Word document can explain the event-order decision, a spreadsheet can hold the counts, and a modeling tool can show the phase sequence. When people maintain them independently, someone has to reconcile the three before changing the calculation. Here the engineer can give a large language model (LLM) assistant those records together. A colleague reviewing its draft can go straight to the rule and the revision it should implement. A state diagram would show which light comes next. To answer the workshop question, the prototype also needs to keep count of who is waiting. ## Define the experiment before interpreting its output -The [T1 model input](../../case-study/model-inputs-v1.json) uses two abstract vehicle groups, north–south (NS) and east–west (EW). Both queues start empty. +The arrival-pattern experiment, `INT-EXP-001`, uses the invented arrivals in `INT-DAT-001` and model `INT-MOD-001`, revision **T1**. Both the north–south (NS) and east–west (EW) queues start empty. The model covers eight ordered slots with no assigned duration in seconds. On green, at most one vehicle from that group can leave. During amber and all-red both groups wait. The schedule stays fixed throughout the comparison. -The experiment has **eight ordered slots**. A slot is **not a second** and carries no calibrated physical duration. The phase schedule is fixed: +> **Concept** +> +> Read a queue count as a snapshot *after* arrivals and service in that slot. A count of zero can mean that a vehicle came and went in the same slot. -| Slot | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -|---:|---|---|---|---|---|---|---|---| -| Phase | NS green | NS green | NS amber | All-red | EW green | EW green | EW amber | All-red | + + -In each slot, new vehicles first join the corresponding queue. During an NS-green slot, at most one NS vehicle can depart; during an EW-green slot, at most one EW vehicle can depart. No one departs during amber or all-red. We record both remaining queues **after** that slot's arrivals and departures. +## Turn the agreed rule into a queue update -To sketch an executable version, an engineer can give a language-model assistant the phase sequence, the service capacities and one row of arrivals. Consider a draft that serves the queue before adding the vehicles that just arrived. An engineer can check it against the first slot of scenario A by hand. The north–south vehicle arrives on green and should depart in that slot. Putting arrivals first fixes the discrepancy. The full baseline traces then give the team sixteen rows against which to check the implementation. +In this worked example, the engineer gives an LLM assistant T1’s phase capacities, event-order rule and the first row of scenario A and asks, “Draft one slot of the model. Return departures and the queue remaining for each direction.” A plausible draft limits departures to the vehicles waiting *at the start* of the slot, then adds new arrivals. -The model deliberately excludes turning movements, pedestrians, cycling, failures, real signal timing and driver behavior. Those omissions matter for real engineering, but they do not prevent a carefully bounded calculation from teaching a specific relationship. +The engineer checks A’s first NS green by hand. Zero vehicles are waiting, one arrives and there is capacity for one departure. The draft serves zero and leaves one. The agreed rule gives **0 waiting + 1 arrival − 1 departure = 0 waiting**. The engineer asks for one correction. Compute the available vehicles as the previous queue plus arrivals, then serve the smaller of that number and the phase capacity. This gives one departure and an empty queue, exactly what the first reference row records. -The fixed phases are also important: **the controller does not react to the arrival pattern**. Adaptive signal control remains a proposed future design question, not a hidden feature of this experiment. +The browser uses this rule in its queue calculation. It is deterministic, so the same inputs give the same rows. -> **Concept** +> **Explore further** > -> A queue count is taken after arrivals and service in each slot. A vehicle arriving on its group's last green may leave immediately. One arriving a slot later may still be waiting at the observation horizon. - -## Determinism is the starting point - -T1 is an ordinary **deterministic software calculation**. Given the same rules, initial queues and arrivals, it produces the same trace in the defined execution environment. That is expected behavior, not a breakthrough delivered by AI or a special modeling platform. - -The engineering value comes from **changing something deliberately and evaluating the consequence**. We can vary an arrival pattern, test a proposed model change, inspect the resulting queues and check explicit properties. Automated tests can then give an engineer—or an authorized agent—rapid feedback on whether the modified calculation still meets its defined criteria. - -Determinism does not mean that every experiment must use constant inputs. A stochastic simulation can use a controlled pseudorandom seed so the same sample can be replayed; repeated independent seeds can reveal variation. Similarly, ML inference can be deterministic under specified conditions. What matters is stating which factors are controlled, which vary, and which claim the experiment can support. +> Follow one slot through the [T1 queue calculation](https://github.com/And-Gu/executable-engineering-lab/blob/c4205b3a5b960d8224b6ba72bcf165342ef7322b/models/intersection/queue.mjs). The [regression tests for that revision](https://github.com/And-Gu/executable-engineering-lab/blob/c4205b3a5b960d8224b6ba72bcf165342ef7322b/models/intersection/queue.test.ts) compare both baselines with all **16 rows** of the saved trace, including arrivals, departures and queues. They also check that an unknown phase, a missing slot or an invalid arrival count is rejected. ## Two arrival patterns, one model -Both invented scenarios contain **two NS vehicles and two EW vehicles**. Scenario A spreads those arrivals over the eight slots. Scenario B clusters two EW vehicles in the first slot and two NS vehicles in the third. - -| Scenario | NS arrivals by slot | EW arrivals by slot | -|---|---|---| -| **A — staggered** | 1, 0, 1, 0, 0, 0, 0, 0 | 0, 1, 0, 0, 0, 1, 0, 0 | -| **B — clustered** | 0, 0, 2, 0, 0, 0, 0, 0 | 2, 0, 0, 0, 0, 0, 0, 0 | +Each scenario has two NS and two EW arrivals. Only their placement differs. A dash means zero arrivals in either direction. -The values are invented inputs, not observed traffic counts. Because the total arrivals are identical and every model rule is unchanged, we can isolate one question about when those arrivals occur. +| Slot | Fixed phase | A · staggered arrivals | B · clustered arrivals | +|---:|---|---|---| +| 1 | NS green | 1 NS | 2 EW | +| 2 | NS green | 1 EW | — | +| 3 | NS amber | 1 NS | 2 NS | +| 4 | All-red | — | — | +| 5 | EW green | — | — | +| 6 | EW green | 1 EW | — | +| 7 | EW amber | — | — | +| 8 | All-red | — | — | -Before reading the result, predict what you think will happen to the queues at the end of slot eight. Might the same total demand always produce the same remaining count? +Start with **B**. Predict how many vehicles will remain after slot 8 if one NS vehicle arrives in slot 2 instead of slot 3. Choose that move, then **Run comparison**. The browser calculates eight rows for your edit alongside the original. **Restore baseline** returns to the selected starting scenario. [T1 inputs and service rules](../../case-study/model-inputs-v1.json). ## Follow the actual queue updates -A little arithmetic is enough to inspect the result. In scenario A, one NS vehicle arrives in slot 1 during NS green and departs immediately. A second NS vehicle arrives in slot 3, during amber; it cannot depart in that slot or during the later EW phases. The EW vehicles arrive in slots 2 and 6; both can depart when EW green becomes available. +These selected rows come from the **saved A and B baselines**. Each pair is the number waiting in NS and EW order. [Complete 16-row baseline trace](../../case-study/trace-v1.csv). -In scenario B, the two EW vehicles arrive during the first NS-green slot. They wait until EW green in slots 5 and 6, then depart. Both NS vehicles arrive in slot 3, *after* the two NS-green slots have ended, and remain queued for the rest of the horizon. +| After slot | A (NS, EW) | B (NS, EW) | +|---:|---|---| +| 1 | 0, 0 | 0, 2 | +| 3 | 1, 1 | 2, 2 | +| 5 | 1, 0 | 2, 1 | +| 8 | **1, 0** | **2, 0** | -You can inspect a compact selection from the [full sixteen-row trace](../../case-study/trace-v1.csv): +In A, one NS vehicle arrives on green and leaves immediately. The other arrives on amber and is still waiting at slot 8. In B, both NS vehicles miss their green. Both EW vehicles leave in slots 5 and 6. Of four arrivals, A has three departures and B has two. -| After slot | A: NS queue | A: EW queue | B: NS queue | B: EW queue | -|---:|---:|---:|---:|---:| -| 1 | 0 | 0 | 0 | 2 | -| 3 | 1 | 1 | 2 | 2 | -| 5 | 1 | 0 | 2 | 1 | -| 8 | **1** | **0** | **2** | **0** | +Look at the edited B in the browser. The NS vehicle moved to slot 2 leaves on that green, so the original and edited **queues still match after slot 2**. The first queue difference appears in slot 3. Just one NS vehicle now arrives on amber. It waits through slot 8, when the EW queue is empty. The edit accounts for all four vehicles as **three departures and one still waiting**, compared with two departures and two waiting in the original B. [Calculation and baseline checks](../../case-study/MODEL-CHECK.md). -The same calculation also reports departures: - -| After eight slots | Scenario A | Scenario B | -|---|---:|---:| -| Total invented arrivals | 4 | 4 | -| Departures in the window | 3 | 2 | -| Vehicles still queued | **1** | **2** | - -The two baseline traces identify **INT-MOD-001, revision T1**. In the browser exercise, moving one arrival creates a new scenario for this same model. Compare its rows with the original to find the first slot at which the queues diverge. + ## What does that comparison establish? -Within this narrow, fixed-rule illustration, *arrival placement changes end-of-window queue counts*. Total arrivals alone did not determine the result. - -That is an informative conclusion. But notice what it does **not** establish. - -We have not calculated mean waiting time. A vehicle still queued at the end has an incomplete wait, and excluding that unfinished wait could distort a careless summary. We also have not modeled real green times, turning conflicts, hardware constraints, safety behavior or the city's operational criteria. - -Scenario A is not therefore a recommended controller strategy. It is one set of invented arrivals under the same controller schedule. The output gives the team a useful next question: **How would we decide whether a model/data comparison is fit for the decision we want to make?** - -## When should fidelity increase? - -Model fidelity is not a score that rises automatically as more detail is added. It is a decision about whether the abstraction is sufficient for a question. - -If the next question concerns phase transitions under a defined arrival sequence, T1 lets us inspect the relevant behavior and try alternatives. If the question concerns pedestrian movements or a signal-driving adapter's acknowledgment, adding more queue data will not fix the missing model of that interface. - -An engineer might then choose an interface mock-up, a bench observation or a physical integration experiment. Each method has a different cost, setup effort, interpretation and evidence boundary. - -The **engineering environment** evolves with that decision: clearer model assumptions, checks that expose failures and new tests or physical observations where needed. The **product concept** can evolve too—but only when the evidence supports the proposed change. - -## Design the feedback around the engineering question - -T1 expects a nonnegative integer count for each group in each slot and a known phase. The model rejects an incomplete run or an invalid count before it reports a queue. - -A bounded development loop could now be: propose a change to the model or input handling, run the calculation, evaluate fixed behavioral and invalid-input checks, inspect a failure, and correct the implementation. If those checks are sufficiently independent of the change being made, an agent could work through several iterations without asking a human to direct every step. - -That does **not** make all green tests a product approval. If the criteria encode the wrong requirements, or if the model leaves out an important physical interaction, the loop may converge on the wrong answer. Engineers therefore also assess whether the model and tests represent the system question—and use other evidence when they do not. +Moving one arrival across the end of its green changed the number waiting at this horizon. That is an answer to the workshop question. Mean waiting time would require following individual waits, including those still in progress at slot 8. A question about whether an actual signal shows the commanded indication would call for a bench test or physical observation. Choose the model or prototype to match the decision it will inform. ## Record what the experiment changed -The maintained source identifies `INT-MOD-001`, revision T1, and the published inputs identify the two baseline scenarios. An observation also needs the particular input change and the point at which the queue was counted. - -In a worked LLM-assisted review, the engineer starts with a proposed note, “The new pattern improves traffic.” The engineer checks the trace and records a more precise observation. +Before the edit, the two baseline traces told the team how A and B behaved. A colleague looking up B would find two vehicles waiting. To preserve what the edit taught us, an assistant can draft an observation from the comparison. If it writes “traffic improved,” the engineer can replace that claim with the following entry and check it against the rows. -> In scenario B, moving one north–south arrival from slot 3 to slot 2 leaves one vehicle queued after slot 8, compared with two in the original B. Model INT-MOD-001, revision T1, fixed phases. +- **Computed observation.** `RESULT-B-NS-3-TO-2` belongs to `INT-EXP-001`, model `INT-MOD-001` revision T1. Start from B and move one NS arrival from slot 3 to slot 2. After arrivals and service in slot 8, one vehicle is queued. The original B has two. +- **Proposed next investigation.** If the same phases and each scenario’s own arrivals repeat for a second cycle, how many vehicles remain after slot 16? -The colleague maintaining the experiment can reproduce that observation and ask whether the difference persists over a longer horizon. - -> **Explore further** -> -> Compare the [complete baseline trace](../../case-study/trace-v1.csv) with the [calculation and its assumptions](../../case-study/MODEL-CHECK.md) when reviewing an observation. +The [saved T1 observation](https://github.com/And-Gu/executable-engineering-lab/blob/a1e4f49c2d3ef53e0fc895cdd197f659218a4d4f/project/v3/case-study/data-quality-v1.json#L31-L50) sits beside the original results in the maintained record. A colleague can now reconstruct the edit from its baseline and use the open question to specify a longer experiment. That experiment would need its own observation window. ## The data is now the next engineering problem -A colleague sends another queue count. Which model revision, input pattern and observation horizon would make it comparable with the one you recorded? [Chapter 6 follows engineering data from measurements to decisions](06-engineering-data-from-measurements-to-decisions.md). +Suppose that colleague also finds a spreadsheet entry called `queue_final = 20`. Our saved observation gives a unit, a point in the cycle, a model revision and an input change. Which of those details can we establish for 20 before comparing the two numbers? [Chapter 6 follows the records from measurements to decisions](06-engineering-data-from-measurements-to-decisions.md). diff --git a/project/v3/manuscripts/revised/INDEX.md b/project/v3/manuscripts/revised/INDEX.md index 69259ee..12f60c3 100644 --- a/project/v3/manuscripts/revised/INDEX.md +++ b/project/v3/manuscripts/revised/INDEX.md @@ -4,9 +4,9 @@ ## Part I — Frame the Work -1. [The New Engineering Paradigm](01-the-new-engineering-paradigm.md) — Executive overview: changing expectations, software-inspired engineering and AI. -2. [Introducing the Engineering Challenge](02-introducing-the-engineering-challenge.md) — Fictional four-way intersection, stakeholders, system and model boundaries. -3. [Planning Under Uncertainty](03-planning-under-uncertainty.md) — Choose learning investments and responsible commitments. +1. [The New Engineering Paradigm](01-the-new-engineering-paradigm.md) — See how earlier feedback, modular reuse and AI can change an engineering investment decision. +2. [Setting Up the Intersection Workshop](02-introducing-the-engineering-challenge.md) — Meet the people who use the four-way intersection and frame a question for a first prototype. +3. [Planning Under Uncertainty](03-planning-under-uncertainty.md) — Use a prototype observation to revise the next increment and its backlog. ## Part II — Build and Test Knowledge diff --git a/project/v3/reviews/CHAPTER-01-OVERLAP-REVIEW-2026-11-22.md b/project/v3/reviews/CHAPTER-01-OVERLAP-REVIEW-2026-11-22.md new file mode 100644 index 0000000..ca4f29e --- /dev/null +++ b/project/v3/reviews/CHAPTER-01-OVERLAP-REVIEW-2026-11-22.md @@ -0,0 +1,38 @@ +# Chapter 1 editorial review + +The published course uses fifteen chapters. Its registry matches each course-map row to a numbered manuscript and title in `revised/`. The alternative titles in `approved/` belong to an earlier sequence. The comparison below starts from PR #66 at `9365430`. [Issue #60](https://github.com/And-Gu/executable-engineering-lab/issues/60) · [Published course](https://and-gu.github.io/executable-engineering-lab/learn/) · [Course map](../../CURRICULUM-MAP.md) · [Manuscript selection](../../../site/src/data/v3-course.ts) + +Chapter 1 retains “We build the machine that builds the machine” alongside the product and engineering system definitions. Chapter 2 can then apply the distinction once by pairing a question about the intersection with the capability needed to investigate it. [Chapter 1, two systems][after-systems] · [Chapter 2 application at PR #66](https://github.com/And-Gu/executable-engineering-lab/blob/93654300900efa82d3444b7b730884f7b1450fe8/project/v3/manuscripts/revised/02-introducing-the-engineering-challenge.md#L62-L68) + +## Passage decisions + +| Decision | Before in Chapter 1 | After and destination | +| --- | --- | --- | +| Keep the opening | “What would help a team turn an engineering question into a sound decision sooner?” [Opening at PR #66][before-opening] | The same question and the two-discipline integration example still open Chapter 1. They make the cost of late discovery intelligible before the city appears. [Revised opening][after-opening] | +| Keep the onboarding benefit and show how it works | “Reusing it on the next variant helps the team support more designs and gives new colleagues a way to understand the interface.” [Opening at PR #66][before-opening] | The opening retains the benefit. The software section now explains it. “A new engineer joining the next variant can read why the team chose an interface limit and rerun its check without tracking down the original designer.” Chapter 14 develops which methods and results transfer between variants. [Chapter 1, software-inspired practices][after-software] · [Chapter 14, reuse][reuse] | +| Move document handoffs beside the system definitions | “Documents and reviews remain useful” opened the feedback section. [Handoffs at PR #66][before-handoffs] | “When those sources travel separately, reviewers have to establish which revisions belong together.” The Word, Excel and circuit-design example now shows where a shared definition would help. Chapter 4 develops the information model and its views. [Chapter 1, two systems][after-systems] · [Chapter 4][knowledge] | +| Cut the standalone AI distinction | “AI used to develop a product is distinct from AI built into that product.” [AI at PR #66][before-ai] | “An AI function built into the product would change its behavior in use and would need its own performance evidence.” It now closes the paragraph about the cost of a development workflow. Chapter 8 develops independent checks and authority for delegated work. [Chapter 1, AI][after-ai] · [Chapter 8, outcome checks][agents] | +| Keep the evidence limit at the decision | “A passing test is evidence about a stated check under specific conditions.” [Handoffs at PR #66][before-handoffs] | The same sentence now precedes the choice to integrate revisions whose declared units agree. The workshop supplies the traffic-specific limits, and Chapter 11 develops the link between evidence and a release decision. [Chapter 1, feedback][after-feedback] · [Chapter 2 workshop][workshop] · [Chapter 11, evidence before release][evidence] | +| Cut the stakeholder preview from the handoff | “Before choosing a controller, its engineers need to decide whose experience to improve and what they can learn first.” [Handoff at PR #66][before-handoff] | “How could we improve traffic flow at our busy four-way intersection while keeping crossings safe and the signals easy to understand and maintain?” Chapter 2 owns the stakeholders, system boundary and first experiment. [Revised handoff][after-handoff] · [Chapter 2 workshop][workshop] | + +## Principles for later reviews + +- Keep a passage where it first helps the reader make a decision. In the next chapter, apply that distinction to a case or introduce the next uncertainty. +- Test a business claim against a concrete delay, dependency or repeated cost. Identify who could act on the feedback and what finding would justify the investment. +- State what a check establishes beside the decision it supports. Give case-specific limits to the chapter that examines those conditions, and use the quiz feedback to explain the consequence of overreading a result. + +[before-opening]: https://github.com/And-Gu/executable-engineering-lab/blob/93654300900efa82d3444b7b730884f7b1450fe8/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md#L12-L18 +[before-ai]: https://github.com/And-Gu/executable-engineering-lab/blob/93654300900efa82d3444b7b730884f7b1450fe8/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md#L34-L42 +[before-handoffs]: https://github.com/And-Gu/executable-engineering-lab/blob/93654300900efa82d3444b7b730884f7b1450fe8/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md#L60-L71 +[before-handoff]: https://github.com/And-Gu/executable-engineering-lab/blob/93654300900efa82d3444b7b730884f7b1450fe8/project/v3/manuscripts/revised/01-the-new-engineering-paradigm.md#L87-L89 +[after-opening]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#the-new-engineering-paradigm +[after-software]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#software-inspired-engineering-moves-beyond-software +[after-ai]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#ai-expands-what-engineering-teams-can-do +[after-systems]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#two-systems-must-evolve-together +[after-feedback]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#from-document-driven-handoffs-to-executable-feedback +[after-handoff]: ../manuscripts/revised/01-the-new-engineering-paradigm.md#from-the-paradigm-to-a-working-example +[workshop]: ../manuscripts/revised/02-introducing-the-engineering-challenge.md +[knowledge]: ../manuscripts/revised/04-engineering-knowledge-as-code.md +[agents]: ../manuscripts/revised/08-directing-ai-engineering-agents.md#check-the-outcome-not-the-agents-narration +[evidence]: ../manuscripts/revised/11-verification-validation-and-engineering-evidence.md#evidence-influences-decisions-before-release +[reuse]: ../manuscripts/revised/14-managing-engineering-knowledge-at-scale.md#reuse-is-not-one-operation diff --git a/site/src/styles/v3-learning.css b/site/src/styles/v3-learning.css index 4402035..6656541 100644 --- a/site/src/styles/v3-learning.css +++ b/site/src/styles/v3-learning.css @@ -7,6 +7,9 @@ } .learning-card { border-inline-start: 3px solid var(--teal); } .learning-card.reading { border-inline-start-color: var(--gold); } +.intersection-overview { max-width: 70ch; margin-block: 1.5rem; } +.intersection-overview img { display: block; width: 100%; height: auto; } +.intersection-overview figcaption { color: var(--muted); font-size: .9rem; } .chapter-body .learning-card p { margin: .55rem 0; } .learning-card p:first-child strong { color: var(--teal); } .learning-card.reading p:first-child strong { color: var(--gold); }