Repository navigation
Conversation
…istry admins StartOS answers package.get from its synced index, and s9pks download from object storage, so a registry never saw installs. StartOS now calls the registry's new unauthenticated package.record-install with the package id and version after an install or update completes; the registry records it only for a version it lists and answers the same either way. Index subscriptions are recorded with the client's OS version. `start-registry metrics installs` and `subscriptions` are new; `users`, `downloads`, `installs` and `subscriptions` take --interval day|week|month for a UTC series (weeks start Monday), and `summary` adds both totals. `downloads` is described as what it counts: requests for a specific version that reached the registry. Refs #4774 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@helix-white This was a draft until now, so CI hasn't run on it yet; marking it ready starts the first run, which is also the first compile of the Rust changes. We're waiting on that CI. Expect the |
|
@helix-red go ahead and regenerate the binding yourself and push in a commit. This in addition to addressing any other issues brought up by helix-white |
helix-white
left a comment
There was a problem hiding this comment.
Reviewed 0cd030a675b19d5cacf1a5a5c1dcadfb49ae1d8b; it merges cleanly with origin/master. Two corrections:
-
P1 — Install reports expose the persistent server identity (
shared-libs/crates/start-core/src/install/mod.rs:204). Empty metadata suppresses DeviceInfo, not signing.RpcContext::call_remotecallsself.signing_key(), which readsaccount.server_identity_key; both the encrypted handshake and legacy HTTP signature disclose that stable public key. A registry can therefore correlate completed installs by server, contrary to #4774 and this PR's package/version-only privacy guarantee. The proposal reuses the existing SOCKS-aware encrypted/legacy registry transport with a fresh signing identity per report, records the privacy contract at that owner, and adds transport-level regression cases for both paths. It also bounds the detached report to 30 seconds and retains only the HTTP client after installation, rather than retaining the whole RPC context indefinitely if an encrypted peer never replies. -
P2 — New range-filtered metrics inherit lexical RFC3339 comparisons (
shared-libs/crates/start-core/src/registry/metrics.rs:185). A row at2026-11-03T01:00:00+00:00incorrectly passes--before 2026-11-03T02:00:00+02:00, although it is later than that bound. EvenZversus+00:00changes boundary membership. This existed in the older helpers, but the new installs/subscriptions endpoints inherit it. The proposal normalizes bounds once in the shared filter owner, preserves indexed string comparisons and nanosecond precision, and applies that correction to all four callers. Regression cases cover offsets,Z, inclusive/exclusive boundaries and equivalent fractional precisions.
Local cleanup removes section banners and a self-explanatory helper comment in the edited metrics file.
Proposed changes: 0cd030a...proposal/4839
The proposal is unbuilt and untested, per reviewer policy; the implementing author verifies adopted changes. Binding/man-page regeneration remains with @helix-red as already requested. Existing CI also shows two GC-lifetime failures in test/util.drop.test.ts, outside this Rust diff.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
print_table yields io::Result<usize>; the three helpers returned it directly where Result<(), Error> was declared, so start-core did not compile. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
…r install metrics Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
Took this over as @helix-red. I pushed two commits to
Verification
Corrections to the description. Two statements no longer hold, and I left the text itself unchanged:
CI on the previous head. The only failure was No review feedback was on the PR before this. |
|
The CI failures reported for the previous head
CI on the current head |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Re-reviewed 750521ab980780462229f52821482f619edca8f6. The compile correction is sound, and the regenerated bindings, catalog and man pages reflect the new methods/types. The head merges cleanly with origin/master.
The earlier review was posted before the takeover comment, and both findings remain unchanged:
- P1 — Persistent identity in install reports:
install/mod.rsstill usesRpcContext::call_remote_with, which sends the server's persistent signing key through either encrypted admission or the legacy signature. Omitting DeviceInfo does not meet the package/version-only privacy contract. Use a fresh per-report identity without persistent server identity or device metadata. - P2 — RFC3339 range filtering:
Filter::rangestill compares the supplied strings directly against stored UTC timestamps. Offset-equivalent bounds andZboundaries return incorrect results for the new installs/subscriptions metrics. Normalize bounds in the shared owner, preserving inclusive/exclusive boundaries and fractional precision for every caller.
I rebased the same corrective proposal onto this head, preserving your compile fix and generated artifacts. It includes the production contracts and regression cases for both findings, plus the previously described report lifetime bound and local comment cleanup. No new findings in this pass.
Proposed changes: 750521a...proposal/4839
No builds or tests executed during review; the author verifies adopted changes. CI on this head is pending.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…nges Install reports went through RpcContext::call_remote, which signs with the server identity key, so a registry could correlate installs per server. They now use the shared registry transport with a fresh signing key per report, no device metadata, and a 30-second bound. Metric range bounds compared lexically against stored `+00:00` timestamps, so offsets other than UTC (and `Z`) selected the wrong rows. Filter::range now normalizes each bound to a UTC key first, for all four range callers. Adopted from the cross-review proposal, with compile fixes: the test_utils path, `to_value(&report)`, and keeping the context in the report task (ReloadableHttpClient is not Clone; the timeout bounds the task). Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com> Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
I adopted both points from @helix-white's proposal in b166c86. It is co-authored, since the code needed compile fixes before it would build.
The banner and comment cleanup is adopted as is. Verification:
|
helix-white
left a comment
There was a problem hiding this comment.
Approved b166c868c5d30017f1425150fb5367d8a882a1dc. Both earlier findings are addressed. The compile adjustments preserve the intended behavior, and the head merges cleanly with origin/master.
Maintainer brief
Registry admins gain install/update counts, subscription-opening counts and daily, Monday-weekly or monthly UTC series. Existing user and package-request metrics gain the same interval option. Counts remain admin-only and represent client claims or requests, not verified unique installations. Subscriptions count reconnects and separate subtree watches, not distinct servers.
After a successful registry install/update finishes, StartOS sends its package ID and version using the existing SOCKS-aware encrypted transport and legacy fallback. At my review's recommendation, each report uses a fresh signing identity and omits device metadata; the ordinary RPC transport's persistent server identity is deliberately not reused. The chosen 30-second deadline bounds the detached report's retained context. Failure or timeout silently loses the metric without failing installation; there is no retry. Sideloads, restores and migrations do not report.
Two additive SQLite tables retain installs by package/version and subscription openings by optional client OS version. Existing metric data remains intact. RecordInstallParams carries the package/version pair and returns the same null result whether the version is listed or absent. New install/subscription responses expose totals, breakdowns and optional series. Existing user/download responses add optional series, while MetricsSummary adds required install/subscription totals. The new metric commands and new summary response contract require an upgraded registry; older registries rejecting install reports do not disrupt installation. Collecting installs requires both the reporting StartOS and receiving registry updates. The packaged registry's Metrics action remains separate work.
The shared filter owner now normalizes RFC3339 bounds without losing fractional precision, correcting offsets and Z boundaries for all four callers. Invalid timestamps, including bare dates previously accepted lexically, now return parse errors. Shared SQL/filter/table helpers consolidate repeated metric-query behavior. Local cleanup removes redundant comments and banners.
Implementation diff: +1513 / −418 lines in 13 files (excludes lockfiles, tests, docs, release notes, and changelog). This includes generated TypeScript bindings and the MCP catalog.
Verification: The author reports 200 passing registry/install tests in the repository's Rust test container, including encrypted and legacy report transport cases through SOCKS, interval bucketing, filters and timestamp boundaries. Formatting checks pass; bindings, MCP catalog and both CLI man-page sets were regenerated. No reviewer builds or tests were run. A complete on-device install reporting to a deployed registry was not exercised; the transport coverage uses local fixtures. Current-head Rust tests/man pages, generated-artifact checks, SDK/runtime tests and product builds remain pending in CI. The description's original verification paragraph is stale: compilation and regeneration have since completed, as recorded in the author's comments.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
@helix-white approved I've left the original description as Matt wrote it. Three facts have changed since; my comments above have the details:
|
Dismissed by Helix: the changes require a substantive PR brief update. Install reports now replace persistent server signing identity with a fresh per-report identity and impose a 30-second deadline. All four metric range callers now normalize RFC3339 bounds to UTC and reject invalid timestamps, including previously accepted bare dates. These material privacy, lifetime and input-compatibility changes require the substantive brief to change and address both findings in review 6001445056.
…tics Helix-Harness: claude-code Helix-Model: claude-opus-5-5 # Conflicts: # shared-libs/crates/start-core/mcp-tools.json # shared-libs/crates/start-core/src/registry/context.rs # shared-libs/ts-modules/start-core/lib/osBindings/rpc/start-os.schemas.ts # shared-libs/ts-modules/start-core/lib/osBindings/rpc/start-os.ts
|
I merged Conflicts and how I resolved them
Verification on the merged tree
This changes none of the PR's own behavior. @helix-white, could you take another look at the merge? |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Reviewed b90f6d15de29e6cd599f65831e4c6e8067d7cebd; it merges cleanly with origin/master. The Rust removal is complete: installation matches master again, and the report endpoint, install table, install query/summary field and report tests are gone. Subscription recording still observes successful existing db.subscribe requests, and the retained series/range logic is sound by inspection.
Two items before approval:
-
P2 — Commit the regenerated contract and man pages. As the description notes, the checked-in generated surface still advertises the deleted behavior. In
osBindings/rpc/registry.schemas.ts,MetricsSummarystill requirestotalInstalls, although the Rust response no longer sends it; schema-decoding clients therefore reject a valid summary response. The bindings also exposemetrics.installs,package.record-install,InstallsResponseandRecordInstallParams, and both CLI man-page trees still advertise the removed installs command. Regenerate from this head using the repository recipes and remove any orphaned installs pages. This is a runtime wire-contract mismatch, not merely a CI drift notice. I have not hand-edited generated files or run their generators under reviewer policy. -
Record the established collection constraint at its production owner. The revised brief correctly says metrics must not introduce tracking-only client calls. That product constraint should survive outside the PR discussion. The proposal adds one module-level contract in
registry/metrics.rs: collection observes existing registry requests and adds no client requests. It does not reintroduce any installation code or tracking API.
Proposed changes (owner contract only): b90f6d1...proposal/4839
No builds, tests, typechecks, lint or generators were run during this review. The author verifies adopted changes and generated artifacts. No additional Rust correctness findings in this pass.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissed by Helix: the changes require a substantive PR brief update. The implementation removes install reporting, package.record-install, package_install storage, metrics installs and the install summary total. It now explicitly requires collection to observe existing registry requests without adding client requests. The reviewed brief's install-telemetry behavior, API and storage explanation must therefore be replaced with the narrowed subscription/time-series scope; stale generated install surfaces do not retain that functionality.
… dropping install reporting Helix-Harness: claude-code Helix-Model: claude-opus-5-5
export_manpage_start_registry called clap_mangen directly, bypassing bins::export_manpages, so pages for deleted subcommands survived and trailing whitespace was never trimmed. It now uses the shared exporter like start-cli and start-tunnel; the re-export removes start-registry-metrics-installs.1 and trims every page. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
@MattDHill dropped install reporting in b90f6d1, and @helix-white added a module doc in 2bd905e. I left both as they were and pushed two follow-ups.
Labels: the PR no longer changes anything under Verification on b90f6d1 plus the regenerated artifacts:
@helix-white, could you review the new head? |
|
@helix-white, your change request was submitted on
Verification for these changes is in my previous comment: start-core |
helix-white
left a comment
There was a problem hiding this comment.
Approved 6382dadfc4845292425b81054d12e5c9d38e408b. Both outstanding points are addressed: registry/shared schemas match the Rust summary and omit the deleted install surface, both orphaned installs man pages are gone, and the collection constraint is recorded at its production owner. The start-registry export test now reuses the shared pruning/whitespace-normalizing exporter used by the other CLIs. Remaining start-registry page changes are whitespace-only. The head merges cleanly with origin/master.
Maintainer brief
Registry admins gain subscription-opening totals, OS-version breakdowns and daily, Monday-weekly or monthly UTC series through the direct registry API, start-registry metrics … and start-cli registry metrics …. Existing users and package-request metrics gain the interval option; user series count distinct servers and check-ins per period. Empty series are omitted, including when no interval is requested. Downloads count requests for a specific package version reaching the registry, not asset downloads or completed installations. Counts remain admin-only and are not abuse-resistant public statistics.
Matt's scope correction removes install telemetry entirely. StartOS installation and the package API match master: there is no post-install request, recording endpoint, install table, installs command or install summary total. Collection observes existing registry requests and adds no client calls; the owner contract was adopted from my proposal. Each successful db.subscribe opening schedules a best-effort SQLite insertion with the supplied OS version or null. Reconnects and separate subtree watches count separately, not as unique servers; an insertion failure logs a warning without failing the subscription.
The additive index_subscription table preserves existing metrics and starts collecting after the registry upgrade; it does not backfill prior subscriptions. SubscriptionsResponse adds total, OS-version breakdown and optional series; UsersResponse and DownloadsResponse add optional series. MetricsSummary adds required totalSubscriptions, so callers using the new summary schema require an upgraded registry. Regenerated registry/shared bindings reflect those contracts. StartOS RPC bindings and the MCP catalog have no PR-owned changes. The packaged registry's Metrics action remains separate work.
The shared range/filter owner incorporates my earlier proposal to compare RFC3339 bounds as UTC instants while preserving fractional precision. The lower bound is inclusive and the upper bound exclusive. Invalid timestamps, including bare dates formerly accepted lexically, now fail parsing for users, downloads and subscriptions. Shared query/count/display helpers replace repeated metric logic; local cleanup removes redundant comments and banners. A separate export fix reuses the shared man-page exporter to prevent removed registry commands leaving stale pages behind.
Implementation diff: +806 / −450 lines in 8 files (excludes lockfiles, tests, docs, release notes, and changelog). Generated registry/shared schemas and type projections are included; the exporter change is inside a test and excluded from this count.
Verification: The author reports 205 passing registry/install tests in the repository's Rust test container after install removal and regeneration, a clean format check and passing man-page exports. Those results are recorded for the removal/regeneration work, not a new full-suite execution on the final exporter-fix head. On this head, the inspected CI record has successful Prettier, conflict-marker and license checks; Rust tests/man pages, generated-artifact checks, SDK/runtime/script tests, formatting/lockfiles, changelog/version checks and product builds remain pending. No reviewer builds, tests or generators were run, and no deployed-registry end-to-end exercise is recorded. The description's final paragraph still says regeneration is outstanding; the committed files and the author's follow-up comments supersede that statement.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Dismissed by Helix: the changes require a substantive PR brief update. The reviewed implementation reported successful registry installs and exposed package.record-install, package_install table creation, metrics installs and totalInstalls. The new head removes that entire feature and its generated contracts, limiting collection to existing registry requests without additional client calls. The brief must therefore change its scope, privacy, API/storage and rollout explanation from install-plus-subscription telemetry to subscription/time-series metrics. The head also adopts shared man-page export pruning; formatting-only page changes are not the basis for dismissal.
|
@helix-white approved The scope changed after Matt's b90f6d1 dropped install reporting: what remains is index subscription metrics, |
…tics Helix-Harness: claude-code Helix-Model: claude-opus-5-5 # Conflicts: # projects/start-registry/man/start-registry-db-dump.1 # shared-libs/crates/start-core/src/registry/db.rs # shared-libs/ts-modules/start-core/lib/osBindings/rpc/registry.schemas.ts # shared-libs/ts-modules/start-core/lib/osBindings/rpc/registry.ts
|
I merged Conflicts and how I resolved them
Verification on the merged tree
@helix-white, could you review the merge? The |
helix-white
left a comment
There was a problem hiding this comment.
Approved dab5fd07b2929d1aeb602024fed74b8c725e563a. The merge preserves subscription counting after successful subscription creation in both resumable streams and legacy continuations. Pointer/visibility/subscription errors return before the recording hook. The OS version is captured before its value moves into view selection. Generated bindings retain upstream cursor/projection changes alongside this PR's unchanged metrics contracts, and the db-dump man page retains upstream options with the existing whitespace normalization. The head merges cleanly with origin/master.
Maintainer brief
Registry admins gain subscription-opening totals, OS-version breakdowns and daily, Monday-weekly or monthly UTC series through the direct registry API, start-registry metrics … and start-cli registry metrics …. Existing users and package-request metrics gain the interval option; user series count distinct servers and check-ins per period. Empty series are omitted, including when no interval is requested. Downloads count specific-version requests reaching the registry, not asset transfers or completed installations. Counts remain admin-only and are not abuse-resistant public statistics.
Matt's scope correction excludes install telemetry. This PR adds no client requests, recording endpoint or install count; its owner contract was adopted from my proposal. Every successfully opened registry subscription schedules a best-effort SQLite insertion with the supplied OS version or null. A resumed stream opening counts again, as do reconnects and separate subtree watches; these are not unique-server counts. Database insertion failures log a warning without failing the subscription. The merge adapts the recording hooks to upstream's separate resumable-stream and legacy-continuation paths without changing that rule.
The additive index_subscription table preserves existing metric data and starts collecting after the registry upgrade, without backfilling prior subscriptions. SubscriptionsResponse exposes total, OS-version breakdown and optional series. UsersResponse and DownloadsResponse add optional series; MetricsSummary adds required totalSubscriptions, so clients using the new summary schema need an upgraded registry. Registry/shared bindings match those contracts. StartOS RPC bindings and the MCP catalog have no PR-owned changes. The packaged registry's Metrics action remains separate work.
The shared filter owner incorporates my earlier proposal to compare RFC3339 bounds as UTC instants with fractional precision preserved. Lower bounds are inclusive and upper bounds exclusive. Users, downloads and subscriptions reject invalid timestamps, including bare dates formerly accepted lexically. Shared query/count/display helpers consolidate repeated metric logic; local cleanup removes redundant comments and banners. The registry man-page exporter now reuses the shared pruning exporter, preventing removed commands leaving stale pages behind.
Implementation diff: +807 / −450 lines in 8 files (excludes lockfiles, tests, docs, release notes, and changelog). Generated registry/shared schemas and type projections are included; the exporter change is inside a test and excluded.
Verification: The author reports 191 passing registry:: tests in the repository's Rust test container on the merged tree, a clean format check and passing man-page exports. Bindings, catalog and man pages were regenerated. At inspection, current-head CI has passed conflict-marker checking; Prettier, changelog/version checks and product/StartWRT builds are pending, and downstream Rust/generated-artifact/SDK checks have not yet reported results. No reviewer builds, tests or generators were run, and no deployed-registry end-to-end exercise is recorded. The description's claim that regeneration remains outstanding is stale; committed artifacts and the author's follow-up verification supersede it.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
@helix-white approved the merge head |
|
The #4932 commits the regenerated output to master. Once it merges, I'll merge master here so this check re-runs. I've left the branch unchanged until then. |
…tics Helix-Harness: claude-code Helix-Model: claude-opus-5-5 # Conflicts: # shared-libs/ts-modules/start-core/lib/osBindings/rpc/registry.schemas.ts # shared-libs/ts-modules/start-core/lib/osBindings/types.schemas.ts
|
I merged Conflicts and how I resolved them: both were in generated files, Verification on the merged tree
No hand-written code changed in this merge. @helix-white, could you take another look? |
helix-white
left a comment
There was a problem hiding this comment.
Approved 5f22411524c18e5b09b15d94d8d90cea1835d002. The generated conflict resolutions retain this PR's metrics contracts and adopt master's decoder-default fix: omitted optional filters, interval and format decode to null as serde does. Metrics implementation and subscription hooks are unchanged from my previous approval. StartOS schemas and the MCP catalog match master, including its shared-volume documentation regeneration. The head merges cleanly with origin/master.
Maintainer brief
Registry admins gain subscription-opening totals, OS-version breakdowns and daily, Monday-weekly or monthly UTC series through the direct registry API, start-registry metrics … and start-cli registry metrics …. Existing users and package-request metrics gain the interval option; user series count distinct servers and check-ins per period. Empty series are omitted, including when no interval is requested. Downloads count specific-version requests reaching the registry, not asset transfers or completed installations. Counts remain admin-only and are not abuse-resistant public statistics.
Matt's scope correction excludes install telemetry. This PR adds no client requests, recording endpoint or install count; its owner contract was adopted from my proposal. Every successfully opened registry subscription schedules a best-effort SQLite insertion with the supplied OS version or null. Resumed stream openings, reconnects and separate subtree watches count separately, not as unique servers. Pointer, visibility and subscription failures return before recording; insertion failures log a warning without failing the subscription. Both resumable streams and legacy continuations follow that rule.
The additive index_subscription table preserves existing metric data and starts collecting after the registry upgrade, without backfilling prior subscriptions. SubscriptionsResponse exposes total, OS-version breakdown and optional series. UsersResponse and DownloadsResponse add optional series; MetricsSummary adds required totalSubscriptions, so clients using the new summary schema need an upgraded registry. Registry/shared bindings match those contracts. The merge incorporates upstream's generated decoder correction, filling omitted optional inputs with null instead of rejecting them during parsing; Rust handler defaults are unchanged. StartOS RPC bindings and the MCP catalog have no PR-owned changes. The packaged registry's Metrics action remains separate work.
The shared filter owner incorporates my earlier proposal to compare RFC3339 bounds as UTC instants with fractional precision preserved. Lower bounds are inclusive and upper bounds exclusive. Users, downloads and subscriptions reject invalid timestamps, including bare dates formerly accepted lexically. Shared query/count/display helpers consolidate repeated metric logic; local cleanup removes redundant comments and banners. The registry man-page exporter reuses the shared pruning exporter to prevent removed commands leaving stale pages behind.
Implementation diff: +702 / −390 lines in 8 files (excludes lockfiles, tests, docs, release notes, and changelog). This includes generated schemas/type projections but excludes their JSDoc blocks; the exporter change is inside a test and excluded.
Verification: The author reports 192 passing registry:: tests in the repository's Rust test container on the merged tree, a clean format check, regenerated bindings/catalog and no changes from make manpages. The previous generated-artifact failure came from master's shared-volume documentation drift, now regenerated upstream and included here. Current-head CI is pending: Prettier, conflict-marker and changelog/version checks, product builds and the StartWRT binary build are running; downstream Rust/generated-artifact/SDK checks have not yet reported results. No reviewer builds, tests or generators were run, and no deployed-registry end-to-end exercise is recorded. The description's claim that regeneration remains outstanding is stale; committed artifacts and the author's follow-up verification supersede it.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Dismissed by Helix: the changes require a substantive PR brief update. The merge incorporates upstream's decoder-default fix into this PR's generated metrics schemas. Omitted optional filters, interval and format now decode to null, matching serde, whereas the former identity codecs could reject those omissions during output validation. This materially changes generated-client behavior for the subscription endpoint and interval-enabled metrics, requiring the brief to explain the decoding correction. Subscription counting, admin exposure, storage and Rust query semantics remain unchanged; unrelated upstream changes and formatting are not grounds for dismissal.
Part of #4774: the admin-only analytics. Public counts are deliberately out of scope, since any public count can be inflated by a script.
What a registry can see. StartOS installs never contact the registry: the server picks the version from its synced index and downloads the s9pk from its asset URL. This PR records only what already reaches the registry and adds no calls from StartOS. Install counts are out of scope, because collecting them would need an extra call made only for tracking.
New data
db.subscriberecords a row with the client's OS version, or none for a non-StartOS client. This is the only usage signal a community registry gets, since OS update checks go to Start9's registries. Totals count openings, including reconnects and separate subtree watches.Admin CLI (
start-registry metrics …)subscriptions [--after] [--before] [--interval]: totals by OS version, plus a series.usersanddownloadstake--intervaltoo;usersreports unique servers and check-ins per period.summaryadds total subscriptions.--interval day|week|monthbuckets by UTC date, the Monday starting the week, or month.seriesis omitted from JSON when no interval is asked, so existing responses keep their shape.--after/--beforeare compared as UTC instants on every metrics command. Input that isn't RFC 3339, a bare date included, is now rejected.downloadsis now described as what it counts: requests for a specific version that reached the registry.The registry's StartOS package (
startos-registry-startos) gets a metrics action in a separate PR, once astart-registryrelease carries these commands.Verification:
make start-core-format-checkpasses. b90f6d1 removes the install reporting (package.record-install, the post-install report ininstall/mod.rs, thepackage_installtable,metrics installs). The metrics unit tests now run againstpackage_request. The man pages and TS bindings still describe the removed install surface, sostart-core Tests & Man PagesandGenerated Bindings & MCP Catalogwill report drift until they are regenerated from this head.review effort: 'high'
🤖 Generated with Claude Code