A contribution note, a reservation-rule excerpt and three local fixtures
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; form-action 'none'; base-uri 'none'"><title>Reservation-rule prototype · contribution evidence</title><style>*{box-sizing:border-box}body{margin:0;font:16px/1.5 Arial,Helvetica,sans-serif;color:#24313b;background:#fff}main{max-width:900px;margin:auto;padding:22px}h1{font-size:26px;line-height:1.2;margin:8px 0 18px}h2{font-size:19px;margin:22px 0 10px}h3{font-size:17px;margin:14px 0 8px}p{margin:10px 0}ul,ol{padding-left:22px}li{margin:6px 0}.note{font-size:13px;color:#53616a}.callout{border-left:4px solid #405d73;background:#f2f5f7;padding:10px 14px}table{border-collapse:collapse;width:100%;margin:12px 0}caption{text-align:left;font-weight:bold;padding:0 0 8px}th,td{padding:9px 8px;text-align:left;vertical-align:top;border-bottom:1px solid #b8c3ca;overflow-wrap:anywhere}th{background:#edf2f5}td b{display:none}footer{border-top:1px solid #aeb9bf;margin-top:22px;padding-top:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.5 ui-monospace,monospace;background:#f5f5f5;padding:12px}@media(max-width:560px){main{padding:16px}h1{font-size:23px}thead{display:none}table,tbody,tr,td{display:block;width:100%}caption{display:block}tr{border-bottom:1px solid #aeb9bf;padding:6px 0}td{border:0;padding:3px 0}td b{display:inline}}@media print{@page{size:letter;margin:.5in}main{padding:0}}.contribution{border-top:4px solid #625779;padding-top:12px}.boundary{border-left:4px solid #625779;padding-left:12px}</style></head><body><main><p class="note">Original fictional developer and prototype · no employer, deployed booking system or real-user outcome</p><h1>Ari Patel · reservation-rule case study</h1><section class="contribution"><h2>My example contribution</h2><p>A pure JavaScript decision function checks a missing volunteer/shift and an existing volunteer/shift pair. It returns a decision; it does not store or book a reservation.</p><pre data-code="decision"><code>function decideReservation(request, existing) {
if (!request || !request.volunteer || !request.shift) {
return 'invalid';
}
const duplicate = existing.some(item =>
item.volunteer === request.volunteer &&
item.shift === request.shift);
return duplicate ? 'duplicate' : 'ready';
}</code></pre></section><table><caption>Expected local fixtures · not a production test report</caption><thead><tr><th scope="col">Request</th><th scope="col">Existing pairs</th><th scope="col">Expected decision</th></tr></thead><tbody><tr data-case="ready"><td><b>Request: </b>V1 / S1</td><td><b>Existing pairs: </b>None</td><td><b>Expected decision: </b>ready</td></tr><tr data-case="duplicate"><td><b>Request: </b>V1 / S1</td><td><b>Existing pairs: </b>V1 / S1</td><td><b>Expected decision: </b>duplicate</td></tr><tr data-case="invalid"><td><b>Request: </b>Missing volunteer / S1</td><td><b>Existing pairs: </b>None</td><td><b>Expected decision: </b>invalid</td></tr></tbody></table><section class="boundary"><h2>Evidence still needed for a complete service</h2><p>No persistence, concurrency protection, authentication or performance result is supplied. A local decision does not prevent simultaneous bookings in a real service.</p><p><strong>Actual repository, executed test command/environment and demo URL:</strong> [TO CONFIRM]. This excerpt is static text; it is not an interactive booking form.</p><p><strong>Role boundary:</strong> this example covers the decision function and fixture design only. Database/API/UI ownership would need separate evidence.</p></section><footer>Reviewer question: what can the excerpt prove, and what needs repository tests? Keep source and README in the repository. No fake contact, booking or demo button.</footer></main></body></html>