Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .trinity/seals/t27f_t27f_deps_card.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"built_by": "t27c-bootstrap@0.5.2+69eef64da",
"built_by": "t27c-bootstrap@0.5.2+672aaca7d",
"closure": [
{
"spec": "specs/ci/affected.t27",
Expand All @@ -19,24 +19,24 @@
},
{
"spec": "specs/t27f/spec_graph_view.t27",
"spec_hash": "sha256:d4c318162bf52405208d4016d0505c8037cd648b58feb3ad5240a2695c6730fe"
"spec_hash": "sha256:01c6592f05e69333b528b895612a0c993419753a72f8069b9c356bcba2367294"
},
{
"spec": "specs/t27f/why_card.t27",
"spec_hash": "sha256:01381c902fe4b5702dc26505a0d081faa0895bfaf60ef51a529cfef894a8ae68"
"spec_hash": "sha256:f41a92e6166150d910a0c2fefaa192955ba57896f55442241b715740f636de35"
}
],
"config": "gen=c,rust,verilog,zig;tests=zig",
"gen_hash_c": "sha256:1fab55b6560729fa839fffa5a4a0ec209206dd4b4b634cd3820a7747cc7dd408",
"gen_hash_c": "sha256:9611964fda8648d8c555db73737e74087969f083c5e81554aaf9048aa74e16a2",
"gen_hash_rust": "sha256:4cd7275eee50d4ef1bee49dd368d41fe9dc5a3bbef294e52d46c5f9fc9eeeadc",
"gen_hash_verilog": "sha256:5b18c1b146174b46ebcaa57c19cc15f62d27e05243662082a3c3bbc86d309232",
"gen_hash_zig": "sha256:671dcd2e8b4f2c0e56bad3c9b787c7c75971d3984dbb7ca097680dda81f2fba8",
"gen_hash_zig": "sha256:750550faf99442288b4503d6fd947755ba307b1da4dafafffb3e0a362ae9e67b",
"module": "t27f_deps_card",
"ring": 12,
"seal_schema": 2,
"sealed_at": "2026-10-24T16:49:25Z",
"sealed_at": "2026-10-25T13:07:21Z",
"sealed_by": "t27c-bootstrap@0.5.2",
"spec_hash": "sha256:2668cf097b59a43a77bef448c2aef5cf575e437f97b5544250c6dcffbc0b9757",
"spec_hash": "sha256:dd8ccd9413846345ed990a5f14fb17e92d5a3d0a470e12f4c76cf66779913d1c",
"spec_path": "specs/t27f/deps_card.t27",
"tests": {
"failed": 0,
Expand Down
8 changes: 4 additions & 4 deletions .trinity/seals/t27f_t27f_spec_graph_fold.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"built_by": "t27c-bootstrap@0.5.2+9448ab4be",
"built_by": "t27c-bootstrap@0.5.2+672aaca7d",
"closure": [
{
"spec": "specs/t27f/spec_graph.t27",
"spec_hash": "sha256:110d07291552a9558ab192ff07ea6c3160e880306cbb847f89544ea7324c9d17"
},
{
"spec": "specs/t27f/spec_graph_view.t27",
"spec_hash": "sha256:d4c318162bf52405208d4016d0505c8037cd648b58feb3ad5240a2695c6730fe"
"spec_hash": "sha256:01c6592f05e69333b528b895612a0c993419753a72f8069b9c356bcba2367294"
}
],
"config": "gen=c,rust,verilog,zig;tests=zig",
Expand All @@ -18,7 +18,7 @@
"module": "t27f_spec_graph_fold",
"ring": 12,
"seal_schema": 2,
"sealed_at": "2026-10-18T17:03:39Z",
"sealed_at": "2026-10-25T13:07:24Z",
"sealed_by": "t27c-bootstrap@0.5.2",
"spec_hash": "sha256:998442ec0e9a80bdf07f77280e7090b59ce4e7d1d44a147f665dd17f215a44c1",
"spec_path": "specs/t27f/spec_graph_fold.t27",
Expand All @@ -31,7 +31,7 @@
"vacuous": 0
},
"toolchain": {
"test_runner": "sha256:1982ae948e24d00c5d221ccec12dfce1eb01204b53e37b0f857f93b16d64629d",
"test_runner": "sha256:8512b80da533b79289110fca4a65f3336abd7a059ca4b72ea595d5e33ff8ad10",
"zig": "0.16.0"
}
}
20 changes: 10 additions & 10 deletions .trinity/seals/t27f_t27f_spec_graph_view.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"built_by": "t27c-bootstrap@0.5.2+9448ab4be",
"built_by": "t27c-bootstrap@0.5.2+672aaca7d",
"closure": [
{
"spec": "specs/t27f/spec_graph.t27",
Expand All @@ -11,27 +11,27 @@
}
],
"config": "gen=c,rust,verilog,zig;tests=zig",
"gen_hash_c": "sha256:52a1db703b28fd1514901bb7e73f776d7e02df22613eece4bbd8295f9822b505",
"gen_hash_rust": "sha256:8899f02a4fbaa24baca22cdf050660915679fe0350ee92eea5d475f0b7aba4e4",
"gen_hash_verilog": "sha256:6ae77a9ed4797954cbae36339d5a583671d171410af7d46f195b4d8aa24e0541",
"gen_hash_zig": "sha256:457fef31a7f0c4de4042b81185723908d58e6c7ab4dce3001c0e0dc6ca089a80",
"gen_hash_c": "sha256:2a0fc2ca88c86b7ca713728979983f2abee5c89a4bfb7e85bda60c972ff28b8f",
"gen_hash_rust": "sha256:4af647e4921d73bc7ec613c1003cb870019abfb57758d93eab33585ab9616913",
"gen_hash_verilog": "sha256:5b832401062372b53c4e88a7b03446491293df0d3cf50eea8311d74ca4b78487",
"gen_hash_zig": "sha256:71d45e84b7efed52b33f63d6117e2e08eae91e73c6cb751945585167b662942d",
"module": "t27f_spec_graph_view",
"ring": 12,
"seal_schema": 2,
"sealed_at": "2026-10-18T17:03:27Z",
"sealed_at": "2026-10-25T13:06:33Z",
"sealed_by": "t27c-bootstrap@0.5.2",
"spec_hash": "sha256:d4c318162bf52405208d4016d0505c8037cd648b58feb3ad5240a2695c6730fe",
"spec_hash": "sha256:01c6592f05e69333b528b895612a0c993419753a72f8069b9c356bcba2367294",
"spec_path": "specs/t27f/spec_graph_view.t27",
"tests": {
"failed": 0,
"failing": [],
"forced": false,
"passed": 9,
"total": 9,
"passed": 10,
"total": 10,
"vacuous": 0
},
"toolchain": {
"test_runner": "sha256:1982ae948e24d00c5d221ccec12dfce1eb01204b53e37b0f857f93b16d64629d",
"test_runner": "sha256:8512b80da533b79289110fca4a65f3336abd7a059ca4b72ea595d5e33ff8ad10",
"zig": "0.16.0"
}
}
12 changes: 6 additions & 6 deletions .trinity/seals/t27f_t27f_why_card.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"built_by": "t27c-bootstrap@0.5.2+69eef64da",
"built_by": "t27c-bootstrap@0.5.2+672aaca7d",
"closure": [
{
"spec": "specs/ci/affected.t27",
Expand All @@ -19,20 +19,20 @@
},
{
"spec": "specs/t27f/spec_graph_view.t27",
"spec_hash": "sha256:d4c318162bf52405208d4016d0505c8037cd648b58feb3ad5240a2695c6730fe"
"spec_hash": "sha256:01c6592f05e69333b528b895612a0c993419753a72f8069b9c356bcba2367294"
}
],
"config": "gen=c,rust,verilog,zig;tests=zig",
"gen_hash_c": "sha256:bf7fecfabe014f121ca1cbba03a5cebc3083836c0b6f456f28daee9c973f034d",
"gen_hash_c": "sha256:bba7d2a69d0e9024fc5bca945c9c3a57b66da8250263833cf492ab718413111b",
"gen_hash_rust": "sha256:b610a52893f5d0a41bcebb47a820016d3bd3a87d73a477fd3909838ada2352ff",
"gen_hash_verilog": "sha256:8e8a23e07c446ddcc960f96865756bd2804f9a0f0001364b41c5b810d1a8add3",
"gen_hash_zig": "sha256:b1db9ea3c5fcf9f466564a67281d6de3616306101f19d76a3561eef484d65eeb",
"gen_hash_zig": "sha256:47ffa02b9bf8149cc8baa58a0c80af0ab3f9230e9663ed6adf053a215cc2efce",
"module": "t27f_why_card",
"ring": 12,
"seal_schema": 2,
"sealed_at": "2026-10-24T16:49:32Z",
"sealed_at": "2026-10-25T13:07:23Z",
"sealed_by": "t27c-bootstrap@0.5.2",
"spec_hash": "sha256:01381c902fe4b5702dc26505a0d081faa0895bfaf60ef51a529cfef894a8ae68",
"spec_hash": "sha256:f41a92e6166150d910a0c2fefaa192955ba57896f55442241b715740f636de35",
"spec_path": "specs/t27f/why_card.t27",
"tests": {
"failed": 0,
Expand Down
2 changes: 1 addition & 1 deletion specs/t27f/deps_card.t27
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ test dcard_draws_both_bands_and_the_focus {
assert card_count(&out, w, ":color=0x00FF88:t=8$") == 1;
assert card_count(&out, w, ":color=0x00FF88:t=4$") == 3;
assert card_count(&out, w, ":color=0x0C2A1B:t=fill$") == 4;
assert card_count(&out, w, "color=c=0x0B0D0C:s=1080x1350:d=1$") == 1;
assert card_count(&out, w, "color=c=0x000000:s=1080x1350:d=1$") == 1;
assert card_count(&out, w, "[v]\n$") == 1;
}

Expand Down
32 changes: 30 additions & 2 deletions specs/t27f/spec_graph_view.t27
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ pub const VIEW_LABEL_FILL : [4]u32 = [0x0C2A1B, 0x2B2508, 0x0E2236, 0x1A1E1C];
pub const VIEW_LABEL_STROKE : [4]u32 = [0x00FF88, 0xFFD700, 0x58A6FF, 0x8B9490];
pub const VIEW_LABEL_DASH : [4]u32 = [0, 6, 3, 2];

/// Text and page colours, and the text size a host uses inside a box.
/// Text and page colours, and the text size a host uses inside a box. The backdrop is the brand
/// black #000000, the same black as the page and the card the graph sits in (#12406).
pub const VIEW_TEXT : u32 = 0xFFFFFF;
pub const VIEW_BACKDROP : u32 = 0x0B0D0C;
pub const VIEW_BACKDROP : u32 = 0x000000;
pub const VIEW_FONT_PX : u32 = 13;

/// Two edges between the same pair of nodes (uses and data_flow, calls and tested_by) would lie on
Expand Down Expand Up @@ -759,6 +760,33 @@ test host_entry_points_match_the_layout {
assert fx_edge_x1(0, 16) == 0;
}

test the_backdrop_is_brand_black_and_every_box_shows_on_it {
// Luma distance, not a contrast ratio: Rec.601 luma in thousandths, 299*R + 587*G + 114*B,
// so black is 0 and white is 255000. The floors are what the palette clears today with some
// room; they are not a WCAG ratio and make no claim to one (#12406 review).
assert VIEW_BACKDROP == 0x000000;
let bg : u32 = VIEW_BACKDROP;
let bg_luma : u32 = 299 * ((bg >> 16) & 255) + 587 * ((bg >> 8) & 255) + 114 * (bg & 255);
let tx : u32 = VIEW_TEXT;
let tx_luma : u32 = 299 * ((tx >> 16) & 255) + 587 * ((tx >> 8) & 255) + 114 * (tx & 255);
// white text on the black page sits most of the luma range apart
assert tx_luma >= bg_luma + 200000;
var l : u32 = 0;
while (l < (LABEL_KINDS as u32)) {
let f : u32 = VIEW_LABEL_FILL[l as usize];
let s : u32 = VIEW_LABEL_STROKE[l as usize];
let f_luma : u32 = 299 * ((f >> 16) & 255) + 587 * ((f >> 8) & 255) + 114 * (f & 255);
let s_luma : u32 = 299 * ((s >> 16) & 255) + 587 * ((s >> 8) & 255) + 114 * (s & 255);
// the box edge stands off the page and off its own fill
assert s_luma >= bg_luma + 140000;
assert s_luma >= f_luma + 100000;
// the box body is not page black, and white text still reads on it
assert f_luma >= bg_luma + 20000;
assert tx_luma >= f_luma + 200000;
l = l + 1;
}
}

invariant label_styles_are_distinct_and_centred {
var l : u32 = 0;
while (l < (LABEL_KINDS as u32)) {
Expand Down
2 changes: 1 addition & 1 deletion specs/t27f/why_card.t27
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ test card_draws_one_box_per_spec_of_the_chain {
assert card_count(&out, w, "text='c'$") == 0;
assert card_count(&out, w, "text='uses'$") == 4;
assert card_count(&out, w, "text='4 hops / every edge exact / t27c use-edges'$") == 1;
assert card_count(&out, w, "color=c=0x0B0D0C:s=1080x1350:d=1$") == 1;
assert card_count(&out, w, "color=c=0x000000:s=1080x1350:d=1$") == 1;
assert card_count(&out, w, ":color=0x00FF88:t=4$") == 5;
assert card_count(&out, w, ":color=0x0C2A1B:t=fill$") == 5;
assert card_count(&out, w, "[v]\n$") == 1;
Expand Down
Loading