Title: impl(id): build-time defaults.json — typed parse, pair-atomic cascade, provenance (#5916 follow-on) · Issue #10345 · developing-today/code · GitHub
Open Graph Title: impl(id): build-time defaults.json — typed parse, pair-atomic cascade, provenance (#5916 follow-on) · Issue #10345 · developing-today/code
X Title: impl(id): build-time defaults.json — typed parse, pair-atomic cascade, provenance (#5916 follow-on) · Issue #10345 · developing-today/code
Description: Implementation follow-on of the #5916 design pass. The design record (doc/2026-11-14T19-05-00Z_design_id_build_defaults) settles all six questions; this issue is its §8 brief. Scope Replace pkgs/id/crates/id-core/src/defaults.conf + hand...
Open Graph Description: Implementation follow-on of the #5916 design pass. The design record (doc/2026-11-14T19-05-00Z_design_id_build_defaults) settles all six questions; this issue is its §8 brief. Scope Replace pkgs/id...
X Description: Implementation follow-on of the #5916 design pass. The design record (doc/2026-11-14T19-05-00Z_design_id_build_defaults) settles all six questions; this issue is its §8 brief. Scope Replace pkgs/id...
Opengraph URL: https://github.com/developing-today/code/issues/10345
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"impl(id): build-time defaults.json — typed parse, pair-atomic cascade, provenance (#5916 follow-on)","articleBody":"Implementation follow-on of the #5916 design pass. The design record (doc/2026-11-14T19-05-00Z_design_id_build_defaults) settles all six questions; this issue is its §8 brief.\n\n## Scope\n1. Replace `pkgs/id/crates/id-core/src/defaults.conf` + hand parser with `defaults.json` + typed serde parse (`deny_unknown_fields`); `Defaults` gains `relay`, `gossip`, `mode`; field-compatible otherwise.\n2. Pair-atomic resolution in `resolve_config` per design §5 (one layer supplies the whole topic/secret pair; a single-half layer is an error naming layer + missing half) — closes audit defects D1 (mixed pair in the default path) and D2 (`--replace-defaults` leaking to consts).\n3. Remove the runtime `--replace-defaults` flag (build-time `\"mode\"` in the file replaces it); keep `--no-default-bootstrap` / `--no-default-topic`.\n4. Wire `relay` (RelayPolicy selector) and `gossip` build defaults; launch flags override.\n5. Provenance: SHA-256 of the embedded file at first parse; serve startup log + version surface report `defaults: file sha256=… mode=…` or `defaults: consts`.\n6. Tests: equivalence flag-matrix (empty file ≡ const build; const-valued file ≡ const build); replace-mode missing-half error; file-layer single-half pair error (D1 regression); unknown-field rejection; checked-in defaults.json parses.\n\n## Acceptance\nA binary built with a custom defaults.json reports its provenance, resolves the topic/secret pair atomically from one layer, and a `{}` build is indistinguishable from the const build across the serve-flag matrix.\n\nDesign: doc/2026-11-14T19-05-00Z_design_id_build_defaults (PR for #5916). Parent: #5916. Relates #4756.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-14T18:50:10Z","url":"https://github.com/developing-today/code/issues/10345"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d5eb4daf-fd59-06fb-bd3e-6666e12dd5bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3C4:12B33:30FB68:400104:6B0616A6 |
| html-safe-nonce | 9958b1c0a031aefbbf6cf9bc1c08f0b818d6570033904065c41c9e85d8123828 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0M0OjEyQjMzOjMwRkI2ODo0MDAxMDQ6NkIwNjE2QTYiLCJ2aXNpdG9yX2lkIjoiNDg0OTEzNTcwOTU0Mzg2Mzk3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 39717cb91d27c273d64d264c2bd63da88d31b265e0ee4f6d865707e22846a379 |
| hovercard-subject-tag | issue:6394535770 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/10345/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a82a5ccf038c2d0c97ad98befd1ccf3ad954be95b24d67559dec456c82987b15/developing-today/code/issues/10345 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a82a5ccf038c2d0c97ad98befd1ccf3ad954be95b24d67559dec456c82987b15/developing-today/code/issues/10345 |
| og:image:alt | Implementation follow-on of the #5916 design pass. The design record (doc/2026-11-14T19-05-00Z_design_id_build_defaults) settles all six questions; this issue is its §8 brief. Scope Replace pkgs/id... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width