knowledge: 6 pages — toolchain sysroot, tool diagnostics, differential testing, suite artifacts, unenforced declarations, client rate limiting - #34
Open
choiyounggi wants to merge 1 commit into
Conversation
10 candidates (4 queued + 6 session-derived). New pages: platforms/toolchains/compiler-sysroot-on-macos, platforms/processes/tool-diagnostics-without-a-failing-exit-code, testing/strategy/differential-testing, testing/data/artifact-leakage-from-a-suite, backend/common/api-design/unenforced-declarations, backend/common/integrations/client-side-rate-limiting. Revised testing/quality/spec-artifact-checks (code constant as canonical for a doc table). Dropped 2 candidates already covered by spec-artifact-checks and harness-reverse-controls.
This was referenced Aug 5, 2026
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.
See
.dev-loop/INGEST_REPORT.mdin this branch for the full report. Summary below.Knowledge flush — 10 candidate(s) → 6 new pages, 1 revise, 2 dropped
10 candidates entered the pipeline: 4 drained from
~/.dev-loop/queue/*.jsonl, and 6 derived in-session from work on an LLM-native compiler/runtime platform. Two of them covered the same case and were merged into one page. Project-specific names were generalized out of every page body.Verified best-practice
1. A non-Xcode compiler resolving the macOS SDK →
confidence: verifiedClaim. On macOS a compiler installed outside Xcode selects no default sysroot; supply it with
-isysroot "$(xcrun --show-sdk-path)"when you own the command line,SDKROOTwhen you only own the environment, andCPATH/LIBRARY_PATHwhen the driver still resolves the wrong root.Checked.
'stdio.h' file not foundandld: library 'System' not found, and that the documented workaround isexport SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"or passing-isysroot.SDKROOTwhen linking Homebrew/homebrew-core#197277 — corrected the candidate. The queued insight named-isysrootas the single fix. This upstream issue states Homebrew clang "always passes the same value told's-syslibroot" — the SDK it was built with — and ignoresSDKROOT/-isysrootfor the link step. The page therefore splits compile-time from link-time and routes the link case toLIBRARY_PATH/-Linstead of presenting one flag as the answer.SDKROOTis honored as the defaultisysroot, with an explicit-isysroottaking precedence.clang probe.cproducedwarning: no such sysroot directory: '…/CommandLineTools/SDKs/MacOSX26.sdk' [-Wmissing-sysroot]thenfatal error: 'stdio.h' file not found; the same command with-isysroot "$(xcrun --show-sdk-path)"compiled and linked.2. Feeding a tool's warnings back when it exits 0 →
confidence: verifiedClaim. Warnings are non-failures, so a wrapper branching only on the exit code loses them; capture the diagnostic stream with
2>&1 >/dev/null— in that order — or promote warnings with the tool's own switch.Checked.
-Werror.warning:lines, rc=0 with empty stderr, and rc=2 with an error — three outcomes distinguishable only by reading both the code and the stream.3. Differential testing of two implementations →
confidence: verifiedClaim. When two paths implement one spec, fix which observable classes must agree and which the contract permits to differ before writing the comparison, and compare only the former.
Checked.
4. Artifact leakage from a suite →
confidence: verifiedClaim. Diagnose by counting leftovers per name prefix and matching the distribution to call sites; fix with the runner's owned-temp API; then enforce the convention with a static rule, watching it fail first.
Checked.
tmp_pathplustmp_path_retention_count/tmp_path_retention_policy. This refined the candidate: "keep nothing" is wrong when failures need inspecting, so the page routes that case to a retention policy the runner owns.mkdtempcall sites with no cleanup; post-fix full-suite delta 0, scratch area 72M → 3.3M.5. Accepting a declaration the system does not enforce →
confidence: verifiedClaim. Split "unrecognized" from "recognized but unenforced" and diagnose each; resolve declarations by closed-table lookup rather than inference; expose strictness as a caller-selected level.
Checked.
?fieldValidation=:Strict("erroring on unknown fields"),Warn(returned as warnings in response headers),Ignore.additionalPropertiesis the schema-level strictness control, an explicit decision rather than a parser default.6. Client-side rate limiting →
confidence: field-testedClaim. Throttle at the transport layer every request passes; count auth/token issuance; stamp the clock immediately before the send; give the process's first call a defined starting state; prefer the provider's headers to a modelled window.
Checked.
GET /rate_limit"does not count against your primary rate limit"), so exemption is a named property rather than a default for meta requests./oauth2/v1/keys,/.well-known/*) are listed as exempt, while/oauth2/v1/authorizeis given as rate limited. This supports "a token endpoint is normally not exempt" by absence from an exemption list, which is weaker than a positive statement — hencefield-tested, notverified.Retry-After.7. Doc table that is a projection of a code constant → merged,
verifiedClaim. When a document restates a code constant, declare the code canonical in the document and assert the document against the imported constant.
Checked. No external source asserts this as a named practice. It is supported by the host page's already-cited premise (JSON Schema
requiredvsenum; ESLintRuleTestermust-fail inputs) plus a dated field observation. It was merged into an already-verifiedpage rather than published as a new page on a thin source list.No candidate was upgraded to
verifiedwithout a citation or a reproduction. The two dropped candidates were dropped as duplicates, not for lack of evidence.Existing-layer check
Routed via
INDEX.md, then read each domain index and every page whose "load when" line overlapped.Pages read:
testing/index.md,testing/quality/harness-reverse-controls.md,testing/quality/spec-artifact-checks.md,testing/quality/behavior-not-implementation.md,testing/data/test-data-and-isolation.md,platforms/index.md,platforms/processes/non-interactive-cli-invocation.md,platforms/toolchains/version-management.md,backend/index.md,backend/common/reliability/timeouts-and-retries.md,backend/common/integrations/externally-owned-defaults.md,infrastructure/config/environment-config.md,security/input/validation-at-trust-boundaries.md.testing/quality/spec-artifact-checksedge case "The artifact is generated rather than hand-written";behavior-not-implementation#4testing/quality/harness-reverse-controlsdirectives 1 and 4 — directive 4 already prescribes copying "the whole repository rather than the directory under test", the candidate's exact failuretesting/quality/spec-artifact-checks— same frame, and an adjacent edge case covers a canonical set living in another documentlast_verifiedbumped,relatedextendedtesting/data/test-data-and-isolationrow "Filesystem / temp files"platforms/processes/non-interactive-cli-invocation(stdin/prompt/timeout)platforms/toolchains/version-management(pinning versions)security/input/validation-at-trust-boundaries;infrastructure/config/environment-config#4backend/common/reliability/timeouts-and-retries;integrations/externally-owned-defaultsConflicts flagged: one. The queued LLVM candidate's directive named
-isysrootas the fix; upstream evidence shows it does not apply to the link step under Homebrew LLVM. The page states both channels with the condition selecting each, rather than propagating the candidate as written.Related-links added: the new pages link to
version-management,path-resolution,reading-error-messages,non-interactive-cli-invocation,command-text-inspected-before-execution,test-data-and-isolation,checks-that-cannot-pass,isolate-by-bisection,test-level-choice,behavior-not-implementation,minimum-case-set,regression-scope,validation-at-trust-boundaries,environment-config,error-responses,acceptance-criteria,timeouts-and-retries,externally-owned-defaults,intermittent-failures, andjwt-server-side.spec-artifact-checksgained a link to the newunenforced-declarations.Routing decision
platforms/toolchains/compiler-sysroot-on-macos.mdtoolchainsexistsplatforms/processes/tool-diagnostics-without-a-failing-exit-code.mdprocessesexists;non-interactive-cli-invocationowns invoking such a tool, this owns reading what it emittedtesting/strategy/differential-testing.mdstrategyowns how to verify a change; this is a verification strategy for a migration/reimplementation rather than a level choicetesting/data/artifact-leakage-from-a-suite.mddataowns what a suite creates and must clean up; placed besidetest-data-and-isolationbackend/common/api-design/unenforced-declarations.mdapi-designowns the contract between a caller and the system; a config/DSL/manifest surface is such a contract even when it is not HTTPbackend/common/integrations/client-side-rate-limiting.mdintegrationsowns behavior toward a provider the repo does not controltesting/quality/spec-artifact-checks.md(revise)No new category was created.
api-designwas the closest fit for #5 rather than opening adeclarative-inputcategory for a single page; if a second page on declarative-surface design lands, revisit that decision.Domain indexes updated:
wiki/platforms/index.md,wiki/testing/index.md,wiki/backend/index.md. RootINDEX.mdroute lines extended for backend, testing, and platforms.log.mdcarries oneingest, onerevise, and onededupentry.