flekschas's picture
Initial release
f3042bd verified
|
Raw History Blame Contribute Delete
1.65 kB

GenomeSpy 0.88.1 submission contract

Build one complete GenomeSpy 0.88.1 specification for the task by composing constructors. The host renders it in a fixed 900 × 620 CSS-pixel viewport with hg38 assembly metadata supplied by the host.

Each constructor is a tool. It validates its own input and returns a fragment; pass fragments as arguments to other constructors. Build bottom-up: create leaf objects such as scales, axes, and data first, then compose them into larger objects such as encodings and views, and finish with the root constructor. Submit with the submit tool, passing exactly the root object a constructor returned as its spec argument.

A root object that no constructor produced is refused. Fragments are not validated as complete specifications; the root is validated when it is submitted.

Bind the task rows by name with data: { name: "table" }, passed to the constructor that takes data. The host replaces each such reference with exactly the rows shown in the task before validation. Do not copy the rows into the specification: inline data is rejected. Views may filter or reuse the same rows.

The host accepts a submission only after JSON-Schema validation, native compilation, and a render without console, page, or network errors all succeed. A rejected constructor call or submission returns its error. Repair it with corrected calls and submit again.

Each attempt is retained for evaluation. The latest submission, not the last accepted one, controls the final outcome: a later invalid submission makes the final outcome invalid even when an earlier accepted chart is retained for audit. Stop after acceptance.