Skip to content

fix(lang-v2): document slab idl header-only behavior#4831

Open
0x4ka5h wants to merge 4 commits into
otter-sec:anchor-nextfrom
Otter-0x4ka5h:fix/v2-slab-idl-docs
Open

fix(lang-v2): document slab idl header-only behavior#4831
0x4ka5h wants to merge 4 commits into
otter-sec:anchor-nextfrom
Otter-0x4ka5h:fix/v2-slab-idl-docs

Conversation

@0x4ka5h

@0x4ka5h 0x4ka5h commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Finding

Slab<H, T> was emitted through the header type alone, which made dynamic tail accounts look like header-only accounts in IDL even though the tail layout cannot be represented faithfully.

Fix

This PR documents and locks in the current header-only IDL behavior for Slab, instead of implying a full tail schema that IDL cannot encode correctly. Added regression tests for header-only IDL forwarding.

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the OtterSec Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (anchor-next@e056cc1). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff               @@
##             anchor-next    #4831   +/-   ##
==============================================
  Coverage               ?   63.60%           
==============================================
  Files                  ?      126           
  Lines                  ?    13663           
  Branches               ?        0           
==============================================
  Hits                   ?     8691           
  Misses                 ?     4972           
  Partials               ?        0           
Flag Coverage Δ
v2 63.60% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@swaroop-osec swaroop-osec left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please remove redundant tests. Keep only one test either in lang-v2/tests or tests-v2?

@0x4ka5h
0x4ka5h requested a review from swaroop-osec July 23, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants