Module 9 · Lesson 112 of 112

Self-assessment and sign-off

Use the M9 checklist to identify weak areas, verify lab completion, and establish whether your project demo has been accepted for final sign-off.

  • Beginner to advanced
  • 7 min read
  • 30 min lab
What you will need

Ubuntu 24.04 in WSL2 or a VM for the practice review, the M9 checklist, your lab records, and your sensord and driver source. Use the target setup specified by the project rubric for the demo.

Your place in the module
By the end you can 4 objectives
  • Identify weak areas by comparing your evidence with the M9 checklist.
  • Revisit the lessons that address specific gaps and verify your progress independently.
  • Determine whether all lesson labs are complete and the project demo has been accepted.
  • Defend the sensord unsafe FFI boundary and the kernel driver's memory-safety argument using your source.
Video coming soonSelf-assessment and sign-off
The video for this lesson is being recorded. Read the lesson below in the meantime.
Recall first from The embedded and kernel components
  • The embedded component requires a target run of the cross-built executable.
  • A dynamically linked executable needs its target interpreter and compatible libraries at run time.
  • The Rust module is built with Kbuild and loaded into the matching Rust-enabled course kernel.
01

Find weak areas in the module checklist

3 min read

You completed the embedded and kernel parts. This lesson answers how to self-assess and meet the final sign-off criteria.

A short read gives you a concrete way to start. A successful read can return fewer bytes than requested. If your lab record only shows that a device returned data, it may leave open whether you can explain how the caller handles the returned byte count. The read(2) manual documents this behavior. During self-assessment, ask what the recorded result actually demonstrates, then locate the code or the earlier work that answers the remaining question.

Open the actual module checklist and work through its entries. For each entry, record the relevant lesson ID, the evidence you already have, and a brief judgment about what you can do unaided. Evidence might be a completed lab record, the revision and test result for a project change, or a source location you can explain. Keep your judgment specific. “I can explain the normal read path, and I need to check how the caller handles a short read” gives you something to verify. “I need more Linux practice” leaves the next action unclear.

From checklist entry to recheckReadchecklistentryInspectevidenceIdentifygapRevisitlessonRecheck independentlyReadchecklistentryInspectevidenceIdentifygapRevisitlessonRecheck independently
Use each checklist entry to choose evidence, a lesson to revisit, and an independent recheck

A gap can involve knowledge, execution, or evidence. If you can run the lab but cannot explain why the output supports its goal, revisit the lesson for the underlying concept. If you can explain the idea but cannot complete the lab procedure, revisit the steps and repeat the operation that stopped you. If you can reproduce and explain the result but cannot locate the required record, recover or recreate the evidence according to the lab instructions. A checklist item can have more than one gap. Record each in a sentence so you know what the recheck must resolve.

For example, suppose you find the sensord wrapper for a C call but hesitate when asked who releases a value returned by the library. Start with M9-S06B4, “Ownership across FFI and safe wrappers,” then return to the project boundary in M9-S11A2, “MQTT and the C FFI boundary.” Read the relevant contract and trace the value to the point where ownership ends. On the recheck, explain who owns it, when it can be used, and what happens if the next operation fails. Record the code location and the contractual detail that supports the answer. Apply the same method to whichever entries your review actually identifies.

Prioritize items with an unfinished lab or a gap that affects the demo. When several items depend on the same idea, address that dependency first. For instance, a missed ownership transfer can make both cleanup and the failure path hard to explain. After reviewing it, revisit each affected checklist entry individually. If the recheck still fails, keep the entry open and write down the exact step or claim that defeated you. That detail tells you where to resume without repeating the entire module.

02

Establish whether you can sign off

3 min read

Final sign-off requires both conditions to be true. All lesson labs are completed, and the project demo is accepted. Your checklist review helps you decide what to do next. The lab records and the demo decision establish whether the conditions are met.

Final sign-off statusLabs completeDemo acceptedSign-offOpen labNoYesPendingDemo awaitingacceptanceYesNoPendingBoth conditionsmetYesYesComplete
Verify lab completion and demo acceptance before recording final sign-off

For lab completion, compare the module's lab list with your records one entry at a time. Use each lab's own completion instructions to decide what evidence belongs with it. A lab may require an observable behavior, a saved artifact, or a result from a specified environment. Where a lab specifies a board or kernel setup, check that your record identifies the setup you actually used. If you find an old result and cannot tell which build it came from, recover the relevant record or repeat the required check. Mark the lab complete once the result and any required deliverable are accounted for.

For the demo, use the walkthrough and acceptance criteria you already worked with in the project review and assessment lessons. Identify the project revision and target setup used for the demo so you can associate the decision and any feedback with the work assessed. During preparation, identify the behavior each demo step is meant to show. If a step fails, record the expected and observed behavior, fix the issue, and repeat the affected check. Follow the assessment's review process for any required resubmission. Keep the demo pending until the assessor communicates acceptance through that process.

These conditions can be satisfied at different times. If the demo is accepted while a lab remains open, complete that lab and verify its evidence. If every lab is complete and the demo is awaiting review, the status is still pending. If the assessor requests a correction, use the feedback to identify what must be demonstrated again and track the resulting acceptance decision. A rehearsal can give you evidence that the project is ready to present. Acceptance records the assessor's decision about the submitted demo.

Keep a concise record you can read in one pass. Include the completed lab records, any open lab IDs, the demo revision, and the demo decision or current status. Before declaring sign-off, ask yourself which record supports each condition. If you can point to both, you have the evidence the module requires. If one record is missing, your status should identify that exact gap and the next action it requires.

03

Defend your project to an examiner

3 min read
A source-based safety defenseLocateoperationStatesafetyconditionShowenforcingcodeIdentifyexternalcontractLocateoperationStatesafetyconditionShowenforcingcodeIdentifyexternalcontract
Build each oral answer around a source location, a safety condition, and the code or contract that supports it
Going deeperExplore the mechanism

In a defense, or viva, the examiner can point to a line in your source and ask what would make it safe. Prepare to answer from the version you demonstrated. State the claim for that operation, trace the code that supports it, and identify any assumption provided by a library or kernel abstraction. The kernel's Rust general information explains how safety comments document why an unsafe operation is sound. Use the same reasoning when you explain your project aloud.

For sensord, begin with the safe Rust operation that reaches the C library. Follow it to the actual foreign call and say which preconditions the Rust wrapper establishes before the call. If an argument is a pointer into a Rust-owned buffer, show where the buffer comes from, how its valid extent is established, and how long it stays alive. Explain how you know whether C may write through the pointer or keep it after returning. Use the library contract to support that statement. If the call transfers ownership, point out where the transfer takes effect, who must release the value, and which release routine its contract requires.

Then describe one error path. If the C operation can fail with an output left uninitialized, show which success condition the wrapper checks before reading that output. If the caller must clean up a resource acquired before failure, show who owns it on that path and how it is released once. An examiner might ask what would break if C retained a pointer the wrapper assumes is borrowed only for the call. Explain that the buffer could cease to be valid before C's later access, then identify the contractual guarantee your implementation relies on. Where the relevant guarantee is missing, record the open question and revisit the boundary before defending the claim.

For the Rust kernel driver, pick an existing operation that accesses device state or a buffer. Start with who owns the state and what keeps it alive while the operation uses it. Show how the code limits access to the valid buffer extent. If the operation shares mutable state with another callback or file operation, trace the actual locking protocol and identify which accesses it covers. For a user-space transfer, name the abstraction you actually use and explain how its result affects the operation. Show where the driver relies on the kernel abstraction's contract and where it must still check its own lengths or state.

Finish the driver argument at teardown. Explain what prevents the selected operation from accessing state after it is released. Point to the relevant lifetime or registration guarantee and any cleanup ordering your implementation needs. If you mention a successful test, name the behavior it exercised. A runtime test gives evidence for the path it ran. The memory-safety argument also needs to account for the valid inputs, failure paths, and overlapping accesses permitted by the code and its contracts.

After the review, identify the checklist entry you would reassess first if you had to defend the project again. Write down the result that would show you had resolved the gap. Once every lesson lab is complete and the project demo is accepted, record the final sign-off and continue to the next module.

Key takeaways

  • A useful self-assessment records what you can reproduce and explain for each checklist item.
  • A weak area should lead to a specific lesson and an independent recheck.
  • Final sign-off requires all lesson labs to be complete and the project demo to be accepted.
  • A memory-safety defense identifies the invariant, how the code maintains it, and what it assumes about external code.
Reflect
  1. Explain to a colleague, in two sentences: identify weak areas by comparing your evidence with the M9 checklist.
  2. Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
  3. What surprised you when you ran the commands yourself?
On a real board

Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.

References and further reading

Find your next step

↑ ↓ to move · Enter to open · Esc to close