Skip to content

All Checks Pass Is the Change Ready to Merge Software Engineering Full Course Lecture 7

FurkanGozukara edited this page Nov 16, 2026 · 1 revision

All Checks Pass. Is the Change Ready to Merge? | Software Engineering Full Course, Lecture 7

All Checks Pass. Is the Change Ready to Merge? | Software Engineering Full Course, Lecture 7

image Hits Patreon BuyMeACoffee Furkan Gözükara Medium Codio Furkan Gözükara Medium

YouTube Channel Furkan Gözükara LinkedIn Udemy Twitter Follow Furkan Gözükara

Lecture 7 of the Software Engineering course. Two edits to Campus Rooms, a fictional room-booking service, merge cleanly, yet Ari's 100-minute booking is rejected: the message still offers 30 to 120 minutes while the temporary rule says 90. Interactive scenes follow that change through version history, review and integration.

Links:

SECourses Patreon: [ https://www.patreon.com/SECourses ]

SECourses Discord: [ https://discord.com/servers/software-engineering-courses-secourses-772774097734074388 ]

You will read a commit graph, tell a textual conflict from a semantic one, resolve a conflict without losing intent, review a change with its claim and checks, integrate early behind a feature flag, record build inputs, bisect a history and decide when a change is ready.

Topics: version control, branches and merges, merge and semantic conflicts, code review, continuous integration, feature flags, reproducible builds, lockfiles, decision records, git bisect.

Jump to any scene, the questions, the principles or the sources.

Chapters:

00:00:00 A green merge: which limit should you believe?

00:00:48 Combine Ari's and Bo's edits: the text merges cleanly

00:01:09 Predict: is the combined behavior ready for 100 minutes?

00:01:31 Rejected by R-02: the message and the rule disagree

00:02:23 From Week 6 contracts to promises several people change

00:02:35 The promises we keep: R-01, R-02 and R-03

00:03:09 The question of this lecture and five learning outcomes

00:04:03 One edit, four places: saved, selected, committed, shared

00:04:47 Record locally: commit c3 and the moving branch name

00:05:09 Share the commit: the remote-tracking reference catches up

00:05:51 Scene 1: a branch name moves, a commit stays put

00:06:18 Predict: what is a branch name?

00:06:34 Grow the commit graph one change at a time

00:07:04 Diverged work: policy-90 and limit-message grow from c2

00:07:33 Merge commit c5: two parents, one contradictory promise

00:07:53 c6 restores 120 minutes and main moves forward

00:08:26 No divergence: how can main include the change?

00:08:56 Fast-forward: main moves without a merge commit

00:09:36 Scene 2: one function, two edits from a shared ancestor

00:10:24 Predict: which version should the resolution keep?

00:10:41 Text fixed, rule lost: the upper bound disappears

00:11:46 Intent preserved: which evidence tells the resolutions apart?

00:12:19 The good resolution keeps both intentions and the boundary

00:13:13 Scene 3: different files can disagree about one promise

00:13:45 Predict: what does a clean textual merge establish?

00:14:06 Clean merge, wrong behavior: 90 enforced, 120 announced

00:15:05 One policy source: which value should supply the message?

00:15:35 The message imports its limits from the policy

00:16:20 Scene 4: a diff needs a claim you can check

00:17:02 Predict: what can you decide from the diff alone?

00:17:21 What the reviewer needs: purpose, constraint, alternatives

00:17:50 Checks and review comments, each with its reason

00:19:02 Evidence resolves the concerns and the decision is recorded

00:20:10 A focused change: what gets easier for the reviewer?

00:21:18 An assistant draft says fix stuff: what changes?

00:22:31 Scene 5: when does an incompatible assumption become visible?

00:23:03 Predict: which line of work learns about the change sooner?

00:23:26 Small integrations find the changed contract at C

00:24:06 A feature flag keeps unfinished behavior unavailable

00:24:33 Control case: the contract stays the same

00:25:35 Scene 6: the same source gives a different answer

00:26:10 Predict: which inputs could explain the different answer?

00:26:33 Dependency drift: teaching-range 1.1 excludes the endpoint

00:27:18 Lockfiles record resolved versions, not allowed ranges

00:27:51 Config drift: MAX_MINUTES 90 rejects the same request

00:28:50 Secrets: keep the reference, not the value

00:29:12 Scene 7: will fix stuff explain this change later?

00:29:44 Predict: what will a future maintainer learn?

00:30:04 Build decision record DR-07 step by step

00:31:13 The author is unavailable: where is the reason now?

00:32:18 Bisection: which change first broke the boundary?

00:32:51 Check h4, h6 and h5: h5 removed the upper bound

00:34:00 Scene 8: which missing evidence blocks this change?

00:34:46 Predict: what must happen before the change is ready?

00:35:06 Resolve the authorization concern, then integrate

00:35:38 The trial ends: the 30 to 120 minute baseline returns

00:36:11 Approved but failing: repair the integration and rerun

00:37:25 Eight principles of collaboration and version history

00:38:13 Six checks with answers, and a library transfer question

00:39:59 What carries forward to Week 8, terms and sources

Music: A Caring Friend by Bad Snacks, No Rush by Dyalla, Sunny Days by Anno Domini Beats, Mediterranean View by Everet Almond, Golden Hour by Telecasted.

Every name, number and booking is a teaching example from the fictional Campus Rooms service.

Questions and updates: the links above and the comments below. Thank you for watching.

Video Transcription

  • 00:00:08 Greetings everyone. This is week 7 of the Software  Engineering course. Today starts with a merge that  

  • 00:00:14 went green, and 1 question: which limit should  you believe? Ari changes the booking rule in  

  • 00:00:21 Campus Rooms, the fictional booking service of  this course. Bo adds a message for the booking  

  • 00:00:26 screen. They edit 2 different files. Ari's edit  lowers the maximum duration from 120 minutes to  

  • 00:00:33 90. The label says why: it is a temporary variant  of rule R-02. Bo's message says: choose 30 to 120  

  • 00:00:42 minutes. That was true when Bo started, because  the old rule allowed exactly that range. Now  

  • 00:00:49 let's combine the 2 edits. Both arrows join into  1 combined change, and the status turns green:  

  • 00:00:55 the text merged cleanly, with no conflict at all.  On the right is what Ari sees. Ari asks for room  

  • 00:01:03 C101 for 100 minutes, and the new message promises  30 to 120 minutes. So decide before we ship it.  

  • 00:01:11 Both edits went in cleanly. Is the behavior  ready? Ari tries 100 minutes, inside the range  

  • 00:01:17 the message offers, but above the new limit in  the rule. Pause the video for a moment and decide:  

  • 00:01:24 once both edits combine, is the behavior ready,  or will the system say no? Let's check this one  

  • 00:01:31 request. Ari presses Book, and the answer comes  back: rejected by R-02, 100 minutes. The changed  

  • 00:01:38 rule wins. So the screen invites 100 minutes and  then refuses them. The files combined cleanly, but  

  • 00:01:46 the message and the rule still disagree, so the  combined behavior needs a check of its own. The  

  • 00:01:53 tool did its job: it combined text. It cannot know  that 120 in a message and 90 in a rule describe  

  • 00:02:01 the same promise. Keep this small failure in mind.  Every scene of this lecture comes back to it,  

  • 00:02:08 and the last scene restores the normal rule of 30  to 120 minutes. To move between pages, I use the  

  • 00:02:15 arrow buttons at the top right of the deck. The  next page connects this week to what you already  

  • 00:02:21 know. Week 6 followed requests across boundaries.  A booking contract includes its results,  

  • 00:02:28 its failure meanings and its retry identity,  and a decision record carries the reasons and  

  • 00:02:33 revisit triggers. This week those promises must  survive several people changing the system. 3  

  • 00:02:40 of them matter today. R-01: overlapping bookings  cannot both be confirmed for the same room. R-02:  

  • 00:02:48 a booking lasts 30 to 120 minutes, both limits  included. And R-03: only the booking owner  

  • 00:02:55 may cancel. The 90 minute rule you just saw is a  temporary trial of R-02. Every scene that uses it  

  • 00:03:02 marks it as temporary, and the approved baseline  comes back before the lecture is over. Here is the  

  • 00:03:09 question of this lecture: how can several people  change 1 system without losing intent or trust?  

  • 00:03:15 5 learning outcomes lead to the answer. First,  read a small commit graph and distinguish commits,  

  • 00:03:23 branch references and merges. Second, explain  the difference between a textual conflict and an  

  • 00:03:28 incompatible behavioral change. Third, identify  the context and evidence needed to review  

  • 00:03:34 a change. Fourth, explain how dependency and  configuration choices affect reproducibility. And  

  • 00:03:41 fifth, use history and decision records to explain  why a change was made. Check out the tutorial  

  • 00:03:47 description to see the chapters of the 8 scenes.  Before the first scene, 1 practical question: when  

  • 00:03:54 you save a file, what exactly have you shared with  your team? The next page follows 1 edit through 4  

  • 00:04:00 places. Saved on your machine is not the same as  shared with the team. Follow Ari's policy edit,  

  • 00:04:08 90 minutes, through 4 places, and watch what each  step changes. The editor holds the proposed edit,  

  • 00:04:19 but nothing is saved yet. The working tree still  says 120, and so do the selected changes. Let's  

  • 00:04:26 save the edit. Now the working tree, the files  on your machine, says 90. The next commit would  

  • 00:04:32 still hold the old selected value, 120. Selecting  the change prepares the next snapshot. In Git this  

  • 00:04:40 place is called the staging area. The selected  content now says 90, but no commit exists so  

  • 00:04:46 far. Recording locally makes a commit, c3. It  stores the prepared snapshot and its parent,  

  • 00:04:53 and the branch name policy-90 moves to c3 on  your machine. Look at the bottom card. Your local  

  • 00:05:00 policy-90 points to c3, but origin/policy-90 still  points to c2. Nobody else has this commit for now.  

  • 00:05:09 Sharing is a separate action. A push sends c3  to the remote and asks it to update its branch.  

  • 00:05:14 The remote accepts, and the history on the remote  now holds c3. And your remote-tracking reference,  

  • 00:05:22 origin/policy-90, now records the position you  observed: c3. It is your local record of what the  

  • 00:05:29 remote reported to you. 1 note below the strip:  an unsaved editor buffer is outside all 4 places,  

  • 00:05:36 and selected changes can differ from later  edits to the working files. So a commit is a  

  • 00:05:42 recorded snapshot with a parent, and a branch name  points at a commit. The next scene grows a whole  

  • 00:05:47 graph of them, one change at a time. Scene 1: a  branch name moves, a recorded commit stays put.  

  • 00:05:55 Read the parent links, because they show which  snapshots each change builds on. Here is how  

  • 00:06:00 to read the picture. A circle is a recorded  commit, an arrow points from parent to child,  

  • 00:06:06 and a pill is a movable branch name. Right now  there is 1 commit, c1, with the duration policy:  

  • 00:06:12 MAX_MINUTES equals 120. The branch name main  sits on it, as a label. Decide before the reveal:  

  • 00:06:19 what is a branch name? Option A, 1 permanent copy  of every file. Option B, a movable reference to a  

  • 00:06:25 commit. Option C, a guarantee that its changes are  correct. Pause the video for a moment and choose  

  • 00:06:31 your answer. Let's grow the graph one change at a  time. The Step button at the top right moves the  

  • 00:06:39 picture forward by 1 state. First, c1 records the  duration policy. A commit represents a snapshot  

  • 00:06:47 and its recorded ancestry. Next comes c2, which  adds the cancellation ownership check. Its parent  

  • 00:06:53 is c1. And the branch name main moves to this new  snapshot. So the answer was B: a branch name is a  

  • 00:07:00 movable reference to a commit, not a copy of the  files. Now the work divides. The branch policy-90  

  • 00:07:06 moves ahead with c3, which changes the maximum  to 90 minutes, labeled as temporary. Meanwhile,  

  • 00:07:14 limit-message develops from c2 as well. Its commit  c4 adds a duration message, with 120 hard-coded  

  • 00:07:21 into the wording. The 2 descendants share an  ancestor, c2, but neither contains the other. This  

  • 00:07:28 is diverged work: 2 lines of change with 1 common  ancestor. To combine them, c5 is a merge commit  

  • 00:07:35 with 2 parents, c3 and c4. Both histories now  come together here. But look at what c5 records:  

  • 00:07:44 the rule says 90 and the message says 120. 2  connected histories can still make a contradictory  

  • 00:07:50 promise. Finally, c6 restores the canonical  120 minute rule, and main moves forward along  

  • 00:07:58 the parent links to it. The earlier snapshots  remain in history. The restoration is simply  

  • 00:08:04 another recorded change. Moving a name preserves  the earlier commits and their parent links, so c3  

  • 00:08:10 and c4 are still there. That is the principle of  this scene: history records relationships between  

  • 00:08:17 changes; branch names are movable references,  not the changes themselves. In short, follow the  

  • 00:08:23 parents and watch the names move. Now a second  condition. The buttons under Condition change 1  

  • 00:08:29 thing about the situation. No divergence means the  current tip is already an ancestor of the other  

  • 00:08:35 one. Here main is at c2, and the policy branch  is at c3. No separate change appeared on main.  

  • 00:08:43 How can main include the policy change? Option  A, duplicate the files. Option B, always create  

  • 00:08:49 a 2-parent commit. Option C, move main to the  descendant commit. Pause and choose. Follow the  

  • 00:08:57 existing parent link. Everything in main's current  history is already inside the policy branch, so  

  • 00:09:03 there is nothing to reconcile here. So main simply  moves from c2 to c3. This is a fast-forward,  

  • 00:09:09 and it adds no merge commit. The right answer was  C. Compare the 2 conditions. A divergent history  

  • 00:09:16 needs reconciliation, like the merge commit c5. A  fast-forward only moves a reference along existing  

  • 00:09:22 ancestry. Either way, the graph tells you what  each change builds on, and nothing more. It does  

  • 00:09:29 not tell you whether the combined behavior  is right. That is the next scene. Scene 2:  

  • 00:09:36 removing the conflict can remove the rule. The  same validation function is edited twice, and  

  • 00:09:41 we ask which meaning survives the merge. On the  left is the shared ancestor: MAX_MINUTES is 120,  

  • 00:09:49 and the function rejects anything under 30 or over  the maximum. Edit A is the temporary policy. It  

  • 00:09:56 sets the maximum to 90, and it rewrites the upper  check in a negated form, with the same meaning.  

  • 00:10:02 Edit B keeps 120, but restructures the body into  a single return: minutes at least 30, and minutes  

  • 00:10:09 at most the maximum. Below them is the requirement  for this trial: R-02, temporary variant. A booking  

  • 00:10:16 lasts 30 to 90 minutes, both included. Edit B  keeps the same rule in a clearer shape, which is  

  • 00:10:22 useful on its own. Decide before the reveal: which  version should the resolution keep? Option A,  

  • 00:10:28 the intended rule and the useful restructuring.  Option B, the left version, as it is. Option C,  

  • 00:10:35 the right version, as it is. Pause the video  for a moment and choose your answer. Both edits  

  • 00:10:42 rewrite the same lines, so the merge stops with  a textual conflict. A person now has to write  

  • 00:10:47 the resolution, because the merge cannot pick  1 for them. Here is 1 resolution. It is valid  

  • 00:10:53 pseudocode, and the conflict markers are gone.  It keeps MAX_MINUTES at 90, but its return value  

  • 00:10:59 checks only the lower bound, never the upper one.  Let's compare its boundary results with R-02. 29  

  • 00:11:07 is rejected, 30 and 90 are accepted, and so far  the resolution agrees with the rule. But 91,  

  • 00:11:14 120 and 121 are all accepted, and R-02 rejects  each of them. The temporary upper bound is gone.  

  • 00:11:23 So a clean file can still contain the wrong  decision. The markers are gone, the code runs,  

  • 00:11:28 and the rule the trial needed has quietly slipped  away. The principle: a merge resolution must  

  • 00:11:35 reconcile intent and verify the combined behavior,  not merely remove conflict markers. In short,  

  • 00:11:41 keep both intentions, then check the boundary.  Now the second condition, where the intent is  

  • 00:11:48 kept. This time the resolution should keep the  temporary rule and the shorter validation function  

  • 00:11:55 together. Before we see it, which evidence  distinguishes the 2 resolutions? Option A,  

  • 00:12:03 whether the conflict markers disappeared. Option  B, whether the combined function enforces the  

  • 00:12:09 approved bounds. Option C, whether the file became  shorter. Pause the video and decide which evidence  

  • 00:12:16 you would rely on. Here is the chosen resolution.  It keeps MAX_MINUTES at 90, and its single return  

  • 00:12:23 checks both inclusive limits: at least 30, and  at most the maximum. Now compare the boundaries  

  • 00:12:31 again. 90 is accepted, 91 and 121 are rejected,  and every row agrees with R-02. The intended  

  • 00:12:39 boundary survives. So the answer is B. Both  resolutions removed the markers, and only the  

  • 00:12:45 boundary results show which one kept the intended  rule. The resolution preserves the new rule and  

  • 00:12:53 the structural improvement. Keep both intentions,  then check the boundary: that is the habit to take  

  • 00:12:58 from this scene. Here the edits overlapped,  so the merge stopped and asked a person. The  

  • 00:13:05 next scene is more dangerous: the edits never  overlap, and the merge does not stop at all.  

  • 00:13:12 Scene 3: different files can still disagree  about 1 promise. The temporary policy rejects 100  

  • 00:13:19 minutes. So what will the new message tell you?  In the policy file, the lower and upper limits  

  • 00:13:25 are named constants, a minimum and a maximum,  and the function accepts anything between them,  

  • 00:13:31 both included. In the messages file, the message  function returns a fixed sentence: choose 30 to  

  • 00:13:40 120 minutes. Its limit was typed straight into  the sentence. Decide before the reveal: what does  

  • 00:13:47 a clean textual merge establish here? Option A,  the user promise is consistent. Option B, the text  

  • 00:13:54 combined without an unresolved textual conflict.  Option C, every relevant check passed. Pause the  

  • 00:14:01 video for a moment and choose your answer. The  files were changed on separate lines of work, and  

  • 00:14:09 now they merge. Text merged cleanly: the 2 edits  touched different files, so no line overlapped  

  • 00:14:16 with another. Now Ari requests 100 minutes, and  the request is rejected by R-02, while the message  

  • 00:14:24 still invites durations up to 120. Between the  files you can see why: the policy file enforces  

  • 00:14:31 90, the messages file announces 120. 2 copies  of 1 promise. So the answer was B. The merge  

  • 00:14:39 established only that the text combined without  an unresolved conflict. The combined user promise  

  • 00:14:48 contradicts itself, in 2 places. 2 copies of the  same decision have drifted apart. The principle:  

  • 00:14:55 textual integration and semantic integration are  different kinds of evidence. Check the promise  

  • 00:15:01 across the combined files. So how do you stop  the copies from drifting? The second condition,  

  • 00:15:08 1 policy source, changes how the message gets its  values, with the same request and the same rule.  

  • 00:15:16 Which value should supply the message? Option A,  the approved policy used by validation. Option B,  

  • 00:15:22 a second constant in the messages file. Option  C, the old message copied from main. Pause for  

  • 00:15:29 a moment and pick the source you would want a  future change to follow. Now the message imports  

  • 00:15:36 the lower and upper limits from the policy file,  and builds its sentence from those 2 values. It  

  • 00:15:43 follows the same approved numbers as validation.  The same 100 minute request is still rejected,  

  • 00:15:49 and now the message says 30 to 90 minutes, which  agrees with the decision. 1 source, 1 promise.  

  • 00:15:57 So the answer is A: the approved policy used by  validation. The rejection and its explanation  

  • 00:16:04 now follow the same policy, and when the trial  ends, they change together. A clean merge was  

  • 00:16:10 never the problem; 2 copies of 1 decision were.  Next, a human reviewer looks at a change, and we  

  • 00:16:16 ask what that reviewer actually needs. Scene 4: a  diff needs a claim you can check. Read the change  

  • 00:16:24 first, then reveal the purpose, constraints,  checks and reasons behind each comment of the  

  • 00:16:29 review. The proposed change is by Ari, and Bo  reviews it. The diff removes MAX_MINUTES 120  

  • 00:16:37 and adds MAX_MINUTES 90. The message still says 30  to 120. And the change also includes an unrelated  

  • 00:16:45 helper rename. 2 different stories arrive in 1  diff, which already makes the review harder to  

  • 00:16:51 follow. Below the diff is a useful boundary:  linters and formatters handle routine style,  

  • 00:16:57 and human review examines correctness, security,  design and meaning. Decide before the reveal:  

  • 00:17:03 what can you decide from this diff alone? Option  A, every requirement is satisfied. Option B,  

  • 00:17:09 the author's confidence settles the  question. Option C, you can see the edits,  

  • 00:17:14 but the purpose and the evidence are still needed.  Pause the video and choose. Here is what the  

  • 00:17:21 reviewer needs. The purpose: the R-02 variant, a  90 minute upper limit, labeled as temporary. The  

  • 00:17:29 constraint: restore the approved 120 minute  baseline afterward. And the alternatives:  

  • 00:17:35 copy the limit into every message, or read the  approved limit from Policy. The answer was C. The  

  • 00:17:43 diff shows the edits; only this context tells the  reviewer what the change claims and which behavior  

  • 00:17:49 must stay the same. Now the checks on the combined  change. The boundary table passes: 90 is accepted,  

  • 00:17:55 91 rejected. But the message check fails: it still  says 120. And for R-03, the cancellation results  

  • 00:18:05 on the combined change are missing. Nobody has  shown yet that only the owner can still cancel.  

  • 00:18:12 Each review comment names its reason and addresses  the change, not the person. Correctness is  

  • 00:18:18 required: the message still says 120, so derive it  from the policy value. Security is required too:  

  • 00:18:25 retain R-03, and show the owner and non-owner  cancellation results. Design is required: the  

  • 00:18:31 helper rename is unrelated, so split it into its  own change. Understandability is already resolved:  

  • 00:18:38 the change states why the variant exists and when  it is restored. And the last one, a different name  

  • 00:18:45 for the constant, is only an optional preference.  Required correctness and security concerns are not  

  • 00:18:53 the same as a preference. 1 concern stays open:  the change must preserve cancellation ownership,  

  • 00:18:59 and its evidence is missing. Now the message is  repaired: it derives the displayed limit from  

  • 00:19:05 Policy, and the message check passes, saying 90.  The correctness comment is resolved, so its label  

  • 00:19:13 turns green. The authorization concern stays open  until its missing evidence arrives. Here it is:  

  • 00:19:19 Ari can cancel B-001, and Bo is rejected. The  ownership check stays in place. Both results are  

  • 00:19:26 linked to the change, and the approval explains  the retained check. Ari owns the change decision;  

  • 00:19:33 Bo reviews the evidence. Finally, the helper  rename moves into its own change, and the decision  

  • 00:19:41 is written down: read the limit from Policy, keep  the ownership check, review the rename separately.  

  • 00:19:47 When context is missing, asynchronous review  or a short call can resolve it. Keep the claim,  

  • 00:19:53 the checks, the decision owner and the reasons  in the change description. The principle:  

  • 00:19:59 review is an evidence-based conversation about a  change, not a vote on how convincing its author  

  • 00:20:06 sounds. In short, make the purpose and the checks  visible. Now the second condition, a focused  

  • 00:20:12 change. The rename already has its own change, so  the diff carries only the policy claim. What gets  

  • 00:20:19 easier? Option A, nothing: a small diff is safe  by itself. Option B, following the policy claim  

  • 00:20:25 and its checks. Option C, skipping the checks  of a short diff. Pause the video for a moment  

  • 00:20:30 and decide what a focused change really buys the  reviewer. The answer is B. With the rename gone,  

  • 00:20:38 the context names 1 claim: the temporary 90 minute  limit, and the behavior that must stay the same.  

  • 00:20:45 The checks and comments are the same as before,  except design: the rename is already a separate  

  • 00:20:51 change. Correctness and security are still  required here. A short diff does not skip any of  

  • 00:20:57 them. The message repair resolves correctness, and  the owner and non-owner results resolve security,  

  • 00:21:03 exactly as before. Next, the decision is recorded  with its reasons. A small, single-purpose change  

  • 00:21:12 is easier to follow, but it still needs a claim,  checks and a decision owner. The last condition  

  • 00:21:18 is an assistant draft. An automated assistant  drafted this diff, and its description says only:  

  • 00:21:24 “fix stuff”. The unrelated rename is in the diff  again. What changes for the reviewer? Option A,  

  • 00:21:31 nothing: the requirement, checks and rationale  are still needed. Option B, less: the assistant  

  • 00:21:37 checked its own change. Option C, only the style  needs a human. Pause the video and choose. Think  

  • 00:21:44 about who stands behind the claim when the author  is a tool. The answer is A. Nothing changes for  

  • 00:21:51 the reviewer. The claim is still R-02 at 90  minutes, temporarily, and “fix stuff” states  

  • 00:21:57 none of this. The same comments apply, with the  same reasons, and the same evidence resolves them:  

  • 00:22:04 the message repair, then the owner and non-owner  results. At the end, the rename is split out and  

  • 00:22:11 the draft gets a real description: derive the  duration message from the approved policy.  

  • 00:22:16 Now a reviewer can check that claim. Whoever  writes a change, a person or an assistant,  

  • 00:22:22 the reviewer needs the same packet. Next,  we ask when 2 lines of work discover that  

  • 00:22:27 their assumptions no longer agree. Scene 5: when  will the incompatible assumption become visible?  

  • 00:22:35 The intended work is the same in both lines. Only  the points where you check it against shared work  

  • 00:22:41 differ. In the middle is the common work. Above,  small integrations check along the way. Below,  

  • 00:22:47 a long-running branch checks only at the end.  Both start from the same shared contract at A,  

  • 00:22:54 where a message stores its own duration limit. The  events B, C and D follow in order, not in measured  

  • 00:23:01 time. Decide before the reveal: the shared  contract changes at B. Which line of work learns  

  • 00:23:07 about it sooner? Option A, the long-lived branch,  because it has more commits to compare. Option B,  

  • 00:23:15 both at once, because the contract is different  for both lines. Option C, the small integrations,  

  • 00:23:21 because their next check meets the new contract.  Pause and choose. At B, the message contract  

  • 00:23:28 changes: from now on, a message reads the approved  duration limit from Policy instead of storing  

  • 00:23:34 its own copy. At C, the next small integration  checks the message work against the new contract,  

  • 00:23:40 and the old assumption is visible right away. The  rework band runs only from B to C. The long-lived  

  • 00:23:47 branch keeps building on the old assumption. Only  at D does its final integration meet the change,  

  • 00:23:53 after all the work from B to D. So the answer  was C. Same intended work, same contract change,  

  • 00:23:59 but the small integrations met it while the work  was small, and the long branch met it much later.  

  • 00:24:05 1 more piece: frequent integration means  unfinished work arrives early. A toggle  

  • 00:24:12 keeps the unfinished message code switched off,  and each of its states needs checks. So this  

  • 00:24:20 switch separates integrating code from turning  the behavior on for users. The principle: choose  

  • 00:24:26 a collaboration strategy that exposes incompatible  assumptions early enough to act on them.  

  • 00:24:33 Now the control case: the contract stays  the same. Will either line of work find a  

  • 00:24:38 mismatch? Option A, no, there is no changed  assumption to find here. Option B, yes,  

  • 00:24:44 a long-lived branch always finds 1 at the end.  Option C, yes, frequent integrations create their  

  • 00:24:50 own mismatches. Pause and make your choice. At B  the contract remains the same, so no new mismatch  

  • 00:24:57 has been introduced. At C, the small integration  still agrees with the contract as it is. And at D,  

  • 00:25:05 the later integration agrees too. So the answer  was A. Integration frequency affects when you  

  • 00:25:10 discover a mismatch, not whether a mismatch  exists. The same switch rule holds here:  

  • 00:25:16 unfinished behavior stays unavailable while you  integrate. In short, meet changed assumptions  

  • 00:25:23 while the work is small. So far every scene  changed a file. The next scene keeps the source  

  • 00:25:29 files exactly the same, and still gets a different  answer. Scene 6: the source is the same, so why  

  • 00:25:37 did the answer change? We hold the source revision  and the request fixed, and inspect what each run  

  • 00:25:43 actually ran on. On the left is the declared run.  Its source revision is demo-r1, with the resolved  

  • 00:25:51 dependency teaching-range 1.0, teaching runtime  1, and MAX_MINUTES 120. It also names the data  

  • 00:25:59 fixture and the build artifact. The second machine  on the right lists the same 6 inputs, and both  

  • 00:26:05 runs answer the same request for 120 minutes.  Decide before the reveal: the second machine  

  • 00:26:12 gives a different answer. Which inputs could  explain it? Option A, only the source revision:  

  • 00:26:18 the same code gives the same answer. Option B,  resolved dependencies, runtime, configuration  

  • 00:26:25 or data. Option C, nothing: the same request must  give the same answer. Pause the video and choose.  

  • 00:26:32 Only 1 input changes: teaching-range resolves to  1.1 on the second machine. The allowed constraint,  

  • 00:26:39 at least 1.0 and below 2, permits either version.  Now read the dependency's comparison. Version 1.0  

  • 00:26:47 accepts minutes up to and including the maximum.  Version 1.1 uses strictly less than, so a request  

  • 00:26:54 of exactly the maximum is refused there. So the  same 120 minute request now gets a different  

  • 00:27:02 answer: accepted on the declared run, rejected on  the second machine. The answer is B. To repair it,  

  • 00:27:10 restore the resolved teaching-range 1.0 and repeat  the request. Both teaching runs agree again. A  

  • 00:27:18 lockfile records the selected versions, while a  constraint such as at least 1.0, below 2, allows  

  • 00:27:25 more than 1 selection. So record resolved inputs,  not only allowed version ranges. And keep 2  

  • 00:27:32 questions apart: reproducing a run is 1 question,  trusting a dependency is another. The principle:  

  • 00:27:38 reproducibility requires control of the relevant  inputs, not just possession of the source files.  

  • 00:27:45 In short, keep the inputs that explain the result,  together with the source. The second condition,  

  • 00:27:52 config drifts. This time only MAX_MINUTES differs.  What happens to the 120 minute request? Option A,  

  • 00:27:59 rejected: that run reads a maximum of 90.  Option B, accepted, because the source and  

  • 00:28:05 dependency are unchanged. Option C, accepted,  because configuration is not part of a run.  

  • 00:28:11 Pause and choose. Only MAX_MINUTES changes, from  120 to 90, on the second machine. The source and  

  • 00:28:20 the dependency stay fixed, and both runs use the  same inclusive comparison. That comparison reads  

  • 00:28:29 a different configured maximum, so the request is  accepted on the declared run and rejected on the  

  • 00:28:35 second machine. The right answer was A. Restore  MAX_MINUTES 120 and the 2 runs agree again. The  

  • 00:28:42 source stayed at demo-r1 the whole time; the  changed limit produced the different answer.  

  • 00:28:50 1 more input belongs with configuration: the  rooms token is a secret. Store its reference  

  • 00:28:55 with the configuration, and keep the secret  value itself outside the repository. The inputs  

  • 00:29:02 explain the result, and the history explains  the reason. The next scene asks whether a  

  • 00:29:06 short description like “fix stuff” can explain a  change later. Scene 7: will “fix stuff” help you  

  • 00:29:14 understand this change later? The diff shows what  changed. A useful record explains the problem,  

  • 00:29:20 the intended behavior and the constraints. On the  left is a weak change description: “fix stuff”,  

  • 00:29:27 linked to nothing. Which problem? Which expected  behavior? Which constraint? It answers none of  

  • 00:29:33 these. On the right is decision record DR-07.  It links the change, message-policy-fix,  

  • 00:29:39 to the decision and to requirements R-02 and R-03.  Right now the original author can still answer  

  • 00:29:46 questions. Decide before the reveal: what will a  future maintainer learn from “fix stuff”? Option  

  • 00:29:52 A, the reason for the decision. Option B, very  little about the problem, contract or constraint.  

  • 00:29:58 Option C, which alternative was rejected. Pause  and choose. Let's build the record step by step.  

  • 00:30:06 First the observed problem: the temporary policy  rejects 100 minutes while the message still offers  

  • 00:30:13 120. Then the intended behavior: the message  and the duration check use the same approved  

  • 00:30:20 limit. And the constraint: keep R-03 ownership  unchanged, and restore 120 after the trial. Next,  

  • 00:30:29 the alternative and the reason it lost: a second  hard-coded message was rejected, because 2 copies  

  • 00:30:35 drift independently. You saw exactly that drift  in scene 3. Finally, the checks: 90 accepted,  

  • 00:30:42 91 rejected, the message says 90, and Bo cannot  cancel Ari's booking B-001. So the answer was B:  

  • 00:30:50 “fix stuff” tells a future maintainer very little.  A conversation supplies context now, and keeping  

  • 00:30:56 its useful conclusion supplies that context to  the next maintainer. The principle: documentation  

  • 00:31:02 earns its place by preserving information that  cannot be reliably reconstructed from the code. In  

  • 00:31:08 short, keep the reason that the code cannot tell.  Now the harder condition: the original author is  

  • 00:31:15 unavailable. The 2 records are all you have. Where  can you still find why the message follows Policy?  

  • 00:31:22 Option A, in the diff of the messages file. Option  B, in “fix stuff”, the change description. Option  

  • 00:31:28 C, in DR-07: its problem, constraint and  rejected alternative. Pause the video for  

  • 00:31:34 a moment and choose. The record fills in the  same way: the observed problem, the intended  

  • 00:31:41 behavior and the constraint. None of it depends on  reaching the author. Then the rejected alternative  

  • 00:31:48 and the linked checks. So the answer was C. The  diff shows the edit, “fix stuff” shows nothing,  

  • 00:31:54 and only DR-07 keeps the reason. The record still  explains the choice. Without the author, you can  

  • 00:32:01 ask whether the original constraint still applies,  and decide from the evidence. A record explains  

  • 00:32:07 why a change was made. But first you sometimes  need to find which change it was. The next page  

  • 00:32:13 searches a history for the change that broke a  boundary. Which change first broke the boundary?  

  • 00:32:20 Test a midpoint, keep the part that contains the  failure, and repeat. This use of history is called  

  • 00:32:26 bisection. We need a repeatable check: does the  91-minute boundary check fail under the temporary  

  • 00:32:34 90 minute rule? Good means 91 is rejected. Bad  means it is accepted anyway. This is a separate,  

  • 00:32:41 straight history, h1 to h8, not the commit graph  from earlier. h1 is known good, and h8 is known  

  • 00:32:48 bad, so those are the 2 endpoints. So the suspect  range holds 7 changes, h2 through h8. Instead of  

  • 00:32:55 testing them one by one, test the middle. Let's  check h4. h4 is good: 91 is still rejected there.  

  • 00:33:03 So the failure came later, and the suspect range  narrows to 4 changes: h5 to h8, inclusive. Next,  

  • 00:33:11 the midpoint of what is left: check h6. It is bad,  so the failure is at h6 or before it. 2 candidates  

  • 00:33:17 remain: h5 and h6. 1 more check, h5. It is bad  too. The suspect range is now a single change: h5  

  • 00:33:25 is the first failing change. Just 3 checks instead  of 7. And the finding: h5 removed the upper bound.  

  • 00:33:33 The search tells you where to investigate;  the decision record explains why. Bisection  

  • 00:33:38 works only under 2 conditions: the check must be  repeatable, and the failure must persist from its  

  • 00:33:44 introduction all the way to the bad end of the  range. So history helps twice: bisection finds  

  • 00:33:51 the change, and a record like DR-07 explains it.  Now let's decide when a change is actually ready  

  • 00:33:57 for integration. Scene 8: which missing evidence  blocks this change? Passing checks, human approval  

  • 00:34:05 and combined behavior answer different questions,  so read each row on its own. Intended behavior,  

  • 00:34:13 satisfied: the temporary 90 minute limit, to be  restored afterward. Boundary checks, satisfied.  

  • 00:34:19 Combined behavior, satisfied: the displayed limit  agrees with Policy. But the authorization concern  

  • 00:34:26 is unanswered: the cancellation question has no  owner or non-owner result yet. And human review  

  • 00:34:32 keeps that R-03 concern open. The integration  check itself is satisfied: the combined change  

  • 00:34:39 passes its relevant checks. So the status at the  bottom reads: evidence missing. Decide before  

  • 00:34:47 the reveal: the checks pass, so what needs to  happen before this change is ready? Option A,  

  • 00:34:52 check the authorization behavior that is still  open. Option B, count the green indicators. Option  

  • 00:34:59 C, let 1 approval settle every question.  Pause the video for a moment and choose.  

  • 00:35:06 1 question remains: can Bo cancel Ari's booking  after this change? Now we run it. Ari can cancel  

  • 00:35:13 B-001; Bo's attempt is rejected under R-03. The  concern is resolved, and human review records its  

  • 00:35:20 decision and rationale. So the answer was A: check  the unresolved authorization behavior itself. Now  

  • 00:35:28 the intent, the review decision and the relevant  checks all support integrating this change.  

  • 00:35:34 The status reads: ready to integrate, in green.  And here the trial ends. R-02 is restored to 30 to  

  • 00:35:42 120 minutes, inclusive, and the affected boundary  and message checks run again. 120 is accepted,  

  • 00:35:50 121 is rejected, the message agrees, and ownership  stays the same. Later weeks use this canonical  

  • 00:35:57 baseline. The principle: integration readiness  is a justified judgment about the change and  

  • 00:36:03 its context, not a single green indicator. In  short, resolve the concern behind each indicator.  

  • 00:36:10 The second condition reverses the situation:  integration fails. Here human review has approved  

  • 00:36:16 the change, but the combined-change check fails,  and approval cannot repair its behavior. So what  

  • 00:36:23 needs to happen now? Option A, count the green  indicators. Option B, let the approval settle the  

  • 00:36:29 failing check. Option C, repair the integration  failure and run its check again. Pause the video  

  • 00:36:35 for a moment, and decide what an approval can  settle, and what it can never settle alone.  

  • 00:36:42 Approval and a failing integration check describe  different things. The failing behavior still needs  

  • 00:36:48 repair, so we repair the combined behavior and  rerun the check. Now it passes. So the answer was  

  • 00:36:56 C. With the check passing and the review approved,  the change is ready to integrate, and the trial  

  • 00:37:03 ends with the same restoration. Canonical baseline  restored. Neither a green check nor an approval  

  • 00:37:11 alone made this change ready; each indicator  answered its own question. That completes the 8  

  • 00:37:17 scenes. The next page collects their principles,  with 6 questions to check your understanding.  

  • 00:37:24 Here are the 8 principles of this lecture, one per  scene. One: history records relationships between  

  • 00:37:31 changes; branch names are movable references, not  the changes themselves. 2: a merge resolution must  

  • 00:37:38 reconcile intent and verify the combined behavior.  3: textual integration and semantic integration  

  • 00:37:45 are different kinds of evidence. 4: review is  an evidence-based conversation, not a vote on  

  • 00:37:51 how convincing its author sounds. 5: choose a  collaboration strategy that exposes incompatible  

  • 00:37:57 assumptions early. 6: reproducibility requires  control of the relevant inputs. 7: documentation  

  • 00:38:04 keeps the reason the code cannot tell. And 8:  integration readiness is a justified judgment,  

  • 00:38:10 not a single green indicator. Now 6 checks. Decide  your answer first, then open each one. Check 1:  

  • 00:38:17 what distinguishes a branch label from a commit? A  branch label points to a commit and can move; the  

  • 00:38:25 recorded commit represents a particular snapshot  and its ancestry. Check 2: can 2 changes merge  

  • 00:38:30 cleanly and still conflict? Yes. Their behavior  or assumptions can contradict each other even when  

  • 00:38:38 the edited text does not overlap, as in the clean  merge we saw. Next check: what information should  

  • 00:38:44 accompany a change to the policy? The intended  requirement, the affected behavior, the relevant  

  • 00:38:50 design constraints, and checks that demonstrate  the change. Check 4: why record dependency inputs?  

  • 00:38:59 Because the same source can run differently when  its resolved dependencies or configuration differ.  

  • 00:39:05 Check 5: what should resolve a substantive review  disagreement? A clear claim, the evidence needed  

  • 00:39:13 to decide it, and an accountable decision. And the  durable rationale should survive the discussion.  

  • 00:39:21 The last check leaves room booking behind. A  library's code and documentation merge cleanly,  

  • 00:39:26 but they describe different default behavior. Is  the change ready? Not yet. Resolve the intended  

  • 00:39:34 contract first, then compare the implementation  and the documentation with that contract in turn.  

  • 00:39:41 A textual merge detects some overlapping edits,  but it does not reconcile meaning across different  

  • 00:39:47 files. That is the lesson of the opening, in a new  setting. The last page lists what carries forward  

  • 00:39:53 to next week, the terms of this lecture, and where  to read more. Week 8 starts from this question:  

  • 00:40:00 what makes a verification check useful,  and what can a passing suite still fail to  

  • 00:40:06 establish? 3 things carry forward: the review  packet, with a clear claim, relevant checks,  

  • 00:40:12 resolved concerns and lasting reasons; the  canonical R-02 range and R-03 ownership rule;  

  • 00:40:19 and that question about checks. In practice, as of  2026: Git records history, and GitHub and GitLab  

  • 00:40:26 host the pull or merge requests where review  happens. Lockfiles such as package-lock.json and  

  • 00:40:33 uv.lock record resolved dependencies, and tools  like Ruff, ESLint and Prettier handle routine  

  • 00:40:40 linting or formatting before human review.  In the middle are the terms of this week,  

  • 00:40:46 from commit and branch reference to semantic  conflict, lockfile, feature flag, decision record  

  • 00:40:52 and bisection. And on the right are the sources:  the software engineering body of knowledge, the  

  • 00:40:59 computing curriculum report, Pro Git on branching  and merging, Google's code review practices, and  

  • 00:41:05 the docs for git bisect and lockfiles. So today  you followed 1 small promise through shared work:  

  • 00:41:12 how history records changes, why a clean merge can  still break a promise, and what a reviewer needs  

  • 00:41:19 to see. You also saw how recorded inputs, lasting  reasons and real evidence keep a team's changes  

  • 00:41:26 trustworthy. Thank you for watching, and I will  see you in the next lecture, week 8, on testing.

Clone this wiki locally