[spark-compete] fix: use Windows Desktop for Spark OS discovery on WSL#530
Open
Aeyod7 wants to merge 1 commit into
Open
[spark-compete] fix: use Windows Desktop for Spark OS discovery on WSL#530Aeyod7 wants to merge 1 commit into
Aeyod7 wants to merge 1 commit into
Conversation
Contributor
Author
QA approval packet checkI could not submit a formal GitHub approval from this account because GitHub rejected the review action for this token/account. QA status: approved from operator-side verification. Verified:
No blocking issues found. |
Closed
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spark Compete Packet
spark-compete-hotfix-v1 packet
{ "schema": "spark-compete-hotfix-v1", "event": "spark-compete-first-event", "submission_mode": "public_repo_pr", "submission_target_url": "https://github.com/vibeforge1111/spark-cli/pull/530", "team": { "name": "ARC DEBUG TEAM", "members": [ "Aeyod7", "Shady-web", "AlgofootPrint" ], "llm_device_holder": "Aeyod7", "device_holder_github": "https://github.com/Aeyod7", "github_accounts": [ "Aeyod7" ] }, "target_repo": { "id": "vibeforge1111/spark-cli", "source": "https://github.com/vibeforge1111/spark-cli", "owner_surface": "spark-cli" }, "issue": { "type": "bug", "severity": "medium", "title": "WSL Spark OS commands default to Linux ~/Desktop instead of the Windows Desktop checkout root", "actual_behavior": "Spark OS parser defaults pointed compile/capabilities/authority/trace/memory at Linux ~/Desktop under WSL, missing normal Windows Desktop checkouts unless --desktop was manually supplied.", "expected_behavior": "Under WSL, Spark OS defaults should prefer the existing Windows Desktop path converted to /mnt/c/Users/<user>/Desktop while preserving non-WSL ~/Desktop behavior and explicit --desktop overrides.", "repro_steps": [ "Run Spark CLI under WSL with Spark/operator repos on the Windows Desktop.", "Run `spark os compile --json` or parse any `spark os <subcommand>` without `--desktop`.", "Observe the default desktop root points at Linux ~/Desktop rather than /mnt/c/Users/<user>/Desktop." ], "affected_workflow": "Spark OS compile/capabilities/authority/trace/memory local discovery defaults under WSL" }, "evidence": { "safe_links_only": true, "before_after_proof": "Before: origin/master sets each Spark OS subcommand default directly to `str(Path.home() / \"Desktop\")`, which resolves to Linux /home/<user>/Desktop under WSL and misses Windows Desktop checkouts. After: `resolve_default_desktop_root()` returns `/mnt/c/Users/aeyon/Desktop` on this WSL host when the Windows Desktop exists; `PYTHONPATH=src python3 -m spark_cli.cli os compile --json` completed with privacy flags false for raw secrets, logs, conversations, memory evidence, and SQLite row contents. Verification excerpts: `running_under_wsl= True`; `default_desktop= /mnt/c/Users/aeyon/Desktop`; `578 passed, 1 skipped, 137 subtests passed in 13.63s`; `python3 -m compileall src tests` passed; `git diff --check origin/master...HEAD` passed.", "links": [ "https://github.com/vibeforge1111/spark-cli/pull/530" ], "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", "chat IDs", "private usernames", "bot tokens", "login codes", "private messages", "API keys", "provider keys" ] }, "proposed_fix": { "approach": "Add a shared `resolve_default_desktop_root()` helper. Non-WSL hosts keep `Path.home() / \"Desktop\"`. WSL hosts prefer `$USERPROFILE` or a `cmd.exe` USERPROFILE fallback, convert it with the existing Windows-path converter, and use the Windows Desktop only when it exists. Wire the shared default through all Spark OS parser subcommands.", "files_expected": [ "src/spark_cli/cli.py", "tests/test_cli.py" ], "tests_or_smoke": "Verified locally in /home/aeyo/.spark/tools/spark-cli: `PYTHONPATH=src python3 -m pytest tests/test_cli.py -q` passed with 578 passed, 1 skipped, 137 subtests; targeted new tests passed; `python3 -m compileall src tests` passed; `git diff --check origin/master...HEAD` passed; `PYTHONPATH=src python3 -m spark_cli.cli os compile --json` completed." }, "pr": { "branch": "fix/wsl-os-desktop-default-clean", "title_prefix": "[spark-compete]", "author_github": "Aeyod7", "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-cli/pull/530" }, "review_claim": { "impact_claim": "medium", "evidence_types": [ "redacted_terminal_excerpt", "passing_test", "smoke_test" ], "duplicate_notes": "Checked the public open spark-cli PR list and searched open PRs for WSL/Desktop/Spark OS wording. Open PRs #519-#528 covered URL parsing, output truncation, env stripping, git summary failures, scoped IPv6, and exception narrowing; no open public PR found for WSL-aware Spark OS desktop defaults.", "risk_notes": "Low scope: parser default selection only. Non-WSL hosts still use ~/Desktop, WSL falls back to ~/Desktop if Windows Desktop cannot be resolved, and explicit --desktop arguments continue to override the default. No credentials, runtime secrets, registry pin changes, installer publication, or destructive local actions are included.", "review_state_requested": "pr_review" } }Packet
actual_behavior
Spark OS parser defaults pointed compile/capabilities/authority/trace/memory at Linux ~/Desktop under WSL, missing normal Windows Desktop checkouts unless --desktop was manually supplied.
expected_behavior
Under WSL, Spark OS defaults should prefer the existing Windows Desktop path converted to /mnt/c/Users//Desktop while preserving non-WSL ~/Desktop behavior and explicit --desktop overrides.
repro_steps
spark os compile --jsonor parse anyspark os <subcommand>without--desktop.before_after_proof
Before: origin/master sets each Spark OS subcommand default directly to
str(Path.home() / "Desktop"), which resolves to Linux /home//Desktop under WSL and misses Windows Desktop checkouts. After:resolve_default_desktop_root()returns/mnt/c/Users/aeyon/Desktopon this WSL host when the Windows Desktop exists;PYTHONPATH=src python3 -m spark_cli.cli os compile --jsoncompleted with privacy flags false for raw secrets, logs, conversations, memory evidence, and SQLite row contents. Verification excerpts:running_under_wsl= True;default_desktop= /mnt/c/Users/aeyon/Desktop;578 passed, 1 skipped, 137 subtests passed in 13.63s;python3 -m compileall src testspassed;git diff --check origin/master...HEADpassed.tests_or_smoke
Verified locally in /home/aeyo/.spark/tools/spark-cli:
PYTHONPATH=src python3 -m pytest tests/test_cli.py -qpassed with 578 passed, 1 skipped, 137 subtests; targeted new tests passed;python3 -m compileall src testspassed;git diff --check origin/master...HEADpassed;PYTHONPATH=src python3 -m spark_cli.cli os compile --jsoncompleted.duplicate_notes
Checked the public open spark-cli PR list and searched open PRs for WSL/Desktop/Spark OS wording. Open PRs #519-#528 covered URL parsing, output truncation, env stripping, git summary failures, scoped IPv6, and exception narrowing; no open public PR found for WSL-aware Spark OS desktop defaults.
risk_notes
Low scope: parser default selection only. Non-WSL hosts still use ~/Desktop, WSL falls back to ~/Desktop if Windows Desktop cannot be resolved, and explicit --desktop arguments continue to override the default. No credentials, runtime secrets, registry pin changes, installer publication, or destructive local actions are included.