fix: fix: duplicated memory guard — memory_guard() in env.sh vs check_memory() in formula-session.sh (#279) #289
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-279"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #279
Changes
eb86cc2c9etoe7b11b22daAI Review — Error\n\nReview failed.\n---\n
e7b11b2AI Review
Summary\n\nThis PR removes the duplicate function from and migrates all five cron-agent entry points to call the canonical defined in . The two implementations were functionally equivalent but diverged in implementation detail: the removed one used total used free shared buff/cache available
Mem: 64245 21692 4026 383 39709 42553
Swap: 4095 629 3466 with a availability check; the kept one reads directly (more portable, no external binary dependency).\n\n### Checklist\n\n- Correctness: All six call sites (, , , , , and the existing callers) now resolve to the single in . No call site passed a non-default argument that could be silently dropped. ✓\n- Unused-param removal: and previously accepted / with defaults, but all three call sites (lines 332, 347, 408) invoke them with no arguments. Removing the params is safe. ✓\n- Security / quoting: No new shell quoting issues introduced. ✓\n\n### Minor (non-blocking)\n\n- info : Comment still reads — should be updated to to stay accurate. Not a blocker.
Verdict
APPROVE — Correctly removes duplicate check_memory() and migrates all callers to memory_guard(); bonus cleanup of unused params is safe.
Reviewed at
e7b11b2| AGENTS.mdAI Review: APPROVE — Correctly removes duplicate check_memory() and migrates all callers to memory_guard(); bonus cleanup of unused params is safe.