Skip to content

Phase 6B Project Context Engine foundation ready#119

Open
besfeng23 wants to merge 19 commits into
mainfrom
phase-6b-project-context-engine-ready
Open

Phase 6B Project Context Engine foundation ready#119
besfeng23 wants to merge 19 commits into
mainfrom
phase-6b-project-context-engine-ready

Conversation

@besfeng23

Copy link
Copy Markdown
Owner

Ready merge copy of PR #118 because the draft transition endpoint was blocked. Same head commit: b1b7eb5. GitHub CI passed on the implementation branch; Vercel preview is blocked by build-rate-limit.

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/barangayoss-projects?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@besfeng23, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0758ec0c-eacc-4c54-8bdc-fabc15acf51c

📥 Commits

Reviewing files that changed from the base of the PR and between a74a381 and b1b7eb5.

📒 Files selected for processing (18)
  • app/api/health/route.ts
  • app/api/operating/projects/[projectKey]/artifacts/route.ts
  • app/api/operating/projects/[projectKey]/constraints/route.ts
  • app/api/operating/projects/[projectKey]/context/route.ts
  • app/api/operating/projects/[projectKey]/decisions/route.ts
  • app/api/operating/projects/[projectKey]/open-loops/route.ts
  • app/api/operating/projects/[projectKey]/route.ts
  • app/api/operating/projects/[projectKey]/tasks/[taskId]/route.ts
  • app/api/operating/projects/[projectKey]/tasks/route.ts
  • app/api/operating/projects/route.ts
  • app/operating/projects/actions.ts
  • app/operating/projects/page.tsx
  • components/layout/topbar.tsx
  • docs/phase-6b-proof-report.md
  • lib/operating/project-schemas.ts
  • lib/operating/project-types.ts
  • lib/operating/projects.ts
  • supabase/migrations/20260701010000_phase_6b_project_context_engine.sql
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch phase-6b-project-context-engine-ready

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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: b1b7eb5073

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

return withOperatingApi(async () => {
const { projectKey } = await context.params;
const input = await parseJson(request, createProjectTaskSchema);
return createProjectTask(projectKey, input);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pass namespace when creating project children

Because this child POST route never parses a namespace and calls createProjectTask without its namespace argument, the service defaults to real_life. For callers that created an au project via POST /api/operating/projects, posting AU task content here will either attach it to a same-key real_life project or fail with “Project not found” when only the AU project exists; the same pattern is present in the decisions/constraints/artifacts/open-loops routes, so the API can contaminate or make AU project context unusable.

Useful? React with 👍 / 👎.

Comment thread lib/operating/projects.ts
const client = await db();
const { data, error } = await client
.from("operating_projects")
.update(sanitizeUpdate(input))

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 Normalize project_key before saving updates

updateOperatingProjectSchema permits project_key, but this update writes the raw value while all lookups and links rely on normalizeProjectKey(projectKey) before querying. If a PATCH sets project_key to a value such as My Project, the row stores that exact string and subsequent GET/PATCH/context/child calls normalize the URL to my-project, so the project becomes unreachable until repaired directly in the database.

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