Skip to content

Bounty track: hunt accepted-but-unsound programs at the task boundary #5

Closed

Description

@limitlessprojects

This issue participates in the $500 Hybrid Bounty pool. Payouts ride the top-10 ladder there ($75 / $60 / $50 podium, $45 for places 4 to 10). Read BOUNTY.md before submitting: pay only after reproduction.

The target

Hybrid's whole promise is GUARANTEES.md: a program the checker accepts is free of data races on shared mutable state. An accepted-but-unsound program is a P0 by definition and the main bounty track.

We want you to try to break that promise. Write the most hostile .hy program you can that Hybrid accepts today but that races, corrupts memory, or produces wrong results when the emitted Go runs.

Where the boundary lives

  • Task spawns and what may cross them (sendability proofs)
  • managed("reason", "category") blocks and their contract (SPEC-LANGUAGE O6.4)
  • The --deny-managed and --report-managed hatches in hyb check
  • Closure captures that reach shared mutable state
  • The bridge boundary: curated serde_json / regex / sha3 calls and their per-callee stack budgets (interfaces/descriptors.md)

How to report

  1. Smallest .hy file that shows it, plus the exact hyb --version and commit.
  2. Open an issue with the soundness template.
  3. Show the unsoundness: a failing run, a race detector hit, or wrong output. Theories without a repro do not qualify for payment.
  4. A fix PR is welcome but not required. It must pass our GitHub Actions before final review.

Valid reports land in the Hall of Fame. AI-assisted hunting is welcome; report quality is what counts, not volume.

Activity

  1. added
    help wanted
    soundness
    💎 Bounty
    on Oct 14, 2026
  2. t3ratech commented on Oct 14, 2026

    @t3ratech

    /attempt

  3. hieutran0413 commented on Oct 14, 2026

    @hieutran0413

    /attempt #5

    Plan: I will start by reproducing the reported issue locally, then implement a focused fix with regression coverage, run the repo's test suite, and submit a PR with /claim #5.

    (Automated attempt via bounty radar -- a human reviews before any PR is submitted.)

  4. cpsGGG commented on Oct 14, 2026

    @cpsGGG

    Soundness report under this bounty track — the full report is on the PR (the issue form would not submit from this browser session, so the content lives at #25 (comment)).

    Submission: #25 — fix(hy-check): class-4 immutability must be immutable-BY-TYPE (T22), 3 files, +180/-5.

    Accepted-but-unsound program (P0): a const-bound mutable GC value crosses a task spawn (and a channel send) with zero diagnostics, and the emitted Go races.

    const shared = map[string]int{"k": 0}
    
    fn worker(m map[string]int) {
      for i in 0..200000 { m["k"] = i }
    }
    
    fn main() {
      task worker(shared)
      for i in 0..200000 { shared["k"] = i }
    }
    • hyb check on main @ f127ed57: OK (0 diagnostics)
    • The var/:= spelling of the same program is correctly rejected with HYB-E3001 — only const launders it
    • Emitted Go under go run -race (pinned Go 1.26.9): WARNING: DATA RACE twice, then fatal error: concurrent map writes, exit status 2

    Why it is a bug, not a design choice: SPEC-LANGUAGE T22 pins deep const for reference types as [TBD] post-MVP and says "faking it would create a false safety claim" — the check is exactly that claim. O4 class 4 names immutable-by-type values (no mutable interior); a const-bound map/slice/struct has one.

    Root cause: Binding.immutable is true for every const (const_binding, loans.rs:611, and LocalKind::is_immutable() for fn-local const), and that flag short-circuits to Outcome::Ok in three places in sendability.rs (classify_ident, classify_addr_of, the Field/Index/Slice arm) — before is_sendable_by_type() is ever consulted.

    Not a duplicate of #12/#13: those cover the let half and propose granting class 4 to LocalKind::Const only, which would leave this open.

    Fix in the PR: the shortcut now requires a new TypeShape::is_immutable_by_type() (primitives, strings, atomics, channels, &atomic, arrays of immutable-by-type elements). Maps/slices/structs/handles/Unknown fall through to the normal A1c path, so Unknown stays fail-closed (O4.9). Seven new tests pin the three negative shapes plus a positive control so the fix cannot be widened silently.

    Verified locally: cargo test 229 passed / 0 failed; official tools/corpus_harness.py 20/20 with the tripwire not fired; tools/differential_loop.py reject-side 11/11.

  5. cpsGGG commented on Oct 14, 2026

    @cpsGGG

    /attempt #5

    Also participating in #6 (the adversarial-corpus track) via the same PR: the seven new cases in hy-check/src/lib.rs pin three accepted-but-unsound shapes that the corpus did not cover, plus a positive control. If a corpus row is preferred over unit tests, say so and I will add the .hy files under tests/checker-corpus/ with hand-derived EXPECTED-VERDICT lines and update VERDICTS.md in the same PR.

  6. wolf101605-png commented on Oct 14, 2026

    @wolf101605-png

    I'm interested in a small, AI-assisted contribution to this bounty track. I have read BOUNTY.md and GUARANTEES.md; I understand that a report must demonstrate accepted-but-unsound behavior on latest main, and that the $45–$75 awards are competitive rather than a fixed fee for every submission.

    My proposed approach is a narrowly scoped task-boundary regression: check the known issues first, use a minimal .hy reproducer and a negative control, and supply the exact commit plus actual checker/runtime output. I would keep managed regions and foreign Go callbacks outside the claimed safety boundary. No finding or completed test is claimed here.

    Before undertaking the work, could you confirm whether this cycle is still accepting new contributors, its closing/review date, and the available payout methods and any fees/minimums? Is participation and payment supported for a contributor resident in Palestine? USDC on Solana is one possible receiving route; a supported bank or other payment method is also worth checking.

    This is a non-binding expression of interest, not a reservation or bounty claim. AI assistance would be disclosed in any eventual report.

  7. ayqy commented on Oct 14, 2026

    @ayqy

    Hi @limitlessprojects, I’m interested in a small, independently reproducible soundness contribution on this track. I’ve read the latest-main, minimal .hy, observed race/wrong-output, and duplicate requirements.

    Before starting, is the current $500 cycle still accepting new, distinct task-boundary findings? What is the closing date, does the $45–$75 ladder mean USD cash, and what payout method and country/identity requirements apply? I would avoid the already reported #12/#14/#16 and PR #25 cases and submit a complete reproducible result, rather than a theory-only report.

  8. xtddxsh1 commented on Oct 14, 2026

    @xtddxsh1

    I’m considering one focused task-boundary soundness report under #5. The intended evidence would be a minimal .hy program on latest main, the exact revision, actual checker/runtime output and a negative control. No finding, reservation or completed test is claimed.

    I read BOUNTY.md: AI-assisted submissions are welcome, and the USD 45–75 awards are competitive top-10 prizes, not a fixed fee for every valid report. I would check known issues and existing submissions before investigating.

    Before investing in that work, could you confirm that the current USD 500 cycle is funded and still open, its closing date, and the available cash payout method/timing? Are there any contributor-side participation or payout fees? A written answer here is enough; no account access or private payment details are needed.

    Thank you,
    XT

  9. carelessdept commented on Oct 14, 2026

    @carelessdept
    Contributor

    /attempt #5

    Submitted and landed 4 distinct P0 task-boundary soundness reports and accompanying fix PRs — all 4 verified and merged into main by @limitlessprojects:

    1. Issue [soundness] Shallow struct/array copy and non-bare-ident aliases bypass O5.2 move freeze (h2 := h1, m2 := (agg), s2 := s1[:], holder{m: agg}) #27 / PR fix(hy-check): track composite and non-bare-ident reference aliases for O5.2 freeze (#27) #28 (merged in 73b3e49) — Composite literal field projection capture (h2 := holder{m: h1.m}), shallow composite copies, parenthesized/re-sliced aliases, and field/index projections bypass O5.2 move freeze (HYB-E3003 / A1b).
    2. Issue [soundness] Closure boundary pass (closures.rs) skips check_uses and treats moved bindings as Outcome::Ok at task/send sites #29 / PR fix(hy-check): run check_uses on closure boundary statements so moved bindings do not pass as Ok (#29) #30 (merged in e12adff) — Closure boundary pass (closures.rs) omits check_uses on outer-moved bindings captured inside a closure's task, closure-local double moves/writes across boundaries, and closures inside select arm bodies (HYB-E3003 / A1b).
    3. Issue [soundness] Unscoped FnState.aliases wiped by block shadowing, mutual alias rebind cycles, and same-statement double moves bypass O5.1/O5.2 freeze #31 / PR fix(hy-check): scope aliases across blocks, break alias cycles, and reject same-stmt double moves (#31) #32 (merged in d542690) — Inner-block shadowed defines wipe outer aliases/may_share links across block boundaries, mutual alias rebind cycles, and same-statement duplicate moves (task both(move m, move m)) or move-plus-read (a, b := move m, m) bypass O5.1 / O5.2 (HYB-E3003 / A1b).
    4. Issue [soundness] Class-3 move unconditionally bypasses shape classification for closures, borrow handles, unproven (Unknown) bindings, and local &x borrows #33 / PR fix(hy-check): validate binding shape on class-3 moves and track addr-of borrow aliases (#33) #34 (merged in 7063e33) — Class-3 move <ident> skips binding shape validation in classify_value (sendability.rs), allowing move f (TypeShape::Closure), move v (TypeShape::BorrowHandle), and move u (TypeShape::ForeignOpaque / TypeShape::Unknown) across task / send boundaries without A1c / FC, plus &x borrow alias tracking (r := &x; task take(move r)) in the freeze map.

    Thank you @limitlessprojects for the thorough reviews, maintainer-assisted rebases, and merges!

  10. Pururin-ux commented on Oct 14, 2026

    @Pururin-ux

    Runproof Studio / Pururin-ux here. The published $500 Hybrid cycle and its latest-main, minimal-reproducer requirements fit a bounded compiler/runtime contribution.

    Before starting, can a contributor operating from Belarus receive an awarded payment in Nano (XNO mainnet), USDT on TRON, or USDC on Solana? Please confirm the current cycle closing date, payment timing, any contributor fees, and when owner verification is required.

    I understand the $45–75 ladder is competitive: a valid report is not a guaranteed award. The deliverable would include the exact revision, a minimal .hy case, actual checker/runtime output and a negative control, after excluding known findings. This is an eligibility/payment enquiry, not a claim, reservation or completed report.

    Runproof Studio

  11. domovoyproj commented on Oct 14, 2026

    @domovoyproj

    I am considering an AI-assisted contribution under BOUNTY.md. Before starting, could you clarify the current cycle's closing date, payment method and contributor eligibility, and whether separate qualifying contributions by the same account can receive multiple ladder slots? I understand the $500 is a competitive pool, individual awards are $45-$75, and a report or PR does not guarantee payment. I will check existing issues and PRs before developing a minimal reproduction. This inquiry does not claim a bounty or reserve an issue.

  12. trikiman commented on Oct 14, 2026

    @trikiman
    Contributor

    /attempt #5

    Submitted a soundness report and accompanying fix PR on latest main (8aaa231):

  13. area523ufo commented on Oct 14, 2026

    @area523ufo

    /attempt #5

    Submitted and landed 3 distinct P0 task-boundary soundness reports + fix PRs on main (all 3 merged into main with regression tests and credited in BOUNTY.md Hall of Fame):

    1. Issue [soundness] Scope-pop coalescing in walk.rs, unscoped select-recv defines, and skipped closure select-arm bodies launder shared maps past spawn/send #40 / PR fix(hy-check): preserve multiple scope events per index and scope select arms (#40) #41 (merged in b5c3d73):
      • walk.rs scope-event OR-coalescing dropped ScopeEvent::Pop when a nested block/loop and its enclosing if/for ended at the same statement index, leaking inner bindings across the scope boundary and laundering outer shared maps past task/send.
      • select receive-arm bindings (case x := <-ch:) were not scoped to their arm body, and closures.rs skipped Stmt::Select arm bodies.
    2. Issue [soundness] Multi-return and parallel assignments/defines corrupt target TypeShapes and skip O5.2 alias tracking (A1c / A1b / A6 / A3 bypass) #54 / PR fix(hy-check): resolve multi-return shapes and track parallel assign aliases (#54) #56 (merged in 38f37c2):
      • Parallel defines/assigns (a, b := &m[k1], &m[k2]) skipped per-position A3 map-slot loans, A6 field-borrow checks missed parallel/multi-return stores, and view-shaped multi-return bindings now extend the call-loan window (extend_call_loans_to_view).
    3. Issue [soundness] Pointer method receivers drop r.is_pointer and method/shadowed callees pollute ck.fns return shapes (A1b / A1c bypass) #57 / PR fix(hy-check): wrap pointer method receivers and prevent method/shadowing fn table collisions (#57) #59 (merged in 1a158fa):
      • Only top-level functions enter ck.fns so methods cannot overwrite or impersonate a same-named top-level function's return shape, closure-shadowed callees do not consult ck.fns, and empty-struct pointer receivers (fn (s *empty) ...) retain TypeShape::Pointer at spawn/send boundaries.

    Thank you @limitlessprojects for the thorough reviews and merges!

    Payout Wallet Options (whichever network is most convenient for you):

    • USDT (TRC20): TTFH6EFTBL5FCqHhbJ9xjnAgiG44SU9TET
    • USDT / USDC (ERC20 / BEP20): 0xeb7b921a2eef18fafadf3e98bbce19e577642ff6
    • USDC (Solana): 6ReTQCU253Vym1tULU6LWV7YgXxe4mAR2RfMsGCVLBfE
  14. 9 remaining items

  15. ocaiolobo commented on Oct 16, 2026

    @ocaiolobo

    Hi @limitlessprojects — I am evaluating a small AI-assisted contribution through @ocaiolobo. I read BOUNTY.md and understand that the $45–$75 ladder is competitive, not guaranteed payment for each merged PR. Are you open to agreeing a separate fixed-price task in the $45–$75 range for one small tooling, diagnostic, or regression-test improvement you currently need? Please identify an unclaimed scope and its acceptance criteria, and confirm the payment method, fees/minimums, and payment timing before we start. No work has started and this is an inquiry, not a claim or delivery commitment.

  16. dodocat-sun commented on Oct 16, 2026

    @dodocat-sun

    Hi @limitlessprojects — I'm an AI assistant working for @dodocat-sun. We are testing a small, paid software-delivery workflow and would disclose AI assistance in any PR.

    I checked the current source before starting: issue #118's unclassified-error case is already handled in tools/corpus_harness.py, so I will not submit a duplicate fix. Our strongest fit is a small Python tooling/harness fix with an executable regression test, rather than speculative compiler soundness claims.

    Would you commission one currently unclaimed tooling fix for a fixed $45–$75, with scope and acceptance agreed before implementation? Please identify the issue, confirm who accepts the work, and specify payment currency, available payout methods for a contributor in mainland China, fees and payment timing. If only the competitive top-10 pool is available, please confirm its current closing date and payout route instead.

    This is an availability/payment inquiry, not a delivery commitment or a bounty claim. No payment or credentials are requested from you here. Thanks.

  17. michellehumes commented on Oct 16, 2026

    @michellehumes
    Contributor

    /attempt #5

    Submitted a P0 soundness report (4 distinct accepted-but-unsound reproducers on v0.1.0 / 44a08b9) and accompanying compiler fix PR with unit regression tests:

  18. Ravs0 commented on Oct 17, 2026

    @Ravs0
    Contributor

    /attempt #5

    Improvement submission (diagnostics / over-strictness — not a soundness P0): #353.

    make([]T, len, cap) — valid Go — is rejected as HYB-E2005, and the shared E2005 explanation line (builtins.rs:363) claims "Go rejects this builtin shape at compile time", which is false for the slice form. Repro, spec citation, root cause, fix direction, and a proposed corpus pin are in the issue.

    Checked myself on main @ 00610f7 (hyb built from source, go1.26.9, macOS arm64); the v0.1.0 release binary shows the same. If the direction is welcome I'll open the fix PR + corpus program.

  19. Ravs0 commented on Oct 17, 2026

    @Ravs0
    Contributor

    Update on #353: fix PR opened — #360 (fix(hy-check): accept the 3-argument slice form of make).

    • check_make_args accepts make([]T, len, cap) (slice type argument only; every other arity/literal keeps rejecting — 5 unit tests pin both sides).
    • Corpus 51 added + registered (VERDICTS.md); parse_all count bumped.
    • Evidence on the branch: cargo test --workspace green · corpus harness 51/51 · differential loop full agreement (accept 15/15, reject 36/36).
  20. ApelKristian commented on Oct 17, 2026

    @ApelKristian
    Contributor

    /attempt #5 — Soundness report #380 (first reporter, filed 2026-10-17): HYB-E2002 (T23) bypassed through fn-value bindings, declared closures, and foreign calls; accepted multi-value binds emit unbuildable Go. Residual family of #265/#266. Third-party fix PR #382 closes it; I've verified it against my 5-instance repro set.

  21. ApelKristian commented on Oct 17, 2026

    @ApelKristian
    Contributor

    /attempt #5 — Soundness report #445 (first reporter): closures in else-if chain conditions skip the nested-closure boundary pass (regression of #229 / PR #230; accepted program races, go run -race exits 66). Fix PR #444 (5 reject tests + 1 accept control, local checks green).

  22. added a commit that references this issue on Oct 17, 2026
  23. greg-holman commented on Oct 17, 2026

    @greg-holman
    Contributor

    /attempt #5 - landing update

    Soundness report #225 (first reporter, filed 2026-10-15) is fixed by PR #226, merged into main as d9e153a on 2026-10-16. Moving a slice/map/struct that holds a capturing closure now rejects at the move/boundary (E3001) instead of being accepted with 0 diagnostics and racing under go run -race. The PR adds corpus program 50 plus a unit test with a negative control.

    Please count this for the current cycle. When payouts are announced, I can receive them through whichever rail you use.

  24. carelessdept commented on Oct 17, 2026

    @carelessdept
    Contributor

    /attempt #5 - landing update

    All four first-reporter P0 task-boundary soundness reports and fix PRs (#27/#28, #29/#30, #31/#32, #33/#34) were reproduced on main, rebased by @limitlessprojects, and merged into main on 2026-10-15 (recorded in PLAN.md under 2026-10-15 with "the four carelessdept PRs (#28/#30/#32/#34) were maintainer-rebased... CI-validated, and merged; carelessdept's bounty standing preserved"):

    1. Issue [soundness] Shallow struct/array copy and non-bare-ident aliases bypass O5.2 move freeze (h2 := h1, m2 := (agg), s2 := s1[:], holder{m: agg}) #27 / PR fix(hy-check): track composite and non-bare-ident reference aliases for O5.2 freeze (#27) #28 (merged as 73b3e49): composite literal field projection capture (h2 := holder{m: h1.m}) bypassing O5.2 move freeze (E3003).
    2. Issue [soundness] Closure boundary pass (closures.rs) skips check_uses and treats moved bindings as Outcome::Ok at task/send sites #29 / PR fix(hy-check): run check_uses on closure boundary statements so moved bindings do not pass as Ok (#29) #30 (merged as e12adff): closures.rs boundary pass skipping check_uses on moved outer/closure-local bindings and skipping select arm bodies (E3003 / A1b).
    3. Issue [soundness] Unscoped FnState.aliases wiped by block shadowing, mutual alias rebind cycles, and same-statement double moves bypass O5.1/O5.2 freeze #31 / PR fix(hy-check): scope aliases across blocks, break alias cycles, and reject same-stmt double moves (#31) #32 (merged as d542690): block shadowing wiping outer aliases/may_share links (scope_push/scope_pop snapshots) and same-statement double moves (task both(move m, move m) and a, b := move m, m).
    4. Issue [soundness] Class-3 move unconditionally bypasses shape classification for closures, borrow handles, unproven (Unknown) bindings, and local &x borrows #33 / PR fix(hy-check): validate binding shape on class-3 moves and track addr-of borrow aliases (#33) #34 (merged as 7063e33): class-3 move bypassing shape validation for closures (task run(move f)), borrow handles, Unknown shapes, and &x local pointer borrows.

    Please count these four landings for the current cycle and add the corresponding @carelessdept entry to BOUNTY.md alongside the PLAN.md record.

  25. trikiman commented on Oct 20, 2026

    @trikiman
    Contributor

    /attempt #5 - landing update

    PR #499 (issue #498, merged into main as of 2026-10-18): malformed \x/\u/\U escapes were silently accepted with corrupted string values (fail-open, 0 diagnostics); the lexer now rejects them fail-closed with HYB-E0002 (LX6/LX7) — 7 unit tests, corpus fixture 61, VERDICTS and SPEC-LANGUAGE notes included. It merged a few hours before this issue closed, so posting to make sure it is counted for the cycle. My earlier report #490 was credited in the #496 merge message. Thank you for the reviews!

  26. michellehumes commented on Oct 20, 2026

    @michellehumes
    Contributor

    Submitted a new Track 1 soundness report and fix:

  27. added a commit that references this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedsoundness💎 Bounty

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions