Skip to content

oss-sync 2026-11-19: GID cache, launch perf, entrypoint set -e fix - #4

Open
ramseymcgrath wants to merge 1 commit into
mainfrom
oss-sync/2026-11-19
Open

ramseymcgrath wants to merge 1 commit into
mainfrom
oss-sync/2026-11-19

Conversation

@ramseymcgrath

Copy link
Copy Markdown
Contributor

Summary

Weekly sync from the private back2base repo. Verdict reasons are classified from touched paths and commit subjects, not a line-by-line review. Commits considered: the first 75 qualifying commits after the 2026-06-05 cutoff, through af9472e (no prior Synced-from existed). The remaining ~160 commits (through 1d4ebad) are left for next week's runs.

Ported: 3 clean, 1 partial (hand-ported). Skipped/held: 71 (full per-commit list is in the private run log; categories below).

Ported

Commit Verdict Change
fb8536a PORT Consult the docker GID cache before spawning the probe (gid.go)
4aa3cd7 PORT Skip embedded-FS hash when nothing was extracted; memoize gitRoot (run.go)
78e4abc PORT Content-address the repo overview by git tree hash (prelaunch-overview.sh + bats)
0f259c2 PARTIAL Hand-ported _vlog fix: a false verbose guard as a function's last command aborted entrypoint.sh under set -e. Same bug existed here (14 call sites). Added the bats regression.

Build / test

go vet ./... and go test ./... pass. bats is not installed in the sync environment, so entrypoint-phase-exit.bats and prelaunch-overview.bats were not run; bash -n passes on the changed scripts.

Leak scan

Scanned the full diff for back2base.net, ramseymcgrath, gmail.com, auth0, account_id, 32-hex IDs, sk-ant-, ghp_, github_pat_, private keys. No hits.

Skipped / held back

  • No file in this repo touched (workers, services, auth0, api-shield, docs, CI, .devcontainer): ~43 commits.
  • Cloud, gateway, session sync, recall, warm-start, time machine, adaptive profiles, OTel, codebase-memory MCP: excluded by README scope.
  • Held for a deliberate port: model support chain (Fable 5, [1m], Claude Code minimum-version preflight; 1b6f332, a3bd3fd, b7b87aa), docker compose to plain docker run (08ae29b), and container hardening that mixes shared and cloud hunks (83d8cb5 firewall, f78c6c1/9d4610d UID remap, 19b0ba9, 1755ca4, 3609ae1, dd3104d, 3712ae3).

Synced-from: af9472ef14ac2e66d10f878b0bf1c654f433935d


Generated by Claude Code

…set -e fix)

- gid: consult the cache before spawning the docker probe (fb8536a)
- run: skip embedded-FS hashing when nothing was extracted; memoize gitRoot (4aa3cd7)
- container: content-address the repo overview by git tree hash (78e4abc)
- entrypoint: route verbose logging through _vlog so a false verbose guard
  can no longer abort startup under set -e (0f259c2, hand-ported)

Synced-from: af9472ef14ac2e66d10f878b0bf1c654f433935d

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TTkk48rxb1LPWmQcRLmV6
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T14:09:25.684681Z 40b4c5c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40b4c5c2d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +50 to +54
if [ -n "$tree_hash" ] && [ -f "$hash_file" ] \
&& [ "$(cat "$hash_file" 2>/dev/null)" = "$tree_hash" ] \
&& grep -q 'back2base:overview-begin' "$claude_md" 2>/dev/null; then
echo ":: overview: repo unchanged (tree ${tree_hash:0:8}…) — keeping existing overview" >&2
return 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the cached overview across startup regeneration

On normal default/auto-profile launches, this cache never hits: filter_mcp_by_profile in entrypoint.sh replaces .mcp.json on every start, making it newer than CLAUDE.md. The subsequent generate_claude_md invokes render-claude-md.py, whose mtime-based invalidation rebuilds the file from the template and removes the overview markers before this check runs. Consequently, an unchanged repository still incurs the Claude overview call and nondeterministic prompt rewrite every launch. Preserve the overview during base-file regeneration, or cache its body separately and splice it back without invoking Claude.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants