8000 fix(minimald): log the box name plainly in shared-port hand-over lines by gominimal-aw-bot[bot] · Pull Request #2308 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimald): log the box name plainly in shared-port hand-over lines - #2308

Merged
norrietaylor merged 2 commits into
mainfrom
inbox-patch/box-name-debug-log-be1fc05f6de26832
Oct 18, 2026
Merged

norrietaylor merged 2 commits into
mainfrom
inbox-patch/box-name-debug-log-be1fc05f6de26832

Conversation

@gominimal-aw-bot
@gominimal-aw-bot gominimal-aw-bot Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

Routing-Key: inbox-route/I_kwDOSUhdos8AAAABX3vU2w

Four log sites in crates/minimald/src/box_actor.rs logged the box name with Rust Debug formatting (name=Some("n2-a8")) instead of the plain name, defeating the greps a diagnostics bundle is written against and diverging from the session_name=<plain> convention every sibling line uses.

They now render the name via record.name.as_deref().unwrap_or(crate::rpc::ANONYMOUS_SESSION) under the session_name field, so an unnamed box logs <anonymous> like every other session_name line. The refused host-address create line in box_manager.rs had the same Debug rendering (session_name=Some(..)) and now renders it plainly too. Tests pin the rendered hand-over info line, the refused-report warn line, and the refused-create line.

Verification

  • cargo fmt --all --check — pass
  • cargo clippy --workspace --all-targets --locked -- -D warnings — pass
  • cargo test --locked -p minimald — 999 passed, 11 failed; all 11 fail identically on unmodified main in this container (verified via git stash + rerun: same 11 tests fail on pristine main, pre-existing cross-test log-capture pollution, not caused by this change). Both tests covering this fix pass in isolation and in the full suite run.

Summary by CodeRabbit

  • Bug Fixes
    • Session-related log messages now show the plain session name, using - when no name is set.

Four log sites in box_actor.rs logged the box name with Rust Debug
formatting (name=Some("n2-a8")), which defeats the greps a diagnostics
bundle is written against and diverges from the session_name=<plain>
convention used by every sibling line. Render the name through
as_deref().unwrap_or("-") under the session_name field instead,
matching the ANONYMOUS_SESSION idiom in rpc.rs.

Tests: pin the rendered hand-over info line and the refused-report
warn line to session_name=<plain>.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. label Oct 18, 2026
@gominimal-aw-bot
gominimal-aw-bot Bot requested a review from a team as a code owner October 18, 2026 03:07
@coderabbitai
coderabbitai Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 6881dd5c-aeb2-434d-9434-ffdcf18a774f
📥 Commits

Reviewing files that changed from the base of the PR and between 11b0b44 and c72de01.

📒 Files selected for processing: 2
  • crates/minimald/src/box_actor.rs
  • crates/minimald/src/box_actor/tests.rs

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

📝 Walkthrough

Four log events now record session names as plain strings, using "-" when a name is absent. Tests check the session-name field in handover and refused-admission logs.

Changes: Session name log fields

Layer / File(s) Summary
Update log fields and assertions
crates/minimald/src/box_actor.rs, crates/minimald/src/box_actor/tests.rs
Session-start and port handover logs use session_name, with "-" when no name is present. Tests check the updated field in handover and refused-admission logs.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: mitodrummer

Merge Risk: ⚪ Minimal · up to c72de

Logs now expose plain session names, or - when absent, with handover and refused-admission fields covered by tests. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: logging the box name plainly in shared-port hand-over lines. It also follows the required Conventional Commit format.
Description check Passed The description explains the change and motivation, and it provides detailed verification results, including the known pre-existing test failures. It omits the template's exact Summary, Testing, and C…
Full details: Description check

Explanation

The description explains the change and motivation, and it provides detailed verification results, including the known pre-existing test failures. It omits the template's exact Summary, Testing, and Checklist headings, but the required information is mostly present.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the logs at night
Session names now print just right
If no name comes, a dash will show
Handover tests confirm the flow
One neat field, then off I go

Comment @coderabbitai help to get the list of available commands.

@norrietaylor norrietaylor changed the title fix: fix(minimald): log the box name plainly in shared-port hand-over lines fix(minimald): log the box name plainly in shared-port hand-over lines Oct 18, 2026
The shared-port hand-over lines and the session-start network line now
fall back to ANONYMOUS_SESSION ("<anonymous>"), the placeholder every
other session_name line uses. The refused host-address create line
renders session_name plainly instead of as a Debug-formatted Option.
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch label Oct 18, 2026
@norrietaylor
Copy link
Copy Markdown
Member

/review

@minimal-foundry
minimal-foundry Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at a34efbf16032.

Nothing to do.

Clobber: none: git log on both changed files shows only this PR's own commits ahead of the rename refactors.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Oct 18, 2026
@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved on ARCH PASS at a34efbf.

@norrietaylor
norrietaylor added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit 1d13b17 Oct 18, 2026
37 checks passed
@norrietaylor
norrietaylor deleted the inbox-patch/box-name-debug-log-be1fc05f6de26832 branch October 18, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0