Datasets:
Download interfaces/gosling/documents/code-complete-index-hints--go-shared-multitrack.md from flekschas/mcp-web-experiments: direct link, hf CLI and curl.
- Browser
- Download file 11.5 kB
-
https://huggingface.co/datasets/flekschas/mcp-web-experiments/resolve/main/interfaces/gosling/documents/code-complete-index-hints--go-shared-multitrack.md
- Command line
-
hf download hf://datasets/flekschas/mcp-web-experiments/interfaces/gosling/documents/code-complete-index-hints--go-shared-multitrack.md
-
curl -L -o code-complete-index-hints--go-shared-multitrack.md https://huggingface.co/datasets/flekschas/mcp-web-experiments/resolve/main/interfaces/gosling/documents/code-complete-index-hints--go-shared-multitrack.md
Gosling 1.0.7 submission contract
Author one complete Gosling 1.0.7 specification for the task. The host renders it in a fixed 900 × 620 CSS-pixel viewport with hg38 assembly metadata supplied by the host.
Submit a complete JavaScript program with the code tool. The program returns the complete specification as plain object literals; it does not print it or return a patch. The TypeScript declarations in the appendix are reference only: write plain JavaScript, with no type annotations. Imports, files, and network access are disabled.
Bind the task rows by name with data: { type: "json", name: "table", chromosomeField: "<field>", genomicFields: ["<field>", ...] }, naming the rows' chromosome and genomic position fields. 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. Tracks may filter or reuse the same rows.
The program may also read the same rows, for example to compute domains:
declare function getData(): Promise<Array<Record<string, unknown>>>;
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 call returns its stage and error. Repair it by submitting another complete program.
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.
Mechanically generated role-balanced name index
Every unique schema property name appears exactly once in the complete stub section, including underscore-prefixed/internal names. * means required in at least one occurrence. The letter is the property's dominant declaring-definition role for navigation only: C=channels, D=data, I=interaction, L=layout-style, R=root, S=scale, M=track-mark, T=transforms, V=view-composition. Lines are alphabetized within roles and interleaved by lexical role in chunks of 12.
Complete property-name stubs
C: aggregate, axis, baseline, clip, domain, flip, grid, legend, range, scale, zeroBaseline D: aggregation, attribute*, attributesToFields, binSize, categories, chromosomeField*, chromosomePrefix, column, customFields, defaultValue*, end, exonIntervalFields I: alt, arrange, click, conditionPadding, enableMouseOverOnMultipleMarks, format, groupMarksByField, measure*, operation*, rangeSelect, target*, threshold* L: align, backgroundOpacity, brush, curve, dashed, dx, dy, enableSmoothPath, inlineLegend, legendTitle, linePattern, linkConnectionType R: _assignedHeight, _assignedWidth, alignment*, arrangement, assembly, centerRadius, description, id, layout, linkingId, orientation, padding S: chromosome*, interval* M: _invalidTrack, _overlay*, _renderingId, background, baselineY, color, data*, dataTransform, displacement, encoding, endAngle, experimental T: base, baseGenomicField*, boundingBox*, chrField*, endField*, field*, fields*, firstBp*, flag*, from*, genomicField*, genomicLengthField* D: extractJunction, genomicFields*, genomicFieldsToConvert, headerNames, index*, indexUrl*, junctionMinCoverage, loadMates, longToWideId, maxInsertSize, name*, sampleLength I: transitionPadding L: linkMinHeight, linkStyle, matrixExtent, mouseOver, outlineWidth, select, strokeOpacity, textAnchor, withinLinkVerticalLines R: responsiveSize, responsiveSpec, scaleOffset, selectivity*, spacing, spec*, static, style, subtitle, title, tracks*, views* M: flipY, height, innerRadius, mark*, mouseEvents, opacity, outerRadius, outline, overlayOnPreviousTrack, performanceMode, prerelease, row T: groupField, include*, inRange*, isPaddingBP, maxRows, method*, newField*, not, oneOf*, posField*, replace*, secondBp* D: start, type*, url*, value*, valueFields, values* R: xAxis, xDomain, xOffset, yDomain, yOffset, zoomLimits M: size*, startAngle, stretch, stretchGraphics, stretchGraphicsThreshold, stroke, strokeWidth, template*, text, textFontSize, textFontWeight, textStroke T: separator*, startField*, strandField*, to* M: textStrokeWidth, tooltip, visibility, width, x, x1, x1e, xe, y, y1, y1e, ye
Safe contextual contracts
The remaining budget follows the frozen 5A role-balanced order over (role, property) aliases. A contract appears only when every occurrence for that alias is byte-identical and the shared renderer preserves it safely. Ambiguous, intersected, open-constant, or oversized details remain name-only above; aggregated literal observations are never presented as exhaustive domains.
Y.aggregate
Object role: channels; authored property: aggregate.
Schema pointer: #/definitions/Y/properties/aggregate
type channels_aggregate = Aggregate;
Specify how to aggregate data. Default: undefined
VectorData.aggregation
Object role: data; authored property: aggregation.
Schema pointer: #/definitions/VectorData/properties/aggregation
type data_aggregation = BinAggregate;
Determine aggregation function to apply within bins. Default: "mean"
Tooltip.alt
Object role: interaction; authored property: alt.
Schema pointer: #/definitions/Tooltip/properties/alt
type interaction_alt = string;
Name of the data field for showing in the tooltip. Will use the field name if not specified.
Style.align
Object role: layout-style; authored property: align.
Schema pointer: #/definitions/Style/properties/align
type layout_style_align = "left" | "right";
Specify the alignment of marks. This property is currently only supported for triangle marks.
GoslingSpec._assignedHeight
Object role: root; authored property: _assignedHeight.
Schema pointer: #/definitions/GoslingSpec/anyOf/3/properties/responsiveSpec/items/properties/spec/properties/_assignedHeight
type root__assignedHeight = number;
TemplateTrack._assignedHeight
Object role: track-mark; authored property: _assignedHeight.
Schema pointer: #/definitions/TemplateTrack/properties/_assignedHeight
type track_mark__assignedHeight = number;
LogTransform.base
Object role: transforms; authored property: base.
Schema pointer: #/definitions/LogTransform/properties/base
type transforms_base = LogBase;
If not specified, 10 is used.
SingleView._assignedHeight
Object role: view-composition; authored property: _assignedHeight.
Schema pointer: #/definitions/SingleView/anyOf/2/properties/responsiveSpec/items/properties/spec/properties/_assignedHeight
type view_composition__assignedHeight = number;
Y.axis
Object role: channels; authored property: axis.
Schema pointer: #/definitions/Y/properties/axis
type channels_axis = AxisPosition;
Specify where should the axis be put
GffData.attribute
Object role: data; authored property: attribute.
Schema pointer: #/definitions/GffData/properties/attributesToFields/items/properties/attribute
type data_attribute = string;
EventStyle.arrange
Object role: interaction; authored property: arrange.
Schema pointer: #/definitions/EventStyle/properties/arrange
type interaction_arrange = "behind" | "front";
Show event effects behind or in front of marks.
Style.background
Object role: layout-style; authored property: background.
Schema pointer: #/definitions/Style/properties/background
type layout_style_background = string;
GoslingSpec._assignedWidth
Object role: root; authored property: _assignedWidth.
Schema pointer: #/definitions/GoslingSpec/anyOf/3/properties/responsiveSpec/items/properties/spec/properties/_assignedWidth
type root__assignedWidth = number;
Internal: Used for responsive spec
TemplateTrack._assignedWidth
Object role: track-mark; authored property: _assignedWidth.
Schema pointer: #/definitions/TemplateTrack/properties/_assignedWidth
type track_mark__assignedWidth = number;
Internal: Used for responsive spec
Y.baseline
Object role: channels; authored property: baseline.
Schema pointer: #/definitions/Y/properties/baseline
type channels_baseline = string | number;
Custom baseline of the y-axis. Default: 0
Contracts that earlier submissions often got wrong
Each block is the schema contract at a location where earlier submissions for other tasks were rejected. It restates the schema; it is not an example.
Schema contract for PartialTrack.strokeWidth: type PartialTrackStrokeWidth = StrokeWidth | ChannelValue; type StrokeWidth = { domain?: ValueExtent; field?: string; range?: ValueExtent; type?: "quantitative" | "nominal" }; type ChannelValue = { value: number | string };
Schema contract for PartialTrack.color: type PartialTrackColor = Color | ChannelValue; type Color = { domain?: ValueExtent; field?: string; legend?: boolean; range?: Range; scale?: "linear" | "log"; scaleOffset?: number[]; title?: string; type?: "quantitative" | "nominal" }; type ChannelValue = { value: number | string };
Schema contract for PartialTrack.opacity: type PartialTrackOpacity = Opacity | ChannelValue; type Opacity = { domain?: ValueExtent; field?: string; range?: ValueExtent; type?: "quantitative" | "nominal" }; type ChannelValue = { value: number | string };
Schema contract for PartialTrack.stroke: type PartialTrackStroke = Stroke | ChannelValue; type Stroke = { domain?: ValueExtent; field?: string; legend?: boolean; range?: Range; scaleOffset?: number[]; title?: string; type?: "quantitative" | "nominal" }; type ChannelValue = { value: number | string };
Schema contract for PartialTrack.size: type PartialTrackSize = Size | ChannelValue; type Size = { domain?: ValueExtent; field?: string; legend?: boolean; range?: ValueExtent; type?: "quantitative" | "nominal" }; type ChannelValue = { value: number | string };
Schema contract for GoslingSpec[3]: type GoslingSpec3 = { _assignedHeight?: number; _assignedWidth?: number; arrangement?: "parallel" | "serial" | "horizontal" | "vertical"; assembly?: Assembly; centerRadius?: number; description?: string; id?: string; layout?: Layout; linkingId?: string; orientation?: Orientation; responsiveSize?: ResponsiveSize; responsiveSpec?: { selectivity: unknown[]; spec: Record<string, unknown> }[]; spacing?: number; static?: boolean; style?: Style; subtitle?: string; title?: string; views: (SingleView | MultipleViews)[]; xAxis?: AxisPosition; xDomain?: DomainInterval | DomainChrInterval | DomainChr; xOffset?: number; yDomain?: DomainInterval | DomainChrInterval | DomainChr; yOffset?: number; zoomLimits?: ZoomLimits };
Schema contract for PartialTrack: type PartialTrack = { _assignedHeight?; _assignedWidth?; _invalidTrack?; _overlay?; _renderingId?; assembly?; baselineY?; centerRadius?; color?; data?; dataTransform?; displacement?; encoding?; endAngle?; experimental?; flipY?; height?; id?; innerRadius?; layout?; linkingId?; mark?; mouseEvents?; opacity?; orientation?; outerRadius?; overlayOnPreviousTrack?; prerelease?; row?; size?; spacing?; startAngle?; static?; stretch?; stroke?; strokeWidth?; style?; subtitle?; template?; text?; title?; tooltip?; type?: "dummy-track"; visibility?; width?; x?; x1?; x1e?; xAxis?; xDomain?; xOffset?; xe?; y?; y1?; y1e?; yDomain?; yOffset?; ye?; zoomLimits? };