-
No account, connector, or hosted service is required.
+
Local sandbox · source build · no account required
This example uses the real typed collection client and the deterministic
developer sandbox. It keeps every record in memory and makes no network
diff --git a/src/pages/testbed/index.astro b/src/pages/testbed/index.astro
deleted file mode 100644
index b01002a..0000000
--- a/src/pages/testbed/index.astro
+++ /dev/null
@@ -1,573 +0,0 @@
----
-import BaseLayout from "../../layouts/BaseLayout.astro";
-import CodeBlock from "../../components/CodeBlock.astro";
-
-const runCommand = `npm install --save-dev @callumalpass/mdbase-testbed
-
-npx mdbase-testbed validate
-npx mdbase-testbed run \\
- --adapter ./scripts/testbed-adapter.mjs \\
- --evidence ./conformance/testbed-evidence.json`;
-
-const protocol = `your-adapter describe
-# writes one adapter-description JSON document
-
-your-adapter run
-# reads one scenario request from stdin
-# writes one observable transcript to stdout`;
-
-const rings = [
- {
- id: "contract",
- number: "01",
- title: "Contract",
- count: 1,
- summary: "One contract, one implementing type, one record, two consumers.",
- scenarios: [
- ["core.shared-contract-consumers", "Both consumers receive the same validated contract view."]
- ]
- },
- {
- id: "interop",
- number: "02",
- title: "Interop",
- count: 11,
- summary: "Live sources, consumers, callers, and providers cross an authorization boundary.",
- scenarios: [
- ["interop.event-multicast", "One event reaches every compatible consumer."],
- ["interop.action-single-provider", "One eligible provider is selected."],
- ["interop.action-ambiguous", "Two eligible providers stop implicit dispatch."],
- ["interop.action-explicit-provider", "An explicit selector resolves ambiguity."],
- ["interop.provider-disappearance", "An unloaded provider is unavailable."],
- ["interop.contract-digest-drift", "Same version with a different digest is rejected."],
- ["interop.invalid-payload", "Schema-invalid data never reaches a handler."],
- ["interop.authority-boundary", "Compatibility cannot grant authority."],
- ["interop.request-replay", "A logical request is not applied twice."],
- ["interop.application-provider-lifecycle", "A real app provider registers, validates, runs, and unloads."],
- ["interop.application-event-multicast", "A real app source reaches two independent consumers."]
- ]
- },
- {
- id: "runtime",
- number: "03",
- title: "Runtime",
- count: 3,
- summary: "Durable admission, recovery, and worker fencing are observed through the store.",
- scenarios: [
- ["runtime.crash-recovery", "A lost outcome reuses the same attempt and invocation."],
- ["runtime.competing-workers", "A stale worker cannot commit after its lease expires."],
- ["runtime.application-execution", "A real app catalog produces one exact successful run."]
- ]
- }
-];
----
-
-
-
-
-
-
Portable testbed 0.1
-
Make the same promise. Prove the same behavior.
-
-
-
- One neutral suite tests TypeScript, Rust, plugins, desktop services,
- and future implementations through a process boundary. Products keep
- their own architecture; users get comparable evidence.
-
-
-
-
-
-
-
-
-
-
The black-box boundary
-
The spec asks. Your implementation answers.
-
-
- Each scenario starts a fresh adapter process. Only stable facts cross
- the boundary; generated IDs, database keys, and wall-clock timing stay
- inside.
-
-
-
-
- {
- rings.map((ring) => (
-
-
- {ring.number}
- {ring.title}
-
-
run
-
- describe
- run
-
-
JSON
-
PASS{String(ring.count).padStart(2, "0")}
-
- ))
- }
-
-
-
-
- What the testbed separates
-
-
- Owned by the specification
- The question and the oracle
-
- Draft 2020-12 schemas define neutral fixtures, run requests, adapter
- descriptions, transcripts, and evidence. Every expected transcript
- lives beside its scenario.
-
-
-
- Owned by the implementation
- The behavior under test
-
- An adapter drives public collection, bridge, provider, runtime, and
- store boundaries. It reduces observations to stable facts; it does
- not reimplement the feature.
-
-
-
- Owned by neither
- Authority
-
- Passing proves behavior, not permission. A transcript cannot grant
- access, register a provider, publish an event, or authorize a side
- effect.
-
-
-
-
-
-
-
-
-
15 scenarios · 3 rings
-
The portable inventory
-
-
- Small scenarios isolate failures. Application scenarios then repeat
- the critical paths with real product contracts and providers.
-
-
-
- {
- rings.map((ring) => (
-
-
- {ring.number}
-
-
{ring.title}
-
{ring.summary}
-
- {ring.count}
-
-
- {
- ring.scenarios.map(([id, description]) => (
- -
-
{id}
- {description}
-
- ))
- }
-
-
- ))
- }
-
-
-
-
-
-
-
Fresh process per scenario
-
Run it from any language
-
-
- The runner launches an executable directly—never through a shell—and
- validates both sides of every exchange before comparing observations.
-
-
-
-
-
Install and verify
-
-
-
-
Implement two commands
-
-
-
-
-
-
-
- Evidence is precise—and deliberately limited
-
- A passing run can emit a machine-readable evidence document containing
- the implementation identity, scenario IDs, profile names, and canonical
- transcript digests. Attach it to a conformance claim to make the tested
- behavior reproducible.
-
-
-
Supplemental evidence, not a blanket badge
-
- A complete profile claim still runs every normative conformance test
- for that profile. The testbed adds cross-language behavioral evidence;
- it does not silently widen the claim.
-
-
-
-
-
-
diff --git a/src/styles/global.css b/src/styles/global.css
index ae84a3d..ec7647d 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -139,6 +139,10 @@ code {
outline-offset: 3px;
}
+main[tabindex="-1"]:focus {
+ outline: none;
+}
+
.sr-only {
position: absolute;
width: 1px;
@@ -189,7 +193,7 @@ code {
.button {
display: inline-flex;
- min-height: 2.25rem;
+ min-height: 2.75rem;
padding: 0.4rem 0.8rem;
align-items: center;
justify-content: center;
@@ -408,7 +412,7 @@ code {
.code-block figcaption {
display: flex;
- min-height: 2.25rem;
+ min-height: 2.75rem;
padding: 0 0.75rem;
align-items: center;
justify-content: space-between;
@@ -418,7 +422,9 @@ code {
}
.code-block button {
- padding: 0.25rem;
+ min-width: 2.75rem;
+ min-height: 2.75rem;
+ padding: 0.25rem 0.4rem;
color: inherit;
background: transparent;
border: 0;
@@ -467,7 +473,7 @@ code {
display: grid;
margin-top: 1.25rem;
border-top: 1px solid var(--line-strong);
- grid-template-columns: repeat(2, minmax(0, 1fr));
+ grid-template-columns: repeat(3, minmax(0, 1fr));
}
.start-options > div {
@@ -645,7 +651,7 @@ code {
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line);
- border-radius: 3px;
+ border-radius: var(--radius);
}
.docs-toc {
@@ -755,7 +761,10 @@ code {
}
.docs-nav summary {
- padding: 0.15rem;
+ display: flex;
+ min-height: 2.75rem;
+ padding: 0.15rem 0.4rem;
+ align-items: center;
cursor: pointer;
}
@@ -775,6 +784,10 @@ code {
}
@media (max-width: 42rem) {
+ body {
+ font-size: 1rem;
+ }
+
.page-shell,
.page-hero__inner,
.content-section {
diff --git a/src/styles/home.css b/src/styles/home.css
index 21c3971..793d24f 100644
--- a/src/styles/home.css
+++ b/src/styles/home.css
@@ -30,15 +30,11 @@
}
.home-body::before {
- z-index: 1;
- background: linear-gradient(
- 90deg,
- var(--paper) 0%,
- var(--paper) 45%,
- color-mix(in oklch, var(--paper) 96%, transparent) 50%,
- color-mix(in oklch, var(--paper) 62%, transparent) 58%,
- transparent 66%
- );
+ display: none;
+}
+
+.home-body {
+ overflow-x: visible;
}
.home-body > main {
@@ -62,7 +58,7 @@
font-weight: 650;
text-decoration: none;
background: var(--accent);
- border-radius: 3px;
+ border-radius: var(--radius);
transform: translateY(-160%);
}
@@ -89,8 +85,7 @@
transform: translateY(12px);
}
-.home-body .chapter__status,
-.section-label {
+.home-body .chapter__status {
margin: 0 0 1rem;
color: var(--muted);
font: 500 0.625rem/1.4 var(--mono);
@@ -104,313 +99,142 @@
.home-body h1,
.home-body h2 {
line-height: 0.98;
- letter-spacing: -0.05em;
+ letter-spacing: -0.035em;
}
.home-body .chapter__actions--intro {
margin-top: 1.5rem;
}
-.home-reference {
- position: relative;
- z-index: 3;
- padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6.8vw, 6.5rem);
- color: var(--ink);
- background: var(--paper);
- border-top: 1px solid var(--line);
-}
-
-.home-reference + .home-reference {
- border-top-color: var(--line);
-}
-
-.home-reference__opening {
- display: grid;
- width: min(100%, 78rem);
- margin-inline: auto;
- grid-template-columns: minmax(16rem, 0.86fr) minmax(18rem, 0.65fr);
- column-gap: clamp(2rem, 8vw, 8rem);
+.home-body .chapter__actions {
+ flex-wrap: wrap;
}
-.home-reference__opening .section-label {
- grid-column: 1 / -1;
-}
-
-.home-body .home-reference h2 {
- max-width: 13ch;
- font-size: clamp(2.65rem, 6vw, 5.25rem);
-}
-
-.home-reference__opening > p:last-child {
- max-width: 55ch;
- padding-top: 0.4rem;
- color: var(--ink-soft);
- font-size: clamp(1rem, 1.35vw, 1.125rem);
- line-height: 1.62;
-}
-
-.home-reference__opening > p strong {
- color: var(--ink);
-}
-
-.ecosystem-flow,
-.availability-list,
-.route-list,
-.fit-guide__questions,
-.tool-example {
- width: min(100%, 78rem);
- margin: clamp(3.5rem, 7vw, 6rem) auto 0;
-}
-
-.ecosystem-flow {
- padding: 0;
- list-style: none;
+.product-map,
+.grant-summary {
+ width: min(33.75rem, 100%);
+ margin-top: 1.75rem;
border-top: 1px solid var(--line-strong);
}
-.ecosystem-flow li {
+.product-map > div,
+.grant-summary > div {
display: grid;
- max-width: none;
- padding: 1.3rem 0;
- align-items: baseline;
- grid-template-columns: 3rem minmax(0, 1fr) minmax(10rem, 0.35fr);
- gap: 1rem;
+ padding-block: 0.7rem;
border-bottom: 1px solid var(--line);
-}
-
-.ecosystem-flow li > span,
-.route-list i {
- color: var(--muted);
- font: 500 0.625rem/1.4 var(--mono);
-}
-
-.ecosystem-flow li > div {
- display: grid;
- align-items: baseline;
- grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
+ grid-template-columns: minmax(7.75rem, 0.72fr) minmax(0, 1.5fr);
gap: 1rem;
}
-.ecosystem-flow strong {
- font-size: 0.9rem;
-}
-
-.ecosystem-flow p {
- color: var(--ink-soft);
- font-size: 0.875rem;
+.product-map > div {
+ transition:
+ background-color 140ms ease-out,
+ border-color 140ms ease-out;
}
-.ecosystem-flow a,
-.orientation__runtime a {
- color: var(--ink);
- font-size: 0.78rem;
- font-weight: 700;
- text-underline-offset: 0.25rem;
-}
-
-.orientation__runtime {
- width: min(100%, 78rem);
- max-width: none;
- margin: 1.25rem auto 0;
+.product-map dt,
+.grant-summary dt {
color: var(--muted);
- font-size: 0.78rem;
+ font: 500 0.625rem/1.45 var(--mono);
}
-.working-example {
- background: var(--paper-soft);
-}
-
-.tool-example {
- display: grid;
- border-top: 1px solid var(--line-strong);
- grid-template-columns: repeat(3, minmax(0, 1fr));
-}
-
-.tool-example > div {
- padding: 1.2rem 1.25rem 1.25rem 0;
- border-bottom: 1px solid var(--line);
-}
-
-.tool-example > div + div {
- padding-right: 1.25rem;
- padding-left: 1.25rem;
- border-left: 1px solid var(--line);
-}
-
-.tool-example > div:last-child {
- padding-right: 0;
-}
-
-.tool-example span {
- display: block;
- color: var(--muted);
- font: 500 0.625rem/1.4 var(--mono);
-}
-
-.tool-example strong {
- display: block;
- margin-top: 0.5rem;
- font-size: 1rem;
-}
-
-.tool-example p {
- margin-top: 0.45rem;
- color: var(--ink-soft);
- font-size: 0.82rem;
- line-height: 1.55;
-}
-
-.tool-example a {
- display: inline-block;
- margin-top: 0.9rem;
+.product-map dt a {
color: var(--ink);
- font-size: 0.76rem;
- font-weight: 700;
-}
-
-.working-example__note {
- width: min(100%, 78rem);
- max-width: none;
- margin: 1.25rem auto 0;
- color: var(--muted);
- font-size: 0.78rem;
-}
-
-.availability {
- background: var(--paper);
-}
-
-.availability-list {
- border-top: 1px solid var(--line-strong);
+ font-weight: 600;
+ text-underline-offset: 0.24rem;
}
-.availability-list > div {
- display: grid;
- padding: 1.2rem 0;
- grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
- gap: 1rem;
- border-bottom: 1px solid var(--line);
-}
-
-.availability-list dt {
- color: var(--muted);
- font: 500 0.68rem/1.5 var(--mono);
-}
-
-.availability-list dd {
- display: grid;
- grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
- gap: 1rem;
+.product-map dd,
+.grant-summary dd {
+ margin: 0;
color: var(--ink-soft);
- font-size: 0.875rem;
+ font-size: 0.75rem;
+ line-height: 1.5;
}
-.availability-list dd strong {
- color: var(--ink);
+.product-map [data-product="connect"] :is(a, dd) {
+ transition: color 140ms ease-out;
}
-.route-list {
- border-top: 1px solid var(--line-strong);
-}
-
-.route-list a {
- display: grid;
- max-width: none;
- padding: clamp(1.2rem, 2.5vw, 2rem) 0;
- align-items: baseline;
- grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr) 2rem;
- gap: 1rem;
- color: var(--ink);
- border-bottom: 1px solid var(--line);
- text-decoration: none;
+.chapter__inner:has(.chapter__actions--intro .button:focus-visible)
+ .product-map
+ [data-product="connect"] {
+ background: color-mix(in oklch, var(--accent) 12%, transparent);
+ border-bottom-color: color-mix(in oklch, var(--accent) 48%, var(--line));
}
-.route-list a:hover span,
-.route-list a:hover strong {
+.chapter__inner:has(.chapter__actions--intro .button:focus-visible)
+ .product-map
+ [data-product="connect"]
+ :is(a, dd) {
color: var(--accent);
}
-.route-list span {
- color: var(--muted);
- font: 500 0.68rem/1.5 var(--mono);
-}
-
-.route-list strong {
- max-width: 46rem;
- font-size: clamp(1rem, 2vw, 1.35rem);
- line-height: 1.35;
-}
-
-.route-list i {
- font-style: normal;
- text-align: right;
-}
-
-.fit-guide {
- background: var(--paper-soft);
-}
-
-.fit-guide__questions {
- border-top: 1px solid var(--line-strong);
-}
+@media (hover: hover) and (pointer: fine) {
+ .chapter__inner:has(.chapter__actions--intro .button:hover)
+ .product-map
+ [data-product="connect"] {
+ background: color-mix(in oklch, var(--accent) 12%, transparent);
+ border-bottom-color: color-mix(in oklch, var(--accent) 48%, var(--line));
+ }
-.fit-guide details {
- border-bottom: 1px solid var(--line);
+ .chapter__inner:has(.chapter__actions--intro .button:hover)
+ .product-map
+ [data-product="connect"]
+ :is(a, dd) {
+ color: var(--accent);
+ }
}
-.fit-guide summary {
- position: relative;
- padding: 1.2rem 3rem 1.2rem 0;
+.grant-summary dd {
color: var(--ink);
- font-size: clamp(0.95rem, 1.5vw, 1.1rem);
- font-weight: 700;
- list-style: none;
- cursor: pointer;
-}
-
-.fit-guide summary::-webkit-details-marker {
- display: none;
-}
-
-.fit-guide summary::after {
- position: absolute;
- top: 1.1rem;
- right: 0;
- color: var(--muted);
- content: "+";
- font: 400 1.15rem/1 var(--mono);
+ font-weight: 600;
}
-.fit-guide details[open] summary::after {
- content: "−";
-}
-
-.fit-guide details p {
- max-width: 65ch;
- padding: 0 0 1.35rem;
+.home-body .chapter__body a {
color: var(--ink-soft);
- font-size: 0.9rem;
- line-height: 1.65;
+ text-underline-offset: 0.22rem;
}
@media (max-width: 820px) {
- .home-body::before {
- background: linear-gradient(
- 180deg,
- transparent 0%,
- transparent 38vh,
- color-mix(in oklch, var(--paper) 44%, transparent) 44vh,
- color-mix(in oklch, var(--paper) 96%, transparent) 54vh,
- var(--paper) 58vh
- );
+ .home-body .chapter {
+ min-height: 128vh;
+ padding-bottom: 12vh;
+ }
+
+ .home-body .chapter:first-child,
+ .home-body .chapter:last-child {
+ min-height: 136vh;
}
.home-body .chapter__inner,
.home-body .chapter.is-active .chapter__inner {
+ position: relative;
+ z-index: 1;
+ isolation: isolate;
opacity: 1;
transform: none;
}
+ .home-body .chapter__inner::before {
+ position: absolute;
+ z-index: -1;
+ top: -20vh;
+ bottom: -12vh;
+ left: 50%;
+ width: 100vw;
+ content: "";
+ pointer-events: none;
+ background: linear-gradient(
+ 180deg,
+ transparent 0%,
+ color-mix(in oklch, var(--paper) 44%, transparent) 6vh,
+ color-mix(in oklch, var(--paper) 96%, transparent) 16vh,
+ var(--paper) 20vh
+ );
+ transform: translateX(-50%);
+ }
+
.home-body h1 {
font-size: clamp(2.75rem, 13.5vw, 4rem);
}
@@ -429,59 +253,14 @@
line-height: 1.72;
}
- .home-body .facts span {
- font-size: 0.6875rem;
- }
-
- .home-body .facts strong,
.home-body .steps strong {
font-size: 0.8125rem;
line-height: 1.5;
}
- .home-reference__opening {
- grid-template-columns: 1fr;
- gap: 1.5rem;
- }
-
- .home-reference__opening .section-label {
- grid-column: auto;
- margin-bottom: 0;
- }
-
- .ecosystem-flow li {
- grid-template-columns: 2rem minmax(0, 1fr);
- }
-
- .ecosystem-flow li > div {
- grid-template-columns: 1fr;
- gap: 0.35rem;
- }
-
- .ecosystem-flow li > a {
- grid-column: 2;
- }
-
- .availability-list > div,
- .availability-list dd,
- .route-list a {
- grid-template-columns: 1fr;
- gap: 0.35rem;
- }
-
- .route-list i {
- display: none;
- }
-
- .tool-example {
- grid-template-columns: 1fr;
- }
-
- .tool-example > div,
- .tool-example > div + div,
- .tool-example > div:last-child {
- padding: 1.15rem 0;
- border-left: 0;
+ .product-map > div,
+ .grant-summary > div {
+ grid-template-columns: minmax(6.75rem, 0.62fr) minmax(0, 1.38fr);
}
}
@@ -490,4 +269,10 @@
.home-body .record-example {
font-size: 0.6875rem;
}
+
+ .product-map > div,
+ .grant-summary > div {
+ grid-template-columns: 1fr;
+ gap: 0.25rem;
+ }
}
diff --git a/src/styles/shell.css b/src/styles/shell.css
index e096745..9ee4e0b 100644
--- a/src/styles/shell.css
+++ b/src/styles/shell.css
@@ -133,12 +133,6 @@
gap: 0.35rem;
}
-.scene-count {
- color: var(--color-text-muted);
- font: 500 0.625rem/1 var(--mono);
- white-space: nowrap;
-}
-
.theme-menu {
position: relative;
flex: 0 0 auto;
@@ -146,14 +140,14 @@
.theme-menu > summary {
display: grid;
- width: 2rem;
- height: 2rem;
+ width: 2.75rem;
+ height: 2.75rem;
padding: 0;
place-items: center;
color: var(--color-text-faint);
background: transparent;
border: 0;
- border-radius: 3px;
+ border-radius: var(--radius);
list-style: none;
cursor: pointer;
}
@@ -199,20 +193,20 @@
padding: 0.3rem;
background: var(--color-surface);
border: 1px solid var(--color-border-strong);
- border-radius: 3px;
+ border-radius: var(--radius);
}
.theme-menu__options button {
display: grid;
width: 100%;
- min-height: 1.9rem;
+ min-height: 2.75rem;
padding: 0 0.5rem;
align-items: center;
grid-template-columns: 1fr auto;
color: var(--color-text-soft);
background: transparent;
border: 0;
- border-radius: 2px;
+ border-radius: var(--radius);
font: 400 0.66rem/1 var(--mono);
text-align: left;
cursor: pointer;
@@ -251,7 +245,10 @@
}
.mobile-nav summary {
- padding: 0.35rem 0;
+ display: flex;
+ min-height: 2.75rem;
+ padding: 0.35rem 0.25rem;
+ align-items: center;
color: var(--color-text-soft);
font-size: 0.78rem;
list-style: none;
@@ -300,11 +297,11 @@
.site-footer__inner {
display: grid;
width: min(100% - 2rem, var(--site-width));
- min-height: 5.5rem;
+ min-height: 8rem;
margin-inline: auto;
- padding-block: 1.5rem;
- align-items: center;
- grid-template-columns: 1fr auto;
+ padding-block: 2rem;
+ align-items: start;
+ grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
gap: 2rem;
}
@@ -319,11 +316,22 @@
font-size: 0.78rem;
}
-.site-footer nav {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-end;
- gap: 0.5rem 1.1rem;
+.site-footer .site-footer__nav {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 1.5rem;
+}
+
+.site-footer__nav > div {
+ display: grid;
+ align-content: start;
+ gap: 0.5rem;
+}
+
+.site-footer__nav > div > strong {
+ margin-bottom: 0.15rem;
+ color: var(--color-text-muted);
+ font-size: 0.625rem;
}
.site-footer nav a {
@@ -358,16 +366,18 @@
width: min(100% - 1.25rem, var(--site-width));
}
- .scene-count {
- display: none;
- }
-
.site-footer__inner {
grid-template-columns: 1fr;
- gap: 1rem;
+ gap: 1.5rem;
+ }
+
+ .site-footer .site-footer__nav {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
}
+}
- .site-footer nav {
- justify-content: flex-start;
+@media (max-width: 30rem) {
+ .site-footer .site-footer__nav {
+ grid-template-columns: 1fr;
}
}