Skip to content

Build evidence-driven Product Portfolio Backend v1 - #578

Open
Ivan-VHS wants to merge 32 commits into
mainfrom
feat/product-portfolio-backend-v1
Open

Ivan-VHS wants to merge 32 commits into
mainfrom
feat/product-portfolio-backend-v1

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the portfolio/productization backend as a Reaper-owned domain engine with a bounded local host adapter.

Included

  • backend/product_portfolio.v1.rpr: canonical Reaper rules for project maturity scoring, criterion and commercial-gate gap generation, readiness stages, and Core / Professional / Enterprise packaging candidates.
  • reaper/portfolio_backend.py: local manifest discovery and normalization, JSON reporting, a loopback-only HTTP API, cost-derived target pricing, and contribution / break-even scenario calculations.
  • CLI routes: reaper portfolio report|project|serve|target-price|unit-economics plus reaper-portfolio.
  • Versioned report schemas, backend documentation, changelog entry and focused regression tests.

API

  • GET /v1/portfolio
  • GET /v1/projects
  • GET /v1/projects/{id}
  • POST /v1/economics/target-price
  • POST /v1/economics/unit-economics

Guardrails

  • Reads bounded local JSON manifests only; does not execute code from inspected projects.
  • HTTP listener only binds to loopback interfaces.
  • No network calls, automatic telemetry, uploads, synthetic demand, sales or valuation claims.
  • Pricing and unit economics are derived only from explicit cost, margin and scenario inputs; they are not represented as market recommendations or forecasts.
  • Existing language and backend contracts remain unchanged.

Verification

  • Added tests/test_product_portfolio.py for profile discovery, scoring, gaps, section/segment preservation, missing-profile handling, cost math, break-even math and loopback restrictions.
  • The tests and Reaper runtime execution still need to be run by repository CI or in a local Reaper checkout; no local checkout/runtime was available in this session.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T01:37:07.923326Z
We couldn’t complete this review. Comment @codex review to try again.
6f4d905 PR opened
ℹ️ 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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