Skip to content

[spark-compete] [severity:2] fix(chipLoop): err.stderr not redacted — raw subprocess output in error string - #819

Open
TALLSOME24 wants to merge 1 commit into
vibeforge1111:mainfrom
TALLSOME24:fix/chip-loop-stderr-redact-main
Open

[spark-compete] [severity:2] fix(chipLoop): err.stderr not redacted — raw subprocess output in error string#819
TALLSOME24 wants to merge 1 commit into
vibeforge1111:mainfrom
TALLSOME24:fix/chip-loop-stderr-redact-main

Conversation

@TALLSOME24

@TALLSOME24 TALLSOME24 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

{
"schema": "spark-compete-hotfix-v1",
"event": "spark-compete-first-event",
"submission_mode": "public_repo_pr",
"submission_target_url": "#819",
"team": {"name": "The Spark Plug", "members": ["TALLSOME24","Mrsankalove","Klausabdul"], "llm_device_holder": "TALLSOME24", "device_holder_github": "https://github.com/TALLSOME24", "github_accounts": ["TALLSOME24","Mrsankalove","Klausabdul"]},
"target_repo": {"id": "vibeforge1111/spark-telegram-bot", "source": "https://github.com/vibeforge1111/spark-telegram-bot", "owner_surface": "telegram-bot"},
"issue": {"type": "security_concern", "severity": "medium", "title": "chipLoop.ts appends raw err.stderr to error string at lines 74-75 — redactText() missing", "actual_behavior": "At src/chipLoop.ts lines 74-75, err.stderr.slice(-400) is appended bare to the error string. No redactText() call is made.", "expected_behavior": "err.stderr must be wrapped in redactText() before appending.", "repro_steps": ["Trigger the affected code path with sensitive content in stderr.", "Observe the error message contains raw output."], "affected_workflow": "runChipLoop() catch block in chipLoop.ts"},
"evidence": {"safe_links_only": true, "before_after_proof": "Before: err.stderr.slice(-400). After: redactText(err.stderr.slice(-400)).", "links": ["https://github.com//pull/819"], "forbidden": ["pdf","zip","exe","unknown downloads","shortened links","archives","binaries","tokens","browser cookies","wallet material","raw logs","raw conversations","raw memory","raw patches","private repo maps","private scoring details"]},
"proposed_fix": {"approach": "Applied redactText() wrapper to stderr value before inclusion in thrown error.", "files_expected": ["src/chipLoop.ts","tests/test_chip_loop_redact.test.ts"], "tests_or_smoke": "5 tests: raw stderr not in error, result not ok, sentinel present, fallback works, message preserved."},
"pr": {"branch": "fix/chip-loop-stderr-redact-main", "title_prefix": "[spark-compete]", "author_github": "TALLSOME24", "body_must_include": ["packet","team","pr_author","repo","actual_behavior","expected_behavior","repro_steps","before_after_proof","tests_or_smoke","duplicate_notes","risk_notes","review_claim"], "url": "https://github.com/vibeforge1111/spark-telegram-bot/pull/819"},
"review_claim": {"impact_claim": "medium", "evidence_types": ["failing_test","passing_test","smoke_test","redacted_conversation_excerpt"], "duplicate_notes": "No prior PR addressed chipLoop.ts stderr handling.", "risk_notes": "Only error string construction changes.", "review_state_requested": "pr_review"}
}

NoRegretz pushed a commit to NoRegretz/spark-telegram-bot that referenced this pull request Jul 1, 2026
…ure in error paths

Cross-cutting information-disclosure hardening across the gateway, chip loop,
and LLM CLI bridges. Raw subprocess stderr/stdout could surface secrets,
tokens, and internal filesystem paths to callers; ownership errors leaked the
host name and PID of the holding instance.

- gatewayOwnership: ownership-conflict error no longer discloses hostname/PID,
  only an opaque ownerId (vibeforge1111#820)
- chipLoop: run exec stderr passed through redactText() before inclusion in the
  returned error (vibeforge1111#819)
- llm: Claude and Codex CLI failure errors run stderr/stdout through
  redactText() (vibeforge1111#818, vibeforge1111#817)
- builderBridge: stderr in empty-stdout diagnostics errors is already redacted
  in HEAD; add a regression test to lock the behavior (vibeforge1111#816)

Adds focused vitest regression tests for each surface.

Co-authored-by: TALLSOME24 <TALLSOME24@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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