Repository navigation
Ariadne: a normative spec for .ari documents (ARIADNE_SPEC.md) - #1595
Merged
Merged
Conversation
The .ari schema is the structural half; docs/ARIADNE_SPEC.md is the other half, what each part means and when it acts. It covers: - conformance; - the document text; - the min_libcvc gate; - the order of loading, the schema check, what refuses a load, composition and the nesting limit; - the order of starting, reload and Restart; - the frame's deferred-intent rule; - the bind rule, scopes, confinement, holes and the two lanes; - one entry for each of the schema's 39 top-level keys; - the seven places libcvc 4.0.10 does not yet keep the spec; - what is not yet specified (scene nodes, widget types, the DSL's built-ins). ARIADNE.md now points at the spec. Its §5.2, §6.7 and §14.2 are corrected, and §7.4 notes that a missing link: mode is still writable. ariadne_schema_test's AriSpec.EveryTopLevelBlockHasItsEntry checks that the spec's §8 has one entry for each top-level key in the schema, and none for any other.
transfix
enabled auto-merge (squash)
November 28, 2026 00:26
ABusyMountIsHeldToItsBudgetWhileTheOthersRun gave the busy mount 5000 steps a frame. Each frame's pump stops at its own backstop (kPumpMaxSeconds, 0.1 s, half of it CPU time) whatever the mounts' budgets, and a mount the backstop cut short has not spent its budget, so it is not held that frame. The loaded Debug coverage runner of #1595 fit 4000 to 5000 of the busy loop's steps in a pump, so the mount was held some frames and not others: not held at the end, no notice, no Quit in the Budgets window. The budget is now 250 steps (500 after Allow more), several times under that; the checks scale with it. TheShippedExamplesKeepWithinTheLocalBudget held every example to the local default's 25 ms a frame, which is wall-clock time: a loaded machine stretches a frame without bound while it runs something else. Each entry's budget.time is now 0, so a hold is its steps' or its memory's, still checked at the defaults in every build. The seconds are checked in an optimized build only, on every frame but each example's 5 busiest.
This was referenced Nov 28, 2026
package-linux / libcvc-debug failed on AriadneMounts.ABusyMountIsHeldToItsBudgetWhileTheOthersRun and on the runtime test's slice256 and threads_auto variants: the wall-clock budget checks that #1605 makes independent of runner speed. #1605 is a single commit (345d0be) to src/cvc/tests/ariadne_runtime_test.cpp. When it squash-merges, master gets the identical change, so this branch still merges clean and its own diff is unchanged.
transfix
added a commit
that referenced
this pull request
Nov 28, 2026
ABusyMountIsHeldToItsBudgetWhileTheOthersRun gave the busy mount 5000 steps a frame. Each frame's pump stops at its own backstop (kPumpMaxSeconds, 0.1 s, half of it CPU time) whatever the mounts' budgets, and a mount the backstop cut short has not spent its budget, so it is not held that frame. The loaded Debug coverage runner of #1595 fit 4000 to 5000 of the busy loop's steps in a pump, so the mount was held some frames and not others: not held at the end, no notice, no Quit in the Budgets window. The budget is now 250 steps (500 after Allow more), several times under that; the checks scale with it. TheShippedExamplesKeepWithinTheLocalBudget held every example to the local default's 25 ms a frame, which is wall-clock time: a loaded machine stretches a frame without bound while it runs something else. Each entry's budget.time is now 0, so a hold is its steps' or its memory's, still checked at the defaults in every build. The seconds are checked in an optimized build only, on every frame but each example's 5 busiest.
transfix
added a commit
that referenced
this pull request
Nov 28, 2026
#1595 landed as fd4576c. Its squash re-adds docs/ARIADNE_SPEC.md and edits docs/ARIADNE.md as a new commit, so both conflicted with this branch, which carried #1595's own commits. Resolved by taking master's versions of the two files and reapplying this branch's docs commit 8619f4e: the spec is unchanged from 8619f4e, and the guide is master's plus the 5.2 sentence. The PR's diff against master is now its own five files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ariadne gets a normative specification:
docs/ARIADNE_SPEC.md. The.arischema stays its structural half, saying which keys a document may have and what shape each value takes. The new file is the other half: when each part is read, what it does, and what a reader reports.ARIADNE.mdstays the guide, and it is informative.This is the first part of gap item 9 in the scene-format plan. It covers the document as a whole, plus one entry for each top-level block. The scene's node semantics (gap items 1 to 8), the widget types and the DSL's built-ins are listed in its §10 as the parts still to write.
What the spec says
x-extension keys.min_libcvccompares. It is checked before anything else, so a document too new for this build is refused unchecked. It selects no behaviour.include:,import:,load:,functions:,mounts:and URIs, with every limit.requires:,args:,data:,keys:,state:,init:, residents, scene, tree), then reload and Restart.link:holes.Facts come from the code at daf6367 (the link-mode rule from fc507d7, where #1599 landed). File and line were checked for the load order, the version gate, fragment gating, duplicate keys, link modes, nesting failures and program confinement.
Where libcvc differs (spec §9)
Each row is a defect in libcvc. This PR fixes none of them; it only records them. (An eighth, a map-form
link:hole with nomode:read as read-write, was found here and fixed in #1599. Its row is gone, and so is the guide's §7.4 note about it.)load:fragment'smin_libcvcis not checked; onlymounts:entries are gated.optional:andfallback:count only the exact texttrue, though the schema takes any flag spelling.root:withchildren:.children:is ignored without a warning.background:is read on every widget, though the schema allows it on a few types only.Guide fixes (
ARIADNE.md)ARIADNE_SPEC.md, and calls the roadmap the design history.load:fragment is gated by its ownmin_libcvc; only amounts:entry is today.include:expansion says "this widget is not checked".The test
ariadne_schema_testgainsAriSpec.EveryTopLevelBlockHasItsEntry. It readsdocs/ARIADNE_SPEC.md§8 and checks that each top-level key in$defs/documenthas exactly one "####key:" entry there, and that no other key has one. A PR that adds a top-level block now has to say what it means. It runs where the schema's own shape tests run: in a build with nlohmann-json.Verified locally
Windows, MSVC Release, with the JSON-schema validator and FTXUI (no cvcGL, no pycvc), on master daf6367:
ariadne_schema_test: 15 pass, plus 1 skip by design (the without-validator case). This includesAriSpec.EveryTopLevelBlockHasItsEntry, which finds all 39 top-level keys with one entry each.clock:'s entry renamedclocks:, itfails on both: "needs one entry for clock:" and "has an entry for clocks:, which is not a
top-level key of the schema".
git clang-formatleaves the test change as it is.Not verified: Linux and macOS (CI covers them). The spec changes no code.