Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.

Ratchet the copyability report in CI, and fix the opt_struct_ptr doc-comment - #84

Merged
borisbat merged 1 commit into
masterfrom
bbatkin/pr81-followups
Aug 15, 2026
Merged

Ratchet the copyability report in CI, and fix the opt_struct_ptr doc-comment#84
borisbat merged 1 commit into
masterfrom
bbatkin/pr81-followups

Conversation

@borisbat

Copy link
Copy Markdown
Owner

Two follow-ups from #81's review ledger. The ratchet step now also diffs the regenerated copyability_report.txt against the committed copy — the generator already writes it beside the skip report, so a copyable → non-copyable flip in the boost surface fails CI instead of relying on committed regen. And FieldKind.opt_struct_ptr's doc-comment said "(caller's addr; cloned into scratch)" — both halves stale since the view rework: the pointee is borrowed and raw-viewed into the parent view's scratch.

Validation, claims

Validation

  • Local regen against vendored vk.xml: both reports byte-match the committed copies, so the new CI line lands green.
  • generator/vk_emit_boost.das lints clean.

Claims — stated, not tested

  • The CI lane itself not exercised pre-merge (the ratchet step only runs in the workflow); the command shape is identical to the existing skip-report diff one line above.

🤖 Generated with Claude Code

…comment

Two follow-ups from the #81 review ledger:

- The generator already writes copyability_report.txt beside the skip report;
  the ratchet step now diffs it against the committed copy, so a copyable ->
  non-copyable flip in the boost surface fails CI instead of relying on
  committed regen. Verified locally: today's regen matches both reports.
- FieldKind.opt_struct_ptr said "(caller's addr; cloned into scratch)" - both
  halves stale since the view rework: the pointee is borrowed and raw-viewed
  into the parent view's scratch, and the raw pointer aims at that scratch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 15, 2026 01:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens the generator “ratchet” CI gate by also diffing the regenerated copyability_report.txt against the committed baseline, and corrects the FieldKind.opt_struct_ptr documentation to reflect the current “borrowed pointee, raw-viewed into scratch” behavior in the boost view layer.

Changes:

  • CI: Extend the existing skip-ratchet step to also diff generator/copyability_report.txt against the regenerated /tmp/copyability_report.txt.
  • Generator docs: Update FieldKind.opt_struct_ptr’s doc-comment to match post–view-rework semantics.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
generator/vk_emit_boost.das Updates the opt_struct_ptr doc-comment to describe borrowed/raw-view behavior accurately.
.github/workflows/tests.yml Adds a CI diff check for copyability_report.txt alongside the existing skip report ratchet.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@borisbat
borisbat merged commit cc72307 into master Aug 15, 2026
6 checks passed
@borisbat
borisbat deleted the bbatkin/pr81-followups branch August 15, 2026 02:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants