Skip to content

F#: language profile for .fs/.fsi/.fsx, .fs claimed on content proof (Part of #5623) - #5681

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5623-20261019T2002Z
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5623-20261019T2002Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5623 (slice 1 of 2: F#. Crystal .cr is the remaining slice, not in this PR.)

What

F# language profile (.fs, .fsi, .fsx; .fsproj as a discriminator/project file). let/let rec/member/and functions, type/module/namespace/exception, match arms as branches, <-/:= as state mutation.

.fs is content-decided against GLSL and Forth (same mechanism as PostgreSQL #5622): internal_discriminator proof plus .fs in COLLISION_FREQUENCIES.

Wiring edits (file count is over 5; one line each)

  • language_lens.py: Tier 3 now drops a proof-only language even when it is the sole claimant. Without it, a GLSL/Forth .fs was won by F# by default (caught by the strict test); now undeterminable. F# is the only language in this position.
  • core/detector.py: fsharp joins the Mode C (offside-rule) slicer; without it function_count collapsed (Timer 0 vs 4).
  • analysis_lens.py: LANGUAGE_STRICTNESS row and the backend security profile (the registration audit requires both).
  • _lens_config.py: .fs in COLLISION_FREQUENCIES. __init__.py: registry entry.
  • test_detection_resolution_order.py: pins the new .fs claimant.

Evidence

  • language_addition_audit.py --lang fsharp: all 5 invariants hold (warns: class extraction list, rosetta not checked out).
  • Real scan, fsharp-doom d7bcf5c5 (fetched from GitHub into scratch; it was not local): 18/18 .fs map to fsharp. function_count matches struct_func_start on 13 of 15 files with functions; Shader 8/9, Texture 3/4, Timer 3/4 lose one single-line unit each (Mode C needs a body line; Haskell has the same limit). Three data-only files: 0.
  • test_fsharp_strict.py: 16 pass (plain pytest from an unrelated cwd too). Strict tests ran in the selfscan venv; the translator-extra tests were not run.
  • Golden masters: golden-lock.sh crucible_check.py --update --yes reports no drift in either fixture (language-crucible v1.7.0 has no F# files, no other language flipped). Nothing re-blessed.
  • pr_gates --fast 6/6, --ratchets 8/8, audit_check.py clear.

Sibling gaps

  • Nested (* *) comments are not stripped (no // + nested-block lexical family).
  • class_count is 0: fsharp is not in _CLASS_START_NAMED_EXTRACTION_LANGS (needs the harden-class-start-extraction pass).
  • .fsproj SBOM/NuGet parsing (manifest_parser.py handles .csproj only).
  • Adjacent one-line let f x = ... bindings, multi-line parameter lists and operator names are not sliced.
  • Tri-comparison chart row and keyword-rosetta F# control folder (separate repo) not added.
  • Crystal (.cr): slice 2.

Cross-repo

No companion PR in this slice. The rosetta F# corpus half is a follow-up in keyword-rosetta; no merge-order constraint, nothing re-runs after.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 20:35
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 20:43
+ r"']*\.)?)"
)
_DOTTED = r"[" + ID_START + r"][" + ID_CONTINUE + r"'.]*"
_TRIVIA = r"(?:[ \t]|//[^\n]*)*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants