Skip to content

[dev] [Marfuen] mariano/cubic-fixes#2789

Merged
Marfuen merged 10 commits intomainfrom
mariano/cubic-fixes
May 7, 2026
Merged

[dev] [Marfuen] mariano/cubic-fixes#2789
Marfuen merged 10 commits intomainfrom
mariano/cubic-fixes

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 7, 2026

This is an automated pull request to merge mariano/cubic-fixes into dev.
It was created by the [Auto Pull Request] action.


Summary by cubic

Fixes onboarding tracker accuracy and UX by hiding mitigation steps until creation is done and showing created/total counts. Adds risk totals metadata and a 30s reranker timeout to prevent linkage hangs.

  • Bug Fixes
    • Hide "Assessing Vendors/Risks" until vendor/risk creation completes to prevent flicker and false completion.
    • Show vendor/risk creation progress as created/total in the tracker.
    • Populate risksTotal and risksInfo during org onboarding so risk mitigation progress renders correctly.
    • Add a 30s timeout to reranker calls to avoid blocking the linkage step; fallback handles failures.

Written for commit 23b5c07. Summary will update on new commits.

Marfuen and others added 9 commits May 7, 2026 14:03
P1: Add metadata.set('policies', true) after policy fan-out so the
    tracker boolean flag is set.
P1: Log batchTriggerAndWait failures in vendor/risk mitigation fan-outs
    instead of silently ignoring them.
P2: Strip {{#if}}/{{/if}} markers from mixed-content nodes so template
    syntax doesn't leak into rendered policies.
P2: Fix stale onboardingTriggerJobId locking publish button in
    ToDoOverview.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The global regex flag in stripMarkerText would remove ALL matching
{{#if}}/{{/if}} markers in a subtree, corrupting boundaries of nested
conditional blocks. Removed the g flag so only the first occurrence
(the one that triggered the match) is stripped.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Covers placeholder replacement, inline/multi-node/nested conditionals,
mixed content nodes, edge cases, buildVariables, buildFlags, processTemplate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When an org has no vendors or risks, `total > 0 && completed >= total`
evaluates to false, causing those steps to appear stuck forever.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Revert zero-item guard (total === 0 ||) back to (total > 0 &&) — before
totals metadata is set, the default of 0 caused steps to appear complete
then flip back to in-progress once actual totals arrived.

Also add missing risksTotal/risksInfo metadata alongside vendorsTotal
so risk mitigation progress tracks correctly in the UI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…on steps

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
A hung AI Gateway request was blocking the entire linkage step
indefinitely. The fallback in run-linkage.ts already handles rerank
failures gracefully (falls back to cosine ordering).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Don't render "Assessing Vendors"/"Assessing Risks" steps until their
prerequisite creation step completes. Prevents the step from flashing
as complete before totals metadata arrives.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment May 7, 2026 2:07pm
comp-framework-editor Ready Ready Preview, Comment May 7, 2026 2:07pm
portal Ready Ready Preview, Comment May 7, 2026 2:07pm

Request Review

@Marfuen Marfuen merged commit d9308be into main May 7, 2026
5 of 8 checks passed
@Marfuen Marfuen deleted the mariano/cubic-fixes branch May 7, 2026 14:02
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 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.45.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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