Skip to content

chore(bootstrap-peers): list pocketlawb node, HTTP only - #561

Closed
beardthelion wants to merge 4 commits into
mainfrom
chore/bootstrap-peer-pocketlawb
Closed

beardthelion wants to merge 4 commits into
mainfrom
chore/bootstrap-peer-pocketlawb

Conversation

@beardthelion

Copy link
Copy Markdown
Collaborator

Summary

Carries #297 (bootstrap-peers: add pocketlawb with a dialable p2p multiaddr) onto an upstream branch so the upstream-only Code Quality check can run. The pocketlawb node joins the canonical seed list as an HTTP listing; its dial field lands null, matching every other row.

Motivation & context

A public node operator asked to be listed in bootstrap-peers.json. The HTTP listing is in policy; a compile-time /dns4/.../p2p/... seed is not. Embedded seeds currently contribute zero libp2p dials fleet-wide, and admitting the first third-party dial target is a network-ops call being held until Gitlawb-operated dial multiaddrs ship or a written seed-operator bar exists (the same hold applied on #498). Operators who want to dial the peer meanwhile can use GITLAWB_P2P_BOOTSTRAP locally.

Kind of change

  • Bug fix
  • Feature
  • Security fix
  • Docs
  • Tests / CI
  • Refactor (no behavior change)
  • Breaking or protocol change (issue required first)

None of the listed kinds fit exactly: this is a seed-list data update (chore), with no production-code change.

What changed

  • bootstrap-peers.json gains a pocketlawb row: operator, did:key identity, https://node.pocketlawb.com HTTP endpoint, p2p_multiaddr: null, added: 2026-08-01.
  • embedded_seed_list_merges_a_dialable_p2p_entry is dropped rather than literal-pinned. Its load-bearing precondition was a shipped dialable entry; with the dial field nulled there is none. The round-1 gap it closed (parse green while merge silently skips) stays covered by merge_skips_invalid_p2p_multiaddr and merge_appends_new_http_and_p2p, which drive the same merge path on synthetic lists.
  • Merge detail: contributor commits preserved author-identical from 8e6d969; one merge commit brings main at c805e35f with no conflicts. The merge commit sets the contributed p2p_multiaddr to null and removes the embedded-driven test per the policy above.

How a reviewer can verify

cargo test -p gitlawb-node --bin gitlawb-node bootstrap::

The bootstrap module's tests pass on the merged tree, including embedded_seed_list_parses_successfully and the synthetic p2p merge coverage.

Before you request review

  • Scope is one logical change; no unrelated churn
  • cargo test --workspace passes locally
  • New behavior is covered by tests (required for fixes)
  • cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings are clean
  • Commit titles use Conventional Commits
  • Docs / .env.example updated if behavior or config changed (or N/A)
  • Checked existing PRs so this isn't a duplicate

Protocol & signing impact

  • Touches DID / did:key, Ed25519 / RFC 9421 signatures, UCAN, ref certs, or P2P wire formats
  • Discussed in an issue before implementation
  • Backward-compatible with existing nodes and previously signed history

The row carries a did:key string as data, like the five existing peers; no DID handling, signing, or wire format changes.

Notes for reviewers

  • Original fork PR: bootstrap-peers: add pocketlawb with a dialable p2p multiaddr #297 (still open; will be pointed here and closed after this lands or on request). Maintainer takeover lane.
  • The open review asks resolve under the dial-seed hold: pinning the approved multiaddr as a literal only makes sense while a dialable seed ships, and per jatmn's anti-drift list no further test scaffolding is being added around a policy-held feature. If first-party or third-party dial seeds are ever admitted, the embedded-driven merge guard is worth restoring with the literal pin both reviews described.
  • Known overlap: chore(bootstrap-peers): list moonwake-ledger node, HTTP only #559 lands the same class of change for moonwake-ledger. Both append at the same JSON anchor, so whichever merges second needs a one-block rebase; both are HTTP-only rows under current policy.

boyroywax and others added 4 commits August 1, 2026 01:56
Every existing entry has "p2p_multiaddr": null, so merge_into_vecs
contributes no addresses to config.p2p_bootstrap and nodes start with
nothing to dial. With no AutoNAT in the swarm a node cannot discover and
publish its own public address, so the seed list is the only channel.

This node is on a static public IPv4 with no NAT. Reachability was
verified from an isolated node on a separate host and network with
GITLAWB_BOOTSTRAP_DISABLE_SEEDS=true and no HTTP peers, which reported
connected_peers=1 and gossipsub_all_peers=1 — a completed handshake and
mesh join, not just an inbound packet.

Co-Authored-By: Claude Opus 5 <[email protected]>
Parsing alone let a corrupted p2p_multiaddr stay green while the merge
silently skipped it; assert the embedded list yields at least one dialable
entry and that pocketlawb's address survives the real merge path.
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 262af07e-2cee-4c3f-b101-e7a91de1e2ff
Commits

Reviewing files that changed from the base of the PR and between a2262d9 and e9d4193.

Files selected for processing: 1

  • bootstrap-peers.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@beardthelion
beardthelion requested a review from jatmn November 9, 2026 15:44
@beardthelion

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 45 minutes.

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Merge readiness

Rebase this branch onto current main (10d5b98b2bb2ac221b5407321290e4e681b206f1) before merge. The PR merge-base is c805e35f40873a120c81bf00d9ddb50da956fd97, which is two commits behind live main. A trial merge-tree against origin/main shows no conflict for bootstrap-peers.json today, but landing stale risks unnecessary churn or a conflict if main moves again.

Coordinate merge order with open #559 (chore/bootstrap-peer-moonwake-ledger). Both PRs append a new peer block at the same tail anchor in bootstrap-peers.json. Whichever merges second should rebase and resolve the one-block JSON conflict.

Confirm the operator endpoint is live before merge. Review probes (getent hosts node.pocketlawb.com, curl to https://node.pocketlawb.com/...) reported no DNS resolution from the review environment, while existing seeds such as node.gitlawb.com resolve. The node binary will still start and only warn on failed announces, but a canonical HTTP seed that does not resolve provides no discovery value and adds startup work. Validate DNS, TLS, and at least GET /api/v1/ready (or your usual operator check) from a network vantage you trust, and that the live node_did matches operator expectations if you care about the catalog did:key field (runtime merge does not enforce it).

The required cargo audit check failed on this PR run. The same check also fails on current main head, and this diff does not touch Cargo.lock or dependencies. Treat it as baseline CI debt, not a regression introduced here.


🟢 Thanks for the contribution. I do not see any actionable issues from my review.

The three-dot diff is a single-file, policy-consistent HTTP-only seed row: p2p_multiaddr: null matches every existing embedded peer, JSON parses under the current bootstrap:: tests, and the row follows the same merge_into_vecs / gossip_task path as the other HTTP URLs.

@beardthelion

Copy link
Copy Markdown
Collaborator Author

Closing rather than merging: the node this entry would add does not exist on the public internet. node.pocketlawb.com (and pocketlawb.com itself) currently fails DNS resolution, so every node booting off the canonical seed list would poll an NXDOMAIN, and if the domain is ever parked or squatted the replacement would become a bootstrap peer by default.

This is not a judgment of the diff mechanics; the change is a single seed-list entry and nothing in CI failure relates to it. If the service comes up and you want to move forward, say so and this can be reopened or re-proposed.

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.

4 participants