Skip to content

chore(research-radar): pin shared-intake shadow dependency#8

Merged
t3chn merged 1 commit into
mainfrom
codex/code-intel-shared-intake-lock
Jun 8, 2026
Merged

chore(research-radar): pin shared-intake shadow dependency#8
t3chn merged 1 commit into
mainfrom
codex/code-intel-shared-intake-lock

Conversation

@t3chn

@t3chn t3chn commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a Research Radar shared-intake consumer lock pinned to heurema/shared-intake-governance commit c9a28c55c95267d5e6ff09435cf6d2ff39a2bef9.
  • Add consumer-owned shared-intake profile/source configs plus a preflight helper that validates the pinned checkout and configs.
  • Add a manual shadow runner for shared runtime artifacts outside git; existing run_daily.py automation stays unchanged.
  • Document how consumer projects adopt newer shared-intake versions by bumping the lock and rerunning preflight/shadow checks.

Issue

  • N/A

Test plan

  • python3 -m unittest tests.test_research_radar_shared_intake_dependency
  • python3 -m py_compile research-radar/bin/check_shared_intake_dependency.py research-radar/bin/run_shared_shadow.py tests/test_research_radar_shared_intake_dependency.py
  • python3 research-radar/bin/check_shared_intake_dependency.py --shared-repo-root /Users/vi/personal/heurema/shared-intake-governance
  • python3 research-radar/bin/run_shared_shadow.py --shared-repo-root /Users/vi/personal/heurema/shared-intake-governance --runtime-root /tmp/code-intel-kernel-shared-intake-shadow --source-id rust-analyzer --output-id 2026-06-08-smoke
  • bash scripts/run-deterministic-tests.sh

Risk

  • narrow - this adds an explicit manual shadow/preflight path without changing the scheduled Research Radar collector.

Merge strategy recommendation

  • Recommended: squash
  • Reason: one logical consumer-versioning slice.

Why:
- Research Radar needs a concrete consumer contract for shared-intake-governance instead of silently following whatever upstream checkout is current.
- Consumer projects need a clear upgrade path: bump a pinned shared-intake commit, validate local configs, then run shadow before changing automation.

What changed:
- Add a shared-intake consumer lock, profile, and source configs for Research Radar.
- Add a dependency preflight helper that verifies the pinned shared-intake commit and validates the consumer-owned profile/source configs through the shared CLI.
- Add a manual shadow runner that uses the locked dependency and writes only shared runtime artifacts outside git.
- Document the version bump workflow and keep the existing run_daily.py automation path unchanged.
- Add Python unittest coverage for lock validation, root resolution, commit mismatch handling, and preflight command ordering.

Testing:
- python3 -m unittest tests.test_research_radar_shared_intake_dependency
- python3 -m py_compile research-radar/bin/check_shared_intake_dependency.py research-radar/bin/run_shared_shadow.py tests/test_research_radar_shared_intake_dependency.py
- python3 research-radar/bin/check_shared_intake_dependency.py --shared-repo-root /Users/vi/personal/heurema/shared-intake-governance
- python3 research-radar/bin/run_shared_shadow.py --shared-repo-root /Users/vi/personal/heurema/shared-intake-governance --runtime-root /tmp/code-intel-kernel-shared-intake-shadow --source-id rust-analyzer --output-id 2026-06-08-smoke
- bash scripts/run-deterministic-tests.sh

Not tested:
- Full all-source shadow run was not run to avoid broad external network dependence in this slice.
- Scheduled Codex App automation was not changed or run.

Risk:
- narrow - this adds a manual shadow/preflight path and docs without changing the scheduled Research Radar collector.

Directive:
- Do not point Research Radar automation at a new shared-intake revision unless this consumer lock is bumped and preflight/shadow checks pass.
@t3chn t3chn merged commit 7a58699 into main Jun 8, 2026
1 check passed
@t3chn t3chn deleted the codex/code-intel-shared-intake-lock branch June 8, 2026 11:15

@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: 5b49dc923b

ℹ️ 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".


def actual_git_commit(shared_repo_root: Path) -> str:
completed = subprocess.run(
["git", "rev-parse", "HEAD"],

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 Reject dirty shared-intake checkouts

When the shared checkout has uncommitted edits but HEAD is still the pinned commit, this preflight passes even though run_shared_cli() executes the modified working tree via PYTHONPATH. That breaks the lock's guarantee that Research Radar is validated against the exact shared-intake version; add a dirty/untracked-worktree check before trusting the checkout.

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.

1 participant