Skip to content

Add org readiness intelligence reporting#160

Merged
seonghobae merged 1 commit into
developfrom
codex/phase3-sale-readiness
Jul 2, 2026
Merged

Add org readiness intelligence reporting#160
seonghobae merged 1 commit into
developfrom
codex/phase3-sale-readiness

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Summary

  • Add appguardrail_core.org_intelligence to normalize ContextualWisdomLab repository inventory and PR gate state into a product-ready org readiness model.
  • Add scripts/ci/render_org_readiness_report.py so live GitHub repo/PR JSON can render a markdown readiness report without moving raw code or logs outside GitHub.
  • Add the Phase 3 sale-readiness plan with live org evidence, plugin perspectives, no-submodule decision, and acceptance criteria.
  • Add unit tests for repository inventory, language coverage, PR gate classification, and report recommendations.

Live evidence checked

Validation

  • python3 -m py_compile appguardrail_core/org_intelligence.py scripts/ci/render_org_readiness_report.py
  • python3 -m pytest -q tests/test_org_intelligence_core.py
  • python3 -m pytest -q -> 177 passed
  • git diff --check
  • python3 scanner/cli/appguardrail.py scan . -> 0 critical / 0 high deploy blockers, 1 warning

Notes

  • Review process and queued GitHub checks are not treated as blockers under the current execution policy.
  • .Jules/palette.md was already modified locally and is intentionally not included in this PR.

Copilot AI review requested due to automatic review settings July 2, 2026 22:49
@seonghobae seonghobae merged commit 4c8bea5 into develop Jul 2, 2026
9 checks passed
@seonghobae seonghobae deleted the codex/phase3-sale-readiness branch July 2, 2026 22:51

Copilot AI 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.

Pull request overview

Note

Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds an org-level “readiness intelligence” model and reporting pipeline to normalize GitHub repo/PR JSON into a buyer-readable markdown report, backed by unit tests and a Phase 3 execution plan.

Changes:

  • Introduces appguardrail_core.org_intelligence for repo inventory, PR gate classification, and report rendering.
  • Adds scripts/ci/render_org_readiness_report.py to generate the readiness report from gh JSON (or provided JSON files).
  • Adds Phase 3 org readiness plan documentation and unit tests covering inventory, gate classification, and report recommendations.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
appguardrail_core/org_intelligence.py New core module to normalize org repo/PR state and render a readiness report.
scripts/ci/render_org_readiness_report.py CLI/script to fetch GitHub data (or load JSON) and render the markdown report.
tests/test_org_intelligence_core.py Unit tests validating inventory counts, PR gate classification, and report recommendations.
docs/product/2026-07-03-phase3-org-readiness-plan.md Phase 3 execution plan documenting evidence, decisions, and acceptance criteria.
appguardrail_core/__init__.py Re-exports org intelligence types/functions as part of the core public API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +133 to +137
if check_states & TECHNICAL_CHECK_FAILURES:
return "ci-failure"
if check_states and check_states <= WAITING_CHECK_STATES:
return "external-queued"
if review_decision == "review_required":
f"- Non-fork repositories: {inventory.nonfork_repositories}",
f"- Fork repositories: {inventory.fork_repositories}",
f"- Private repositories: {inventory.private_repositories}",
f"- Supported non-fork primary languages: {inventory.supported_nonfork_repositories}",
Comment on lines +18 to +24
EXTERNAL_FIRST_LANGUAGES = {
"C++",
"Kotlin",
"R",
"Rust",
"Shell",
}
Comment on lines +78 to +94
nonforks = [repo for repo in repo_list if not _truthy(repo.get("isFork"))]
forks = [repo for repo in repo_list if _truthy(repo.get("isFork"))]
primary_languages = Counter(_primary_language(repo) for repo in repo_list)
default_branches = Counter(_default_branch(repo) for repo in repo_list)
unsupported = sorted(
{
_primary_language(repo)
for repo in nonforks
if _primary_language(repo) not in SUPPORTED_PRIMARY_LANGUAGES
and _primary_language(repo) != "Unknown"
}
)
supported_nonforks = sum(
1
for repo in nonforks
if _primary_language(repo) in SUPPORTED_PRIMARY_LANGUAGES
)
pr_summary = summarize_pr_gates(prs)
report = render_org_readiness_report(inventory, pr_summary)
if args.out:
Path(args.out).write_text(report)
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