JoshBot is the discovery, verification, and public registry crawler for the Joshternet.
It finds public web origins, verifies their Joshternet declarations, remembers operational state in PostgreSQL, and produces a deterministic public registry. Publication to GitHub happens through a separate, credential-isolated runtime.
The current supported release is v1.1.0.
The Joshternet is an opt-in web network defined by the Joshternet specifications.
A site participates by publishing a valid declaration at:
/.well-known/josh
JoshBot implements discovery, verification, and registry publication. It does not define the protocol by itself, and an implementation change in this repository must not silently redefine a Joshternet specification.
JoshBot:
- crawls independently verified origins;
- crawls operator-curated discovery seeds;
- can promote discovered origins into bounded private crawl sources;
- discovers external web origins through public links;
- verifies each candidate's Joshternet declaration independently;
- remembers verification, scheduling, discovery, crawl, and queue state in PostgreSQL;
- applies backpressure when automatic discovery would overfill the verification probe queue;
- records sanitized crawl telemetry without retaining page bodies;
- exposes a private authenticated operational reporting API;
- exposes a separately authenticated operator control API;
- exports deterministic public registry files;
- publishes exact registry trees through the GitHub API;
- avoids creating publication commits when the registry has not changed.
The short version is that links create candidates, while valid declarations create participants.
eligible crawl source
|
v
same-origin pages within crawl limits
|
v
external public link
|
v
canonical candidate origin
|
v
verification probe
|
v
GET /.well-known/josh
|
v
valid version 1 declaration?
|
v
participant in deterministic public registry
Same-origin links may extend the current page frontier. External links do not extend that crawl directly. Their origins become verification candidates.
A candidate is not trusted merely because another site linked to it. Every candidate must publish and pass its own declaration verification before it can appear in the public registry.
Crawling a page, extracting a link, retaining discovery evidence, scheduling a probe, or admitting a private crawl source never by itself means that an origin is a Joshternet participant.
JoshBot recognizes these version 1 declarations:
{"version":1}{"version":1,"josh":true}{"version":1,"josh":false}All three are valid participation declarations.
The optional josh member describes identity:
| Declaration | Identity state |
|---|---|
{"version":1} |
Undeclared |
{"version":1,"josh":true} |
Affirmed |
{"version":1,"josh":false} |
Declined |
Declined does not mean nonparticipating. It means the origin participates
while explicitly declining the Josh identity assertion.
Likewise, Undeclared means the declaration does not make that identity
assertion. It remains a valid participation declaration.
Robots permission and Joshternet participation are separate. A declaration
does not override robots.txt, and robots.txt does not create or remove a
Joshternet declaration.
JoshBot implements the version 1 declaration protocol defined by RFC-JOSH-0002. That revision contains the IANA-preparation update currently implemented by JoshBot.
For an origin under evaluation, JoshBot retrieves the declaration from
/.well-known/josh using the same scheme, host, and port as that origin. A
non-default port remains part of the origin and is used for declaration
retrieval. JoshBot does not probe alternate ports in an attempt to locate a
declaration, and a declaration from one port does not apply to another port on
the same host.
The declaration URI uses the canonical /.well-known/josh path without a
trailing slash. It contains no query or fragment. Redirect handling remains
origin-scoped: a cross-origin redirect is not treated as a declaration for the
original origin.
The associated media type is application/json, and publishers SHOULD serve
that Content-Type. JoshBot validates the returned representation itself rather
than requiring the response to carry that Content-Type header. An otherwise
valid declaration is therefore not rejected solely because the Content-Type
header is missing or different.
Participation withdrawal is explicit. A 404 Not Found or 410 Gone response
from the declaration URI establishes that the origin no longer has a Joshternet
declaration. JoshBot treats that result as nonparticipation.
Temporary retrieval failures do not establish withdrawal. A timeout, DNS
failure, 5xx response, or similar transient failure means that JoshBot could
not determine the declaration state during that verification attempt. It does
not turn the origin's last successfully established participation state into an
authoritative withdrawal.
Version 1 uses an integer JSON number. JoshBot accepts {"version":1}. Values
such as {"version":1.0} and {"version":1e0} are not valid version 1
declarations.
These retrieval and representation rules preserve the origin-scoped semantics of RFC-JOSH-0002. JoshBot's crawler, discovery system, registry, and other operational behavior do not extend the authority of a declaration beyond the origin that serves it.
The canonical language-neutral RFC-JOSH-0002 version 1 conformance corpus lives in the Joshternet specification repository.
JoshBot does not maintain a separate copy of those protocol fixtures. Its test adapter loads the canonical corpus and maps JoshBot's internal declaration outcomes to the neutral conformance vocabulary defined by the specification repository.
The currently reviewed corpus is pinned to:
5728bf19b0d193db026cdb5f283ab998cc6bc03d
Normal go test ./... does not require a checkout of the specification
repository. The canonical conformance test skips when its external fixture path
is not supplied.
With joshternet/spec checked out beside this repository, run the canonical
suite locally with:
JOSHBOT_RFC_JOSH_0002_CONFORMANCE_DIR="$(cd ../spec/conformance/rfc-josh-0002/v1/fixtures && pwd)" \
go test -v ./internal/declaration \
-run '^TestRFCJOSH0002CanonicalConformance$'The quality workflow checks out the specification repository separately at the same pinned commit and requires the canonical consumer corpus to pass. The checkout path is supplied explicitly to the test, so conformance testing does not depend on live websites or network retrieval after the repositories have been checked out.
JoshBot claims the optional same-origin-redirects capability, so that fixture
is run rather than skipped.
Updating the pinned specification commit is an intentional compatibility change. A newer corpus must be reviewed before JoshBot CI begins treating it as the conformance target.
JoshBot distinguishes crawl-source status from Joshternet participation. It also separates durable knowledge about a source from active discovery scheduling. An origin can remain known without having discovery work scheduled.
A source may be:
- a verified Joshternet participant;
- an operator-curated seed;
- an automatically discovered crawl source;
- more than one of the above;
- explicitly blocked from crawling by an operator.
These classifications are durable history and policy state. Active discovery work is represented separately by discovery scheduling state. Known does not mean scheduled.
An origin with an effective valid Joshternet declaration is independently verified and receives active discovery scheduling intent.
Verification is what determines participation in the public registry.
An operator can explicitly add an origin as a private curated crawl seed.
A curated seed grants permission to use that origin as a discovery source and creates active discovery scheduling intent. It does not declare that the origin participates in the Joshternet and does not place it in the public registry.
Removing seed status removes that scheduling reason. The origin remains scheduled when another current reason still applies, such as a valid declaration or qualifying fresh rediscovery.
When automatic crawling is enabled, JoshBot can promote discovered candidate origins into private crawl sources under bounded policy. Promotion records the durable automatic-source classification and creates active discovery scheduling intent.
The durable classification can outlive active scheduling. An authoritative non-valid verification result can remove discovery scheduling while retaining what JoshBot learned about the source. Fresh rediscovery can reactivate that known source without discarding or recreating its history.
Automatic source promotion is operational state only. It does not:
- assert Josh identity;
- create a Joshternet declaration;
- make the source a verified participant;
- add the source to the public registry;
- bypass robots policy;
- bypass network safety checks;
- bypass crawl budgets or politeness controls.
Automatically discovered sources can be excluded by configured host policy and can be blocked explicitly by an operator.
Scheduled sources that are neither curated seeds nor currently verified continue to observe automatic-expansion controls and verification-queue backpressure. When the number of pending probe jobs reaches the configured threshold, JoshBot stops claiming that work until queue pressure falls below the limit. Durable source knowledge and scheduling intent remain intact.
Each crawl:
- starts at the source origin's root path;
- follows eligible same-origin links breadth-first;
- stays within configured page, depth, response-size, redirect, timeout, and delay limits;
- evaluates robots permission for each requested URI;
- sends requests through the network safety guard;
- processes requests sequentially for that source;
- records sanitized page-attempt telemetry;
- turns external HTTP and HTTPS links into candidate origins.
JoshBot preserves existing queue, lease, retry, robots, politeness, and SSRF safety boundaries regardless of how a source became crawl-eligible.
Automatic source promotion does not create an unbounded recursive crawl. Discovered origins remain subject to policy, queue pressure, crawl limits, robots rules, and network safety checks before work proceeds.
See Crawler behavior for the detailed site-owner and operator contract.
Automatic crawl-source behavior is configured with:
JOSHBOT_AUTOMATIC_CRAWL_ENABLED
JOSHBOT_AUTOMATIC_CRAWL_MAX_PENDING_PROBES
JOSHBOT_AUTOMATIC_CRAWL_MAX_PROMOTIONS_PER_RUN
JOSHBOT_AUTOMATIC_CRAWL_EXCLUDED_HOSTS
Automatic crawling is enabled unless explicitly disabled. Discovered link origins are admitted as crawl sources so later crawls can find more domains to check for /.well-known/josh. Robots rules, the domain avoid list, crawl blocks, automatic-expansion pause, probe-queue backpressure, the per-run promotion budget, page and depth limits, and network safety checks still apply. Set JOSHBOT_AUTOMATIC_CRAWL_ENABLED=false to stop admitting those crawl sources. When automatic admission is enabled, JoshBot qualifies each eligible candidate with a private structural personal-site score before promotion and ranks admissions by that score. Scoring never changes participation or registry output.
When automatic crawling is enabled, operators can pause automatic expansion at runtime without pausing discovery or verification. Curated seeds and currently verified sources remain eligible for discovery, and candidate verification can continue. Scheduled sources that are neither curated seeds nor currently verified are not claimed while automatic expansion is paused, and new automatic source promotions are also paused until the operator resumes expansion.
The pending-probe limit provides backpressure between discovery and declaration verification. This prevents discovery from producing verification work faster than the verification queue can reasonably absorb.
Deploy and compose defaults are:
JOSHBOT_AUTOMATIC_CRAWL_ENABLED=true
JOSHBOT_AUTOMATIC_CRAWL_MAX_PENDING_PROBES=1000
JOSHBOT_AUTOMATIC_CRAWL_MAX_PROMOTIONS_PER_RUN=100
JOSHBOT_AUTOMATIC_CRAWL_EXCLUDED_HOSTS=
JOSHBOT_CRAWL_TELEMETRY_RETENTION=720hCandidate origins and provenance edges are committed before automatic admission. Each crawl run allocates at most its configured promotion limit from current-version assessed candidates, ordered by personal-site score descending then origin ascending. Unallocated evidence remains durable for a later run. Immediately before admission, each allocated origin is resolved again and every returned address must pass the public-address guard. A transient resolution failure is deferred durably; an unsafe address is retained as evidence but rejected from automatic admission.
Operators can inspect and override individual private source eligibility with:
joshbot source block <origin>
joshbot source allow <origin>
joshbot source list
Blocking a source prevents JoshBot from crawling it as a discovery source. It does not rewrite that origin's declaration history or participation state.
JoshBot records operational crawl telemetry in PostgreSQL.
Crawl-run records include:
- source origin;
- start and finish times;
- outcome and stop reason;
- pages attempted and parsed;
- candidates discovered;
- whether a crawl budget was exhausted;
- the crawl limits used for that run.
Ordered page-attempt records include sanitized operational information such as:
- requested and final URL;
- crawl depth;
- start time and duration;
- HTTP status code;
- response byte count;
- sanitized content type;
- redirect count;
- robots decision;
- internal and external link counts;
- page-attempt outcome.
JoshBot does not store response bodies, cookies, response headers, or arbitrary page content as crawl telemetry.
Telemetry retention is controlled with:
JOSHBOT_CRAWL_TELEMETRY_RETENTION
JoshBot records verification queue transitions so operators can understand how work moves through the system.
Verification work uses probe for freshly discovered candidates and
recurring for verified participants. Authoritative terminal misses from a
first probe (absent, invalid, unsupported version, robots denied, or
cross-origin redirect) record an observation and remove the active queue row.
They do not create delayed timer-based reprobes. A later probe may be admitted
only when discovery evidence is strictly newer than that terminal observation
(last_discovered_at > observed_at), or when an operator runs
joshbot schedule (recurring). Discovery during an in-flight verification is
covered by that verification. Claim order remains recurring, then probe, then
any legacy reprobe rows during backlog drain. The reprobe reporting surface
remains for compatibility while residual legacy rows are retired; it is not an
active scheduling policy.
Queue events include transitions such as:
- scheduled;
- claimed;
- renewed;
- rescheduled;
- completed;
- removed.
JoshBot also persists discovery, verification, and automatic-expansion pause state and service heartbeats.
This operational data makes queue pressure, worker activity, discovery activity, and automatic-crawl backpressure observable without changing the public registry format.
Transient verification, root-page crawl, and automatic-admission resolution
failures receive one immediate retry in a processing cycle. A second failure
is scheduled for later, and that future retry does not block new sites.
Durable consecutive-failure delays are 5m, 30m, 2h, 12h, then 24h
for later failures. Retry-After can extend a verification or root-page delay
but is capped at 24h. Successful or terminal outcomes reset the durable
streak; a crawl that parsed at least one page is treated as successful for
source retry state even if another page failed.
A previously valid Joshternet participant uses that normal transient ladder for its first five consecutive unreachable declaration checks. Beginning with the sixth consecutive transient failure, JoshBot treats the origin as stale and rechecks it every seven days. The origin remains scheduled, so recovery is detected automatically. A successful or authoritative declaration result returns it to normal scheduling and resets the transient failure streak.
Staleness does not mean withdrawal. While a participant is unreachable, its
last authoritative valid declaration remains current. The public registry shows
freshness through latest_declaration_check_at and
latest_declaration_check_outcome, such as unavailable, rather than adding a
separate participation status. An authoritative non-valid result ends current
participation according to the normal declaration rules.
Origins that have never participated do not use the stale-participant cadence. Their transient verification failures retain the existing 24-hour durable retry ceiling. Terminal misses continue to use the separate reprobe schedule described above.
Transient categories are dns, transport, timeout, robots_temporary,
http_408, http_429, http_5xx, declaration_unavailable, processor, and
store. Terminal categories are retained for telemetry but do not create a
durable retry streak.
JoshBot includes a private reporting runtime:
joshbot report
The reporting service is intended for dashboards, monitoring systems, and other operator tooling. PostgreSQL remains JoshBot's durable internal source of truth, while the reporting API provides a supported read interface so external tools do not need to depend directly on JoshBot's database schema.
The service binds to:
127.0.0.1:8788
by default.
The listen address can be changed with:
JOSHBOT_REPORT_LISTEN_ADDRESS
The reporting bearer token is loaded from the file named by:
JOSHBOT_REPORT_TOKEN_FILE
The token itself is not supplied directly through an environment variable.
The reporting API currently provides:
GET /healthz
GET /api/v1/status
GET /api/v1/sources
GET /api/v1/sources/detail
GET /api/v1/personal-sites
GET /api/v1/personal-sites/detail
GET /api/v1/crawls
GET /api/v1/crawls/{id}
GET /api/v1/queue
GET /api/v1/queue/events
GET /api/v1/audit
GET /api/v1/services
GET /api/v1/build
GET /metrics
/healthz is a process-liveness endpoint.
Operational API routes and /metrics require bearer-token authentication.
Responses are sent with cache prevention and content-type protection headers. Reporting failures return generic client-facing errors rather than leaking database or internal implementation details.
The list routes /api/v1/sources, /api/v1/crawls, /api/v1/queue,
/api/v1/queue/events, /api/v1/audit, and /api/v1/personal-sites use
stable keyset pagination. limit defaults to 100 and must be from 1
through 1000; cursor is an opaque route-specific value. Each response body
is a JSON array, including an empty result. When another page exists, its
cursor is returned in the X-JoshBot-Next-Cursor response header. Audit
events are ordered newest first. Personal-site rows expose calculated and
effective scores, truncation, overrides, retry state, and admission/crawl
derived fields. GET /api/v1/build reports the reporter process build
identity separately from discovery/worker heartbeat builds on
GET /api/v1/services.
JoshBot provides a separate, mutation-only operator runtime:
joshbot control
It binds to 127.0.0.1:8789 by default and uses
JOSHBOT_CONTROL_LISTEN_ADDRESS when configured. Its independent,
high-entropy bearer token is read from JOSHBOT_OPERATOR_TOKEN_FILE; the
reporting token never authorizes control.
GET /healthz
POST /api/v1/control/processors/{discovery|verification}/{pause|resume}
POST /api/v1/control/automatic-expansion/{pause|resume}
POST /api/v1/control/domain-avoid
DELETE /api/v1/control/domain-avoid/{pattern}
POST /api/v1/control/origins/block
POST /api/v1/control/origins/allow
PUT /api/v1/control/personal-sites/override
DELETE /api/v1/control/personal-sites/override
POST /api/v1/control/personal-sites/rescore
POST /api/v1/control/origins/crawl
Authenticated attempts are durably audited. Successful mutations and their
success audits commit atomically, while rejected attempts are audited after
rollback. Responses never include token, reason, or database error details.
Personal-site overrides require a reason and expected_revision for
optimistic concurrency. Rescore and crawl requests are asynchronous schedule
mutations; they do not fetch remote pages inside the control handler.
The automatic-expansion pause is independent from the discovery processor pause. It prevents discovery claims for scheduled sources that are neither curated seeds nor currently verified, and it prevents new automatic promotions. Curated seeds, currently verified sources, and verification work continue. Paused candidates retain their evidence and can be reconsidered after expansion resumes.
Exact-origin block intent is stored independently from derived domain-avoid policy, so removing a rule restores eligible automatic sources while retaining explicit blocks and other matching rules.
The metrics endpoint exposes operational, low-cardinality measurements for crawler state. Crawl-history measurements are retained-window gauges because telemetry retention can reduce them; they are not monotonic counters. The current metric families are:
joshbot_discovery_paused
joshbot_verification_paused
joshbot_automatic_expansion_paused
joshbot_automatic_crawl_enabled
joshbot_backpressure_active
joshbot_pending_probes
joshbot_pending_probe_limit
joshbot_verification_queue{mode="all|probe|reprobe|recurring"}
joshbot_verification_leases
joshbot_verification_queue_failures{failure_category}
joshbot_crawl_sources{classification="all|seeded|automatic|verified|blocked|crawl_eligible"}
joshbot_retained_candidates
joshbot_retained_discovery_edges
joshbot_retained_crawl_runs
joshbot_unfinished_crawl_runs
joshbot_retained_pages_attempted
joshbot_retained_pages_parsed
joshbot_retained_page_attempt_failures{failure_category}
joshbot_retained_page_http_statuses{status}
joshbot_retained_origins_found
joshbot_retained_origins_promoted
joshbot_retained_origins_deferred
joshbot_retained_failures
joshbot_retained_robots_denials
joshbot_service_heartbeat_age_seconds{service,state}
The heartbeat age is computed from the latest row for each service name.
Worker and discovery instances report starting, running, idle, paused,
failed, and stopping as applicable. A failed state can include a bounded
machine-readable message; the current origin is omitted when no origin is
active.
Private origins are not emitted as metric labels.
JoshBot processes untrusted URLs and web content. Its safety boundaries include:
- strict origin parsing and canonicalization;
- DNS resolution before connection;
- rejection of loopback, private, link-local, multicast, shared, unspecified, and other non-public addresses;
- validation of every resolved address;
- a fresh all-address DNS validation immediately before automatic admission;
- guarded redirects;
- robots-aware HTTP retrieval;
- response-size and crawl-budget limits;
- bounded automatically discovered crawl sources;
- verification-queue backpressure;
- PostgreSQL leases and transactional completion;
- explicit operator blocking of private crawl sources;
- separate database and publication credentials;
- a publisher with no database access;
- a private authenticated reporting interface;
- a separately authenticated operator control interface;
- deterministic public output with no private discovery state.
These controls reduce risk but do not make arbitrary crawling risk-free. Operators remain responsible for host networking, firewall policy, credentials, storage, schedules, legal requirements, and the origins they configure for crawling.
JoshBot stores semantic and operational data including:
- canonical origins;
- declaration verification observations;
- effective participant state;
- first and latest observation times;
- verification queue state;
- verification queue event history;
- lease ownership and expiration;
- curated seed status;
- automatically discovered source status;
- operator crawl-block status;
- discovery-source attempt times;
- source-to-candidate origin relationships;
- first and latest candidate discovery times;
- bounded crawl-run history;
- sanitized ordered page-attempt telemetry;
- discovery, verification, and automatic-expansion pause state;
- service heartbeats;
- applied database migration metadata.
This state supports verification, retries, politeness, discovery provenance, backpressure, operational reporting, and deterministic registry construction.
JoshBot does not operate as a page archive.
It does not retain:
- HTML archives;
- complete page response bodies;
- complete declaration response bodies;
- page titles as archival content;
- anchor text as archival content;
- screenshots;
- cookies;
- response headers;
- arbitrary page content.
Operational crawl telemetry may retain sanitized request URLs, crawl depth, status, timing, byte counts, redirect counts, content type, robots decisions, link counts, and outcomes.
URL fragments and sensitive request data are not intentionally retained as crawl telemetry.
Private crawl-source state, queue state, crawl history, discovery timing, leases, service heartbeats, backpressure state, and candidate provenance do not appear in the public registry.
The complete table-by-table retention policy is documented in Data retention.
A database-connected runtime projects durable participation history and current
declaration state into a deterministic directory containing registry.json and
per-origin node files.
An origin enters the public registry only after JoshBot has observed a valid Joshternet declaration for that origin. Once an origin has participated, its registry entry remains available as participation history even if a later authoritative declaration check establishes that it is no longer participating.
Each registry entry publishes:
first_participated_at;initial_declaration;latest_declaration_check_at;latest_declaration_check_outcome;declarationwhen the origin is currently participating.
The registry does not publish first_observed_at or add a separate inferred
participation-status field. Current participation is represented directly by
the presence of the current declaration.
A 404 Not Found or 410 Gone declaration check ends current participation,
so the historical registry entry remains but its current declaration is
omitted. Temporary retrieval failures such as timeouts, DNS failures, TLS
failures, and 5xx responses update the latest check metadata without
establishing withdrawal or discarding the last authoritative valid declaration.
Origins that have never published a valid declaration do not enter the public registry. Automatically discovered crawl sources, curated seeds, blocked sources, queue state, discovery provenance, and reporting telemetry remain private operational state.
Equivalent durable registry state produces byte-identical output. File paths and ordering are deterministic.
Publication occurs separately, and it also repeats on its own.
registry-export and registry-publish start with the long-running
deployment. Every JOSHBOT_REGISTRY_PUBLISH_INTERVAL (15 minutes by default)
the database-connected exporter writes a snapshot. The publisher, which has
the GitHub token and no database access, publishes that snapshot. An identical
registry tree does not create a commit.
One explicit publication is still:
- The tools runtime exports the snapshot without GitHub credentials.
- The publisher receives a read-only snapshot and GitHub credentials.
- The publisher verifies the machine-managed target branch and sentinel.
- It creates the exact desired Git tree.
- It updates the branch without force.
- If the exact tree already exists, it creates no commit.
The JoshBot registry format is an implementation compatibility boundary. It is not itself a Joshternet RFC.
JoshBot uses this exact HTTP User-Agent:
Joshternet-Joshbot (+https://joshternet.org/joshbot)
The public crawler information page is:
https://joshternet.org/joshbot
The HTTP Message Signatures directory used for Web Bot Auth is:
https://joshternet.org/.well-known/http-message-signatures-directory
Cloudflare BotBase registration has been submitted and is awaiting review.
JoshBot is not Cloudflare Verified until that review completes and
joshbot conformance web-bot-auth --expect verified passes.
To block JoshBot completely, a site can publish:
User-agent: Joshternet-Joshbot
Disallow: /
For unexpected crawling, robots behavior, or traffic, open a crawler behavior report.
Crawler reports are welcome even when the site's robots configuration appears correct. Do not include credentials, private server logs, or sensitive infrastructure details in a public issue.
Security vulnerabilities must be reported privately under the Security policy.
Development requires:
- Go 1.27;
- Git;
- a POSIX shell;
- PostgreSQL 18 for database integration tests.
Deployment additionally requires Docker Engine and Docker Compose v2.
Build JoshBot:
go build ./cmd/joshbotShow the current command reference:
./joshbot helpRun tests that do not require a configured database:
go test ./...For the complete PostgreSQL-backed suite, configure
JOSHBOT_TEST_DATABASE_URL as described in
Contributing.
Production deployment, backup, recovery, and publication are documented in the Deployment guide.
joshbot health
joshbot migrate
joshbot schedule <origin>
joshbot seed add <origin>
joshbot seed remove <origin>
joshbot seed list
joshbot source block <origin>
joshbot source allow <origin>
joshbot source list
joshbot worker
joshbot discover [--once]
joshbot report
joshbot control
joshbot export --output <directory>
joshbot publish --input <directory>
joshbot export-registry
joshbot publish-registry
joshbot conformance web-bot-auth --expect unregistered|verified
joshbot help
Checks PostgreSQL connectivity.
joshbot healthApplies pending embedded database migrations.
joshbot migrateApplied migrations are immutable. Schema changes require a new forward migration.
Schedules an origin for recurring declaration verification.
joshbot schedule https://example.comInput paths, queries, and fragments are reduced to the canonical origin.
Manages operator-curated crawl seeds.
joshbot seed add https://directory.example
joshbot seed remove https://directory.example
joshbot seed listA seed creates a private discovery source. It is not a declaration, verification result, or public registry entry.
Inspects and controls private crawl-source state.
joshbot source block https://example.com
joshbot source allow https://example.com
joshbot source listBlocking or allowing a crawl source changes operational crawl eligibility. It does not create, remove, or rewrite a Joshternet declaration.
Runs the long-lived declaration-verification worker.
joshbot workerRuns the discovery service.
joshbot discoverRun one discovery attempt:
joshbot discover --onceRuns the private operational reporting API.
joshbot reportThe reporting service provides a supported interface for dashboards, monitoring, and other operator tooling without requiring those clients to depend directly on JoshBot's PostgreSQL schema.
The service requires JOSHBOT_REPORT_TOKEN_FILE and binds to
127.0.0.1:8788 unless JOSHBOT_REPORT_LISTEN_ADDRESS overrides it.
Runs the private operator mutation API.
joshbot controlThe service requires an independent JOSHBOT_OPERATOR_TOKEN_FILE and binds to
127.0.0.1:8789 unless JOSHBOT_CONTROL_LISTEN_ADDRESS overrides it.
Writes a deterministic public registry snapshot. The destination directory must not already exist.
joshbot export --output <directory>Publishes an existing registry snapshot to the configured GitHub repository.
joshbot publish --input <directory>The normal deployment refreshes the public registry automatically.
export-registry and publish-registry are the long-running halves of that
cycle. deploy/publish.sh still performs one explicit export and publish.
joshbot export-registry
joshbot publish-registryChecks the deployed signature directory and sends one signed request to Cloudflare's Web Bot Auth test endpoint. It uses the production crawler client and refuses unsigned mode. The deployment guide has the exact pre-registration and post-approval commands. A passing check is not Cloudflare approval.
joshbot conformance web-bot-auth --expect unregistered|verifiedPrints the command reference.
joshbot helpThe project uses test-driven changes, PostgreSQL integration testing, race and
repeatability checks, fuzzing, deployment validation, and exactly 100.0%
statement coverage.
Read Contributing for the complete development workflow.
Joshternet protocol semantics belong to the Joshternet specification repository.
Implementation changes belong here. Protocol changes belong there.
Contributions are welcome. You do not have to be named Josh; that would be an oddly specific dependency.
Read Contributing before opening an issue or pull request.
For reproducible software defects, use the bug report form.
For crawler-specific concerns, use the crawler behavior report.
Participation is governed by the Code of Conduct.
Do not disclose an unpatched vulnerability through a public issue. Follow the Security policy and use GitHub Private Vulnerability Reporting.
JoshBot is licensed under BSD-3-Clause.
Copyright belongs to Joshua Morris. Source and binary redistributions must retain the copyright notice, license conditions, and warranty disclaimer.