A human and an agent trade turns on an HTML page. The human leaves directives and edits prose in the browser; everything lands in the file.
A paragraph with bold and a link.
⌘-click a box for its step below. (A plain click opens a directive box.)
./deploy runs from main only and refuses on a dirty tree. If the tests fail in the copy, it puts the copy back and commits nothing. Details: README, Deploy and Contract with iterate-on-docs.
<section data-hrv="2">
<h2 data-hrv="3">Plan</h2>
<p data-hrv="4">
<!-- @AI: say why --> ③
Press <kbd>⌘S</kbd>, ship.
</p>
<svg data-hrv="5">…</svg>
</section>
## Plan Press <kbd>⌘S</kbd>, ship **today**. ① Celebrate. ⟦svg⟧ ②
<section data-hrv="2"> <h2 data-hrv="3">Plan</h2> <p data-hrv="4"> ④ <!-- @AI: say why --> ③ Press <kbd>⌘S</kbd>, ship <strong>today</strong>. </p> <p data-hrv="7">Celebrate.</p> ④ <svg data-hrv="5">…</svg> ② </section>
kbd, so it stays HTML.The pipelines above, stood on end.
node formatter.mjs page.html. The agent runs it before each commit.
<h1>Plan</h1> <p>Ship the <b>formatter</b> first.</p><ul><li>one</li><li>two</li></ul> <img src="map.png">
<!DOCTYPE html>
<html>
<head></head>
<body>
<h1>Plan</h1>
<p>Ship the <strong>formatter</strong> first.</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<img src="map.png">
</body>
</html>
<html data-hrv-next="8"> … <p data-hrv="4">Ship the <strong>formatter</strong> first.</p> <ul data-hrv="5"> <li data-hrv="6">one</li> <li data-hrv="7">two</li> </ul>
type="application/json" script; the client reads it with JSON.parse.
<p> <!-- @AI: say why first --> Ship the <strong>formatter</strong> first. </p>
<p data-hrv="4">Ship the …</p>
…
<script type="application/json"
id="hrv-directives">
{"4":"say why first"}
</script>
Ship the formatter first.
The real marker and its tip, from client.css.
<html>
<head>
… the page's head …
<style> client.css </style>
</head>
<body>
… the page, with its IDs …
<script type="application/json" id="hrv-directives"
data-version="3f9a0c1b2d4e"> {…} </script>
<script type="application/json" id="hrv-bases"> {"4":"a1c4…"} </script>
<script type="application/json" id="hrv-markdown"> {"4":"Ship the **formatter** first."} </script>
<script> client.js: hover · box · docket · PUT </script>
</body>
</html>
{id, base, directive} or {id, base, markdown}
base it started from.
{id: "6", base: "a1c4", directive: "say more"}
base matches li 6 → applied; answer has new bases
base differs, or no li 6 → 412, nothing written: error, reload suggested
body, hr, SVG shapes.
{id: "4", base, markdown: "Ship the **formatter** last."}
→ <p data-hrv="4">Ship the <strong>formatter</strong> last.</p>
<p> <!-- @AI: say why first --> Ship the <strong>formatter</strong> first. </p> <!-- @AI: needs alt text --> <img src="map.png">
{id, directive, markdown} as the box opened
{"page":"/OVERVIEW.html","id":"12","element":"p","heading":"Architecture",
"directive":{"before":"","after":"say what the tiers are"},
"revision":{"before":"Three tiers.","after":"Three **tiers**."}}
<!-- @AI: … -->, attached to exactly one element.
@AI:. Avoid: note, comment, annotation.
data-hrv, written into the file by assign IDs.
b, a, code…). See MDN: content categories.
Work lives in yx. Run yx list.