Skip to content

Fix unsafe DB connections and missing returns in cobol refractor - #293

Merged
squid-protocol merged 1 commit into
mainfrom
fix/cobol-refractor-unsafe-db-returns
Jul 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/cobol-refractor-unsafe-db-returns

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Resolves #292

Description of Structural Changes

  • Added explicit self.conn is not None checks to record_dead_code, get_dead_paras, and get_orphaned_vars inside IRStateManager to prevent hard crashes if the connection drops.
  • Added return set() fallback paths to ensure type safety and prevent downstream NoneType iteration errors.
  • Added Test 8 to simulate dropped connections and invalid state manager modes.

Visual Observatory Testing

  • I tested the output JSON on GitGalaxy.io OR the Airgap Observatory.
  • Flexbox constraints, HUD elements, and 3D rendering remain intact.

The Differential Scan Acknowledgement

  • I understand that my PR will be subjected to a Full Differential Scan.
  • I have provided the link to the specific repository this PR addresses so it can be tested alongside the 80-repo calibrated baseline.
  • I believe these changes will measurably improve the engine's Accuracy, Speed, Utility, or Ethos without causing regressions.

Resolves #[ISSUE_NUMBER]. Adds explicit None-checks for self.conn in IRStateManager and fallback return sets for get_dead_paras and get_orphaned_vars to prevent hard crashes and mypy type errors.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 2e58334 into main Jul 22, 2026
22 checks passed
@squid-protocol
squid-protocol deleted the fix/cobol-refractor-unsafe-db-returns branch July 22, 2026 18:02
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.

Bug: Unsafe DB connections and missing returns in cobol_refractor_controller.py

1 participant