chore: scrub private-repo references from public tree - #832
Merged
Conversation
Removes ADR citations (decision records live in the private repo; links were broken here) while keeping every described invariant inline, and fixes generator headers / doc titles that leaked the private monorepo layout (public/cli, cloud/web). Comments and docs only β no behavior change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLNTYJU8vMEdDWpV7e7k7Z
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.
Summary
Scrubs leftover references to the private
caveman-cloudmonorepo from the public export. This is a comment/doc-only change β no behavior, test assertions, or generated constants were altered.What was removed/fixed (94 files):
(ADR 0031),[ADR 0024](../../docs/decisions/0024-....md)) across CLI/proxy/engine/mem/shrink/shared source comments, docs, and test assertion-message strings.docs/decisions/doesn't exist in this repo, so every one of these links was already dead. The described invariant/behavior was preserved inline in every case; only the citation was dropped.docs/prd/*.md,docs/design.md,docs/CAVEMAN_LEARN_SPEC.md,docs/UNIVERSAL_AGENT_WRAP_SPEC.md,docs/FASTCONTEXT_EXPLORER_SPEC.md,docs/SAVINGS_ACCOUNTING.md,docs/research/*,docs/superpowers/*, and rootPRODUCTS.yaml.# public/<path> β ...first-line titles in ~30CLAUDE.md/AGENTS.mdfiles, corrected to the package's real repo-root-relative path (e.g.packages/cli/CLAUDE.md:# public/cliβ# packages/cli;mcp/CLAUDE.md:# public/mcpβ# mcp).public/cliandcloud/web/cloud/gateway-managedliteral path leaks in comments, generated-file headers, and one CLI-printed string, reworded or corrected to match this repo's actual layout.agents/compile.mjs,integrations/compile.mjs, andskills/compile.mjsstamp// GENERATED by public/<dir>/compile.mjs ...into 5 committed*.generated.tsfiles underpackages/cli/src/. Fixed the generator source strings, then re-ran all three compilers so the generated headers stay byte-consistent with their generators (only the header lines changed in each generated file).Deliberately NOT touched (per the do-not-touch list):
~/.caveman-cloud/β the CLI's local config directory on user machines, a real product path, not a repo reference. All occurrences stay.caveman.so/api.caveman.soβ public endpoints.scripts/install-local-cli.sh/.ps1β thepublic/climentions there are real dual-layout fallback logic (checkspublic/clithenpackages/clithencli/), not leaked references; left untouched per "do not change any logic or path checks."integrations/compile.mjs'scloud/webpath in thewebDirexistence-check logic and its accompanying comment β real code that only writes there when a private-repo checkout has that directory; only the two printedcloud/web-mentioning strings elsewhere (inskills/compile.mjs) were reworded.../../CLAUDE.md (root)-style relative links with an incorrect../depth (present in ~15 files) β these point at a file that genuinely exists in this repo, so they're a pre-existing path-depth bug from the directory-flattening at export time, not a private-repo leak. Left as-is; flagging here as a possible follow-up.Verification
git grep -in "adr 00\|docs/decisions\|public/cli"β zero hits except the two intentionalscripts/install-local-cli.{sh,ps1}fallback-logic occurrences (real code, not comments).docs/prd/,docs/design.md,docs/CAVEMAN_LEARN_SPEC,docs/UNIVERSAL_AGENT_WRAP_SPEC,docs/FASTCONTEXT_EXPLORER_SPEC,docs/SAVINGS_ACCOUNTING,docs/research,docs/superpowers,PRODUCTS.yaml,cloud/gateway-managed,^# public/titles β zero hits.cd packages/cli && npx tsc --noEmitβ passes cleanly.go build ./...(from repo root, Go 1.26.5 available) β passes cleanly.git diff --statreviewed file-by-file: every changed line is a comment, doc line, assertion-message string, a CLI-printed string, or a generator-header string as described above.Test plan
git grepverification (zero hits, see above)tsc --noEmitinpackages/cligo build ./...from repo rootπ€ Generated with Claude Code
https://claude.ai/code/session_01DLNTYJU8vMEdDWpV7e7k7Z