Skip to content

docs: correct claims that no longer match the code - #34

Merged
JarbasAl merged 1 commit into
devfrom
docs/accuracy-pass-2026-08
Aug 10, 2026
Merged

JarbasAl merged 1 commit into
devfrom
docs/accuracy-pass-2026-08

Conversation

@JarbasAl

@JarbasAl JarbasAl commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

🤖 Auto-generated by Claude Opus 5 (claude-opus-5) via Claude Code — NOT human-reviewed. Verify before acting.

Part of an ecosystem-wide documentation accuracy pass. Five audit passes cross-checked every documented claim against freshly-synced dev source; this branch carries the corrections for this repo. Each fix cites the source that disproves the old wording.

Two findings turned out to be code bugs rather than doc bugs, and are reported separately rather than papered over here:

  • the MicroPython client answers PING with a pong frame using wire code 13, which is unassigned in the reference _INT2TYPE, so a reference decoder rejects it;
  • emit_intercom sends a hybrid envelope (encrypted_key/ciphertext/tag/nonce) while hivemind-core RSA-decrypts the ciphertext field directly, so an INTERCOM addressed to the hub itself cannot be decrypted. Peer-to-peer INTERCOM relayed through the hub is unaffected.

Summary by CodeRabbit

  • Documentation
    • Clarified that destination: hive is a context marker and does not control client-side message routing.
    • Simplified guidance for constructing and emitting utterance messages.
    • Documented expected EOFError tracebacks when scripted or piped input reaches end-of-file.
    • Added options for suppressing or ignoring these tracebacks while preserving responses.

docs/architecture.md:
- "destination: hive" does not make the client route upstream. Nothing
  branches on it; HiveMessageBusClient.emit sends every BUS message upstream.

docs/usage.md, docs/configuration.md:
- piped input does not terminate cleanly. The reader loop is
  "while True: input()" with no EOFError handling, so EOF ends in a traceback.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation clarifies HiveMind message emission semantics and documents the EOFError traceback produced when stdin or piped input ends.

Changes

Documentation behavior clarifications

Layer / File(s) Summary
Message emission documentation
docs/architecture.md
Documents that destination: hive is a context marker and that HiveMessageBusClient.emit sends all bus messages upstream.
EOF behavior documentation
docs/configuration.md, docs/usage.md
Documents the unhandled EOFError traceback after stdin or piped input closes, including options to suppress it.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the documentation corrections made to align claims with the current code.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/accuracy-pass-2026-08

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/configuration.md (1)

107-109: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Warn that 2>/dev/null hides all diagnostics.

This redirection hides authentication, connection, and other runtime errors in addition to the EOFError traceback. Document this limitation so failed commands do not appear successful. Apply the same warning to the equivalent guidance in docs/usage.md.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/configuration.md` around lines 107 - 109, Update the stdin guidance in
docs/configuration.md to explicitly warn that adding 2>/dev/null suppresses all
diagnostics, including authentication, connection, and other runtime errors, so
failures may appear successful; add the same warning to the equivalent guidance
in docs/usage.md.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/usage.md`:
- Around line 74-77: Update the documentation around the `while True: input()`
reader loop to avoid claiming that all responses are written when EOF occurs;
state that only responses received before termination are retained, or document
a drain step that waits for in-flight `speak` messages handled by
`hivemind_cli_terminal.__init__.py` before treating output as complete.

---

Nitpick comments:
In `@docs/configuration.md`:
- Around line 107-109: Update the stdin guidance in docs/configuration.md to
explicitly warn that adding 2>/dev/null suppresses all diagnostics, including
authentication, connection, and other runtime errors, so failures may appear
successful; add the same warning to the equivalent guidance in docs/usage.md.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6441e425-bb13-4479-ad83-29b86a687509

📥 Commits

Reviewing files that changed from the base of the PR and between b05c35a and 84601d9.

📒 Files selected for processing (3)
  • docs/architecture.md
  • docs/configuration.md
  • docs/usage.md

Comment thread docs/usage.md
Comment on lines +74 to +77
The reader loop is `while True: input()` with no `EOFError` handling, so the
process ends with a traceback when the piped input runs out. The responses are
already written at that point; ignore the traceback or drop it with
`2>/dev/null`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Do not claim that all responses are written at EOF.

hivemind_cli_terminal.__init__.py handles incoming speak messages in a separate event-loop thread. The while True: input() loop exits on EOFError without waiting for in-flight responses. A pipe can close before the final response is written. State that only responses received before termination are retained, or add a drain step before documenting the output as complete.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/usage.md` around lines 74 - 77, Update the documentation around the
`while True: input()` reader loop to avoid claiming that all responses are
written when EOF occurs; state that only responses received before termination
are retained, or document a drain step that waits for in-flight `speak` messages
handled by `hivemind_cli_terminal.__init__.py` before treating output as
complete.

@github-actions

github-actions Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Greetings, human! The automated checks are complete. 👾

I've aggregated the results of the automated checks for this PR below.

🔍 Lint

Here's the latest update on this check. 🗞️

❌ ruff: issues found — see job log

📋 Repo Health

Scanning for any signs of 'dependency' parasites. 🐛

✅ All required files present.

Latest Version: 1.0.0a2

✅ hivemind_cli_terminal/version.py — Version file
✅ README.md — README
✅ LICENSE — License file
✅ pyproject.toml — pyproject.toml
⚠️ setup.py — setup.py
✅ CHANGELOG.md — Changelog
✅ hivemind_cli_terminal/version.py has valid version block markers

🏷️ Release Preview

I've checked the 'Internal Changes' section. ⚙️

Current: 1.0.0a2 → Next: 1.0.0a3

Signal Value
Label (none)
PR title docs: correct claims that no longer match the code
Bump alpha

✅ PR title follows conventional commit format.


🚀 Release Channel Compatibility

Predicted next version: 1.0.0a3

Channel Status Note Current Constraint
Stable ⚪ Not in channel -
Testing ⚪ Not in channel -
Alpha ⚪ Not in channel -

⚖️ License Check

Auditing the legal lineage of this contribution. 📜

✅ No license violations found.

Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed.

🔒 Security (pip-audit)

Scanning the horizon for any zero-day threats. 🌅

✅ No known vulnerabilities found (73 packages scanned).

🔨 Build Tests

The build report has been filed and is ready. 📁

✅ All versions pass

Python Build Install Tests
3.10 ✅ ✅ ✅
3.11 ✅ ✅ ✅
3.12 ✅ ✅ ✅
3.13 ✅ ✅ ✅

Crafting a better voice assistant, one commit at a time 🎙️

@JarbasAl
JarbasAl merged commit d9a317b into dev Aug 10, 2026
13 checks passed
@JarbasAl
JarbasAl deleted the docs/accuracy-pass-2026-08 branch August 10, 2026 19:51
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