Skip to content

Prepare the next release and migrate to silo-pkg v3.13.0 - #38

Merged
Vonng merged 35 commits into
mainfrom
migrate/silo-pkg-own-path
Sep 1, 2026
Merged

Vonng merged 35 commits into
mainfrom
migrate/silo-pkg-own-path

Conversation

@Vonng

@Vonng Vonng commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

This branch closes the pre-release security, stability, attribution, and release-gate findings, then completes the coordinated shared-package migration:

  • import github.com/pgsty/silo-pkg/v3 directly at released v3.13.0;
  • select the immutable pgsty/mc RELEASE.2026-09-01T00-00-00Z source as v0.0.0-20260831144523-ddac5d58ab49;
  • retire the old minio/pkg => silo-pkg and minio-go => silo-go replacements;
  • reduce the downstream replacement contract to the single mc source replacement;
  • update dependency-release verification, embedder/upstream-floor tests, CREDITS, release documentation, and the release-candidate server graph check.

The discarded silo-pkg v3.13.1 tag is not used. The maintained graph deliberately pins v3.13.0, matching the released mc graph.

Validation

  • go mod tidy -diff, go mod verify
  • go vet ./..., go vet -tags=testrunmain ./...
  • go test -race ./..., golangci-lint, govulncheck
  • make verifiers
  • structural and online dependency checks through proxy.golang.org and sum.golang.org
  • README-block downstream embedder and upstream-mc floor builds
  • Linux, NetBSD, and macOS cross-builds
  • Swagger regeneration from a patched clean clone: zero diff
  • TypeScript, Prettier, knip, and 180/180 frontend unit tests
  • fresh SILO live stack: Chromium 23/23 with CI workers=3

Coordinated server boundary

The SILO server must complete the same source import migration before the release-candidate server job can certify this Console commit. This PR does not modify or release the server.

Vonng and others added 30 commits September 1, 2026 09:49
Console believed X-Forwarded-For, X-Real-IP and RFC 7239 Forwarded from any
peer and passed the result to SILO, so a direct client could satisfy an
aws:SourceIp condition it did not meet. Source headers are now honoured only
when the TCP peer is listed in CONSOLE_TRUSTED_PROXIES (standalone) or
MINIO_API_TRUSTED_PROXIES (embedded fallback); the default trusts nobody, a
malformed list fails closed, and standalone Console refuses to start on it.

Chains are read from the peer backwards, stop at the first element that is
not a literal IP address, and are bounded to 100 elements; exactly one header
family is consulted per request, chosen by presence. Forwarded elements are
parsed with the RFC 7239 grammar. Console-to-SILO requests are cloned,
stripped of every inbound source header, and carry one canonical
X-Forwarded-For value derived from Console's own trust decision.

Closes #12

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The shared outbound transport set InsecureSkipVerify, so Console never
authenticated SILO, STS, identity providers, Prometheus, webhooks or any other
HTTPS peer. The transport now verifies certificate chains and host names
against the system roots plus the configured CA directory; the pool is attached
in loadAllCerts (before the webhook transport is cloned) and again in
configureAPI for the embedded server, which fills GlobalRootCAs first.

Outbound clients are split by destination: GetConsoleHTTPClient is the
verified general client for identity providers, Prometheus, release checks and
the Log Search API, while PrepareSTSClientTransport/GetMinIOHTTPClient serve
the configured SILO endpoint. The OpenID provider takes separate IdP and STS
clients through additive ...WithClients constructors; the single-client
constructors remain and use one client for both roles.

CONSOLE_MINIO_SERVER_TLS_SKIP_VERIFY=on is an explicit, standalone-only
compatibility switch that exempts exactly the configured https:// SILO origin,
compared as a canonical host:port, and is evaluated per round trip so redirects
away from that origin stay verified.

Closes #13

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
At CONSOLE_DEBUG_LOGLEVEL 4-6 Console printed every request header after
AuthenticationMiddleware had injected the decrypted session bearer, so the STS
access key, secret key and session token of the caller landed in service logs.
The raw STS session token was also stored as the request's session identifier
and copied verbatim into audit entries and error logs.

A shared leaf package, pkg/logger/redact, now classifies credential-bearing
headers, query parameters and path segments and rewrites them for both debug
and audit logging: Authorization keeps only a recognized scheme, cookie values
and non-standard Set-Cookie attributes are removed, STS, SigV4 and SSE-C
headers, the sts/sts_a/sts_s bootstrap parameters, OpenID code and token
parameters and presigned-URL parameters (matched on percent-decoded names) are
replaced, and the encoded shared-object path segment is redacted in debug
lines and in the audit api.path field. Unparseable values are replaced whole.

The session identifier becomes a stable, non-reversible fingerprint of the STS
session token, so records of one session still correlate while no log carries
the token; the bearer validation failure log no longer includes the token.

Closes #14

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The Object Manager WebSocket accepted anonymous upgrades with no read limit,
no deadlines and no per-connection bounds, stored a cancel context for every
frame before validating it, leaked contexts for unknown modes, overwrote a
running request's cancel function when its id was reused, and disabled the
Origin check entirely under a subpath by mutating the shared upgrader.

Every /ws endpoint now applies a 32 KiB read limit. Object Manager sessions
have one shutdown coordinator, a single writer that owns pings, data and the
close frame with a write deadline, a ping/pong keepalive with a read deadline,
validation of mode, request id, bucket name, prefix length and rewind date
before anything is allocated, bounded error frames for invalid requests, a cap
of four concurrent listings, request ids reserved until their worker exits so
cancel-and-reuse cannot race, canceled listings drained silently instead of
surfacing as 500s, and rewind listings attributed to the trust-resolved client
address. Ten consecutive invalid frames close the session with 1008.

Anonymous access is limited to /objectManager handshakes that carry no session
cookie at all; empty, malformed or unreadable cookies are rejected before the
upgrade, as is a missing cookie on every other endpoint. The Origin policy is
a fixed function: same authority, the CONSOLE_BROWSER_REDIRECT_URL authority,
a single host asserted by a trusted proxy through
CONSOLE_SECURE_HOSTS_PROXY_HEADERS, or CONSOLE_SECURE_ALLOWED_HOSTS.

Closes #15

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The README told SILO server maintainers which three replace directives to
copy, but the example had drifted from go.mod after the post-v2.2.1 bumps:
it still named pgsty/mc 70a2950 and silo-pkg v3.12.2 while go.mod selected
5ed037e and the 748c94b compatibility commit. Replacements are not inherited,
so a server following the README built a different graph.

go.mod is now the single source of truth. hack/replacements renders the block
between silo-replacements markers in README.md, and its check mode (part of
make verifiers) fails when the README block, the three directives, or the
supported-graph comment in go.mod disagree; the invariant is the exact
required mapping set (each canonical import path replaced once by its fork at
a released version, no fork replacement outside the contract). A new CI job,
downstream-embedder-compat, feeds the published README text into a scratch
embedder module, builds it, and asserts the three effective replacement
tuples. README, go.mod and docs/Embedding.md state the same contract: all
three replacements as one set, none of them as the upstream floor, any
partial set unsupported, and why silo-pkg v3.13.0's own module path is not a
drop-in for this line.

Closes #18

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
Branch protection required only the core build contexts and the tag release
preflight reran Go and asset checks without asking whether the browser,
integration, replication, SSO and vulnerability suites had passed, so a
known-red commit could be tagged and published. The Permissions A and B suites
were also red on main because they clicked an enabled-only selector
immediately after a full navigation and timed out on slow first loads.

jobs.yaml and vulncheck.yaml gain summary jobs (Required matrix, Required
vulnerability checks) that list every job explicitly and fail unless each
result is success, so a skipped, cancelled or failed job fails the summary; the
permanently skipped React test job is removed. The release preflight now
requires, for the exact tagged SHA, completed successful runs of both
workflows whose summary jobs succeeded, fails closed on any API or parsing
error, and records the accepted run ids and attempts in the job summary; a
manual dispatch cannot bypass it.

The Permissions A/B fixtures wait in two observable stages (routed page
rendered with a structurally scoped marker, then the control exists and is
enabled) with messages naming the stage, every TestCafe job uploads
screenshots of failed tests as a per-job, per-attempt artifact, and
docs/Release.md documents dispatching the matrix on a release branch, tagging
the exact SHA, rerunning infrastructure failures and auditing the accepted
runs.

Closes #19

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
Console pinned unreleased pseudo-versions of pgsty/mc and pgsty/silo-pkg,
and nothing stopped a tag from being pushed before the maintained releases
existed or before the SILO server had been built on the same graph.

hack/deps-release.json records each of the three SILO replacements with its
release shape, tag and 40-hex commit; hack/deps-release-check.sh verifies it.
The structural mode runs in make verifiers and only warns for a release the
maintainer has not created yet, while the online mode, run by the candidate
gate and the tag preflight, requires each tag to dereference to the recorded
commit, enforces the shape (a source-only module tag, or a calendar
pre-release with no assets that is not latest), and verifies every module
through proxy.golang.org and sum.golang.org from an empty module cache
against go.sum. The record keeps silo-pkg v3.12.3 at 748c94b and a
pgsty/mc compatibility tag at 5ed037e as pending, so Console cannot be tagged
until the maintainer publishes them; the compatibility strategy and the
deferred own-module-path migration are documented.

The new release-candidate workflow, dispatched from main for an exact commit,
runs the dependency checks, Console's own checks with the release asset
commands, the upstream floor and README-block embedder (now shared scripts),
and builds and tests the SILO server on the coherent graph with the candidate
embedded; it publishes the release-candidate/gate commit status and a
certification record bound to the run and attempt, which the tag preflight
verifies before anything is built.

Refs #17

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The release preflight compared the tag with CHANGELOG.md and version.tsx only
at tag time and never looked at package.json or at what the License page
renders. The Node unit test now requires package.json, the generated version
module and the newest CHANGELOG heading to agree on every change, and with
RELEASE_METADATA_MUST_BE_FINAL=1 (set by the candidate gate and the tag
preflight) requires the heading to be the release, not Unreleased. The
Playwright spec asserts that the License page's "this Console" row renders
the embedded package version.

The v2.3.0 metadata commit itself waits until the dependency releases of #17
are executed or explicitly deferred; it is the last change to release scope.

Refs #20

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
Object-scoped requests in the object browser (detail listing, versions,
metadata, bucket versioning and locking status, share-link version
resolution) neither aborted nor invalidated older responses when the route
changed, so after navigating from object A to object B a late response for A
could replace B's state: the panel showed A's metadata while delete used the
route for B, and sharing could sign a URL for A. Version selection and row
actions in the versions navigator mixed the route-derived key with a
state-derived object as well.

Every request now carries a bucket/key/version identity through an
AbortController-backed generation guard, one guard per independent stream;
results are committed only when still current and are tagged with the bucket
and key they answer for; the detail panel and versions navigator remount on
identity change and render nothing actionable until the requested object is
resolved from the tagged listing. All actions use that validated identity:
current-object delete keeps its semantics (no version id), an explicitly
selected version deletes only that version, row actions resolve the clicked
row against the current listing, the share dialog resolves the exact version
before requesting a link and fails closed on delete markers and missing
versions, and bucket status resets and reloads on every bucket change.

Deterministic Node unit tests cover the identity rules and out-of-order
resolution; a source-scan test keeps the guard wired; a live Chromium spec
covers late responses, version transitions, row actions, history navigation
and anonymous browsing.

Closes #16

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…artifact

Packages carried only the binary, the unit and the environment file; the
container held only the binary; bare release binaries stood alone; CREDITS was
stale, listed upstream import paths without the forks that actually provide
them, and named neither the frontend runtime nor the bundled fonts; the UI
linked LICENSE, NOTICE and CREDITS on a moving main branch; and nothing told a
remote user which exact source a running Console was built from.

The three documents are now embedded in the executable (console license,
notice, credits; a root package embeds the repository files, the single
source of truth), served at /legal/LICENSE|NOTICE|CREDITS, shipped in new
tar.gz/zip bundles next to the unchanged bare binaries, installed by DEB, RPM
and APK under /usr/share/licenses and /usr/share/doc (DEB with a DEP-5
copyright file inlining the AGPL text), copied into the container image, and
attached to the GitHub release. NOTICE records the MinIO, Alevsk and Georg
Mangold provenance chain and the PGSTY-authored modification statement.

CREDITS is generated by hack/credits from the union of the Go modules linked
on every release target (crediting pgsty/mc, pgsty/silo-go and pgsty/silo-pkg
as providers of the replaced import paths with their own license and notice
files, and vendoring the texts of three modules that ship none), the
production frontend dependency closure and the Inter and Chakra Petch fonts;
the Go section is checked by make verifiers, the frontend section where
node_modules exists.

console version and pkg.GetSourceReference report the exact corresponding
source with a fixed precedence: a validated operator override, the verified
release tag, the clean standalone VCS revision, the immutable module version
an embedding server compiled in, otherwise no claim. The SPA handler injects
the result into index.html through a sentinel; the License, Login and
anonymous pages read it and link the exact source or say it is unavailable.
The container image carries the same URL as io.pgsty.silo-console.source.

hack/verify-release-artifacts.sh asserts the full matrix, file lists,
byte-identical legal files, package license metadata, the DEP-5 file, image
labels and the embedded texts; jobs.yaml runs it on a snapshot on every
change. release.yaml now builds once, pushes the image to a staging package it
first verifies to be private, verifies the draft's final assets and the
staging index, and publishes from a protected environment by copying the
verified index digest to the public tags and un-drafting the release, with
the previous latest digest recorded for rollback. The embedded web assets are
rebuilt from the current sources.

Closes #21

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The live regression for #16 failed deterministically in the Playwright
job: its share assertion used the global `#copy-path` locator, which
resolves to two elements because the share dialog reused the breadcrumb
button's id, and the serial suite deleted object B's current version
before a later test expected B in the default listing.

Give the share dialog its own `copy-share-url` id and the credential
prompt's copy buttons distinct ids (they repeated `copy-path` once per
credential in one modal), and give every mutating test (restore, delete
version, delete current) a dedicated fixture object so A and B stay
read-only and the suite passes in any order and on retry.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…nonymous peers

The Object Manager bounds every session (frame size, in-flight listings,
keepalive deadlines) but nothing bounded how many sessions one peer may
hold: 300 cookie-less handshakes held 300 sockets and their session
memory for as long as the peer wanted.

Reserve a slot before upgrading and release it when the hijacked socket
closes, so the counts are the sockets the process holds, including the
ones the keepalive deadline declares dead. Four caps apply:
CONSOLE_WS_MAX_CONNECTIONS (1024) for the process,
CONSOLE_WS_MAX_CONNECTIONS_PER_CLIENT (256) per trust-resolved client
address (IPv4 exact, IPv6 /64), and a separate anonymous budget of
CONSOLE_WS_MAX_ANONYMOUS_CONNECTIONS (64) and
CONSOLE_WS_MAX_ANONYMOUS_CONNECTIONS_PER_CLIENT (8). Anonymous
connections count against the total as well, so they can never exhaust
the budget of signed-in users. A handshake over a cap is refused before
any socket exists with 429 (the client's own cap) or 503 (process total
or anonymous budget) and Retry-After. Invalid values stop standalone
Console at start-up; the embedded path logs and keeps the defaults.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…rors

The upload transfer manager keeps module-level maps of the
XMLHttpRequest and the FormData holding the file. Only the success and
HTTP-error paths called removeTrace; the upload-stream error, onerror
and onabort paths left the request and the Blob reachable for the
lifetime of the tab, and an aborted upload never settled its promise,
so the batch summary and the post-batch reload never ran.

Route every terminal state through one idempotent finalize step that
releases the trace first and reports the outcome once, settle each
promise exactly once (cancelled uploads resolve as cancelled and are
excluded from the failure count), settle setup exceptions through the
same path, guard the failObject reducer against an unknown entry like
its siblings, and cover every path in a Node unit test. Closes #22.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…ffer

ErrorLogs.startLogs and Profile.startProfiling returned their cleanup
from a click handler, which React never runs, and the Health Info
effect created a socket and a heartbeat interval without returning
cleanup; navigating away left the sockets, the timers and the
server-side log stream, profiling run or health report alive, and the
log slice appended messages without bound.

Add a pure diagnostic socket session (open message, heartbeat, events
delivered only while open, idempotent close that detaches handlers
first) with a hook that owns one session per component and closes it on
unmount, rewire the three pages through it, reset their shared
started/in-progress flags on unmount, cap the client log buffer at the
newest 10000 entries, cover the session and the bound in Node unit
tests, and add a live browser regression that starts each diagnostic
and asserts its socket closes on client-side navigation. Closes #23.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…xpressions

accessControl.ts turned every wildcard grant into a JavaScript regular
expression by string concatenation: only the first `*` was replaced,
the pattern was unanchored, and every other character kept its regex
meaning, so a valid resource such as `bucket/foo[bar*` threw
"Unterminated character class" while rendering, `.` matched any
character, `?` was not a wildcard at all, and `data*` applied to
`mydata/`. The UI then hid allowed actions, showed actions SILO denies,
or crashed for users whose policies contain such resources.

Add a pure matcher that mirrors silo-pkg's wildcard.Match and
Resource.Match byte for byte on UTF-8 (`*` any sequence, `?` one byte,
anchored, path.Clean equality, S3 ARN prefix stripped, every other key
exact), linear in space and quadratic at worst so hostile patterns
cannot hang the page, failing closed on non-string input. The session
permission check now uses it for every wildcard grant. The unit test
carries silo-pkg's resource and wildcard vectors verbatim plus the
regex-syntax, repeated-wildcard, multi-byte and hostile cases. SILO
remains the authority for every request. Closes #24.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
Credential login wrote localStorage.userLoggedIn, the OAuth callback did
not, and the legacy API client redirected an expired 401 only when that
marker was truthy, so an expired SSO session surfaced a 401 instead of
returning to login. The generated client used a different expiry path
that lost the requested route, the Object Manager WebSocket reloaded
the page, subpath deployments stored the full document path as the
return route, and user details, user deletion and change-password
identified the current user from the marker alone.

Route every client through one invalid-session handler (401/403
"invalid session", never a login call or another 401 such as a wrong
current password): remember the router-relative route, clear the local
session state, load the login page. Validate the remembered route
(in-app path, never a full or protocol-relative URL or an auth page)
for credential login, the OAuth callback and the protected-route
redirect. Add accountAccessKey to the session response (the access key
entered at credential or STS login, empty for identity-provider
sessions) and read the current user from it; an empty identity never
matches. Point the go-swagger generator at hack/swagger-header.txt, the
previous NOTICE text, so regeneration stays byte-identical after the
NOTICE rewrite instead of stamping it into 744 generated files (the
swagger-codegen gate would have failed on the current head). Closes #25.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The live License page names "this Console" twice since the
corresponding-source row was added: once with the version chip and
once with the repository link. The spec's `.line` locator therefore
resolved to two rows and failed on the first live run. Scope it to the
row that carries a chip.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
`npm run build && ./optimize-embed.sh` for the six preceding commits
(unique copy-button ids, upload lifecycle, diagnostic socket sessions,
wildcard resource matching, unified session expiry, accountAccessKey).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
A configuration with the anonymous budget equal to the process total,
or the anonymous per-client cap equal to the per-client cap, validated,
and anonymous peers alone could then fill the shared cap and have
signed-in handshakes refused, which contradicts the promise that
anonymous exhaustion never affects signed-in users.

Reject equality (anonymous budget < total, anonymous per-client cap <
per-client cap; a single client may still hold the whole anonymous
budget), add the equality-boundary cases, and add a two-client scenario
through a trusted proxy that shows the anonymous budget is shared
across clients while a signed-in handshake from a client whose
anonymous connections are exhausted still succeeds.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
Uploads are opened and stored before the traffic monitor grants them a
slot. Cancelling one that was never sent called only xhr.abort(), and a
browser fires no abort event for a request in that state (WHATWG XHR:
the request error steps run only while a sent request is in flight), so
the lifecycle never finalized: the trace and the file stayed reachable,
the promise stayed pending, and the row stayed runnable for a later
queue turn.

Give each upload a control in the transfer manager: send() runs when a
slot is granted and settles a synchronous send failure as an error;
cancel() aborts the request and then settles the upload as aborted
itself (a second finalize after an in-flight abort event is a no-op).
The traffic monitor starts uploads and the object manager cancels
transfers through the manager, which forgets an upload as soon as it
settles. The fake request in the unit test now follows the XHR
specification (no abort event before send), and the queued-cancel,
in-flight-cancel, send-failure and post-completion cases are covered.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The generated transport rejects every non-2xx response, so the session
check attached with .then() to fulfilled responses never saw a 401 or
403: an expired session encountered by any generated endpoint followed
the component's ordinary error path instead of returning to login.

Run the invalid-session rule on both outcomes of a generated request,
preserve the original outcome for the caller, and test it against the
real HttpClient with a canned transport: 401 and 403 "invalid session"
expire and still reject, a wrong current password (401 "invalid Login")
and login-endpoint 401s keep the session, other errors and successes
pass through, and non-response rejections are rethrown unchanged.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
`npm run build && ./optimize-embed.sh` for the explicit upload
cancellation and the generated-client session check.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…path

Checking rejected generated-client responses made the unauthenticated
session probe (GET /api/v1/session answers 401 "invalid session") end
the "session" of an anonymous visitor: the browser was sent to the
login page before the public-bucket fallback could run, which the live
anonymous browsing regression caught.

Exclude the session probe like the login calls (its 401 is how the app
learns there is no session; the protected-route logic owns that answer)
and make the expiry handler decline while the app browses anonymously
(the session thunk records that state; the legacy client then falls
through to its ordinary error path and the Object Manager socket falls
back to its previous page reload). Covered by the pure rules, the real
HttpClient case and the existing live anonymous regression.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
`npm run build && ./optimize-embed.sh` for the session-probe exclusion
and the anonymous-mode gate of the expiry handler.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
…e format

The generated transport parses the error body only when a response
format is declared; the 46 void methods (removeUser and the like) and
the raw-response methods (downloadObject) reject with error = null, so
the session check, which read error.message, never fired for them: an
expired session met by such a call followed the component's ordinary
error path instead of returning to login.

For a 401/403 that is not a session probe and carries no parsed error,
read the JSON body's message from a clone of the response, so the
caller's rejection value and its body stay untouched; non-JSON and
malformed bodies are never an expiry. Tested against real generated
methods with the production wiring: removeUser and downloadObject
expire and keep their body readable, a wrong current password through
accountChangePassword keeps the session, text and broken bodies do not.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The traffic monitor started a queued upload and then unconditionally
recorded it as running. When send() threw synchronously the lifecycle
had already settled the upload and the reducer had removed it from
currentUploads; the unconditional record added it back, and the slot
stayed occupied until the page was reloaded (with maxConcurrentUploads
1, every later upload stayed queued). An upload cancelled while queued
had the same effect.

Make the control's send report whether the request is in flight, let
startQueuedUpload pass that through, and move the scheduling step into
a pure module whose start step records a slot only for an upload that
is in flight and gives a failed or vanished candidate's turn to the
next one. Covered together with a model of the slice bookkeeping.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
The two-client scenario authenticated only the client whose anonymous
count was zero, so a regression that rejected signed-in handshakes from
a client at its anonymous cap would have passed. Authenticate client A
after its anonymous cap is reached as well.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
`npm run build && ./optimize-embed.sh` for the no-format session check
and the atomic upload-start bookkeeping.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012uRoiJj6HP5nabGGCDJHWh
@Vonng
Vonng merged commit 12dee3d into main Sep 1, 2026
38 checks passed
@Vonng
Vonng deleted the migrate/silo-pkg-own-path branch September 1, 2026 11:15
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