Module 6 · Lesson 94 of 108

Roles, acceptance criteria, and definition of done

Assign SensorNode Gateway work, write verifiable demo and assessment criteria, and define the evidence required to complete an issue and release the project.

  • Beginner to advanced
  • 9 min read
  • 25 min lab
What you will need

Ubuntu 24.04 in WSL2 or a VM, the SensorNode Gateway brief, and a text editor or issue board. The planning exercises require no target board.

Your place in the module
By the end you can 4 objectives
  • Assign one owner per issue and identify dependencies between issues.
  • Write demo criteria with a setup, action, expected result, and evidence.
  • Map assessment criteria to artifacts from a specific release candidate.
  • Define completion rules for tests, documentation, and security review.
Video coming soonRoles, acceptance criteria, and definition of done
The video for this lesson is being recorded. Read the lesson below in the meantime.
Recall first from Milestones, risks, and the vertical slice
  • The first milestone connects one sensor source to SQLite and MQTT.
  • A stable reading ID lets a tester match a database row to a received message.
  • A simulated source can verify integration while physical sensor validation remains pending.
01

Assign ownership and track the work

3 min read

A plan needs people and a finish line; this lesson covers roles, acceptance criteria, and the definition of done.

Linux provides virtual CAN interfaces that can send and receive CAN frames without a CAN controller. That lets a gateway developer check frame handling before the target hardware is ready. The board still needs a separate check with its controller, transceiver, and wiring. If an issue says only “CAN works,” a reviewer cannot tell which result was established. Assign a person to produce each result and name the environment on the issue. Linux kernel SocketCAN documentation

Use roles to assign responsibilities. In a small team, one person can hold several roles. Give each issue one accountable owner even when several people contribute. That owner keeps the issue current, coordinates changes across interfaces, and provides the evidence for review. Name the reviewer when the task needs someone from another area, such as a service developer reviewing the sensor record supplied by the fieldbus adapter.

For SensorNode Gateway, start with these responsibilities and assign them to people:

  • Integration lead. Own the release candidate, coordinate changes across interfaces, and run the agreed acceptance checks against that candidate.
  • Target and fieldbus owner. Own board setup, CAN and Modbus input, and evidence that the selected hardware and permissions work with the deployed service.
  • Service owner. Own processing a reading and reporting source failures through the agreed service interface. Coordinate the sensor record fields with the input and output owners.
  • Uplink owner. Own MQTT publication and the observable behavior when the broker becomes unavailable and returns.
  • Verification owner. Own the acceptance matrix, arrange access to the target, and make sure another person can reproduce the checks. Feature owners still write and run the tests their changes require.

Split the work into issues with observable results. For example, the service and fieldbus owners can first agree on the sensor identifier, value, unit, and how to represent an invalid reading. An input issue can then require a known CAN fixture to produce the agreed record. An uplink issue can require that same record to reach a test subscriber. An integration issue can require the deployed candidate to carry a reading from the designated source through to the subscriber. Link the integration issue to the input and uplink issues. Each owner can see what they need and what their work enables.

Use Backlog, Ready, In progress, In review, and Done on the issue board. Keep the owner, milestone, dependencies, acceptance criterion, and evidence link or location on each card. Move an issue to Ready when its result is clear and its prerequisites are available. Mark a blocked card where it stands and record the cause, the person who can resolve it, and the next action. If the CAN adapter is unavailable, the target check can stay blocked while the separately scoped virtual CAN check proceeds.

Agree on the interface before assigning work that depends on it. When someone changes the sensor identifier format, update the shared record definition and tell the owners of the affected issues. At each team check-in, inspect blocked issues and work awaiting review. Both can delay an integrated result even when everyone has an issue in progress. Move a card to Done when its reviewer has accepted the evidence.

Issue board statesBacklogRecordproposedworkReadyConfirmowner and prerequisitesIn progressImplementand verifyIn reviewPresentevidenceDoneRevieweracceptsevidenceBacklogRecordproposedworkReadyConfirmowner and prerequisitesIn progressImplementand verifyIn reviewPresentevidenceDoneRevieweracceptsevidence
Issue board states from backlog to accepted work
02

Specify what the demo and assessment must prove

4 min read

An gives two reviewers a way to reach the same decision. For each criterion, identify the starting setup, the action or input, the expected result, and the evidence to record. Use a named fixture or a recorded sensor value so the evaluator knows which reading to look for. Agree on any measurement window before the run and record when timing starts and ends.

Here is an example demo agreement for a gateway that publishes sensor readings to an MQTT broker. Confirm the required sources, fields, and recovery behavior against your project brief before adopting it.

Demo criterion Setup and action Pass condition and evidence
Publish a reading Start the deployed candidate with the agreed input and broker configuration. Subscribe to the configured topic, then supply a distinguishable reading. The subscriber receives a fresh message on that topic with the expected sensor identifier, value, and unit. Save the supplied value and the matching subscriber capture.
Report missing input With publication working, stop the designated input source and wait through the agreed stale interval. The operator status reports the source as stale or unavailable. If the contract allows the last value to remain visible, it is marked stale. Record the status and check that the old value is never presented as fresh during the observation window.
Resume after broker loss Interrupt broker connectivity in the test setup, observe the gateway status, then restore connectivity. Supply a new distinguishable reading. The gateway reports the interruption and delivers the new reading after connectivity returns, within the agreed recovery window and without an operator restarting the gateway service. Save the status and subscriber captures.

If both CAN and Modbus are required, run the reading criterion separately for each source. Label every result with its actual setup. A simulator run can support the software claim, and a target run can support the physical interface claim. For the recovery criterion, delivery of a new reading establishes resumed publication. If the brief promises delivery of readings collected during the outage, write a separate criterion that identifies those readings and states what delivery behavior the reviewer must observe.

The assessment adds evidence that the evaluator can inspect after the live run. Use an acceptance matrix with a criterion ID, environment, evidence location, candidate identifier, and result. Use Pass, Fail, or Not run, and record the reason for a failure or skipped run. For the build criterion, have a teammate follow the documented build and deploy steps from a clean checkout and record the commit or release identifier, target, configuration, and outcome. For the test criterion, link the results to the requirements they cover. For a design decision the assessment asks you to defend, link the decision record and identify where the candidate implements it.

Keep the matrix beside the release instructions. This lets an evaluator follow a claim from the brief to the check and then to the evidence for the exact candidate. When a fix changes the candidate, rerun the affected checks and record the new result. Keep previous results associated with the candidate that produced them.

From requirement to recorded resultRequirementName therequiredbehaviorSetup andactionSpecifyenvironmentand inputExpectedobservationState howto judgesuccessRecordedresultIdentifycandidateandevidenceRequirementName therequiredbehaviorSetup andactionSpecifyenvironmentand inputExpectedobservationState howto judgesuccessRecordedresultIdentifycandidateandevidence
How a requirement becomes a result the evaluator can verify
03

Apply the definition of done

4 min read

The applies even when an issue's own criterion passes. An MQTT publishing issue can demonstrate one correct payload while review is still open or the configuration example still asks for a real credential. Agree on the shared conditions at kick-off and apply them when reviewing each issue.

Tests. Require a reviewed change and passing checks for the behavior it affects. Include a normal case and a relevant failure case when the issue changes failure handling. A sensor-input change might need evidence for a valid reading and a timeout. Save the test invocation or procedure and the result so the reviewer can repeat it. If a required check is blocked, leave the affected work open and record the missing evidence.

Documentation. Update setup, configuration, and operating instructions when a change affects them. Include the inputs and broker details the operator must supply, the expected normal status, and how to recognise and recover from the failures in the demo agreement. Have a teammate follow the instructions using the candidate's documented setup. Record any manual step they needed to discover and add it to the instructions before closing the issue.

Security review. Identify who reviews changes to device access, network exposure, and credentials. Inspect the deployed service identity and privileges, check that the account has the access it needs, and review which interfaces the configuration exposes. Linux capabilities divide privileges into distinct privileges that can be checked independently. Where the candidate uses capabilities, require a reason for each one it grants. Review the example configuration and captured evidence for real credentials. Record the finding, reviewer, and resolution for anything that affects acceptance. capabilities(7): Linux process privileges

Going deeperPlan testability before implementation

At kick-off, assign an owner, fixture, and expected result to each required test. Identify boundaries where tests can substitute a dependency, such as the sensor input, clock, or publisher. Decide which claims require the real deployment before making the target the only place where anyone can check a failure case.

  • Unit tests with mocks. Use a fake clock to advance across the stale interval and a mock publisher to inspect calls. Supply a good reading, then a timeout. Assert that status becomes stale at the agreed boundary and that the program does not publish the old value as a fresh reading. These checks exercise the service's decisions without waiting for a physical sensor or real time.
  • Integration tests with test endpoints. Run the actual gateway adapters and service with a vcan interface for CAN, a Modbus simulator for the selected simulated transport, and a test MQTT broker. Feed known frames and register values, then compare the subscriber's output with the expected records. Stop a simulator or interrupt the test broker to verify the failure and recovery contract. Use a VM or Linux environment with vcan support for the CAN run.
  • Hardware-in-the-loop (HIL) on the target. Deploy the candidate on the selected board and use the real CAN interface and transceiver and the physical Modbus connection specified by the brief. Drive known inputs through the connected devices. Check the output, then repeat a controlled source interruption and recovery using the target setup. Record the board, adapters, configuration, and candidate so a reviewer can repeat the run. Virtual CAN covers frame handling through SocketCAN without demonstrating physical bus operation.
Release completionIdentifycandidateRecordbuild and configurationVerifyacceptanceDemo andassessmentcriteriaCheckqualityevidenceTests, documentation,securityreviewRecordcompletionIntegrationlead andreviewerIdentifycandidateRecordbuild and configurationVerifyacceptanceDemo andassessmentcriteriaCheckqualityevidenceTests, documentation,securityreviewRecordcompletionIntegrationlead andreviewer
Release completion depends on evidence for the candidate and independent review

The project is done when the integration lead and reviewer identify a single candidate, all required demo and assessment criteria pass, and the tests, documentation, and security evidence are attached to that candidate. Record optional follow-up work on the board. If a requirement changes, record who agreed to the change and update the criterion before accepting the release.

In Building the services and the event-driven core, you will begin implementing the responsibilities agreed here. The issue owners and acceptance criteria give that work a defined interface and a result the team can verify.

Key takeaways

  • An issue owner coordinates the work, resolves blockers, and supplies evidence for review.
  • Demo criteria describe observable behavior, and assessment criteria specify evidence a reviewer can inspect or reproduce.
  • The definition of done applies shared quality checks to completed issues and the release candidate.
  • Unit, integration, and hardware-in-the-loop tests establish different claims about the gateway.
Reflect
  1. Explain to a colleague, in two sentences: assign one owner per issue and identify dependencies between issues.
  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

Official documentation first. Links checked when the lesson was published.

Find your next step

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