Repository navigation
Conversation
Member
|
Applied, with fix for the "added added". |
zolodev
pushed a commit
to zolodev/nix
that referenced
this pull request
Jan 1, 2024
zolodev
pushed a commit
to zolodev/nix
that referenced
this pull request
Jan 1, 2024
Clarify explanations on cross compilation
CertainLach
pushed a commit
to deltarocks/nix
that referenced
this pull request
Oct 14, 2025
exportReferencesGraph: Handle heterogeneous arrays
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
…ixOS#221) The two file-static templates introduced by NixOS#85 in `libstore/globals.cc` (`parseStoreReferenceCollection<C>` / `renderStoreReferenceCollection<C>`) were libstore-private but described a libutil-shaped pattern: tokenize on whitespace, apply a per-token parser, push/insert each result, and the symmetric render. Lift them into the shipped `configuration.hh` header next to `BaseSetting` so future external `BaseSetting<C<T>>` specialisations can reuse the helper. The lifted helpers take the per-token parser/formatter as arguments, making them genuinely generic: - `parseSettingTokens<C>(str, parser)` -- selects between `push_back` and `insert` via a `requires`-expression so the same template covers `std::vector<T>` and `std::set<T>`. - `renderSettingTokens(value, render)` -- iterates and joins with single spaces. Migrate `BaseSetting<std::vector<StoreReference>>` and `BaseSetting<std::set<StoreReference>>` in `globals.cc` to the new helpers, removing the file-static `parseStoreReferenceCollection` / `renderStoreReferenceCollection` templates. Scope notes (from the candidate body): the existing libutil specialisations for `Strings`, `StringSet`, `list<path>`, `set<path>`, and `set<ExperimentalFeature>` are not migrated. The first two are already one-liners over `tokenizeString<C>` (nothing to factor); the path-typed ones save one line each and the indirection through a lambda costs more than it saves; the `ExperimentalFeature` specialisation has irreducible per-token warn-on-unknown semantics that don't fit the helper's shape. Refs candidate NixOS#221. 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
…amends Two new candidates filed during Pass B reuse review when the catalog gaps surfaced in the course of landing NixOS#79 and NixOS#85: - NixOS#220 (libexpr-extras): prim_path shares the iterateFetcherAttrs name-handler-table shape used by the fetcher primops. Landed on vibe-coding/cleanup/libexpr; the helper was renamed iterateFetcherAttrs → iterateNamedAttrs and the header fetcher-attr-iter.hh → named-attr-iter.hh to drop the fetcher-flavoured name. - NixOS#221 (libutil-libstore-core-extras): BaseSetting<container<T>> parse/to_string/appendOrSet is hand-rolled across six specialisations. Landed on vibe-coding/cleanup/libstore by lifting parseStoreReferenceCollection / renderStoreReferenceCollection into shipped configuration.hh as parseSettingTokens / renderSettingTokens. Per-T scope notes recorded in the candidate body: only the StoreReference pair migrates; Strings/StringSet are already one-liners over tokenizeString; list/set<path> save one line each (not worth the indirection); set<ExperimentalFeature> has irreducible warn-on-unknown semantics. The Pass-B follow-ups also amended: - NixOS#51 (libfetchers): unwrap single-field RefInfo struct to Hash; bundles the RefInfo deletion into the same delete-and-trim commit since the trim made it single-field. - NixOS#67 (libexpr): transpose primNumeric's 4×4 string-context ladders into a single per-Op NumOpDiag struct so the asymmetric "first of the multiplication" wording is visible at a glance. - NixOS#37, NixOS#163 (libutil): docstring polish (lifetime contract, intentionally-not-migrated note, PipeOptions class doc rewrite). - NixOS#100 (libstore): template forEachConfiguredSigner's printer to drop fun<> type erasure. - NixOS#135 (libstore): bundle AutoUserLock::acquire's startId/uidCount into a UidRange struct. - NixOS#74 (nix-cli): template runWholeStoreGC's printer to match runNarDump style. INVENTORY.md catalog total updated 219+44 → 221+44. 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
…xOS#221 + final adversarial pass Extends the most-recent batch entry with: - Six Pass-B follow-up amends (categorised after the user asked which findings were caused by our changes versus pre-existing in source): libfetchers NixOS#51 RefInfo unwrap, libexpr NixOS#67 NumOpDiag transpose, libutil NixOS#37/NixOS#163 docstring polish, libstore NixOS#100 template, libstore NixOS#135 UidRange struct, nix-cli NixOS#74 template. - Two new candidates filed and landed: NixOS#220 (libexpr, iterateFetcherAttrs → iterateNamedAttrs renamed and extended to prim_path) and NixOS#221 (libstore → libutil, parseSettingTokens / renderSettingTokens lifted into shipped configuration.hh). - Final adversarial review pass over those eight changes: libfetchers/libstore/nix-cli clean; libutil one minor (std::map::insert invalidation overclaim in fso::descendPath docstring, fixed); libexpr two minor (NixOS#220 commit body said "six-way" but pre-batch had only five attrs; ANSI coloring drift on the primop name now passing through %s coloring, acknowledged in commit body). Final tip SHAs updated: libexpr 04f4a67fd, libfetchers 5df2ffc93, libflake 02b9065c4, libstore 52963ff79, libutil 3e1bc0186, nix-cli 6692dfa88. All six branches still Local-only past their pushed tips; push policy is explicit-only. 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
…p amends Three new catalog candidates filed during the post-audit follow-up sweep: - NixOS#222 (libmain → 11-legacy-cli.md): --max-freed parses as int64_t then std::max-clamps before assigning to uint64_t. Implemented on vibe-coding/cleanup/libmain: both call sites switched to getIntArg<uint64_t> with the clamp dropped. User-visible behaviour change: --max-freed -1 now errors at parse time instead of silently disabling, and N above int64_t::max() is now honoured up to uint64_t::max(). - NixOS#223 (libmain → 11-legacy-cli.md): getIntArg<N> is now a 5-line wrapper; inlining at the two call sites would let it be deleted from shared.hh. Filed but NOT implemented — the inline form is 3 lines per site vs 1 line currently, and the candidate body itself notes "stylistic regression, not behavioural". - NixOS#224 (libutil → 12-libutil-libstore-core-extras.md): NarIndexer::createMember computes path depth via `for (auto _ : path) (void) _; ++level;` instead of any idiomatic accessor. Filed but NOT implemented — the cleaner factor is to add `CanonPath::numSegments()` first; deferred to a future libutil batch where canon-path.hh is already being touched. Plus four code/doc follow-up amends folded into existing commits: - libexpr NixOS#214 (eval.hh): added "// Only instantiated in eval.cc" note above the mkFailedFromCurrentException declaration to prevent future contributors from adding cross-TU callers that would link-fail. - libstore NixOS#135 (unix/user-lock.cc): nested UidRange inside AutoUserLock since it is the only user; eliminates a file-scope type for a struct used by exactly one method. - libstore NixOS#221 (configuration.hh): expanded the parseSettingTokens docstring to document why the libutil specialisations (Strings/StringSet/list<path>/set<path>/set<ExperimentalFeature>) were intentionally not migrated, so future readers don't try to "finish the job". - libutil NixOS#163 (file-descriptor.hh): added a "calling-style note" to the PipeOptions docstring documenting that pipe.create({}) is intentionally NOT recommended due to the latent ambiguity with the existing arity-asymmetric overload's default arg. INVENTORY.md catalog total updated 221+44 → 224+44. 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
…ild-dir reconfigure After the post-audit follow-up sweep landed: - NixOS#222 implemented on libmain (a7bb49f): --max-freed parses as uint64_t directly, std::max clamp dropped. - NixOS#223 filed but not implemented (inline tradeoff documented). - NixOS#224 filed but not implemented (depends on a CanonPath accessor that hasn't been added). - Four code/doc amends folded into existing commits: libexpr NixOS#214 instantiation note, libstore NixOS#135 UidRange nested in AutoUserLock, libstore NixOS#221 doxygen scope expansion, libutil NixOS#163 PipeOptions ambiguity note. - Plus a load-bearing protocol fix: libmain build dir was misconfigured against master source per the worktree-source- drift gotcha in HANDOFF.md; reconfigured against the worktree so all subsequent builds compile the actual cleanup tree. Final tip SHAs: libexpr c9401c3, libfetchers dc5dc00, libflake fd75c93, libmain a7bb49f, libstore e565149, libutil e3f2287, nix-cli ef32368. All seven branches Local-only past their pushed tips; push policy explicit-only. 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
Post-Batch-G bidirectional audit caught one phantom claim in the cleanup-branches table: NixOS#221 was listed under the libutil row, but the actual commit (`ae7167e8c` "libutil/configuration: lift parseSettingTokens / renderSettingTokens (NixOS#221)") lives on the libstore branch. The candidate edits a shipped libutil header but the commit landed on libstore because the consumer it unblocks is libstore's globals.cc. Move NixOS#221 from the libutil row to the libstore row, with a cross-shard note on each side so future readers can find it from either entry point. Tip SHAs unchanged on both branches. Audit also re-verified: zero orphan commits on any of the seven cleanup branches; all four Batch-G items landed and verified against source code (libutil NixOS#163 commit absent, libstore log-fd rl-next file present and matches `Setting<Descriptor>` declaration, libmain getIntArg rl-next file present and matches the 3-arg signature, NixOS#97 Branch line carries both latent-bug-fix bullets); both new rl-next entries semantically match the actual code on their branches; FOLLOWUPS.md Batch-G strikethroughs all reference real SHAs / file paths. 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
A bidirectional traceability audit run after Batch G's commit landed surfaced two more items beyond the NixOS#221 re-shelving (already committed). Both addressed in this round. 1. Missing rl-next entry for BaseSetting<T>::overrideIfSet. Commit aa00e07 on libstore added a new public member function on a shipped libutil header (configuration.hh). Purely additive — no out-of-tree breakage — but the disclosure standard applied to other shipped-header changes in this batch (libmain getIntArg break, libstore log-fd shape change) calls for an rl-next entry on any public-API surface change. Added baseSetting-overrideIfSet.md on cleanup-libstore; new libstore tip b9a750f. nix build green. 2. Stylistic non-canonical commit-body form on three libutil commits. Bodies on 4212ac8 (NixOS#29), 7bfd6d1 (NixOS#99), and fe96867 (NixOS#117) used "Candidate #NN in doc/inventory/ candidates/." instead of the canonical "Refs candidate #NN." Reworded via non-interactive git rebase -i master with sed-based GIT_SEQUENCE_EDITOR + GIT_EDITOR. Metadata only; trees identical. New libutil tip da1e0d7. clang-tidy and nix build green post-rebase (5 known pre-existing master errors only). STATUS.md cleanup-branches table updated with new tips and notes; the libstore row now records NixOS#119's overrideIfSet helper extraction; the libutil row records the reword and the dropped-NixOS#163 caveat. FOLLOWUPS.md adds a "Batch G follow-ups (post-audit)" subsection with both items struck. 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
…ixOS#221) The two file-static templates introduced by NixOS#85 in `libstore/globals.cc` (`parseStoreReferenceCollection<C>` / `renderStoreReferenceCollection<C>`) were libstore-private but described a libutil-shaped pattern: tokenize on whitespace, apply a per-token parser, push/insert each result, and the symmetric render. Lift them into the shipped `configuration.hh` header next to `BaseSetting` so future external `BaseSetting<C<T>>` specialisations can reuse the helper. The lifted helpers take the per-token parser/formatter as arguments, making them genuinely generic: - `parseSettingTokens<C>(str, parser)` -- selects between `push_back` and `insert` via a `requires`-expression so the same template covers `std::vector<T>` and `std::set<T>`. - `renderSettingTokens(value, render)` -- iterates and joins with single spaces. Migrate `BaseSetting<std::vector<StoreReference>>` and `BaseSetting<std::set<StoreReference>>` in `globals.cc` to the new helpers, removing the file-static `parseStoreReferenceCollection` / `renderStoreReferenceCollection` templates. Scope notes (from the candidate body): the existing libutil specialisations for `Strings`, `StringSet`, `list<path>`, `set<path>`, and `set<ExperimentalFeature>` are not migrated. The first two are already one-liners over `tokenizeString<C>` (nothing to factor); the path-typed ones save one line each and the indirection through a lambda costs more than it saves; the `ExperimentalFeature` specialisation has irreducible per-token warn-on-unknown semantics that don't fit the helper's shape. Refs candidate NixOS#221. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 25, 2026
The two file-static templates introduced by NixOS#85 in libstore/globals.cc (parseStoreReferenceCollection<C> / renderStoreReferenceCollection<C>) were libstore-private but described a libutil-shaped pattern: tokenize on whitespace, apply a per-token parser, push/insert each result, and the symmetric render. Lift them into the shipped configuration.hh header next to BaseSetting so future external BaseSetting<C<T>> specialisations can reuse the helper. The lifted helpers take the per-token parser/formatter as arguments, making them genuinely generic: - parseSettingTokens<C>(str, parser) -- selects between push_back and insert via a requires-expression so the same helper works for vector<T>, list<T>, set<T>, and similar. - renderSettingTokens<C>(c, formatter) -- iterates and joins on whitespace. Pure libutil header addition; consumers across libstore will adopt it as their BaseSetting<C<T>> specialisations are revisited (the original libstore globals.cc consumer is the canonical example and lives on a separate libstore commit once libutil lands upstream). This commit was previously bundled with the libstore consumer migration on the libstore cleanup branch (`ae7167e8c`); that commit was dropped during the May 2026 cross-shard cleanup so this branch could land independently. The downstream consumer re-migration is filed as a queued candidate. Refs candidate NixOS#221. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 25, 2026
…ixOS#240 User-mandated removal of two cross-shard violations on the libstore cleanup branch. Both commits combined a libutil header addition with a libstore consumer migration in a single commit, which would have prevented the two branches from landing independently upstream. The audit also turned up a third commit (the rl-next entry for NixOS#119) that lived on libstore but should follow the API change to libutil. Three commits dropped from cleanup-libstore via non-interactive rebase: - aa00e07 — NixOS#119 BaseSetting<T>::overrideIfSet header + HttpBinaryCacheStore consumer - ae7167e — NixOS#221 parseSettingTokens / renderSettingTokens header lift + globals.cc consumer - b9a750f — NixOS#119 rl-next entry The libutil header halves were replayed as two single-shard commits on cleanup-libutil (f2ead5163 and 1ac18fe9a) plus the rl-next entry (fdb46ab33). The libstore consumer halves were dropped outright and re-filed here as queued candidates: NixOS#239 — HttpBinaryCacheStore::makeRequest should adopt BaseSetting<T>::overrideIfSet once NixOS#119's libutil API lands upstream. Trivial; blocked-on-merge. NixOS#240 — libstore/globals.cc's parseStoreReferenceCollection / renderStoreReferenceCollection should adopt the lifted libutil helpers once NixOS#221's libutil API lands upstream. Trivial; blocked-on-merge. Same shape as the existing Batch-E cross-shard extensions (NixOS#167, NixOS#124). STATUS.md cleanup-branches table: - libstore row: removed NixOS#119/NixOS#221 cross-shard claims; added a Cross-shard cleanup paragraph documenting what was dropped and where the consumer halves are tracked. Tip now ec50b5b (was b9a750f). - libutil row: added NixOS#119/NixOS#221 (header-only halves) to the candidates list; added a Cross-shard cleanup note. Tip now fdb46ab33 (was da1e0d7). Catalog count bumped from 238+44 to 240+44. `nix build -L .` post-rebase green on both branches. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 25, 2026
After the May 2026 cross-shard cleanup dropped 3 commits from the libstore cleanup branch, several existing pieces of doc prose still described those commits as if they were live. Walk the remaining references and add post-cleanup-correction notes or supersession markers so future readers see the actual ship-state, not the original framing. Updated: - Candidate NixOS#119 (13-libexpr-extras.md) Branch line: claimed 'vibe-coding/cleanup/libstore' as the host shard; now reads 'vibe-coding/cleanup/libutil (header-only half)' with a cross-shard cleanup correction explaining the consumer migration is filed as queued NixOS#239. - Candidate NixOS#221 (12-libutil-libstore-core-extras.md) Branch line: same shape — was 'cleanup/libstore', now reads 'cleanup/libutil (header-only half)' with the consumer migration filed as queued NixOS#240. - STATUS.md "Post-Batch-G audit follow-up" paragraph: the paragraph still claimed `NixOS#221` was 're-shelved with cross-shard notes' and that the `BaseSetting<T>::overrideIfSet` rl-next was committed as `b9a750f00` on libstore. Both claims are superseded; added 'superseded by cross-shard cleanup' markers inline plus a closing parenthetical noting the tip SHAs in that paragraph are stale. - FOLLOWUPS.md Batch-G follow-ups: the two strikethroughs describing the NixOS#221 re-shelving and the NixOS#119 rl-next addition on libstore both gained 'Post-cleanup correction (May 2026)' paragraphs naming the dropped SHAs and the replay locations on the libutil branch (`f2ead5163`, `1ac18fe9a`, `fdb46ab33`). Net effect: every remaining mention of `aa00e072e` / `ae7167e8c` / `b9a750f00` is now in historical context (clearly labeled 'former commit', 'was', 'dropped', or 'superseded') and points the reader at the current location of the work. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 25, 2026
…de-off + STATUS Adversarial review of the Batch H code + the cross-shard cleanup caught one real bug (NixOS#234 thread-safety, fixed on libstore branch in commit 689effee2) and several documentation gaps. This commit records the documentation fixes. Six shipped candidates were missing **Branch:** lines in their catalog bodies, leaving a reader of the candidate body unable to find where each shipped: NixOS#183 → 18-daemon-protocol-audit.md (libstore) NixOS#226 → 12-libutil-libstore-core-extras.md (libutil) NixOS#230 → 03-repeated-boilerplate.md (libfetchers) NixOS#231 → 11-legacy-cli.md (nix-cli) NixOS#234 → 12-libutil-libstore-core-extras.md (libstore) NixOS#235 → 11-legacy-cli.md (nix-cli) Each Branch line now describes what landed and where, with the specific implementation choices that diverge from the candidate's original sketch (e.g., NixOS#235's call-site-only fix versus the candidate's GcRootNamer-coupling proposal; NixOS#234's std::unique_ptr values for pointer-stability instead of holding the lock through the signing call). NixOS#119 and NixOS#221's Branch lines (already correctly pointing at the libutil branch post-cross-shard cleanup) gained an explicit trade-off discussion. The libutil header halves of both candidates currently have zero in-tree consumers (waiting on queued NixOS#239/NixOS#240 to land after libutil merges upstream). Structurally similar to the libutil NixOS#163 revert, but differentiated by: (a) the consumers are filed and tracked, not hypothetical; (b) the original implementation was bundled and shipped before the cross-shard cleanup split it; (c) the gap is bounded by upstream merge ordering. Decision recorded: accept the trade-off, ship the libutil header now, land NixOS#239/NixOS#240 immediately after libutil merges. Re-evaluate if libutil fails to merge upstream within the catalog work's expected lifetime. A minor information-loss regression in NixOS#230 was caught and fixed: the GitLab `// FIXME: get username somewhere` comment was attached to the inline `clone()` body in the original GitLabInputScheme, and got dropped when `clone()` was hoisted to the base class. Restored as a class-level comment on GitLabInputScheme so future readers see the GitLab-specific concern about clone URLs needing a username for some HTTPS-clone setups. Amended in libfetchers commit 572e8fd (was 12a17bb65). STATUS.md updated: - libstore tip moves from 80fd74bca to 689effee2 (NixOS#234 amend) - libfetchers tip moves from 12a17bb65 to 572e8fd (NixOS#230 amend) - libstore row NixOS#234 description tightened to mention pointer- stability via std::unique_ptr - libfetchers row NixOS#230 description mentions the FIXME preservation - New "Post-batch-H adversarial review" recently-completed entry summarising the bug fix + doc-gap closures + trade-off note Other five cleanup branches unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 25, 2026
…rd cascade Pass-3 adversarial review caught a second-order-staleness pattern: the Pass-2 NixOS#224 commit-message reword was a `git rebase -i master` with `reword`, which rewrote the metadata of NixOS#224 and every commit past it on the libutil branch. Five SHAs bumped in lockstep, including the libutil halves of NixOS#119 and NixOS#221 plus the NixOS#119 rl-next entry that the cross-shard cleanup placed there: f2ead5163 → 2bc3e21 (NixOS#119 libutil API) 1ac18fe9a → 3f89387 (NixOS#221 libutil API) fdb46ab33 → 3b6cdf3 (NixOS#119 libutil rl-next) da1e0d7 → 5bc4271 (NixOS#224 commit itself) 190b08372 → 834a526 (NixOS#226 commit, the prior libutil tip) The Pass-2 fixes had cited the *pre-reword-cascade* SHAs in six places, leaving them dangling-in-the-object-store with no branch reachability. Refreshed: candidates/12-libutil-libstore-core-extras.md:87 (NixOS#239 body): f2ead5163 → 2bc3e21 candidates/12-libutil-libstore-core-extras.md:89 (NixOS#239 validation): f2ead5163 / 1ac18fe9a → 2bc3e21 / 3f89387 candidates/12-libutil-libstore-core-extras.md:91 (NixOS#240 body): 1ac18fe9a → 3f89387 FOLLOWUPS.md (NixOS#221 phantom-claim post-cleanup correction): 1ac18fe9a → 3f89387 FOLLOWUPS.md (NixOS#119 missing-rl-next post-cleanup correction): fdb46ab33 / f2ead5163 → 3b6cdf3 / 2bc3e21 Each refreshed citation also gained a forward-looking note that the SHAs may move again before the libutil branch merges upstream — history rewrites of catalog-tracked branches need to remember to re-grep the catalog for stale SHAs. NixOS#234 Branch line: documented pointer-stability via std::unique_ptr but not the snapshot-iterate discipline that Pass-2 added (the `auto secretKeyFiles = settings.secretKeyFiles.get();` local copy that protects iteration against ClientSettings::apply mid-session mutation). Branch line now describes both safety properties. STATUS.md narrative refresh: the Pass-2 entry's own self-description ("NixOS#239 added the libutil SHA citation `f2ead5163`") was tightened to "NixOS#239 / NixOS#240 gained their libutil SHA citations for parity" plus a forward pointer to the Pass-3 entry. Pass-3 entry added above Pass-2 in the chronological log. No code changes this round. Tip SHAs unchanged: libstore 6022c29, libutil 834a526, others unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 29, 2026
…, churn fixes, foundation backlog Records the 2026-05-29 per-commit value/churn review (116 commits across 7 branches): 87 substantive / 19 marginal / 4 churn / 3 concern, verdict substantively valuable. - NixOS#133 (15-globals-settings.md): reframed VALID -> resolved-by-design. The prescribed registerPrimOp relocation is unachievable (getFlake captures flake::Settings& and the relocation site has no live instance). The earlier rename to populateExtraPrimOps was a public- header source-compat break with no payoff; reverted to configureEvalSettings, docstring kept. Branch line rewritten. - NixOS#239 (12-...): recorded the keep decision for the NixOS#119/NixOS#221 libutil header-only commits — flagged churn-on-branch but kept because the consumers are filed/tracked, vs the reverted NixOS#163 which had none. - Current tip SHAs + cleanup-branch table: refreshed for the value pass (libflake ff9daab, libexpr b9095c5, libmain 998a763, nix-cli 2cbb7af), with a force-push caveat on the three rewritten branches. - STATUS Recently-completed: added the value-review event + the remaining-work inventory (~36 single-shard-actionable foundation candidates; not down to only cross-shard work). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…w parse at callsites Route the DB-layer atom accessors through typed variants: TracingDecisionGraph gets getRequest(hash) -> optional<trace::Request> and getResult(hash) -> optional<trace::ResultVariant>, each caching the parsed form per-hash. Callers that used getRequestPayload+cborStringToJson+decodeRequest collapse to a single getRequest call. The reader-side wins: - walker's dispatch lambda: std::visit over the Request variant for isQueryRequest / description / willMoveStateHash; the parsed-once form flows into computeLiveResponse directly. - computeLiveResponse: overloaded lambda over (FileReadRequest, GetEnvRequest, OuterValueRequest) instead of tag-peeking a raw JSON blob and unwrapping the OVR envelope by hand. - tryStateCreepCanonicalise: single call, no manual cborStringToJson + decodeRequest. Wire-shape adjustment: FileReadRequest / GetEnvRequest now emit a `tag` alongside their existing fields, registered via NIX_SELECTOR_STR_SERDE. Needed so all three Request alternatives dispatch through the same fromJsonByTag pattern OuterValueRequest already uses. Adds one field to env-fact payloads; env-fact readers still work (parseTraceEntry reads absPath/name directly), and canonical serialisation stays deterministic. Storage layer unchanged: CBOR bytes at rest, per-hash cache in the DG, canonical serialisation on the writer. Selectors continue through SelectorPool (unchanged). Suite steady: 325/3/7. Assisted-by: Claude Code (Claude Opus 4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…lyRequest to typed getters Callers of the raw getResultPayload / getRequestPayload accessors that followed the same pattern (fetch bytes → cborStringToJson → get<T>()) now go through the typed accessors directly: - lookupResult / whnf() in tracing-replay-object.cc: getResult() + std::get_if<R> — replaces the parse-and-cast pair. - isApplyRequest: getRequest() + std::holds_alternative<SelectorApply> on the OuterValueRequest's query; matches the vocab's "value probe through OVR" shape rather than tag-string comparison. Raw accessors stay public — the walker's WalkResult still passes CBOR bytes through as an intermediate, and the DB unit tests exercise raw insert/get round-trip. Neither is a repeat-parse consumer. Suite steady: 325/3/7. Assisted-by: Claude Code (Claude Opus 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.