Hangar Floor
DemoDownloadGitHub

Hangar Floor: static build

Hangar Floor is a status page for a small team of AI coding sessions and the person who directs them. It shows the plan, a hangar floor of the open pull requests (with the sky, the weather, and the cargo plane of the next release), the questions for the person, the work that is done, a river of events, the queue of each session, and a table of the pull requests.

Run it

Serve this folder from any static host. For a local test:

tclsh serve.tcl site

serve.tcl is in the folder assets of the skill. It needs only tclsh (Tcl 8.6 or later). Each tool of the skill is a Tcl script. Any other static server works too.

Then open http://127.0.0.1:8000/.

The page needs no build step. It loads only the files of this folder. It sends no analytics and loads no outside font.

FileWhat it is
index.htmlThe page. It reads the data and gives it to the app.
river.tclThe app: a Tcl/Tk script.
ztk.js, webgpu.js, ztk.wasmztk, the Tk runtime for the browser (WebAssembly, BSD-2-Clause).
data.jsonThe data. Change this file to change the page.

Where the data comes from

  1. In a Claude artifact with a data store, the page reads the store (state/main, state/plan, state/floor, and the collections river, questions, inbox). The answers and the messages of the person go back to the store.
  2. With the setting "github" in the element #home, the page reads the documents from a branch of a GitHub repository. See "Data from a GitHub branch" below.
  3. In all other places, the page reads data.json next to it. It reads the file again every 10 seconds, so a script can write a new file and the page follows. A failed read keeps the last good data and shows no error.

Without the store, the page is read-only. With a GitHub branch, the note names the branch and the repository. The Questions tab shows each question and its options, with the note "Answers work in the Claude artifact." It has no answer buttons and no message box. A copy on a static host has no place to save an answer, so the page does not pretend to save one.

To update the file safely, write a new file and rename it over the old one:

tclsh make-data.tcl > data.json.new && mv data.json.new data.json

Data from a GitHub branch

Put this setting into the element #home of index.html:

{ "github": { "repo": "OWNER/NAME", "branch": "hangar-floor-data", "folder": "", "poll": 60, "write": false } }

The branch holds public data only: the file state/floor.json, with the public keys of the floor. Questions, answers, the river, the plan, main, the inbox, the token numbers, and the talk between the sessions stay in the private store: the artifact store or data.json. With this source and no "write": true, the page reads only state/floor.json, shows the floor only (as the shared floor does), and writes nothing.

The public keys of the floor are updated, counts, burn, prs, issues, dock, gates, lamps, lamp_notes, milestones, release, release_state, shift, status, work, weather, and board. The list is in one place: PUBLIC_FLOOR_KEYS in lib/data.tcl of the project.

With "write": true, the page reads one JSON file for each document, in the shapes of the sections below. Use it only for a branch that the owner keeps private on purpose; the data writer of the skill writes only the floor.

FileDocument
state/main.jsonmain (required)
state/plan.jsonplan: a list, or { "items": [...] }
state/floor.jsonfloor
river/NAME.jsonone river entry, or { "entries": [...] }
questions/ID.jsonone question; the file name is its id
inbox/ID.jsonone message

A name is 1 to 80 characters of A-Z a-z 0-9 _ -. The page ignores each other file.

The page talks only to https://api.github.com. Each read is one request for the tree of the branch, with the ETag of the last tree. An answer 304 means no change. A new tree names each file by its SHA, so the page reads only the files that changed. A failed read, a file that is not JSON, or a branch with no state/main.json keeps the last good data. One line at the foot of the page says why the data is old.

A public repository needs no token. With no token, GitHub permits 60 requests each hour from one IP address, so the default poll is 60 seconds. All the pages that read from one address share that limit. An answer 304 to a conditional request does not count against the limit only when the request has a token, so with no token each poll counts. When GitHub says that the limit is used up, the page waits until the time of the reset.

The coordinator writes the branch with the data writer of the skill. The writer accepts only state/floor. It refuses state/main, state/plan, river/*, questions/*, and inbox/*, and it removes the key tokens and each other key that is not public, and names them. A push also names each old document on the branch that is not public, so that you can remove it. Each put keeps one document, and each push sends the kept documents as one commit, on top of the branch of the remote:

tclsh data.tcl put state/floor floor.json
tclsh data.tcl push --branch hangar-floor-data

The writer runs in a clone of the repository. It uses git plumbing, so the work tree, the index, and the current branch stay as they are. It pushes without force and holds no token: git uses its own login. hangar-floor data and ztcl --allow file,channels,exec --tclsh data.tcl run the same writer. A program of ztcl starts git with no environment of the user, so a push to a remote that needs a login works with a tclsh.

The shared floor page (floor.html) uses the same source with the same setting. It reads only state/floor.json, so the branch needs no state/main.json for it. A private repository works with the same token panel. With "tokens": false in #home, the page drops the key tokens of the floor before the app or the sound gets it. With no data from the branch in 8 seconds, it shows its snapshot.

To serve the page from S3 and CloudFront, see Host the status page on AWS.

A private repository needs a token. With no token, the page says so and opens its panel GitHub token (a button at the foot of the page):

  1. Make a fine-grained personal access token on GitHub for the one repository. Give it the right Contents: read-only to read, or read and write to answer from the page (to verify).
  2. Paste it into the panel and click Save. The browser keeps it on this device only, and the page sends it only to https://api.github.com, in the header Authorization.
  3. Click Forget to remove it. The page then starts again, so no data of the repository stays in its memory.

With "write": true and a token that may write (GitHub gives permissions.push for the repository), the Questions tab has its answer buttons and its message box again. An answer changes the file questions/ID.json of its question (answer and answeredAt), and a message is a new file of inbox/. Without "write": true, the page never writes to GitHub.

With the setting "signin": { "clientId": "..." } in #home, the panel also has Sign in with GitHub: a sign-in with a GitHub App, through the function of lambda/auth.mjs under /auth/ of the site. Its token stays in the memory of the page. The setup is in the page below.

The threat model of the token is in Host the status page on AWS.

The shape of data.json

One object with six keys. Each key is optional except main.

{ "main": {}, "plan": [], "floor": {}, "river": [], "questions": [], "inbox": [] }

Times are ISO 8601 in UTC, such as "2026-12-01T19:40:00Z". Text is plain. The page removes HTML tags, except <code>.

main

The settings of the project (title, tz, place, repos, seats) come from main. A key that main does not have comes from the element <script type="application/json" id="home"> at the top of index.html. In this copy that element is {}, so data.json sets all of them.

{
  "updated": "2026-12-01T19:40:00Z",
  "title": "Hangar Floor",
  "tz": "Europe/Berlin",
  "place": { "name": "Berlin", "lat": 52.52, "lon": 13.405, "tz": "Europe/Berlin" },
  "repos": { "lumen": "example-org/lumen", "lumen-web": "example-org/lumen-web" },
  "seats": { "L": "Linux", "M": "macOS", "W": "Windows" },
  "test": ["Three PRs in one gate: lumen 41, lumen 43, lumen-web 17"],
  "queue": { "Linux, coordinator": [{ "s": "now", "t": "Gate of three PRs" }, { "s": "next", "t": "v0.4.0" }] },
  "themes": ["Releases", "Library", "CLI"]
}

plan

[{ "th": "CLI", "s": "now", "who": "W", "t": "Paths longer than 260 characters", "d": "", "o": 1 }]

th is a theme of main.themes. s is now, next, week, later, or done. who is a seat (L, M, W). d is the day text of a done item, such as "Tuesday, December 1". o sets the order in a cell. The store keeps the same list as { "items": [...] } in state/plan; the file accepts both forms.

floor

{
  "prs": [{ "repo": "lumen", "n": 44, "who": "M", "stage": "bench", "t": "Font fallback", "since": "2026-12-01T18:55:00Z", "note": "" }],
  "issues": [{ "repo": "lumen", "n": 46, "t": "The CLI prints a stack trace for an empty file" }],
  "gates": [
    { "id": "lumen", "label": "lumen", "lamp": "amber", "note": "the gate runs on two PRs", "since": "2026-12-01T19:20:00Z", "checks": { "done": 25, "total": 41 } },
    { "id": "lumen-web", "label": "lumen-web", "lamp": "red", "since": "2026-12-01T19:22:00Z", "checks": { "done": 12, "total": 18 }, "failed": "link format" }
  ],
  "dock": 3,
  "lamps": { "gate": "amber", "ci": "green" },
  "tokens": { "L": { "context": 0.41, "limit": 1000000, "out_today": 228000, "at": "2026-12-01T19:35:00Z" } },
  "lamp_notes": { "gate": "the gate runs on three PRs", "ci": "" },
  "milestones": { "lumen": 3 },
  "release": "v0.4.0",
  "shift": { "work_end": "2026-12-01T21:00:00Z", "qa_end": "2026-12-01T23:00:00Z" },
  "release_state": "building",
  "status": { "L": "work", "M": "qa", "W": "work" },
  "work": { "L": "Gate of three PRs", "M": "QA pass of the CLI", "W": "Long paths (lumen 45)" },
  "weather": { "kind": "clouds", "text": "Partly cloudy", "cloud": 0.55, "temp_f": 41, "wind_mph": 9, "wind_dir": 250, "at": "2026-12-01T19:00:00Z" },
  "talk": [{ "from": "W", "to": "L", "text": "lumen 45 pushed", "at": "2026-12-01T19:12:00Z", "kind": "msg" }]
}

river

[{ "t": "2026-12-01T19:30:00Z", "k": "problem", "r": ["lumen-web 15"], "h": "The share link PR goes back", "b": ["One test fails in the gate."] }]

k is merged, problem, fixed, decision, design (in work), or you (for the person). r holds references as "repo number". h is the head line, and b the paragraphs. An item can also be a block of older entries: { "entries": [...] }.

questions

[{ "id": "q-demo-theme", "from": "macOS session", "at": "2026-12-01T19:00:00Z", "text": "May it merge?", "options": ["Merge it", "I want changes"], "answer": "" }]

id has 1 to 80 characters of A-Z a-z 0-9 _ -. An empty answer makes the question open.

inbox

[{ "at": "2026-12-01T13:50:00Z", "from": "owner", "text": "Keep the web demo out of tonight's release.", "reply": "Done." }]

The messages of the person to the coordinator, with the reply of the coordinator.

Sound and music

The floor has its own sound, made at run time with Web Audio. There are no sound files. The goal is calm background music with the sound of work in the hangar under it.

Safety

Next: GitHub access.