anomalyco / anomalyco/opencode

Lifecycle: reload/teardown safety for instances (bounded drains, interrupt-safe claims, reusable-reload wedge fix)

Open
#49,977 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Context

Part of the fork hardening series proposed in #48638 (branch session-diff-events). Tracker: #49565.

Problem

Instance lifecycle hazards: interrupt-unsafe claims, unbounded teardown waits, reload-ordering violations, stale teardown tracking, and a reusable-reload wedge where a never-settling disposer left reload/provide/load dead (total directory wedge). Also tombstone/lease correctness for directory reuse.

Change set (commit list, incl. instance halves of mixed commits)
  • 887b912207 wave F tombstone/lease
  • b8bf11bd9b wave D tombstone/lease
  • c637878773 wave J-B instance-store
  • 13f3368fa8 wave M-B instance-store
  • (instance halves of 1ee7d234ec / 88777b8591 to be split for clean stacks)
Validation
  • Base total-wedge probe (reload/provide/load all time-out) -> head fully live (provide ~1 ms, load ~0 ms); ordering guarantees preserved; instance suite 27/0.

Linked: PR #48638 · tracker #49565 · sibling tracking issues listed in a follow-up comment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with linked PR #48638 and tracker #49565, then review the listed instance-store and tombstone/lease commits. Run the base total-wedge probe and instance suite described in Validation; done means reload, provide, and load remain live, ordering guarantees hold, and the instance suite reports 27/0.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.