Skip to content

fix(run): remote-state scope resolves intent-declared project slugs - #606

Merged
adampullely merged 1 commit into
mainfrom
fix/run-project-slug
Aug 2, 2026
Merged

fix(run): remote-state scope resolves intent-declared project slugs#606
adampullely merged 1 commit into
mainfrom
fix/run-project-slug

Conversation

@adampullely

Copy link
Copy Markdown
Contributor

First CI run after a product intent declares project: <slug> (lumen#66): the slug outranks the OIDC exchange's bound scope in resolveScope, state routes 404 on slugs, and resource-hiding collapses that into 'this repo isn't connected' — all 8 infra lanes failed on ambient run 30742748771.

🤖 Generated with Claude Code

…o prj_… ids

An intent that declares `project: <slug>` outranks both the repo link
and the OIDC exchange's bound scope in resolveScope — and state routes
take prj_… ids only, so every CI lane 404'd, which resource-hiding
reported as 'this repo isn't connected' (hit live on the first CI run
after the intent heal).

- CI: adopt the OIDC exchange's bound project when the local value is
  empty OR a slug — the exchange's binding is authoritative there.
- everywhere else: resolve a non-id project via the projects list
  (configsurface.ResolveProjectID), leaving the OSS backend's fixed
  _local scope alone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adampullely
adampullely merged commit 66d8018 into main Aug 2, 2026
8 checks passed
adampullely added a commit that referenced this pull request Aug 2, 2026
…ped intents (#607)

Two silent ways the catalog (and its docs) never reached the platform:

- The auto-publish gate keyed on scope precedence, where tag outranks
  branch: a release workflow that tags every main head disabled
  auto-sync FOREVER, with no output (hit live — a repo's Docs library
  stayed empty because each merge commit was immediately tagged). The
  gate now takes the snapshot and accepts a clean main head that is also
  tagged; dirty/detached/PR states stay excluded. Every silent
  precondition return now says why under ORUN_VERBOSE.
- The push scope adopted the intent-declared project SLUG; state routes
  take prj_… ids, so the object sync 404'd ('Route not found:
  …/projects/<slug>/state/objects/missing', warn-only in autosync).
  Same resolution as run/#606: OIDC-bound id wins in CI, projects-list
  resolution elsewhere.

Also: `orun catalog push` resolves the backend URL from intent.yaml
(passed nil before — the explicit verb demanded --backend-url even
inside a configured repo).

Co-authored-by: Rahul Varghese <rahul.varghese@sourceplane.ai>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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