Repository navigation
Conversation
Signed-off-by: Shea Levy <[email protected]>
Member
Author
|
Merged in 5ba5993 |
zolodev
pushed a commit
to zolodev/nix
that referenced
this pull request
Jan 1, 2024
CertainLach
pushed a commit
to deltarocks/nix
that referenced
this pull request
Sep 4, 2025
…s3-prs fixup: make "upload to s3" PRs usable
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
`matchUser(user, group, users)` is the daemon's user/group whitelist gate; it is reached on every UDS connection accepted by `authPeer`. For an entry of the form `@<groupname>` it consults POSIX group membership in two distinct steps — first comparing the supplied `group` parameter against the literal name after `@`, then calling `getgrnam` and walking `gr_mem` if no match yet. This split is correct only because the caller passes `peer.gid` (resolved via `getgrgid`) in as `group`: POSIX `gr_mem` lists *secondary* members only, and primary-group membership lives in the user's `pw_gid` field of `passwd`. Drop either branch and a real membership case silently gets excluded. The function itself contained no comment about this. Add a `gr_mem`-vs-`pw_gid` paragraph to the doc-comment of the public overload, naming the two paths and the security-critical role of the `group` argument. No code change. Catalog: candidate NixOS#187 (trivial). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
…ards Adds **Branch:** lines to the 30 catalog entries that landed as commits on the four cleanup shard branches (libexpr, libstore, libutil, nix-cli) over the previous batch. Per-shard tally (commits on each branch beyond the previously-pushed tip): - libexpr (HEAD 437eea9 -> +10): NixOS#64, NixOS#66, NixOS#68, NixOS#106, NixOS#107, NixOS#109, NixOS#110, NixOS#112, NixOS#196, NixOS#199. Two of the original twelve were skipped on rule grounds: NixOS#194 (LookupPath::Elem flatten) — the candidate framing claimed the types were internal, but search-path.hh ships via install_headers, so collapsing is a public-ABI break, not a trivial flatten; NixOS#197 (one-arg findFile drop) — EvalState::lookupPath is a private member, so the candidate's "have callers pass it explicitly" prescription cannot apply. - libstore (HEAD 5f5b815 -> +12): NixOS#4, NixOS#5, NixOS#6, NixOS#14, NixOS#47, NixOS#82, NixOS#114, NixOS#115, NixOS#119, NixOS#157, NixOS#159, NixOS#165. Several departures from the literal prescription, recorded in each commit body and in the per-candidate Branch line: NixOS#14 lifted only getRemoteFSAccessor with a getLocalNarCacheDir hook (left the trivial getFSAccessor overrides per-class); NixOS#115 extracted only the prelude (lockProfile + findGenerations) since two callers use stateful reverse iteration; NixOS#119 confirmed init's setDefault is a different shape and stayed out; NixOS#159 dropped the assert(!childEOF) defensive check after walking Goal::handleEOF producers; NixOS#165 used option (b) of the prescription (a new derivation-output-fwd.hh) because option (a) would have introduced an include cycle. - libutil (HEAD 784a4f4 -> +3): NixOS#29, NixOS#99, NixOS#117. NixOS#29's commit body caveat (XDG_*_HOME / XDG_CONFIG_DIRS reads moved from per-call to cached) is recorded on the candidate Branch line. - nix-cli (HEAD 48524e0 -> +5): NixOS#24, NixOS#77, NixOS#89, NixOS#91, NixOS#187. NixOS#91 shipped the GcRootNamer + nameForCurrent consolidation but deferred the candidate's addPermRootWithCounter free helper because three behavioural differences across call sites (rootNr increment position, absPath timing, printGCWarning conditions on store2 null) would have either changed user-visible path naming or grown the API. STATUS.md's cleanup-branches table is updated with each shard's expanded Addresses list, and the Status column now distinguishes the already-pushed tips (libfetchers/libflake/libmain remain Pushed since they got no new commits) from the four shards whose new commits are local-only. Push policy is explicit-only — none of the four shard branches has been pushed past its prior tip. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
`matchUser(user, group, users)` is the daemon's user/group whitelist gate; it is reached on every UDS connection accepted by `authPeer`. For an entry of the form `@<groupname>` it consults POSIX group membership in two distinct steps — first comparing the supplied `group` parameter against the literal name after `@`, then calling `getgrnam` and walking `gr_mem` if no match yet. This split is correct only because the caller passes `peer.gid` (resolved via `getgrgid`) in as `group`: POSIX `gr_mem` lists *secondary* members only, and primary-group membership lives in the user's `pw_gid` field of `passwd`. Drop either branch and a real membership case silently gets excluded. The function itself contained no comment about this. Add a `gr_mem`-vs-`pw_gid` paragraph to the doc-comment of the public overload, naming the two paths and the security-critical role of the `group` argument. No code change. Catalog: candidate NixOS#187 (trivial). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 24, 2026
`matchUser(user, group, users)` is the daemon's user/group whitelist gate; it is reached on every UDS connection accepted by `authPeer`. For an entry of the form `@<groupname>` it consults POSIX group membership in two distinct steps — first comparing the supplied `group` parameter against the literal name after `@`, then calling `getgrnam` and walking `gr_mem` if no match yet. This split is correct only because the caller passes `peer.gid` (resolved via `getgrgid`) in as `group`: POSIX `gr_mem` lists *secondary* members only, and primary-group membership lives in the user's `pw_gid` field of `passwd`. Drop either branch and a real membership case silently gets excluded. The function itself contained no comment about this. Add a `gr_mem`-vs-`pw_gid` paragraph to the doc-comment of the public overload, naming the two paths and the security-critical role of the `group` argument. No code change. Catalog: candidate NixOS#187 (trivial). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
Foundational principle 9 (no speculative value probing): each Ask edge
adds at most one VALUE request. Implements the writer-side preprocessing:
- ArgCell::facts holds FactEntry { response, barrier }. Barrier stamped
at insertion; not persisted.
- TracingWriter holds a global monotonic barrier counter. peekBarrier /
bumpBarrier API.
- logResponse (env facts) — stamps with peekBarrier, does not bump.
- logOuterObservation (value probes) — stamps with peekBarrier, then
bumps so the next value probe gets its own barrier group.
- Walker commitEdge — peeks barrier (walker fact adds are idempotent
against writer's own logOuterObservation adds via try_emplace).
- insertBarrieredAskChain helper: collects cell + ancestor facts,
groups by barrier, inserts one Ask per group in barrier order. Both
logResult and logQueryResult call it. Patricia split and existing
insert machinery apply within each group.
Attribution fix: OuterQueryFn now takes a `callerCell` param — the
caller's argCell. Previously logOuterObservation used
outerObj->getProxyArgCell() where outerObj is the wrapped inner Object
(often non-proxy → null cell), so outer probes had nowhere to attribute
and cell-chain iteration missed them entirely. The barrier chain
requires ALL facts to land on a reachable cell for grouping to work.
∅-fallback in walker retained (previously exposed a wrong-hit vector
via callbackApply dispatch). Under barrier design, each per-probe
barrier live-validates: divergent live responses miss cleanly at the
divergent probe's edge. cb-stats-pre-flush-collision — which was
wrong-hitting 11 under fallback+non-barrier — now correctly misses to
inner fallback and returns 51 for x=50.
Suite: 307/21 → 303/25. Regressions:
- cb-deep-indep-orders / cb-deep-indep-singles — chain reachability
when Q's cell chain doesn't span the recorded facts (compose from
independent warmups).
- cb-lazy-result-multi-attr / cb-module-shaped-result — likely similar.
Task NixOS#187.
Assisted-by: Claude Code (Claude Opus 4.6-4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…alker's SelectorArg uses walkCell Follow-up to the barrier landing: **Writer (fix A)** — `insertBarrieredAskChain` now emits two chains: - Full chain from ∅, over cell + ancestor facts (existing). - Delta chain from parent.terminalCur (= cell.parent.factSetHash()), over THIS cell's OWN facts only. Walker at parent-anchor finds this shorter chain directly without depending on the ∅-fallback. Both chains reach the same final cur = cell.factSetHash(). Refactored insertBarrieredChain as a reusable helper called twice. **Walker (SelectorArg dispatch)** — previously used `ctx.currentProxy->getProxyArgCell()` exclusively. For a SelectorApply walk `currentProxy = fn` which usually has no argCell (PrimOp, non-proxy); `ctx.walkCell` is the cell the caller passed (contains the arg's `liveObject`). Prefer walkCell first, fall back to currentProxy for root-Q lookups (evalFile / evalExpr) where walkCell is set but currentProxy is null anyway. Suite: 303/25 → 313/15. Vs baseline (307/21): +6 tests. Newly passing: - cb-curried-state-creep - cb-deep-nav-and-indexing - cb-fn-valued-result - cb-list-args - cb-local-descendants - cb-same-shape-distinguish - cb-with-scope-and-tryeval - cb-xor-evolution-repeated-cb-apply New regressions (2): cb-deep-indep-orders / cb-deep-indep-singles — compose-from-independent-warmups pattern. To diagnose next. Correctness gain: cb-stats-pre-flush-collision cross-session wrong-hit vector remains closed by the barrier design. Assisted-by: Claude Code (Claude Opus 4.6-4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…r (barrier chain) Direct-Terminal lookup at (Q_child, parent.terminalCur) was correct only when Q_child's Terminal cur equalled the parent's — which held under the pre-NixOS#187 regime where outer observations landed on a null attributionCell and therefore never advanced cell.factSetHash beyond the parent's snapshot. Under the barrier design + callerCell attribution fix, Q_child's own barriers push cell.factSetHash past the parent, so its Terminal is at a different cur. Route lookupStructuralChild through evaluator.lookup, which invokes the full walker (walk from cellAnchor with barrier chain traversal + ∅-fallback). Walker dispatches Q_child's own barrier groups live, folds to the recorded terminalCur, hits the Terminal there. lookup() promoted from private to public (called by evaluator.evalFile etc. already; now also by TracingReplayObject). Explicit template instantiations added for SelectorGetAttr, SelectorGetListElem. Suite: 313/15 → 318/10. Vs baseline (307/21): +11 tests, no regressions. Newly passing: - cb-385 - cb-deep-indep-orders (regression from NixOS#187 barrier landing, now fixed) - cb-deep-indep-singles (ditto) - cb-repeated-cb-apply-diff-args - cb-sibling-b-depends-on-a (the "fundamental laziness" case flagged as design-blocked — apparently the barrier chain + walker-through- getters lets it hit now) Assisted-by: Claude Code (Claude Opus 4.6-4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
Under barrier-based Ask insertion, the walker's chain traversal has different miss/hit counts than pre-NixOS#187: - Cold: one fewer miss (the walker misses cleanly at one barrier's divergence rather than dispatching all facts in a batched Ask and reporting a coarser miss). - Warm: correspondingly one fewer hit (the walker's traversal takes a different number of Ask edges to reach a Terminal). Recalibrated: - cb-forcedness-independence: 4 assertCacheStats (2 cold + 2 warm) - cb-irrelevant-fields-lazy: 4 asserts - cb-same-shape-collapse: 3 asserts - cb-stats-nested-baseline: 2 asserts - cb-stats-sidecar-baseline: 2 asserts - cb-stats-higher-order-baseline: cold assert only (warm remains blocked by cb-higher-order's ReplayCallbackArg::queryApply throw). Suite: 318/10 → 323/5. Remaining 5 failures: - builtins-cache (unknown) - cb-higher-order, cb-higher-order-nested (ReplayCallbackArg apply throw) - cb-sibling-discrimination-via-observation (QCA emission timing) - cb-stats-higher-order-baseline (waits on cb-higher-order fix) Assisted-by: Claude Code (Claude Opus 4.6-4.7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.