Skip to content

feat(viz): layout() refuses area/tile/text and unresolved companions (PLOT-GG-001 M1) - #7065

Merged
noahgift merged 2 commits into
mainfrom
plot/m1-marks-guard-1114
Nov 15, 2026
Merged

noahgift merged 2 commits into
mainfrom
plot/m1-marks-guard-1114

Conversation

@paiml-fleet

@paiml-fleet paiml-fleet Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What it adds

BuiltGGPlot::layout() refuses geom_area, geom_tile and geom_text with Error::UnsupportedLayer instead of laying them out as raw points, and first refuses every companion layer it would not resolve (any geom but geom_point, any stat but identity, a point with a missing, text, short or infinite x/y column). Cut from #6968 @ 63f7fd5. 4 files, +548/-0 (marks.rs, ggplot.rs, mod.rs, ggplot2_marks_oracle.rs with 10 new tests).

Verification

  • Diff size read from git: 548 insertions, 0 deletions: measured.
  • Merged origin/main into the branch (clean, no conflicts): measured.
  • cargo fmt / clippy / cargo test: NOT MEASURED (no allowed build host for this worker; CI runs them).
  • 100% coverage, pv ontology, probar e2e: NOT MEASURED.

ont-delta: none (typed refusals in layout(); no contract or ontology row changes)

Closes #7062
Closes #7063
Closes #7064
Refs #6909
keep-open: #6909 is the master ticket; rows remain

🤖 Generated with Claude Code

Noah Gift and others added 2 commits November 14, 2026 19:52
…d not resolve (PLOT-GG-001 M1)

layout() laid geom_area, geom_tile and geom_text out as points: raw x/y
rows and scales trained on them, with no stat_align, stacking, tile
bounds or labels. It now refuses each with Error::UnsupportedLayer
until the ggplot_build() resolution of that geom lands.

Beside such a layer it also refuses, first, every companion it would
not resolve (the G1 guard from #6968): any geom but geom_point, any
stat but identity on that point, and a point with a missing, text,
short or infinite x/y column.

Cut from #6968 @ 63f7fd5: marks.rs MarkKind (Area/Tile/Text arms),
any_marks, require_modelled_companions, unsupported_companion,
unsupported_point_stat, require_point_companion (without the
xmin/xmax/ymin/ymax arm: those aesthetics are not on Aes here),
require_point_column; ggplot2_marks_oracle.rs companion tests 1272-1632
over the three geoms that have a constructor. New in slice:
require_resolved, the module doc, and the tests that now expect the
unresolved refusal where the source expected a layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

§13.11 rung 1 — quorum shadow verdict

S13-SHADOW pr=7065 head=1a8fdca7b111c67d6635c34831e8dab5fbf04a9d verdict=REFUSE class=Q1 arm_rc=1

Shadow mode: this records a verdict and merges nothing. A refusal
to arm is not a block (§13 adds zero rows to §7) — the pull request is
exactly as green as it was.

@noahgift
noahgift enabled auto-merge (squash) November 15, 2026 07:54
@noahgift
noahgift merged commit 05e4237 into main Nov 15, 2026
17 checks passed
@noahgift
noahgift deleted the plot/m1-marks-guard-1114 branch November 15, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant