Hangar Floor
DemoDownloadGitHub

The data of Hangar Floor

The page reads the same shapes from two places:

Store pathKey of data.jsonKind
state/mainmainone document
state/planplanone document { "items": [...] }; in the file, the list itself (both forms work)
state/floorfloorone document
river/<id>rivera collection; in the file, a list
questions/<id>questionsa collection; the page adds answer and answeredAt
inbox/<id>inboxa collection; the page adds new messages

General rules

state/main

{
  "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, then merge" }, { "s": "next", "t": "v0.4.0" }],
    "macOS session": [{ "s": "now", "t": "Font fallback (lumen 44)" }]
  },
  "themes": ["Releases", "Library", "CLI", "Web demo", "Docs"]
}
FieldRule
updatedThe time of the last change. Set it on each write.
titleThe heading and the title of the browser tab. Plain text; the page cuts it at 60 characters. Default "Hangar Floor".
tzAn IANA time zone for each time on the page. A missing or unknown zone gives the zone of place. The page shows the short name of the zone after each time, such as "ET" or "GMT+1".
placeThe place of the sky: name (plain text, 40 characters at most), lat and lon (numbers in degrees, north and east are positive), and tz (an IANA zone). The page computes the sun (its height, sunrise, and sunset) and the phase of the moon for this place and the current time. A place with no number for lat or lon gives the default: Washington, DC, in America/New_York. A place with no tz uses the zone of the browser. The name shows on the sky card and as the place of the weather.
reposA short name to "owner/name" on GitHub. The short name: 1 to 40 characters of a-z 0-9 _ -. The owner and the name: 1 to 100 characters of A-Z a-z 0-9 _ . -, with no leading dot. The page ignores each other entry and uses 12 at most. Only a repo of this map can open from the page, and the page builds the address only from these checked parts. The order sets the crate colors: blue, wood, green, violet, then steel.
seatsA label of 24 characters at most for L, M, W. Default Linux, macOS, Windows. A session of queue belongs to a seat when its name starts with the label. The legend of the Plan tab shows "label, coordinator" for L and "label session" for the others.
testThe lines of "in test now".
queueThe name of each session to its items. s is now (one item) or next. t is the text.
themesThe rows of the Plan tab, in order.

state/plan

{ "items": [
  { "th": "CLI", "s": "now", "who": "W", "t": "Paths longer than 260 characters on Windows", "d": "", "o": 1 },
  { "th": "Docs", "s": "done", "who": "L", "t": "The install page names the three platforms", "d": "Tuesday, December 1" }
] }
FieldRule
thA theme of main.themes.
snow, next, week, later, or done.
whoA seat. It sets the color of the mark.
tThe item, one sentence.
dFor a done item: the day text, such as "Tuesday, December 1". The Done tab groups by it.
oThe order in a cell (optional).

state/floor

{
  "prs": [
    { "repo": "lumen", "n": 44, "who": "M", "stage": "bench", "t": "Font fallback", "since": "2026-12-01T18:55:00Z", "note": "" },
    { "repo": "lumen-web", "n": 15, "who": "M", "stage": "back", "t": "Share link", "since": "2026-12-01T17:30:00Z", "note": "The gate failed: one test of the link format." }
  ],
  "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, "used": 410000, "out_today": 228000, "at": "2026-12-01T19:35:00Z" }, "M": { "context": 0.67, "limit": 200000, "out_today": 96000, "at": "2026-12-01T19:30:00Z" } },
  "lamp_notes": { "gate": "the gate runs on three PRs", "ci": "" },
  "milestones": { "lumen": 3, "lumen-web": 2 },
  "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": "off" },
  "work": { "L": "Gate of three PRs", "M": "", "W": "" },
  "weather": { "kind": "clouds", "text": "Partly cloudy", "cloud": 0.5, "temp_f": 41, "wind_mph": 9, "wind_dir": 250, "at": "2026-12-01T19:00:00Z" },
  "talk": [{ "from": "W", "to": "L", "text": "lumen 45 pushed, tests pass on Windows", "at": "2026-12-01T19:12:00Z", "kind": "msg" }],
  "board": [{ "label": "BUILDS", "value": "3 of 3 green" }]
}
FieldRule
prsOne crate for each open PR. repo is a short name of main.repos; a crate of an unknown repo shows in steel and does not open. n is the PR number. who is the seat of its author. t is a short title. since is the time it reached this stage. note is shown on a click. est_min and actual_min (optional, whole minutes) are the estimate and the real time to the PR, from the lines estimate: and actual: of its issue. The card shows them, and the bench tag marks a crate over its estimate with ▲.
prs[].stagebench: in work at its seat. gate: in the test tree. ci: merged, CI of main runs. shipped: in a release. back: sent back to its seat after a failure; put the reason in note.
issuesThe boxes of the dock: the open issues of today's milestone.
dockThe count of open issues of today (a number).
countsThe numbers of the day (optional): merged (the PRs merged since the start of the day), merged_by_repo (a short repo name to its merges), issues_open and issues_closed (the issues of today's milestone). Each is a whole number from 0. The board, the crate of the release, and the dock use them; a missing key falls back to the lists. The dock shows "28 closed, 20 open" as words and as a bar. assets/counts.tcl writes counts, dock, and issues from GitHub.
burnThe burn-down of the day (optional): start, work_end, and qa_end (UTC times of the shift), samples (a list of { "t", "open", "closed", "merged" }, in the order of time), and candidates (the open issues with no PR: { "repo", "n", "t" }). The wall shows a paper chart beside the board: the open issues, the scope (open plus closed), the ideal line to zero at the end of work, and a dotted forecast at the pace of the last 3 hours. The chart says ON PACE (no issue open at the end of work), AT RISK (issues open at the end of work, none at the end of QA), or CUT NEEDED (issues open at the end of QA), with a mark and a sentence for a screen reader. Its card lists the candidates when a cut is needed; the owner decides. No key: no chart. assets/counts.tcl with --start, --work-end, and --qa-end writes it. With open_min (the sum of the estimates of the open issues, in minutes), the state comes from hours: the open work is open_min times factor (the correction factor of assets/estimates.tcl, default 1), against the time to the end of work and of QA times seats (the sessions that work, default 1). The sentence then says, for example, "At risk: the open work is 3 h 15 min (the estimates × 1.3), and only 2 h 40 min of 2 sessions remain to 9 pm (6 h 40 min to 11 pm)." The dotted line stays the pace of the count. no_estimate lists the open issues with no estimate ({ "repo", "n", "t" }); the card of the chart names them. assets/counts.tcl --estimates writes open_min, factor, and no_estimate, and --seats writes seats.
gatesThe gates of the floor, 1 to 4 (optional). Each gate is one test press with its own lamp, crates, and run. id: 1 to 40 characters of A-Z a-z 0-9 _ . -. label: the name on its plate, 16 characters. lamp: as in lamps. note: the words of its card. since: the start of its run. checks: done and total, whole numbers; the plate shows "25/41" and a bar. failed: the name of a failed check, shown in red. With no gates, the floor has one gate with lamps.gate and lamp_notes.gate.
prs[].gateThe id of the gate of a crate at the stage gate. A crate with no known gate goes to the first gate.
lampsgate and ci, each green, amber (busy), red (failed), or empty (idle).
tokensThe token use of each seat (L, M, W), from assets/tokens.tcl. context is the part of the context window that the session uses now, from 0 to 1. limit is the size of the window, used the tokens in it, out_today the output tokens of the day, and at the time of the numbers. Each seat with a number context (or used and limit) gets a gauge in the manner of a fuel gauge: green, amber from 0.6, and red from 0.85. The flip board shows the output of the day of the team and of each seat. A seat with no entry, or a floor with no tokens, shows no gauge. Write the key with each floor write. A shared floor page with "tokens": false in its element #home leaves the key out.
lamp_notesWords that replace the default text of a lamp.
milestonesA short repo name to the number of today's milestone. A click on the dock opens it.
releaseThe name of the next release. The cargo plane on the tarmac carries it.
release_stateidle or building: the plane waits on the tarmac with the hangar door open. publishing: the door closes and the engine starts. released: the plane takes off one time, and the tarmac stays empty. With no release_state, the plane leaves at shift.qa_end.
shiftwork_end and qa_end. The bar at the top shows the time, the phase (work, QA, or the plane left), and the time left.
statusThe state of each seat: work (at its bench), qa (it runs the QA pass at the end of CI), or off (stopped for the day). A missing or other value is work. When all seats are off, the floor stops its motion. A seat that is off sends and gets no talk.
workThe item in work of each seat: plain text, or { "t": TEXT, "repo": SHORT, "n": NUMBER } to name its issue or PR. The bubble of a seat says "now:" with this text, or with the now item of its session in main.queue when the floor has no work for the seat, and names the issue or PR. The floor comes first because the coordinator writes it at each update; the plan changes less often. When updated is more than 20 minutes old, the bubble says the age first ("25 min ago", "3 h ago"). tools/check.tcl --main FILE --floor FILE reports a seat whose work and queue name a different issue or PR. An object may add helpers: a list of at most 3 { "t", "repo", "n" }, one for each build agent of the session. Each helper is a small worker beside the seat (today at the coordinator L) with a tag of its issue or text, and its card has the "now:" text. When that PR is a crate on the bench, the tail of the bubble points at it. The bubble wraps; the card of the worker has the full text. The tag on the front of each bench lists its crates: the number, the state (waits for the gate, back after a failure, now for the work of now), and the title. The object may add est_min (the estimate, whole minutes) and start (the time the work started): the bubble and the card of the worker show "25 min of 40 min", with "▲ over" past the estimate. The time stops at updated when the data is more than one hour old.
weatherThe weather that you write. The page calls no weather service. kind is clear, clouds, rain, snow, fog, or storm. text is the words of the sky card. cloud is the cover from 0 to 1. temp_f (degrees Fahrenheit), wind_mph, and wind_dir (degrees, the direction the wind comes from) are numbers; the windsock follows the wind. at is the time of the observation. place replaces the name of main.place on the card. Leave out weather for a clear sky with no card text.
boardCustom rows for the flip board on the wall: at most 6 entries of label (plain text, 14 characters at most) and value (text or a number, 30 characters at most). They join the turning line of the board, after the last shipped PR, the weather, the runs of the gates, and the sun. An entry that is not an object, or has no label and no value, is skipped.
talkThe messages between seats, newest first, 20 at most. from and to are seats; to can be all. kind is msg or file. at is the time. A new entry plays one time as a walk or a message between the seats; an entry the page saw before does not play again. Write one for each message or file that you send to a worker, in a few words.

The tick settings

The file of the coordinator for assets/tick.tcl. The tool makes the rest of the floor and of the plan from GitHub. assets/tick.example.json is a full example for three repos and two helpers; tick.tcl --init writes a first file from state/main and state/floor.

{
  "config": {
    "repos": { "lumen": "example-org/lumen" },
    "milestone": "v0.4.0",
    "tz": "Europe/Berlin",
    "shift": { "start": "09:00", "work_end": "20:00", "qa_end": "00:00" },
    "seats": 2,
    "history": ["v0.3.0"],
    "authors": { "a-login": "W" },
    "patterns": { "done": "^ok ", "failed": "^FAIL (.*)$" },
    "release": "v0.4.0",
    "stores": {
      "floor": "state/floor.json",
      "main": "state/main.json",
      "github": { "clone": "../lumen", "branch": "hangar-floor-data" }
    }
  },
  "work": { "W": { "t": "Long paths", "repo": "lumen", "n": 45 }, "M": "QA pass", "L": { "t": "Gate", "helpers": [{ "t": "Docs", "repo": "lumen", "n": 47 }] } },
  "status": { "W": "work", "M": "qa", "L": "work" },
  "gates": [{ "id": "lumen", "note": "three PRs", "start": "2026-12-02T10:00:00Z", "checks": 41, "log": "logs/gate.log", "prs": ["lumen/41", "lumen/43"] }],
  "back": ["lumen/15"],
  "queue": { "Windows session": [{ "s": "now", "t": "Long paths (lumen 45)" }] }
}
KeyMeaning
config.reposThe short name of each repo of the floor, and its OWNER/NAME.
config.milestone, config.historyThe milestone of the day, and older milestones for the correction factor.
config.tz, config.shiftThe zone of the day, and the times of the shift (HH:MM in that zone) for shift and burn. The floor has the times in UTC: 22:00 in Europe/Berlin in winter is 21:00:00Z.
config.seatsThe sessions that work on the milestone (burn.seats).
config.authorsThe seat of a GitHub login. A crate takes the seat whose work names the PR or an issue it closes, else the seat of its author, else L.
config.ghOptional: the gh program to run (default gh). --gh replaces it. Each run reads GitHub, also --check and --dry.
config.patternsTcl regular expressions (\M is the end of a word) for a line of a gate log: done (a check done), failed (a failed check; its first group is the name), and end (optional: the last line of a run; with no failed check the lamp is green). A gate can have its own patterns.
config.weather_cmdOptional: a program and its arguments, as a list, that prints the weather object of the floor. When it fails, the floor keeps its weather.
config.storesfloor and main: the JSON files to write (the keys that the tool does not make stay). A file that is not there yet is made, with its folder. data: one data.json for a page in a static folder; the tool writes its keys floor and main and keeps plan, river, questions, and inbox (empty lists in a new file). A relative path in tick.json (a store or a log) is in the folder of tick.json, not in the current folder. A log that matches no file is reported on stderr. github.clone: a clone of the repo; the floor goes to its data branch with data.tcl (public keys only). The plan never goes there.
work, status, releaseCopied to the floor. The work of a seat gets est_min and start from the estimate: line of its issue.
gatesThe gates in progress: prs (repo/n) are the crates in the gate; start, checks (the total), and log give the run. log can be a glob pattern, such as ~/gates/run*.out: the newest file that matches is the log. The lamp is red with a failed check, green with all checks done or the end line, and amber while it runs. A gate with no prs and no start is idle; its note shows. The tool also makes lamps, lamp_notes (the gates; ci is kept), and the board rows MERGED TODAY and ISSUES OF the milestone.
backThe PRs that a gate sent back (repo/n).
whoThe seat of a crate ("repo/n": "W"), when the work names neither the PR nor an issue it closes. With no entry, a crate keeps its seat of the floor before the update, then the seat of its author in config.authors, then L. Use it when all sessions use one GitHub login.
hidePRs that get no crate (repo/n), for an old PR or a draft that waits.
config.shippedThe number of shipped crates on the floor: the newest merges of the day (default 12). The count of the day comes from counts.
queueThe queue of the plan (state/main.queue). Its keys are the names of the sessions on the page, such as Windows session, not the seat letters.

river/<id>

{ "t": "2026-12-01T19:30:00Z", "k": "problem", "r": ["lumen-web 15"], "h": "The share link PR goes back to its bench", "b": ["One test of the link format fails in the gate."] }
FieldRule
tThe time of the event.
kmerged, problem, fixed, decision, design (in work), or you (the owner must act).
rReferences, such as "lumen 41". Each one is a link to its PR. The Pull requests tab lists them.
hThe head line: one sentence.
bThe paragraphs: what happened, what ran, what did not, what is next.

Use the document id YYYYMMDD-HHMMSS-<word> so the ids sort by time. A document can also hold a block of older entries as { "entries": [...] }; use that to keep the count of documents small.

questions/<id>

{ "id": "q-demo-theme", "from": "macOS session", "at": "2026-12-01T19:00:00Z", "text": "May lumen-web 17 merge with the next gate?", "options": ["Merge it", "I want changes"], "answer": "" }
FieldRule
id1 to 80 characters of A-Z a-z 0-9 _ -. The same as the document id.
fromWho asks.
textOne question with the facts the owner needs. Name the PR or the file.
optionsTwo to four short answers. The owner can also type an answer.
answerEmpty while open. The page writes the answer and answeredAt.

inbox/<id>

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

The page adds a message with an empty reply. Read it at the next step of the loop, act, and write reply in one or two sentences. An inbox message is the owner's own word, unlike a report of a worker.

A small writer for data.json

# Writes the text of data.json in one step, so the page never reads half a file.
proc save {path text} {
    set f [open $path.new w]
    fconfigure $f -encoding utf-8
    puts -nonewline $f $text
    close $f
    file rename -force $path.new $path
}

Set main.updated to the current UTC time in each write: clock format [clock seconds] -format %Y-%m-%dT%H:%M:%SZ -timezone :UTC.

The flip board

The board on the wall over the windows shows values that the page reads from state/floor. It needs no key of its own:

RowValueFrom
MERGED TODAYthe PRs merged todaycounts.merged; with no such key, the crates in CI or in the release
OPEN PRSthe crates at a bench, in the gate, or backprs[].stage
IN THE GATEthe crates in all gatesprs[].stage gate
CIGREEN, RUNNING, RED, or IDLElamps.ci
NEXT RELEASEthe name and the time the plane leavesrelease, release_state, shift.qa_end
ISSUES OPENthe open issues of the milestone of today, and the closed ones (in the row of all numbers)counts.issues_open and counts.issues_closed; with no such key, dock
(the turning line)the last shipped PR, the weather, the run and a failed check of each gate, the output tokens of the day (TOKENS TODAY, for the team and each seat), sunrise and sunset, and the rows of boardprs, weather, gates, tokens, the sky, board

A narrow page shows two rows: the six numbers in turn, and the turning line. A changed value flips its flaps. With reduced motion it just changes.

Next: the status page.