Skip to content

[comp] Production Deploy#2700

Merged
Marfuen merged 2 commits intoreleasefrom
main
Apr 29, 2026
Merged

[comp] Production Deploy#2700
Marfuen merged 2 commits intoreleasefrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 29, 2026

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Update framework compliance scoring to reflect artifact-level progress so overview and framework lists no longer show 0% when work is partially done. Documents now require a fresh submission (within 6 months) to count.

  • Bug Fixes
    • Rewrote computeFrameworkComplianceScore to count unique artifacts: policies (by id), tasks (by id), and document types (by formType) with equal weight and cross-control dedup.
    • Only count documents if the latest submission is within 6 months.
    • Removed unused helpers and added tests for empty/all-complete/partial/freshness/dedup cases; stubbed frameworkInstance.findMany and sOADocument.findFirst in specs to restore getOverviewScores coverage.
    • Addresses Linear CS-316.

Written for commit 33a7b90. Summary will update on new commits. Review in cubic

github-actions Bot and others added 2 commits April 29, 2026 16:35
…nt/framework views (CS-316)

* fix(app): bubble up artifact-based progress through control/requirement/framework views (CS-316)

Make progress and compliance reflect underlying artifact completion rather than only fully-satisfied controls, and surface documents alongside policies and tasks throughout the framework view.

- Add Documents column to per-requirement controls table
- Align EvidenceSubmissionInfo with API field name (submittedAt) so the 6-month freshness check actually fires
- Compute requirement status from all control statuses, not just satisfied count
- Compute requirement compliance % from average of per-control progress (policies + tasks + documents)
- Show aggregate framework % across deduplicated artifacts in the framework progress bar
- Mirror the framework view on the requirement page: top progress bar, per-control compliance bar, status next to compliance, paginated controls table, narrower description column
- Paginate the requirements table with the DS Table built-in pagination (10/25/50/100)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(app): address cubic review on PR #2695

- Tighten getControlProgressPercent task-filter test: the unrelated task is now `todo` so a missing filter would surface as 50% instead of silently passing at 100%.
- Per-control Documents column on the requirement page: reuse getRequirementArtifactCounts so document counts honour the same 6-month freshness rule as the status badge and compliance bar (previously any historical submission counted as completed). Policies and tasks counts also flow through the same aggregator for consistency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(api): bubble up artifact-based progress in framework compliance score

Previously computeFrameworkComplianceScore was binary on full-control satisfaction: a control with one in-progress task pulled the framework to 0%. The frameworks list and overview pages consume this score, so they showed Not Started even when most underlying policies/tasks/documents were already done.

- Rewrite computeFrameworkComplianceScore to count unique artifacts (policies by id, tasks by id, document types by formType) across the framework and weight each one equally.
- Documents only count as completed when their latest submission is within 6 months (matches the freshness rule used elsewhere).
- Drop the now-unused hasAnyArtifact / isControlCompleted helpers.
- Tests cover empty frameworks, all-complete, partial progress (vs. old 0%), document freshness, and cross-control deduplication. Also stub frameworkInstance.findMany / sOADocument.findFirst so the existing getOverviewScores tests run again.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Mariano <marfuen98@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Building Building Apr 29, 2026 4:47pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Apr 29, 2026 4:47pm
portal (staging) Skipped Skipped Apr 29, 2026 4:47pm

Request Review

@Marfuen Marfuen merged commit ab68c36 into release Apr 29, 2026
12 of 13 checks passed
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.36.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Requires human review: Modifies core business logic for framework compliance scoring. Changes to scoring calculations and document freshness requirements should be reviewed by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants