Skip to content

📖 Scribe: Document meshguard connect CLI command#60

Closed
igorls wants to merge 1 commit intomainfrom
scribe/document-connect-cli-11544638676060261202
Closed

📖 Scribe: Document meshguard connect CLI command#60
igorls wants to merge 1 commit intomainfrom
scribe/document-connect-cli-11544638676060261202

Conversation

@igorls
Copy link
Owner

@igorls igorls commented Mar 4, 2026

💡 What: The meshguard connect command was implemented in the code (src/main.zig) but its CLI flag usage and command sequence was completely undocumented in the CLI reference.

🔍 Source: src/main.zig (where the std.mem.eql(u8, command, "connect") block and its internal flags/help text reside).

📝 Fix: Added the meshguard connect section to docs/reference/cli.md detailing the flow (--generate, --join) and its optional flags (--in <minutes>). Appended a learning regarding manual CLI argument parsing to .jules/scribe.md.


PR created automatically by Jules for task 11544638676060261202 started by @igorls

Co-authored-by: igorls <4753812+igorls@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI review requested due to automatic review settings March 4, 2026 11:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds missing CLI reference documentation for the existing meshguard connect command and records a process learning to help prevent future code/docs drift for manually parsed CLI commands.

Changes:

  • Documented meshguard connect usage and the token-exchange flow in docs/reference/cli.md.
  • Added a scribe entry capturing the documentation gap and a suggested prevention audit in .jules/scribe.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/reference/cli.md Adds a new meshguard connect section with synopsis + flow description.
.jules/scribe.md Records the documentation gap/learning and a prevention checklist item.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +102 to +105
```bash
meshguard connect --generate [--in <minutes>]
meshguard connect --join <mg://token>
```
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The implementation defaults to generate mode when no sub-flag is provided (mode starts as .generate). The docs currently imply --generate is required; consider documenting that meshguard connect alone is equivalent to meshguard connect --generate, or update the usage synopsis to reflect that --generate is optional/default.

Copilot uses AI. Check for mistakes.
Comment on lines +107 to +113
**Flow**:

1. Initiator runs `--generate`, shares `mg://` token with peer
2. Peer runs `--join <token>`, shares response token back
3. Initiator pastes response token
4. Both sides punch simultaneously (NTP-synced)

Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

--in <minutes> is listed in the synopsis but its meaning and default value aren’t documented here (the CLI help says it’s a punch delay with a default of 1 minute). Adding a short options table or a one-liner describing --in (and its default) would prevent ambiguity.

Copilot uses AI. Check for mistakes.
@igorls
Copy link
Owner Author

igorls commented Mar 9, 2026

Closing: superseded by docs audit fixes and direct commits to main. See PR #67 (merged) for codec bounds check, and direct commit for timing-safe fix in noise.zig.

@igorls igorls closed this Mar 9, 2026
@google-labs-jules
Copy link
Contributor

Closing: superseded by docs audit fixes and direct commits to main. See PR #67 (merged) for codec bounds check, and direct commit for timing-safe fix in noise.zig.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

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.

2 participants