← Back to Pull requests

Leave config.toml out of sync, so each machine keeps its own listen #37

Closed
unknown closed this pull request without merging on Nov 06, 2026 10:06 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 18:44 UTC
Author

Fixes #16.

kanzo sync committed config.toml, so a Pi's listen = "0.0.0.0" reached every machine that synced, and their boards opened to the network at the next restart. Now sync leaves it out, like network, so port, listen and mcp_http stay on each machine.

Nothing takes config.toml out of a board that already has one: a Pi still on 0.3.1 or older deletes the file when it pulls such a commit (I checked with the 0.3.0 binary; 0.3.1 syncs the same way) and falls back to 127.0.0.1 at its next start. So that board keeps its copy as it is, and nothing reads it any more. When a pull there could change or delete config.toml, sync sets this machine's file aside and puts it back afterwards. New boards never have it. On an older board, git status in the data folder shows config.toml as changed; sync ignores it.

It's not in the .gitignore Kanzo writes: git add fails when an excluded pathspec names an ignored file.

Tests, with a helper that syncs the way 0.3.1 does:

  • a_pi_on_an_older_kanzo_keeps_its_listen: a laptop joins and changes the board; the Pi pulls on the older Kanzo, then again after updating, and keeps its listen both times.

  • a_pi_keeps_its_listen_when_a_board_without_config_toml_replaces_its_own: the same through --keep-remote.

  • config_toml_from_an_older_kanzo_stays_there: when an older Kanzo adds or changes config.toml in the board, an updated machine keeps its own.

  • config_toml_stays_on_each_machine: on a new board, the Pi's listen doesn't reach the laptop.
  • I also ran the 0.3.0 binary as a Pi against this branch as a laptop, syncing both ways: each kept its own listen and port.

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test pass

  • A board change was tried in a browser, in light and dark mode (no board change)

  • The README says what changed for users, if anything did
  • Diff: 238 lines (+178 / -60) across 2 files Reviewer: emanuele-em Review duration: 922m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 238 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.328
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #37"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 60.4% (MEDIUM) · Higher = larger blast radius
    60.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.9% · Safe to merge
    23.9%