Skip to content

Fetch completed remote task results for Hub review - #45

Merged
surlymochan merged 3 commits into
mainfrom
codex/fleet-result-r2
Oct 31, 2026
Merged

surlymochan merged 3 commits into
mainfrom
codex/fleet-result-r2

Conversation

@surlymochan

Copy link
Copy Markdown
Owner

Closes surlymochan/phanes#2. When a remote run finishes, the existing gateway transfers its result as a Git bundle and the Hub bridge fetches it into a local review ref. Retrieval failures remain visible without masking the completed task. No additional persistent service is required.

Validation: 32 Hub bridge and fleet capacity tests passed, including transfer between real temporary Git repositories. Live gores1-to-Hub acceptance remains to be performed after deployment.

@surlymochan

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:52:08.614786Z 0b29eb3 Manual request
🔒 Security Review ✅ Completed 2026-10-30T15:56:33.934301Z 0b29eb3 Manual request

Security findings

Advisory findings (1)

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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 0b29eb37ec

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

@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 Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 0b29eb37ec

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread bin/hub-openswarm-bridge
Comment on lines +122 to +124
subprocess.run(['git', '-C', repo, 'fetch', '--no-tags', str(bundle),
'refs/heads/' + branch + ':refs/openswarm/' + run_id],
capture_output=True, check=True, timeout=130)

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 Security Review · Automatically triggered

P2 Badge Security: Pin the fetched review ref to the recorded commit

When a concurrent lower-privileged executor or process can rewrite refs in the shared fleet repository, do not publish this fetched ref without pinning it to the recorded SHA. fleet-result-bundle checks the branch before a later bundle create, so the ref can change between those operations; this fetch validates only JSON metadata and never resolves the imported ref. Reproduction produced metadata for commit A with a bundle advertising B, and this code accepted B as local_review_ref. Export an immutable temporary ref and verify or delete the destination unless it equals commit.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

deferred: security work frozen until functional acceptance

@surlymochan
surlymochan merged commit a56daa0 into main Oct 31, 2026
7 checks passed
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.

让 Hub 自动取得远端任务提交以完成本机审查

1 participant