WEBVTT

00:00:00.035 --> 00:00:02.810
A build specification is an agreement about what must

00:00:02.856 --> 00:00:03.367
happen.

00:00:03.750 --> 00:00:06.490
It lets an implementation agent make the right small

00:00:06.536 --> 00:00:09.311
decisions while leaving the important ones settled.

00:00:09.752 --> 00:00:13.804
Begin with the outcome, users, scope, and non-goals.

00:00:14.315 --> 00:00:17.740
Then describe behavior in terms of inputs, outputs,

00:00:17.984 --> 00:00:22.929
validation, state changes, errors, security, and

00:00:22.988 --> 00:00:24.729
the things the work must preserve.

00:00:25.333 --> 00:00:28.676
Link each important requirement to acceptance evidence.

00:00:29.187 --> 00:00:31.881
Include examples so a fresh reader can distinguish

00:00:31.962 --> 00:00:34.783
expected behavior from a plausible guess.

00:00:35.091 --> 00:00:39.015
For the tracker, compare "validate the form" with:

00:00:39.294 --> 00:00:43.229
"Require a contact name and one preferred contact method.

00:00:43.740 --> 00:00:46.933
If either is missing, explain the missing field and keep

00:00:46.979 --> 00:00:47.990
the entered values.

00:00:48.431 --> 00:00:51.775
Do not save an incomplete inquiry." This is a proposed

00:00:51.821 --> 00:00:54.631
example; the real owner must approve the fields.

00:00:55.072 --> 00:00:58.242
It tells the agent what to accept, reject, and show the

00:00:58.276 --> 00:00:58.776
visitor.

00:00:59.379 --> 00:01:02.212
It also creates several test cases without prescribing

00:01:02.305 --> 00:01:03.292
every line of code.

00:01:03.591 --> 00:01:06.296
Acceptance criteria are conditions that can be observed.

00:01:06.737 --> 00:01:10.441
Assign stable identifiers such as A-01, and connect each

00:01:10.487 --> 00:01:11.671
to one or more checks.

00:01:12.182 --> 00:01:15.584
A-01 might say a valid fictional inquiry appears once in

00:01:15.619 --> 00:01:16.373
the owner list.

00:01:16.815 --> 00:01:19.567
A test could submit a valid synthetic record and retrieve

00:01:19.590 --> 00:01:19.790
it.

00:01:20.286 --> 00:01:23.038
Record the scope of the evidence: a local test

00:01:23.096 --> 00:01:26.324
demonstrates local behavior; it does not prove that a live

00:01:26.358 --> 00:01:27.519
provider is configured.

00:01:27.903 --> 00:01:30.875
Include negative paths, such as missing fields,

00:01:31.153 --> 00:01:33.615
unauthorized access, and a storage failure.

00:01:33.919 --> 00:01:36.450
A spec must say what remains unchanged.

00:01:36.891 --> 00:01:40.583
If the existing public website is out of scope, explicitly

00:01:40.641 --> 00:01:41.256
preserve it.

00:01:41.581 --> 00:01:44.658
If sending email is not authorized, say that the tracker

00:01:44.751 --> 00:01:46.922
records status without sending messages.

00:01:47.363 --> 00:01:51.554
Name external dependencies, privacy expectations, and what

00:01:51.636 --> 00:01:53.969
happens when an integration cannot be reached.

00:01:54.410 --> 00:01:57.266
Write a concrete rollback: the way to return to the

00:01:57.324 --> 00:02:00.006
previous known state if the change fails.

00:02:00.448 --> 00:02:03.629
Do not pretend an untested rollback has already worked.

00:02:03.971 --> 00:02:05.330
A plan orders the work.

00:02:05.713 --> 00:02:08.499
One possible sequence is to agree on the inquiry record,

00:02:08.941 --> 00:02:12.075
build validation and storage, build the owner view against

00:02:12.110 --> 00:02:15.152
the agreed contract, integrate, then verify.

00:02:15.593 --> 00:02:18.565
Parallel workers can work safely when their file ownership

00:02:18.611 --> 00:02:19.807
and interfaces are clear.

00:02:20.190 --> 00:02:23.627
If two people change the same shared contract at once,

00:02:24.068 --> 00:02:25.589
integration becomes harder.

00:02:25.972 --> 00:02:30.500
For each phase, list its goal, prerequisites, owned files

00:02:30.546 --> 00:02:34.656
or subsystem, checks, evidence, and completion condition.

00:02:34.926 --> 00:02:37.794
Before handing the plan to an agent, ask whether a fresh

00:02:37.864 --> 00:02:41.347
person could explain what is in scope, which decisions are

00:02:41.382 --> 00:02:44.632
settled, how success will be checked, and when to stop.

00:02:45.329 --> 00:02:48.278
Separate an approved plan from authorization to execute

00:02:48.301 --> 00:02:48.501
it.

00:02:48.917 --> 00:02:53.352
The kickoff will identify the repository, baseline, read

00:02:53.421 --> 00:02:57.938
order, allowed actions, forbidden actions, work sequence,

00:02:58.263 --> 00:02:59.656
proof, and handoff.

00:03:00.260 --> 00:03:01.978
We will build that briefing in Lesson 8.

00:03:02.582 --> 00:03:06.471
A good spec reduces guessing without making safe, routine

00:03:06.506 --> 00:03:08.468
implementation choices impossible.

00:03:08.770 --> 00:03:11.161
For the tracker, the overall outcome might be that an

00:03:11.220 --> 00:03:13.878
owner can find and manage inquiries received through a web

00:03:13.948 --> 00:03:14.319
form.

00:03:14.761 --> 00:03:17.361
That sentence does not yet specify every field or

00:03:17.408 --> 00:03:18.278
validation rule.

00:03:18.789 --> 00:03:22.249
Add a scope section identifying the first release, such as

00:03:22.330 --> 00:03:24.884
public form submission and a private status list.

00:03:25.395 --> 00:03:29.679
Add non-goals such as email import, automatic replies, or

00:03:29.749 --> 00:03:32.431
payments if those are not part of the approved work.

00:03:33.128 --> 00:03:35.264
These boundaries protect both the owner and the

00:03:35.345 --> 00:03:37.354
implementation agent from assumptions.

00:03:37.609 --> 00:03:40.546
Write down the fields, which are required, how invalid

00:03:40.604 --> 00:03:43.298
values are identified, and what the person sees.

00:03:43.623 --> 00:03:47.141
"The form should be friendly" is a preference, but it does

00:03:47.257 --> 00:03:50.148
not define how an empty required field behaves.

00:03:50.751 --> 00:03:53.572
A stronger criterion says the field is named in a clear

00:03:53.630 --> 00:03:56.393
message and the previously entered values remain

00:03:56.440 --> 00:03:57.020
available.

00:03:57.462 --> 00:04:00.283
Also say whether the failed submission creates a record.

00:04:00.724 --> 00:04:03.174
These details give the developer room to choose the

00:04:03.232 --> 00:04:05.925
interface while preserving the important behavior.

00:04:06.248 --> 00:04:09.603
Connect each requirement to an acceptance ID and a check.

00:04:10.044 --> 00:04:14.038
For example, A-02 could describe rejecting an inquiry with

00:04:14.131 --> 00:04:15.292
no contact method.

00:04:15.675 --> 00:04:18.961
A test submits that invalid data and checks for both an

00:04:19.030 --> 00:04:20.899
error and absence of a saved record.

00:04:21.596 --> 00:04:24.742
Record whether the test runs locally, against a staging

00:04:24.812 --> 00:04:26.646
service, or in production.

00:04:27.029 --> 00:04:30.384
A green local check is useful evidence for local behavior,

00:04:30.767 --> 00:04:34.169
but it does not prove a live deployment is configured or

00:04:34.239 --> 00:04:35.795
that a provider delivered anything.

00:04:36.123 --> 00:04:39.281
What existing data and behavior must remain intact?

00:04:39.722 --> 00:04:43.298
If an older inquiry already has a status, a new view

00:04:43.344 --> 00:04:44.261
should not erase it.

00:04:44.587 --> 00:04:47.559
If the deployment fails, the plan should identify the

00:04:47.640 --> 00:04:50.659
earlier version or reversal procedure and the point at

00:04:50.693 --> 00:04:51.866
which rollback is safe.

00:04:52.307 --> 00:04:55.105
Some changes, such as sending a real message, cannot be

00:04:55.163 --> 00:04:58.635
unsent; they need special care and explicit authorization.

00:04:59.331 --> 00:05:02.733
Label an untested recovery plan as a plan, then rehearse

00:05:02.779 --> 00:05:04.323
it when appropriate and allowed.

00:05:04.594 --> 00:05:07.671
Before implementation, list what must exist before

00:05:07.706 --> 00:05:09.075
something else can be completed.

00:05:09.401 --> 00:05:12.779
The view depends on an agreed record format; tests depend

00:05:12.837 --> 00:05:14.358
on defined expected behavior.

00:05:14.962 --> 00:05:18.050
Workers may draft a view and validation logic in parallel

00:05:18.201 --> 00:05:21.173
after the shared format is agreed, but they should not

00:05:21.231 --> 00:05:23.170
edit the same files without coordination.

00:05:23.553 --> 00:05:25.840
The conductor collects each result and checks the

00:05:25.887 --> 00:05:26.885
integrated behavior.

00:05:27.268 --> 00:05:29.660
This is how parallel work saves time without turning

00:05:29.741 --> 00:05:31.773
shared interfaces into a guessing game.

00:05:32.104 --> 00:05:34.751
Ask the agent to walk through one valid inquiry, one

00:05:34.786 --> 00:05:38.118
invalid inquiry, and one storage failure against the spec.

00:05:38.629 --> 00:05:41.775
Where it has to guess, add the missing rule or label it as

00:05:41.821 --> 00:05:43.702
an intentional implementation choice.

00:05:44.143 --> 00:05:47.162
Check that acceptance covers the non-goals too: if

00:05:47.231 --> 00:05:50.354
automatic email is forbidden, a test or inspection should

00:05:50.401 --> 00:05:52.769
show that submitting an inquiry does not trigger it.

00:05:53.210 --> 00:05:56.055
A good contract helps the team build the agreed outcome

00:05:56.229 --> 00:05:58.551
and recognize when work is still incomplete.

00:05:58.876 --> 00:06:01.651
Imagine you are the agent seeing the project for the first

00:06:01.686 --> 00:06:02.127
time.

00:06:02.568 --> 00:06:04.530
Which document tells you what to build?

00:06:04.971 --> 00:06:08.071
Which decision explains why email import was deferred?

00:06:08.512 --> 00:06:11.484
Can you identify a task that can be completed and tested

00:06:11.763 --> 00:06:13.795
without waiting for an unrelated task?

00:06:14.236 --> 00:06:16.837
Can you state when to stop if access is missing?

00:06:17.278 --> 00:06:20.622
If the answer to any of these is unclear, add a specific

00:06:20.703 --> 00:06:22.340
reference or boundary to the plan.

00:06:22.781 --> 00:06:25.962
The goal is to remove consequential ambiguity while

00:06:25.997 --> 00:06:28.830
leaving room for reasonable implementation choices.
