WEBVTT

00:00:00.035 --> 00:00:02.821
Coding standards are agreements about how software should

00:00:02.844 --> 00:00:03.994
be written and maintained.

00:00:04.435 --> 00:00:07.512
You do not have to read every line of code to benefit from

00:00:07.558 --> 00:00:07.837
them.

00:00:08.278 --> 00:00:11.865
Ask whether a module has a clear responsibility, whether

00:00:11.958 --> 00:00:15.186
names explain intent, whether inputs are checked at

00:00:15.244 --> 00:00:17.891
boundaries, and whether the next person can find the

00:00:17.914 --> 00:00:18.460
behavior.

00:00:19.157 --> 00:00:21.734
Standards should help the agent create software that can

00:00:21.780 --> 00:00:24.787
be understood and changed without relying on the original

00:00:24.857 --> 00:00:25.658
author's memory.

00:00:25.948 --> 00:00:29.199
A silent failure happens when something goes wrong but the

00:00:29.292 --> 00:00:30.766
system hides the problem.

00:00:31.463 --> 00:00:35.282
Imagine the inquiry tracker says "Thank you" even though

00:00:35.305 --> 00:00:36.594
the record was not saved.

00:00:37.035 --> 00:00:40.298
That is worse than a visible failure because both visitor

00:00:40.379 --> 00:00:42.771
and owner believe the inquiry exists.

00:00:43.375 --> 00:00:46.440
A helpful diagnostic states what failed, where it

00:00:46.498 --> 00:00:49.888
happened, and what action may help, without exposing

00:00:49.958 --> 00:00:53.766
passwords, private customer content, or secret keys.

00:00:54.276 --> 00:00:57.167
The user-facing message and operator log can contain

00:00:57.260 --> 00:00:58.619
different levels of detail.

00:00:58.863 --> 00:01:01.231
A test is a repeatable check of a claim.

00:01:01.672 --> 00:01:04.540
Boundary tests exercise the points where data enters,

00:01:04.749 --> 00:01:06.084
leaves, or changes state.

00:01:06.525 --> 00:01:10.415
For the tracker, try valid and invalid submissions, an

00:01:10.542 --> 00:01:13.213
unauthorized attempt to view records, and a storage

00:01:13.259 --> 00:01:13.747
failure.

00:01:14.351 --> 00:01:16.440
Use synthetic data for examples.

00:01:16.882 --> 00:01:20.922
Test both the result and important non-effects: an invalid

00:01:20.968 --> 00:01:24.660
submission should not create a record, and a failed save

00:01:24.718 --> 00:01:26.495
should not show false success.

00:01:27.098 --> 00:01:30.303
Ask the agent to explain which requirement each test

00:01:30.338 --> 00:01:31.023
supports.

00:01:31.281 --> 00:01:34.984
A coherent slice includes the change, its relevant check,

00:01:35.368 --> 00:01:38.386
evidence, and an update to the project record.

00:01:39.083 --> 00:01:42.066
A commit is a saved revision in version control.

00:01:42.763 --> 00:01:45.491
Small commits can make a problem easier to locate and

00:01:45.549 --> 00:01:46.142
reverse.

00:01:46.583 --> 00:01:49.288
They are not automatically proof that behavior works.

00:01:49.729 --> 00:01:53.224
Keep scope and ownership clear, preserve unrelated work,

00:01:53.282 --> 00:01:54.849
and run the affected checks.

00:01:55.453 --> 00:01:58.622
Repeat checks when the underlying code changes, a check

00:01:58.704 --> 00:02:01.107
fails, or a new concern justifies it.

00:02:01.452 --> 00:02:03.646
Implemented means present in the code.

00:02:04.087 --> 00:02:07.315
Offline-tested means tested in a controlled environment.

00:02:07.698 --> 00:02:10.484
Provider-accepted means an outside service accepted a

00:02:10.554 --> 00:02:11.204
request.

00:02:11.901 --> 00:02:14.780
Live-observed means the intended real-world effect was

00:02:14.873 --> 00:02:15.988
actually observed.

00:02:16.684 --> 00:02:18.112
These are different claims.

00:02:18.495 --> 00:02:22.106
For example, a fake email provider returning success

00:02:22.176 --> 00:02:25.612
proves the application handled the fake response; it does

00:02:25.694 --> 00:02:26.831
not prove delivery.

00:02:27.156 --> 00:02:30.361
A provider accepting a real message does not necessarily

00:02:30.430 --> 00:02:32.160
prove the intended person received it.

00:02:32.459 --> 00:02:35.559
An evidence record identifies the version, commands or

00:02:35.617 --> 00:02:40.087
observations, results, time, and sanitized artifacts.

00:02:40.597 --> 00:02:44.034
Missing access is a blocker or an unverified gap, not a

00:02:44.080 --> 00:02:44.580
pass.

00:02:45.183 --> 00:02:48.608
Ask what happens when a change fails, how to restore the

00:02:48.666 --> 00:02:51.870
earlier state, and whether the restoration was actually

00:02:51.940 --> 00:02:52.509
rehearsed.

00:02:53.205 --> 00:02:56.595
Good review is proportionate to risk: protect critical

00:02:56.665 --> 00:02:59.277
boundaries while avoiding repeated full reviews that add

00:02:59.335 --> 00:03:00.938
cost without new information.

00:03:01.246 --> 00:03:04.206
Imagine that six months from now the tracker fails and a

00:03:04.276 --> 00:03:05.739
new agent must diagnose it.

00:03:06.250 --> 00:03:10.116
Names like saveInquiry and listNewInquiries communicate

00:03:10.151 --> 00:03:11.892
purpose more clearly than doStuff.

00:03:12.496 --> 00:03:15.897
A module with a narrow responsibility is easier to locate

00:03:15.944 --> 00:03:19.728
and change than one that handles validation, storage,

00:03:20.112 --> 00:03:22.584
email, and presentation in a single block.

00:03:23.281 --> 00:03:26.427
Ask the agent for a map of dependencies and side effects.

00:03:26.810 --> 00:03:29.852
You do not need to prescribe every formatting preference

00:03:30.026 --> 00:03:32.941
to require that future readers can follow the system.

00:03:33.246 --> 00:03:37.007
If a required field is missing, a visitor can see "Enter a

00:03:37.066 --> 00:03:40.177
way for us to contact you." If the storage service is

00:03:40.247 --> 00:03:43.555
down, the owner may need an operational log naming the

00:03:43.602 --> 00:03:46.388
failing component and a safe troubleshooting action.

00:03:47.085 --> 00:03:50.243
Logs should avoid recording sensitive contact details,

00:03:50.394 --> 00:03:54.051
credentials, or raw external payloads unnecessarily.

00:03:54.492 --> 00:03:57.615
The point is not to make every error public; it is to

00:03:57.708 --> 00:04:00.599
ensure the right person can understand and respond to the

00:04:00.645 --> 00:04:01.110
failure.

00:04:01.444 --> 00:04:03.813
A negative test verifies behavior when something should

00:04:03.848 --> 00:04:04.486
not happen.

00:04:04.927 --> 00:04:08.271
For example, submit an inquiry without a contact method.

00:04:08.712 --> 00:04:11.208
Confirm the system rejects it and does not create a

00:04:11.266 --> 00:04:11.673
record.

00:04:12.114 --> 00:04:15.121
Attempt to open the owner view without authorization and

00:04:15.179 --> 00:04:16.723
verify access is denied.

00:04:17.164 --> 00:04:20.705
Simulate a storage failure and verify the public form does

00:04:20.822 --> 00:04:22.168
not display success.

00:04:22.610 --> 00:04:25.466
These checks often catch mistakes that a single successful

00:04:25.524 --> 00:04:26.441
example misses.

00:04:26.756 --> 00:04:29.671
A local test may replace a provider with a fake response.

00:04:30.112 --> 00:04:32.747
That can prove your application reacts correctly to that

00:04:32.817 --> 00:04:36.451
response, but it cannot prove the real provider accepts

00:04:36.486 --> 00:04:38.355
your account or delivers a message.

00:04:39.051 --> 00:04:42.221
A provider's acceptance is a stronger but still different

00:04:42.267 --> 00:04:44.717
observation from a real user seeing the effect.

00:04:45.321 --> 00:04:47.596
Record the environment and the exact claim.

00:04:47.979 --> 00:04:51.056
"Not yet tested" is a useful status when it keeps the next

00:04:51.102 --> 00:04:52.902
person from assuming proof exists.

00:04:53.207 --> 00:04:56.225
A reviewer can ask: which requirement does this change

00:04:56.260 --> 00:04:56.713
implement?

00:04:57.096 --> 00:04:58.524
What inputs does it accept?

00:04:58.907 --> 00:05:00.254
What happens on failure?

00:05:00.579 --> 00:05:01.949
Which tests changed?

00:05:02.332 --> 00:05:04.759
Are secrets or private data exposed?

00:05:05.200 --> 00:05:06.849
Is there an obvious rollback?

00:05:07.232 --> 00:05:09.821
Does the documentation still agree with the behavior?

00:05:10.424 --> 00:05:13.455
A small verified commit keeps these questions manageable.

00:05:13.896 --> 00:05:17.158
Avoid rerunning the same complete suite repeatedly when

00:05:17.216 --> 00:05:20.339
nothing relevant has changed, but do run checks again when

00:05:20.374 --> 00:05:23.254
a change or failure makes earlier results stale.

00:05:23.562 --> 00:05:26.673
An evidence note can say: at this revision, the local

00:05:26.720 --> 00:05:30.261
validation suite ran and its stated cases passed; a

00:05:30.377 --> 00:05:32.745
separate live-provider check has not been run.

00:05:33.128 --> 00:05:35.915
Include the command and sanitized output when appropriate.

00:05:36.298 --> 00:05:39.038
If a screenshot shows a private list, use fictional

00:05:39.096 --> 00:05:39.584
records.

00:05:39.967 --> 00:05:42.649
The result should let another person verify the level of

00:05:42.718 --> 00:05:46.167
confidence without needing the original agent's memory or

00:05:46.225 --> 00:05:48.163
a polished summary that hides gaps.

00:05:48.444 --> 00:05:51.370
Ask the agent to pair each important standard with a

00:05:51.451 --> 00:05:52.798
concrete observation.

00:05:53.181 --> 00:05:56.351
For example, rather than saying "errors are handled," show

00:05:56.409 --> 00:05:59.625
the test or code path that demonstrates a failed save does

00:05:59.659 --> 00:06:01.204
not produce a success message.

00:06:01.807 --> 00:06:05.139
Rather than saying "security is complete," describe which

00:06:05.232 --> 00:06:08.390
access boundary was checked, in which environment, and

00:06:08.437 --> 00:06:10.016
what remains outside the test.

00:06:10.457 --> 00:06:13.487
Where the reviewer cannot reproduce or inspect a claim,

00:06:13.731 --> 00:06:15.588
mark the confidence accordingly.

00:06:16.285 --> 00:06:19.188
This practice applies even if you do not personally read

00:06:19.211 --> 00:06:20.198
the implementation.
