Skip to content

Refactor capture_design_fixture.sh variable assignments - #147

Open
lovestaco wants to merge 1 commit into
mainfrom
lovestaco-patch-1
Open

lovestaco wants to merge 1 commit into
mainfrom
lovestaco-patch-1

Conversation

@lovestaco

@lovestaco lovestaco commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Removed default values for PORT, OUT, TIMEOUT_SECS, and LOG variables. Updated LRC assignment logic.

Summary

Describe what changed and why.

Linked Issue

Link the agreed issue this PR fulfills.

Validation

Describe the most specific test or validation you ran.

Checklist

  • This PR fulfills an agreed issue.
  • I kept the change narrow and scoped.
  • I ran the most specific relevant validation and described it above.
  • If I changed behavior, I called that out clearly in this PR.
  • If I touched UI, I attached a GIF or video walkthrough. This is required.
  • If I changed storage/ responsibilities, I updated storage/storage_status.md and ran make check-status-doc.
  • If I changed network/ responsibilities, I updated network/network_status.md and ran make check-status-doc.
  • If this change touches security, disclosure flow, credentials, storage, network behavior, or remote data handling, I reviewed SECURITY.md and updated related documentation if needed.

Notes For Reviewers

Anything specific you want reviewers to focus on.


🔍 LiveReview

Auto-approval decisions

Review Decision Reason
#13204 ❌ Not approved Risk score 0.94 is above the cutoff of 0.50

⚙️ Customize risk-based approval policy for this repository or your organization.

Removed default values for PORT, OUT, TIMEOUT_SECS, and LOG variables. Updated LRC assignment logic.
@livereview-agent

Copy link
Copy Markdown

Remove Configuration and Build Logic from Design Fixture Script

Overview

This change modifies the capture_design_fixture.sh script. It removes several environment variable definitions. It also removes the conditional build logic for a local tool.

Technical Highlights

  • scripts/capture_design_fixture.sh: Removes definitions for PORT, OUT, TIMEOUT_SECS, and LOG.
  • scripts/capture_design_fixture.sh: Deletes the conditional lrc binary build logic.
  • scripts/capture_design_fixture.sh: Introduces a logic error in the RANGE variable assignment.
  • scripts/capture_design_fixture.sh: Hardcodes a specific repository path.

Impact

  • Functionality: The script no longer builds lrc locally; it expects lrc to exist. It runs with fewer configurable parameters.
  • Risk: The script will likely fail due to the RANGE variable error. It also loses portability and configuration flexibility.

@@ -18,16 +18,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(dirname "$SCRIPT_DIR")"

REPO="${REPO:-/home/shrsv/bin/LiveReview}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: warning

The path /home/shrsv/bin/LiveReview is hardcoded for the REPO variable.

Suggestions:

  1. Use a relative path or make this configurable via an environment variable with a more general default.
  2. Consider using $(pwd) or similar to derive the path dynamically relative to the script's execution context.

REPO_ROOT="$(dirname "$SCRIPT_DIR")"

REPO="${REPO:-/home/shrsv/bin/LiveReview}"
RANGE="${RANGE:-HEAD~8...HEAD}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: critical

The assignment to the RANGE variable includes the extraneous string m $REPO_ROOT ...".

Suggestions:

  1. Remove the accidental m $REPO_ROOT ..." suffix from the RANGE variable assignment.
  2. Ensure the line correctly reads RANGE="${RANGE:-HEAD~8...HEAD}".


REPO="${REPO:-/home/shrsv/bin/LiveReview}"
RANGE="${RANGE:-HEAD~8...HEAD}"
PORT="${PORT:-8130}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: critical

The definitions for PORT, OUT, TIMEOUT_SECS, and LOG have been removed, along with the logic for building the lrc binary.

Suggestions:

  1. Confirm if these variables and the lrc build logic are still required for the script's functionality.
  2. If needed, restore the definitions for PORT, OUT, TIMEOUT_SECS, LOG, and the lrc binary build block.
  3. If intentionally removed, document the architectural change and ensure no downstream dependencies are broken.

@livereview-agent livereview-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ LiveReview policy: Not approved (blocked at Risk score) · Review #13204

Stage Result Detail
Eligibility ✅ author level 1 >= required 1
Static rules ✅ no blocking rulesets configured
Risk score ❌ Risk score 0.94 is above the cutoff of 0.50
LLM classification ✅ class "logic-change", confidence 9
Final decision ❌ risk: Risk score 0.94 is above the cutoff of 0.50

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.

1 participant