Repository navigation
Connect the Hardwire demo to form review and a working CI starter - #47
Open
mandiau-matthias wants to merge 8 commits into
Open
mandiau-matthias wants to merge 8 commits into
mandiau-matthias wants to merge 8 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The experiment ended with Replay. Visitors had to find a terminal guide inside the inspector to try Hardwire on a form. This change connects the film and three local examples to a browser review and a CI starter. The goal is to let a developer catch a change to an approval requirement in their own project.
Independent developer pilot
Build with
npm ci --ignore-scriptsandnpm run build:demo. Use Hardwire-developer-pilot.zip for the first five independent attempts. Extract it, runnode start.mjswith Node 22 or newer and open the printed sample form. The task and optional private notes are separate from the guided recording. No participant feedback is collected automatically. Observer instructions and blank cohort table.On a 390 pixel screen the MCP output started 1293 pixels below the viewport top after opening the previous disclosure. The new inspector opens on the tool, offers a separate draft view and returns focus on Escape. Phone inspector.
Review the demo
Watch the captioned walkthrough · Presenter notes
The film shows the approval conditions for all three actions. On phones the scenes rotate one at a time until a viewer selects one. Controls stay below the film. The animation is illustrative.
After Check inputs, open Contract and MCP tool, switch views and press Escape. Choose Try a team rule or open the local policy example. This uses a separate reviewed fixture and carries over no pasted content. Remove confirmation. The format accepts the reversible write while the team requires consent. Restore confirmation and download both original files. The browser previews the consent check. Run the full test with Node.
From demo to framework
npm run conformancefor 12 cases across two JS entry points with a shared core. Independently recalculated the three normalized panel strings and SHA256 values with a small Python check. This does not establish independent implementation compatibility.Demo and review limits
A required
order-idand a destination outside the supplied origin could both disappear from a draft while its generated examples passed. Review now flags omitted names and missing destinations for the selected action. The example result explains the limit. Checked the omission and correction at 1280, 390 and 320 pixels in Chrome and covered action switching in browser CI. The recording uses synthetic examples and stays outside the distributed package.Invoice comparison
The synthetic invoice draft accepts
{"amount":1,"currency":"example"}because the inferred types alone cannot express the reviewed requirements. The browser, source CLI and MCP inference now flag omitted hidden inputs, numeric constraints and unchecked choices. File inputs and radio controls also carry specific review notes. These optional notes stay outside the contract, digest and generated MCP tool. The published 0.9.0 package is unchanged.Tested the invoice across 1280, 640, 390 and 320 CSS pixels, checked reset and verified the extracted demo at desktop and mobile widths with external requests blocked. The package and bundle checks exercise the invoice through an actual MCP client. No benchmark score or approval floor changed.
Approval audit
A double click or held Enter on Run action could also approve sign in or the local invoice. Chrome regression checks now require a separate activation. Cancel and Escape discard the pending review, leave the call record empty and return focus to Run action. Escape in the inspector closes only the dialog. A fresh review and deliberate approval still complete the action.
Verified both flows with Chrome touch emulation at 390 pixels. A separately extracted local preview completed the film, three fixtures and form check at 1280 and 390 pixels with no external requests. The preview is not a published release.
Rebuild the offline demo
Run
npm ci --ignore-scriptsandnpm run build:demoin this checkout. Extractoutput/Hardwire-offline-demo.zip, open the Hardwire folder and runnode start.mjswith Node 22 or newer. The video and example invoice are included. No npm install is needed in the extracted folder.The first preview relied on an untracked packaging script. The new builder uses the locked development copy of fflate 0.8.3, now declared directly, and shares the portable asset list with Pages and the local server. The integration test compares both archives in two time zones and checks every served asset from temporary extractions. The pilot excludes the video and the local server refuses requests for private notes. A clean checkout reproduced the same ZIP locally. Chrome completed the extracted walkthrough at 1280 and 390 pixels with external requests blocked, including cancellation and invoice warnings. This is a preview only.
Try it
Run
npm run devwith Node 22 or newer afternpm ci --ignore-scripts. Open the local film, choose Try it, finish Settings and choose Review a form. Or open the local form directly.Choose Check inputs. The boolean passes and the string fails. Inspect the contract and MCP tool, then try sanitized HTML with two forms. The draft covers all actions and the tool follows the selection. Editing the capture clears previous results. The origin is never visited. No supplied action becomes executable.
Presenter script and pilot instructions
Desktop and mobile screenshots
Verification
All four GitHub checks passed at b7597a5. Chrome and Ubuntu on Node 22 and 24 plus Windows on Node 24.
At 390 pixels Chrome advanced automatically, retained a manual selection across the next loop and showed a still result with reduced motion.
Node 24.16.0 on macOS. Quick and full checks passed with 175 unit and 6 integration tests, installed package, extracted bundle and five MCP calls.
Chrome compared both downloads byte for byte with the CI example. With the downloaded files and this checkout as the library, Node passed both tests, failed only the consent test after changing confirmation to none, then passed both after restoration.
Chrome completed the extracted ZIP through consent removal and restoration at 1280 and 390 pixels with external requests blocked. A real tab switch paused and resumed playback. A malformed starter response displayed recovery instructions.
Chrome passed the built site harness including keyboard focus, invalid requests, approval, dialogs, replay, reduced motion, form selection and recovery, and 640, 390 and 320 pixel layouts.
Ran the local film through form review at 1280 and 390 pixels. Confirmed pause and resume in a real background tab. Checked worker failure recovery, JSON limit and both copy payloads using a clipboard stub.
npm run corpusexited 1 as expected. Six synthetic cases, mean 60.8, two pass at 80. Invoice 40, legacy 60, settings 40 and shop 45 remain visible failures.Both pilot and guided builds run outside the checkout. The independent task completed at 1280, 390 and 320 pixels in Chrome with external requests blocked. Checked clipboard failure recovery and clearing prior output on edits.
The published v0.9.0 files passed all three SHA256 checks. The MCP Registry matched the bundle URL, version, transport and digest. Public film and experiment returned 200. Public form and policy returned 404 pending deployment.
Development lockfile updates for cross-spawn and node-forge removed one critical and one low finding. Production audit reported zero. Full audit still reports three high and three low findings under MCPB 2.1.2. Release review and remaining work.
Limits and next step
No screen reader, native desktop host, independent Windows first use or outside developer completion is claimed. Pages links for the new routes become live only after merge and deployment. No package or registry publication.
Observe five independent first attempts, recording unassisted completion, first confusion and usefulness. Fix the first repeated blocker.