Skip to content

chore: type checker epoch cleanup - #7743

Draft
francesco-stacks wants to merge 6 commits into
stacks-network:mainfrom
francesco-stacks:refactor/type-checker-epoch-cleanup
Draft

francesco-stacks wants to merge 6 commits into
stacks-network:mainfrom
francesco-stacks:refactor/type-checker-epoch-cleanup

Conversation

@francesco-stacks

Copy link
Copy Markdown
Contributor

Description

Small follow-up to #7742

  • Removes TypingContext.epoch. It held a fixed epoch per checker (Epoch2_05 / Epoch21), not the real one. Since feat: count callable identifiers in cost and memory charges from Epoch 4.1 #7742, the 2.1 checker sizes charges with its own epoch, so nothing should read the field.
  • Deletes the FunctionType::check_args dispatcher. Each checker already knows its path, so v2_05 calls check_args_2_05 and v2_1 calls check_args_2_1 directly.
  • Renames the 2.05-only analysis_typecheck_cost and total_type_size to *_v2_05, so 2.1+ code can't pick up legacy sizes through the short names.

Applicable issues

  • fixes #

Additional info (benefits, drawbacks, caveats)

Checklist

  • Test coverage for new or modified code paths
  • For new Clarity features or consensus changes, add property tests (see
    docs/property-testing.md)
  • Changelog fragment(s) or "no changelog" label added (see
    changelog.d/README.md). If this PR breaks
    anything for node operators or users, or requires them to manually do
    anything (such as adjust a setting), use the breaking category.
  • Required documentation changes (e.g.,
    rpc/openapi.yaml for RPC endpoints,
    event-dispatcher.md for new events)
  • New clarity functions have corresponding PR in clarity-benchmarking repo

@francesco-stacks francesco-stacks self-assigned this Oct 21, 2026

This branch has not been deployed

No deployments
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.

1 participant