Brickheart

Working agreement and blog conventions

: Written by a human with AI assistance.

Read this before any bench session, together with the current "Bench design" page. Handovers link here and don't repeat it. Where this page disagrees with an older handover, this page wins.

Status tags used on every page: Decided (owner said so), Proposed (suggestion, not confirmed), Verify (needs a code or site check), Open.

1. How to work with the owner

  1. Ask, don't assume. Gather data with terminal commands (Ubuntu, VS Code, repo /home/chinapal/brickheart-web). "DATA not assumption." The owner has corrected assumed facts in every session: the wall layout, the floor size, what each folder is for.
  2. Plan or build? Check which mode the session is in before acting. A design session writes no code.
  3. One step at a time, short answers. Give only what is needed. Ask at most one question per reply, and put it last.
  4. Do not reopen settled decisions. When the owner says "it changes nothing" or "you are overthinking", drop the thread. Do not model a problem the owner has not flagged. Camera framing, wall size and replay are examples: they are not problems until the owner says so.
  5. When a term is unclear, ask what it means. Do not offer two guesses and build on one. Several 8-stud and "grow back" misreadings came from this.
  6. Mark every untested claim. You cannot run anything. Say "untested" or "not read", and name the file or command that would settle it. Read the code before patching. Earlier sessions were wrong about a DB column, a name clash and a case.
  7. "Backlog" means not today. Acknowledge it, record it, and move on.
  8. Edits come as patch scripts. Use Python with exact-match anchors that assert count == 1 and change nothing if an anchor is missing. Then run git diff --stat and npx tsc --noEmit -p app. Give the edits and not long explanations. Git exists, so don't be timid.
  9. Everything is a setting, not a constant. When a value is a default (step sizes, spacing, clearance, sort keys), put it in the settings registry. Nothing is hardcoded.
  10. The owner tests on a real phone. ?ui=touch forces the touch behaviour on desktop. Treat every mode (touch, mouse, key, button, CLI, API, voice) as a first-class input to the same core.
  11. Never carry an assumption forward silently. If the owner corrects a fact, restate the corrected model in one line and check the dependent decisions, as the pages do for reversals.

2. How the dev blog works (Decided)

The site is dev/content, published at dev.brickheart.org. It has three sections: Blog, Changelog and Roadmap. It is public and built in the open, so open questions and recorded mistakes are part of the story and do not need hiding.

Three folders have three roles:

Folder Role
app/ Code and data. No design docs.
site/content Published user docs: how to use the app and why the project exists.
dev/content Build-in-open record: blog, changelog, roadmap.

Rules of the content system (all from the owner, not seen in the code):

  • Filename: yyyyMMdd.md. If two pages share a day, add a letter as tiebreaker (20261111a.md, 20261111b.md).
  • URL: taken from the first-line H1, not the filename. A page with no H1 does not build. Example: the H1 "Brickheart-web project audit 06NOV2026" gives /blog/brickheart-web-project-audit-06nov2026.html.
  • Tags: every folder under the section root is a tag. Nesting gives several tags, and the same folder name in different places resolves to the same tag when the string is the same. This holds for Changelog and Roadmap too.
  • Everything is npm-controlled and tested. Run the test suite after adding or moving a page.
  • Current tags are Accessibility, AI: assisted, Claude and Chatgpt. All describe authorship or a concern, and none describes a topic.

Consequences:

  • Moving a file between folders changes its tags and never its URL. Marking a page superseded is a git mv.
  • The URL is only as stable as the H1. Renaming the H1 changes the URL and breaks links.
  • The H1 must be unique, so it is the page's identity. The date in the H1 (as in the audit) keeps dated pages unique. A living page needs an H1 with no date.
  • The excerpt on list pages comes from the first paragraph. Some existing posts read badly there ("Packs and storage", "Verified (you tested, on Cloudflare):").

3. Conventions to adopt (Proposed)

  1. Topic tags by folder: bench, browse, details, data, with lowercase hyphenated names. A page that crosses areas nests the folders, for example bench/data/.
  2. A superseded folder as the status tag. "Current" means tagged with the topic and not superseded.
  3. First paragraph is a one-line summary with status, for example "Bench design, updated 11 Nov: attach, ring, anchors, wall order. Current." This becomes the excerpt on every list page.
  4. One living page per area, with a stable H1. The first is "Bench design", with no date in the H1. Its filename is the date it was created. Update it in place and put a last-updated line at the top. Do not write a new addendum.
  5. One merge post, once. Fold addenda A to K, the 09 Nov plan, the 10 Nov handover and the 11 Nov write-up into "Bench design", then git mv the originals under superseded/.
  6. Handovers are short and point, not repeat. Each holds what changed in the code, what is untested, the next three steps, and a link to Bench design and to this page. It carries no working rules.
  7. Changelog gets one line per decision or reversal, for example 12 handles to 6+3, clearance 4 to 2, the wall floats 8 studs behind the build.
  8. Roadmap gets the backlog and open questions, not the handover.
  9. Publish to site/content only when a feature is user-facing. The ring, padlock and free build modes belong in "how to use the app" once built.
  10. Keep internal paths and bulky data out of the living page where practical. The /home/chinapal/... paths and the 628-set OMR details are optional. This is the owner's call.
  11. Session start prompt: "Read this page, then the posts tagged bench that are not superseded, then the roadmap. Today's topic is X."
  12. Session end: update the living page, add Changelog lines, move what is replaced to superseded/, and write one short dated handover.

4. Verify before relying on this

  1. Whether nesting works to any depth, and whether folder order matters (bench/data/ against data/bench/). A one-page test settles both.
  2. Whether tag pages join across Blog, Changelog and Roadmap, or are separate per section. /blog/tags/ suggests separate.
  3. Whether the tests reject a duplicate H1, a differently spelled folder (Bench against bench), or a missing summary line.
  4. Whether superseded as a folder name could clash with an existing tag.
  5. Why the 9 and 10 Nov posts are not on page 1 of the ai-assisted tag. They may use other tags or not be published yet.
  6. Whether a tag page can be linked from a post, so a handover can point at "everything tagged bench".

5. Open

  • The exact H1 for the living bench page. Proposed: "Bench design".
  • Whether to fix the weak first lines of existing posts, or leave them as the dated record.
  • Whether the roadmap holds the "verify before building" list from the design page, or the design page keeps it.

I'd run the first test with the merge itself: create bench-design under bench/, add the superseded/ folder, and run npm test. That checks items 1 to 4 in section 4 in one go, and you review the diff before anything else moves.