Skip to content

chore: add project-scoped oss-pr-mirror Grok skill - #6

Merged
innocarpe merged 1 commit into
mainfrom
chore/oss-pr-mirror-skill
Jul 23, 2026
Merged

innocarpe merged 1 commit into
mainfrom
chore/oss-pr-mirror-skill

Conversation

@innocarpe

Copy link
Copy Markdown
Owner

Summary

Project-scoped Grok skill for dual-track OSS PRs:

  • Upstream (stablyai/orca) — real review / merge
  • Fork portfolio (innocarpe/orca) — exhibition PR on the same head branch

Lives under .grok/skills/oss-pr-mirror/ (repo skill, not ~/.grok user skill).

Contents

  • SKILL.md — agent procedure for first open + follow-up pushes
  • scripts/mirror-upstream-pr.sh — create/list fork mirror PRs (idempotent)
  • scripts/sync-contribution-push.sh — one push to fork, verify both PR heads, optional dual comment

Notes

  • Fork-only tooling; not intended for upstream stablyai/orca.
  • Contribution fix/* branches should not carry these files into upstream PRs.
  • After merge, invoke scripts from primary checkout when working in worktrees.

Test plan

  • Skill loads from <repo>/.grok/skills/oss-pr-mirror/
  • Scripts are executable; mirror script path is sibling-relative
  • Optional: scripts/mirror-upstream-pr.sh --list from primary checkout

Keep dual-track upstream/fork PR tooling under .grok/skills so it is
versioned on this fork, not only in the global ~/.grok user skills tree.
@innocarpe
innocarpe merged commit 05d7ec3 into main Jul 23, 2026
@innocarpe
innocarpe deleted the chore/oss-pr-mirror-skill branch July 23, 2026 01:45
innocarpe pushed a commit that referenced this pull request Oct 21, 2026
…tablyai#31066)

* fix(cli): worktree create sends the host --project/--host selected

Codex review 6 #6: the CLI picked the right setup but sent only its repo id,
so a repo id set up on two hosts failed as selector_ambiguous; and
--project-host-setup ignored --host when setup ids repeated.

worktree.create gains optional repoHostId (older hosts drop it and keep the
old behaviour); the runtime narrows the repo selector to that host.

* refactor(runtime): the repo selector carries its host through every lookup

Review follow-up (Codex + Opus on stablyai#31066): a separate repoHostId was dropped
by the startup-agent lookup, the CLI's GitLab link check and the create
dedupe key. RuntimeRepoSelector now carries the host with the selector, so
showRepo/resolveRepoSelector and startup-agent resolution keep it; the
create dedupe key includes it; repo.show gains the same optional
repoHostId; the CLI spreads one CliRepoTarget into every repo lookup.
Handler-level tests cover worktree.create (plain, startupAgent,
startupDraft), agent.launch, repo.show and the dedupe key.

* test(runtime): drop a needless cast in the agent.launch host test; fold an import
innocarpe pushed a commit that referenced this pull request Oct 21, 2026
…p ones (stablyai#31096)

* feat(ci): ratchet raw repo connectionId host reads; one drop-in resolver

Codex review 6 class fix (#4/#6/#7): host decisions read off a repo row's
legacy connectionId miss rows that name SSH only as executionHostId.

- getRepoRoutingConnectionId (shared/execution-host.ts): drop-in for a raw
  repo.connectionId routing check that also finds executionHostId-only SSH.
- check-repo-host-read-ratchet: per-file count of raw repo connectionId
  reads in src/main, src/shared, src/cli; counts may only shrink.
- Migrated 66 cheap reads: runtime GitHub/GitLab commands, PR/MR head ref
  fetches, preserved-branch cleanup, ref queries, base-ref IPC, worktree
  preparation, trash sweep, scan cache TTL, usage metadata.

* fix(ipc): PR base IPC routes executionHostId-only SSH rows; ratchet is a stated lower bound

Review follow-up (Opus on stablyai#31096):
- worktrees:resolvePrBase decided git/gh routing on the raw connectionId while
  its head-ref fetches already used the resolver; one resolved connectionId
  now drives all of it (test fails on main).
- getRepoRoutingConnectionId's contract is stated exactly: never local when the
  raw field is set; on a contradictory ssh row executionHostId wins.
- The ratchet regex no longer matches report.connectionId; header and docs
  say it is a lower bound.
- Regression tests for a runtime GitHub and GitLab command site.

* test(ci): pin the repo host-read ratchet step to the static phase

* fix(ci): repo host-read ratchet skips verbatim field copies into projected rows

A copy of connectionId into a projected row decides nothing; migrating it to
the resolver would change what the projection publishes. The sidebar feed
catalog's copy (added after the baseline) and two older projections no longer
count; baseline pruned to 91.
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