Learning outcome: Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
Use the offline browser model with fictional values. Web Crypto must be available for actual SHA-256. If unavailable, start the local website server and open localhost. No wallet or blockchain network is required.
Predict: Write down the expected positive and negative outcomes in the notebook before proceeding.
B03 · Academic orientation
Scope and objectives
Scope of the experiment
Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
The focus of this experiment is to trace proposed transactions and agreement under the classroom consensus model. Students then evaluate conflicting decisions and finality assumptions, and explain modeled agreement versus actual distributed security. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Trace proposed transactions and agreement under the classroom consensus model.
Evaluate conflicting decisions and finality assumptions.
Explain modeled agreement versus actual distributed security.
Identify the configured inputs (Validator 0; Validator 1; Validator 2; Validator 3) and record the corresponding observed outputs with units where applicable.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can trace proposed transactions and agreement under the classroom consensus model, evaluate conflicting decisions and finality assumptions, and explain modeled agreement versus actual distributed security.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing explain modeled agreement versus actual distributed security. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the following catalogue prerequisites before starting. After completion, continue to B04 · Solidity fundamentals with Remix.
The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Understand the experiment
Four-voter agreement · Compare quorum outcomes
A teaching rule of three matching votes is not a complete distributed consensus protocol
Scientific architecture · Four-validator agreement and availability
Scientific concept map: Proposal — Candidate value; Four validators — Individual votes; Network — Offline / conflicting nodes; Quorum — Agreement criterion; Finality — Commit only if threshold met.
Scientific foundations and analytical reasoning
A quorum is a threshold on agreeing votes, not the number of online nodes. Agreement and liveness differ.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
Scientific theory · Quorum, safety and liveness
Consensus seeks agreement among nodes despite a defined fault model. A quorum threshold counts matching eligible votes, not just online nodes. Safety prevents conflicting decisions; liveness requires progress under specified network and fault assumptions. In the simplified n=3f+1 Byzantine case, 2f+1 votes form the quorum.
Worked example and engineering interpretation
With n=4 and f=1, three matching votes satisfy the teaching quorum; two votes do not. Three online nodes are insufficient if they disagree. Quorum intersection supports safety only under the protocol's assumptions, including correct identity and voting rules.
Engineering principles · additional worked teaching example
Finality is a protocol property, not simply a plurality. A model requiring 4 of 5 votes cannot finalize a 3:2 split. Quorum thresholds and fault assumptions must be stated.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
How to investigate B03 · Distributed agreement and finality
Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
Start A,A,A,B. Record quorum 3 and accepted value A.
Set third vote B; observe two votes per proposal and no decision.
Set third offline; explain lack of progress with two A votes.
Create B,B,A,B and observe the different quorum.
Reference check: Observer decisions reflect the actual received votes and threshold. Equivocation is visible, and lack of quorum produces no decision.
Model boundary: No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake.
Independent task and submission evidence
2. Set third vote B; observe two votes per proposal and no decision. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Validator 0 = A; Validator 1 = A; Validator 2 = A; Validator 3 = B. In the classroom model, Decision = A; Votes A = 3; Votes B = 1; Offline = 0. Three of four votes are required in this exercise. Fixed four-voter single-round quorum fixture.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · independent state notebook
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 4 · Calculated state 1
Calculated state 1
Validator
V0
Vote
A
Calculated state 2
Validator
V1
Vote
A
Calculated state 3
Validator
V2
Vote
A
Calculated state 4
Validator
V3
Vote
B
Teaching example only; inspect live calculations or real practical evidence separately.
Recall the concept before revealing its explanation.
0 / 3 revealed
B03 · 01 / 08What is consensus?Reveal explanation
Engineering explanation
A mechanism for agreeing on a common state despite distributed observations.
B03 · 02 / 08Why require three votes here?Reveal explanation
Engineering explanation
Any two sets of three out of four overlap; under the model each voter votes once.
B03 · 03 / 08Is this Ethereum proof of stake?Reveal explanation
Engineering explanation
No. Ethereum has validator weights, fork choice, checkpoints and protocol rules absent from this model.
B03 · 04 / 08Why distinguish voting agreement from real distributed consensus?Reveal explanation
Engineering reasoning
A fixed vote-count model omits network timing, adversary assumptions and protocol state; it demonstrates only its stated decision rule.
B03 · 05 / 08Why test a vote split without sufficient quorum?Reveal explanation
Engineering reasoning
It verifies the model does not announce finality when its acceptance threshold is unmet.
B03 · 06 / 08Four validators use a fixed three-vote quorum. Select every technically valid statement.
A. Three matching votes meet the teaching quorum.
B. Two votes for A and two for B do not meet that quorum.
C. Two matching votes meet a three-vote quorum.
D. This fixed rule alone implements every property of a BFT protocol.Reveal explanation
Applied scenario
Correct: A. Three matching votes meet the teaching quorum.; B. Two votes for A and two for B do not meet that quorum.
B03 · 07 / 08How do you carry out 3. Test availability?Reveal explanation
Implementation recall
Set three voters to B and one to offline, then evaluate; next set two offline.
B03 · 08 / 08For B03 · Distributed agreement and finality, which actual output or state confirms the prescribed practical run succeeded, and what does it not establish?Reveal explanation
Evidence & acceptance
Four voters, threshold three, one vote per voter. AAAA gives A; AABB gives no decision; BBBO gives B, BBOO gives no decision (O means offline). This is a fixed educational voting abstraction, not proof-of-stake or Byzantine consensus.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery researchLoading experiment-specific apparatus…Previous model / additional reference tools
Simulation task
Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.
Interactive engineering workbenchB03 · Existing model
Interactive simulation
The model is an independent teaching abstraction, not Solidity execution or Ethereum consensus. SHA-256 uses actual browser cryptography when available.
Browser ledger / digest abstraction; not EVM transaction execution.
Loading instrument…
Awaiting model display.
Experimental instrumentation · A/B
Compare two model conditions
Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.
Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.
Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.
Prepare a contextual AI prompt
0 characters
Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.
Prepare → review → copy & open your selected provider → paste and submit there.
Run & verify — acceptance checklist
Build verification: Actual quorum model tested.
Four voters, threshold three, one vote per voter. AAAA gives A; AABB gives no decision; BBBO gives B, BBOO gives no decision (O means offline). This is a fixed educational voting abstraction, not proof-of-stake or Byzantine consensus.
Record the actual output, source (mock/model or physical), and any error. A missing tool, timeout or untested external service is not a pass.
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
For four voters and threshold three, determine outcome of A,A,A,B; A,A,B,B; A,A,offline,offline.
Engineering method — Finality is a protocol property, not simply a plurality. A model requiring 4 of 5 votes cannot finalize a 3:2 split. Quorum thresholds and fault assumptions must be stated. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Explain why two conflicting three-vote quorums intersect and why this alone is not a full Byzantine protocol proof.
Engineering method — Finality is a protocol property, not simply a plurality. A model requiring 4 of 5 votes cannot finalize a 3:2 split. Quorum thresholds and fault assumptions must be stated. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Boundary analysis
Boundary analysis · Independent work
Seven validators vote A,A,A,A,B,B,B under threshold five. Is either finalized? If one B switches to A, what changes?
Boundary analysis — Finality is a protocol property, not simply a plurality. A model requiring 4 of 5 votes cannot finalize a 3:2 split. Quorum thresholds and fault assumptions must be stated. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · B03-01
Use the reference configuration (Validator 0 = A; Validator 1 = A; Validator 2 = A; Validator 3 = B), but change Validator 0 = B. The model reports Decision = No decision. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Interpret a state transition
Independent theoretical exercise · B03-02
The reference model reports Decision: A. Under Validator 0 = B it reports No decision. Explain which configured condition changed and what the two outputs establish, and what they do not establish.
Intermediate · Interpret a technical trace
Independent theoretical exercise · B03-03
For Validator 1 = B, the model supplies this excerpt from Ballots:
Validator · Vote
V0 · A
V1 · B
V2 · A
V3 · B
Count rows whose Vote value is exactly “A”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · B03-04
An observation is Decision = No decision. Candidate A uses Validator 0 = A; Validator 1 = A; Validator 2 = A; Validator 3 = B. Candidate B changes the listed settings (Validator 1 = B) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · B03-05
A student configures Validator 3 = A while preserving all other reference settings, but copies the reference report of Votes A = 3. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · B03-06
Design a controlled comparison for B03 · Distributed agreement and finality using reference Validator 0 = A; Validator 1 = A; Validator 2 = A; Validator 3 = B and test Validator 0 = B. Specify the changed setting(s), measured metric Decision, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Use a fixed four-validator quorum to inspect agreement and liveness.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Validator 0A
Validator 1A
Validator 2A
Validator 3B
2 · Perform the investigation in order
Start A,A,A,B. Record quorum 3 and accepted value A.
Set third vote B; observe two votes per proposal and no decision.
Set third offline; explain lack of progress with two A votes.
Create B,B,A,B and observe the different quorum.
Explain why this single-round fixture is not a complete Byzantine consensus protocol.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Three votes for A
Use reference inputs above
Decision: A; Votes A: 3
Record actual result
Two/two split
Validator 2 = B
Decision: No decision
Record actual result
Unavailable voter
Validator 2 = offline
Decision: No decision
Record actual result
Three votes for B
Validator 0 = B; Validator 1 = B
Decision: B
Record actual result
4 · Analyze and report
Distinguish availability of voters from agreement and finality.
Required evidence: Vote table and split/offline cases.
Model boundary: Fixed four-voter single-round quorum fixture.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Three votes for A
Use reference inputs above
Record actual outcome and units
Two/two split
Validator 2 = B
Record actual outcome and units
Unavailable voter
Validator 2 = offline
Record actual outcome and units
Three votes for B
Validator 0 = B; Validator 1 = B
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Set two validators to A and two to B. Evaluate votes.
✓ Expected: No decision because neither reaches three votes.
3. Test availability
Set three voters to B and one to offline, then evaluate; next set two offline.
✓ Expected: First B is selected; with only two active voters there is no decision.
Experimental notebook
Record your own results. Values are not prefilled or independently verified.
Source & scientific method
This quorum model assumes four fixed participants, one vote each, no equivocation and a threshold of three. It is not a Byzantine fault-tolerant protocol or a live blockchain.
Compare each observation with its expected result. If a check fails, identify whether the issue is the environment, contract selection, caller identity, sequence, byte encoding or model setup. Do not infer success from a timeout or a missing receipt. In Remix inspect the compiler errors and revert message; do not bypass the negative control.
Reset the browser model for a fresh run. Resetting Remix VM removes its deployed state. Keep screenshots and receipts before reset. For actual EVM execution, save compiler/fork/settings and transaction receipts. Explain limitations and propose one additional independent test.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# B03 · B03 · Distributed agreement and finality
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Use a fixed four-validator quorum to inspect agreement and liveness.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Compare agreement, split votes and unavailable voters under a fixed four-voter teaching rule.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Start A,A,A,B. Record quorum 3 and accepted value A.
2. Set third vote B; observe two votes per proposal and no decision.
3. Set third offline; explain lack of progress with two A votes.
4. Create B,B,A,B and observe the different quorum.
5. Explain why this single-round fixture is not a complete Byzantine consensus protocol.
**Evidence:** Observer decisions reflect the actual received votes and threshold. Equivocation is visible, and lack of quorum produces no decision.
**Boundary:** No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake.
03Instructions · Markdown
## 2. Reference configuration and investigation
1. Start A,A,A,B. Record quorum 3 and accepted value A.
2. Set third vote B; observe two votes per proposal and no decision.
3. Set third offline; explain lack of progress with two A votes.
4. Create B,B,A,B and observe the different quorum.
5. Explain why this single-round fixture is not a complete Byzantine consensus protocol.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Compute a four-validator quorum.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# B03 | Code cell 01 | B03 · Distributed agreement and finality
# Purpose: 3. Compute a four-validator quorum.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
from collections import Counter
# Define the reusable operation decide; keep its logic separate from the trial.
def decide(votes):
counts=Counter(v for v in votes if v is not None)
return next((v for v,n in counts.items() if n>=3),None)
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert decide(["A","A","A","B"])=="A"
# =====================================================================
# B03 | Code cell 02 | B03 · Distributed agreement and finality
# Purpose: 4. Vary votes and offline members.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Repeat the same operation for each configured input so observations are comparable.
for votes in (["A","A","B","B"],["A","A","A",None],["A","A",None,None]):
print(votes,decide(votes))
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert decide(["A","A","B","B"]) is None
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Set third vote B; observe two votes per proposal and no decision. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.