Screen-recorded build sessions: tiles a browser window (2/3, left) and a terminal window (1/3, right) via infrastructure-screencast's window control, keeps both positioned while real work happens in either, and finalizes to mp4 on a duration cap or a clean Ctrl-C stop. No scripted input, no live captions -- this shows genuine work as it happens (Rule 14); caption a finished recording in a later pass via infrastructure_screencast::burn_captions once there is a real transcript to caption from.
| Tier | tools |
| Role | unclassified (baselined) |
| Path | crates/tools/demo-buildsession |
| Edition | 2021 |
| Targets | tools-demo-buildsession, tools_demo_buildsession |
| Public items | 2 across 0 modules |
| Tests | 4 |
What it is for
Pure layout logic for the build-session recorder. Kept separate from main.rs's I/O orchestration (window control, ffmpeg) so the split itself is unit-tested without touching a display (Gate 2: TDD the decidable logic).
Capabilities
crate root
Pure layout logic for the build-session recorder. Kept separate from
| Item |
|---|
pub const DEFAULT_BROWSER_FRACTION: f64 |
fn browser_terminal_layout(screen_w : u32, screen_h : u32, browser_fraction : f64,) ->(Geometry, Geometry) |
How to use it
No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.
Module structure
No public modules: the crate root is its whole surface.
Public surface
`crate root`
| Item | What it is |
|---|---|
pub const DEFAULT_BROWSER_FRACTION: f64 | Default browser-width fraction of the screen: 2/3 browser, 1/3 terminal. |
fn browser_terminal_layout(screen_w : u32, screen_h : u32, browser_fraction : f64,) ->(Geometry, Geometry) | Compute (browser_geometry, terminal_geometry) for a browser-left / terminal-right tiled layout at the given browser-width fraction of the screen |
No pub use re-exports: every item above is declared in this crate.
Boundary
Reaches into infrastructure.
Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | tools |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/tools/demo-buildsession |
| Vocabulary in force (lexicon) | current |
Tier flow. Which tiers this crate's own edges cross.
flowchart LR n_tools["tools"] --> n_infrastructure["infrastructure"]
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `infrastructure-screencast` | infrastructure | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
anyhow | ^1 | — | no | always |
ctrlc | ^3 | — | no | always |
Development. None.
Build. None.
Depended on by. Nothing in this workspace.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR SELF["tools-demo-buildsession"] SELF -->|runtime| n_infrastructure_screencast["infrastructure-screencast"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| bin | tools-demo-buildsession | `src/main.rs` |
| lib | tools_demo_buildsession | `src/lib.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
HOME | src/main.rs |
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 4 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 2 | 0 | 0 |
What the tests establish, by name:
boundary_fraction_clamped_below_zero_and_above_one—src/lib.rsconstraint_both_windows_span_full_screen_height_and_partition_the_width—src/lib.rsvalid_default_fraction_gives_two_thirds_browser_one_third_terminal—src/lib.rsvalid_terminal_starts_exactly_where_browser_ends—src/lib.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 2 | 2 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 2
"No rustdoc detected" : 0
Metrics
| Metric | Value |
|---|---|
| Rust source files | 2 |
| Source lines | 191 |
| Code lines | 137 |
| Public API items | 2 |
| Public modules | 0 |
| Tests | 4 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 3 |
| Workspace reverse dependencies | 0 |
pie showData
title Public API by kind
"constant" : 1
"function" : 1
pie showData
title Rust source composition
"Code" : 137
"Blank or comment" : 54
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.