Module 12 · Lesson 107 of 114

Peer review, lessons learned and self-assessment

Review SensorNode manifests against deployed behavior, document production gaps, and score your module skills using evidence.

  • Beginner to advanced
  • 11 min read
  • 37 min lab
What you will need

Ubuntu 24.04 in WSL2 or a VM, the SensorNode capstone source and deployment configuration, and demo or failure-injection records. No board is required.

Your place in the module
By the end you can 3 objectives
  • Trace service IDs, endpoints, and versions from the manifests to the implementation and observed behavior.
  • Write a production review with prioritized safety and security gaps and verifiable acceptance criteria.
  • Score your ability to meet module objectives using artifacts that a peer can check.
Video coming soonPeer review, lessons learned and self-assessment
The video for this lesson is being recorded. Read the lesson below in the meantime.
Recall first from Failure injection and code review
  • SIGKILL prevents the target from running its user-space shutdown handlers.
  • A live process can miss health deadlines, and a restarted process can still fail to serve its consumer.
  • Rollback evidence includes the active version, usable persistent state, and successful consumer traffic.
01

Review the manifest against the running system

4 min read

The review checklist is done. This lesson answers how the manifests are checked against the code, what gaps remain, and how you score yourself.

A service can start successfully and still be unreachable from its intended consumer. Linux associates a socket with a local address when the program or middleware binds it. That operation can succeed even when the service advertises a different endpoint or the consumer selects a different instance. Review the bind and the service exchange as separate claims. bind(2): bind a name to a socket

Give the reviewer the source revision, deployment configuration, build or package identity, and the launch instructions for one SensorNode run. Identify which manifest or deployment artifact owns each value and which artifact each process actually reads. If an input model generates code or runtime configuration, record the generated file that was built or installed. If launch settings select a different configuration, record that selection as well. A source location is useful when the reviewer can connect it to the artifact that ran.

Start with one provider and one consumer. For each contract item, record the expected value and its source, the value used by each side, and evidence from the run. Include a file and symbol or configuration key wherever possible. A trace entry should identify the relevant exchange and the observation that supports the result.

Review item Compare in the artifacts Confirm during the run
IDs Match the service and instance IDs on the offer and lookup paths. For the path under review, compare the method or event ID and any eventgroup ID used for subscriptions. Check actual numeric values when files use different bases. Identify the intended offer and the matching request and response, or the subscription and event delivery. Check the instance through discovery or binding evidence.
Endpoints Compare transport, bind address and port, advertised address and port, and the consumer's selected destination. Check the intended interface and any documented routing or address translation. Inspect the local socket in the environment where the middleware runs. Compare discovery endpoint information with the destination the consumer actually uses when network traffic is available.
Versions Compare the declared service interface version, the provider's offered version, and the consumer's selection rule. Read the actual compatibility policy for major and minor versions. Record package versions separately. Check the intended pairing and, if the review includes compatibility, confirm the behavior of an incompatible pairing using a documented expectation.

On Ubuntu, ss -ltn lists listening TCP sockets with numeric addresses and ports. ss -lun lists UDP sockets selected by the listening filter, with numeric addresses and ports. For a UDP endpoint that uses a connected socket, inspect ss -uan as well. Run the inspection in the network namespace that contains the relevant socket. If the routing manager owns the socket, inspect that endpoint and trace the application through its routing configuration. A socket listing supplies local transport evidence. A discovery record or application trace supplies evidence about the service identity. ss(8): investigate sockets

Review any local and network execution paths the project claims to support. A successful local exchange can exercise local routing without exercising the advertised network endpoint. Likewise, a method exchange can succeed while an event subscription uses a different eventgroup or an outdated consumer binding. Give each claim its own evidence. If a local run provides no network evidence for a row, mark that row unverified for network deployment and name the run that would verify it.

Ask the peer to reproduce one row from the launch instructions and follow one finding from declaration to implementation to runtime observation. Record a result for each row as matched, mismatch, or unverified. For a mismatch, explain the user-visible effect and identify where to correct the value. If stale generated output caused the discrepancy, regenerate from the corrected input, rebuild or repackage, and repeat the affected exchange with the new artifacts. Close the finding when the peer can follow that evidence.

Trace the deployed contractDeclaredcontractIDs,endpoints,versionsEffective configurationProviderandconsumerRuntimeevidenceReviewresultDeclaredcontractIDs,endpoints,versionsEffective configurationProviderandconsumerRuntimeevidenceReviewresult
Trace a declared service contract through the deployed configuration to a runtime observation.
02

Record lessons learned and production gaps

4 min read

Record what the team expected, what it observed, and what it will change. Cite the test conditions and the artifact that supports the observation. If the cause is still uncertain, label it as a hypothesis and specify how to test it. For example, if a run shows that restarting a provider restored discovery but the consumer still used an old sample, cite the service trace and the consumer's sample record. A lesson learned could be that the recovery check must include acceptance of a fresh sample after restart. Keep that lesson scoped to the behavior the evidence supports.

A production gap describes a requirement that remains open. Write each gap as an observed or unverified condition, the consequence in the intended deployment, a proposed control, an owner role, and an acceptance test. State the deployment assumption that makes the consequence matter. A stale reading can matter differently to a dashboard and to a function that acts on the reading. Prioritize by the consequence and the conditions under which it can occur. When a requirement or hazard decision is missing, mark the priority provisional and name the decision needed.

Consider sample freshness as a safety review example. If the consumer can retain the last valid reading through a provider outage, a dependent function might continue using outdated input. Inspect where freshness is checked and what the downstream software receives after expiry. Propose a defined validity limit and a fallback behavior derived from the system's safety requirements. Assign the consumer application owner and ask the safety lead to confirm the requirement. The acceptance test should interrupt fresh data, verify the invalid status and specified fallback by the required deadline, and confirm that normal use resumes only after the defined recovery conditions are met. Record the deadline as an open requirement if the project has yet to establish one.

For a security example, examine the UCM-lite update path. State what evidence exists for checking package origin and integrity before activation and for authorizing the component that requests the update. If origin verification is missing or unverified, propose authenticated signing with managed trust anchors and a verification step before activation. Assign the update owner. Acceptance evidence can include an approved package activating and a benign package signed by an untrusted test key being rejected while the active version stays installed. Record authorization and rollback policy as separate claims if they carry different risks or require different tests.

A commercial Adaptive deployment may use vendor tooling to validate deployment models, generate bindings, and produce target-specific artifacts. The integration team still needs to establish which generated artifact shipped and how it behaves on the intended hardware and network. Production supervision can have configured deadlines and recovery actions tied to system requirements. The product program would also need evidence for the selected isolation, identity and key management, and update controls. Which capabilities the vendor supplies and which the vehicle team integrates depend on the product and release. For each gap, identify the required capability, who configures it, and what evidence the project must produce. A successful Ubuntu demo supports the review of the capstone under its lab conditions.

Document a production gapEvidenceConsequenceProposedcontrolOwnerAcceptancetestEvidenceConsequenceProposedcontrolOwnerAcceptancetest
Give each production gap a consequence, an owner, and a testable closure criterion.
Going deeperRecap performance and locate a bottleneck

Start with measurements from the demo if you have them. Record the workload, payload, host or target, build, transport, logging settings, and measurement boundaries. State whether the run measured startup, steady-state delivery, or recovery. For each metric, give the sample count and observed spread. For a latency distribution, include a typical value and a tail value when the sample count supports that summary. Record drops and timeouts separately so that a report of completed deliveries does not hide missing observations. If you lack timestamps for a stage, mark its cost unmeasured.

For end-to-end latency on one Ubuntu host, correlate the same request or sample at each measurement point. Use CLOCK_MONOTONIC for elapsed time within the same clock domain. Across separate machines, a request and its response timed at the same client give a round-trip measurement. A one-way measurement across machines requires a known relationship between their clocks and an assessment of synchronization error. State whether startup and discovery are included before comparing results. clock_gettime(3): read a clock

Separate time spent waiting for an application worker from time spent doing work. Timestamp enqueue and dequeue to measure queue residence. Timestamp handler entry and exit to measure elapsed time in the handler, which can include blocking and scheduling delays. If queue residence grows with offered load while handler time stays similar, investigate worker capacity and competing work. That evidence identifies where delay accumulates, while the specific cause still needs testing. Change one condition at a time, such as logging volume, and repeat the same workload using the same timing points. Report whether the delay shifted, along with any change in dropped samples. Treat results from WSL2 or a VM as evidence for that environment when deciding what to measure on the target.

03

Score yourself against the module objectives

3 min read

Use the module objectives as claims about what you can explain, perform, and verify. For each objective, write down an artifact you can show, what you did yourself, and the limits of the evidence. One artifact can support several objectives if you identify the distinct observation for each. Keep separate scores where your understanding differs. For example, a clear explanation of health supervision and a reproducible recovery test demonstrate different abilities.

Score each objective from zero to three. Give yourself 0 if you cannot explain or demonstrate it yet. Use 1 if you can explain it or follow guided instructions but need help to complete the task. Use 2 if you can perform it independently and identify evidence that verifies the expected result. Use 3 if you can also explain a relevant trade-off, verify a failure or boundary condition, and state the limits of the result. Apply the same scale to explanations by treating a defended design choice or annotated architecture as the artifact. Preserve the scores by objective so a strong communication demo cannot hide an unverified recovery claim.

Use these objective groups to choose your evidence across M12.

Skill to demonstrate Evidence to show a peer
Explain deployment architecture and justify platform choices Annotate a vehicle architecture with Classic and Adaptive responsibilities. Explain one decision involving networking, POSIX constraints, or isolation between workloads.
Trace a service contract and verify an exchange Show a manifest review row, the corresponding code or generated binding, and a trace of discovery plus the intended method or event behavior.
Explain and verify execution and health behavior Show the expected startup, readiness, shutdown, or recovery sequence alongside a trace. Identify the condition that distinguishes a running process from a ready service.
Relate storage, observability, diagnostics, and time to system behavior Show evidence for one objective at a time, such as storage recovery, a correlated DLT trace, a diagnostic result, or a justified choice of clock for a measurement.
Evaluate security, update, and safety controls Explain a trust boundary, a compatibility or rollback decision, and a safety gap. Tie each claim to a test result or mark the verification outstanding.
Assess integration and release quality Tie a build or package to the source and deployment inputs. Explain a stack choice and identify which evidence requires CI, hardware-in-the-loop, or the target network.

For an example score, consider the objective “Verify health recovery.” Suppose you can independently repeat a restart test and show that the supervisor restarts the process and the service reports readiness. That supports a 2 for the tested scenario if those are the expected outcomes. To support a 3, show a relevant boundary such as a process that starts but never becomes ready. Explain the intended recovery action and cite evidence of what the supervisor and consumer did. If you verified readiness only on a VM, carry that condition into the score. If you relied on a peer to interpret the trace, record which interpretation you need to repeat independently.

Ask the reviewer to challenge one high score and reproduce its evidence from your notes. For a low score, write one action and the observation that would justify raising it. “Study updates” says little about progress. “Run the configured incompatible-package case and show that the active version is preserved” gives you a result to review. Use the scores and peer findings to decide what you would change before a release and what you can already defend with evidence.

Score an objectiveSelectobjectiveShowevidenceCheck withpeerRecordscorePlan verificationSelectobjectiveShowevidenceCheck withpeerRecordscorePlan verification
Score each objective using an artifact, a peer check, and an identified verification gap.

Common questions and rapid-fire terminology follows this lesson. It asks how clearly you can explain the terms and distinctions that you just used to defend your review.

Key takeaways

  • A manifest review compares the declared contract, the effective deployment configuration, and runtime evidence.
  • An open socket can corroborate a transport endpoint, while a service exchange provides evidence about the interface in use.
  • A production gap needs a consequence, a proposed change, an owner, and a verification criterion.
  • A self-assessment score applies to the conditions covered by the evidence.
Reflect
  1. Explain to a colleague, in two sentences: trace service IDs, endpoints, and versions from the manifests to the implementation and observed behavior.
  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