Skip to content

refactor: make comment-only behavior explicit - #638

Merged
e54-bot merged 2 commits into
mainfrom
feat/explicit-behavior-633
Oct 21, 2026
Merged

e54-bot merged 2 commits into
mainfrom
feat/explicit-behavior-633

Conversation

@e54-bot

@e54-bot e54-bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements #633 per the owner decisions on the issue — behavior that lived only in comments is now stated by names, types, or tests. No comments added; compiler output unchanged.

  • Policy vs manifest: enforcement reads the manifest's receiver/variable data (verified identical to the deleted policy entries); duplicate policy functions removed — variadic, contextual domains, and function contexts stay in policy (no manifest field). A former test asserting the old "no manifest-driven enforcement" contract was inverted to the owner's new contract.
  • Special forms: SPECIAL_VALUE_CALLS + SPECIAL_FUNCTIONS merged into one table that cannot disagree; the lookup.rs sync test removed with it.
  • reconstruct.rs: named constants/helpers only (DECLARATION_SLOT_RANGE shared by the slot check and slot lookup, etc.) — no control-flow change.
  • Ternary heuristic: the layout-line predicates named; behavior unchanged; root-cause fix deferred per the decision.
  • compile_with_overlay_outcome_with_locale: failed-check-carries-an-error invariant stated in a type/assertion; check_with_overlay_and_locale's stage-selecting boolean replaced with a two-valued type.
  • structural_convergence.rs: the pending workshop-rs admission test is named as an expected rejection.
  • opy-provider/edits.rs: EXCLUDED_CODES/DOCUMENT_SYNTAX_CODES/CROSS_FILE_CODES classified via a named per-class structure; #!mainFile redirect's stub record named is_main_file_redirect_stub (De Morgan-equivalent).
  • macro_js: a test asserts a script sees no filesystem, process, or network capability.
  • dependabot: the pinned-oracle review rule was missing from org policy — added one sentence in docs/compatibility-testing.md via wrightkit/.github PR (see below).
  • unsafe { libc::geteuid() } untouched — belongs to Remove unsafe outside the QuickJS FFI boundary #637.

Verification

cargo fmt --check, stable + +1.88.0 clippy -D warnings, cargo test --workspace --all-targets --all-features (863), python3 -m unittest (52), probe_builtins.py 6114 probes 0 unexplained, git diff --check, size guard — all green.

Fixes #633

Receiver enforcement and variable-parameter indices now come from the manifest as the single source; the duplicated policy tables are removed. Lookup and lowering share one special-function table, and reconstruction, parser, tooling, and provider code name the behaviors that were documented only by comments. A macro isolation test pins the host-capability boundary.

Fixes #633
The push toolchain denies const-item-mutation (.find needs &mut self) and the size guard forbids growing this file; a mutable local keeps the range usage one line and shrinks the file.
@e54-bot
e54-bot merged commit c09c8eb into main Oct 21, 2026
7 checks passed
@e54-bot
e54-bot deleted the feat/explicit-behavior-633 branch October 21, 2026 20:05
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.

Make behavior explicit that was documented only by comments

2 participants