Skip to content

fix(workspace-source): locate every finding, hint nested folder creates, and plan managed rows as stored - #10558

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/wac-qa-b9-workspace-findings-tables
Dec 1, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/wac-qa-b9-workspace-findings-tables

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Workspace source findings now say where they are and what to run, and managed table rows stop planning updates that write nothing.

  • Every resource finding has a file. KindLayout gains declarationPath(key), and kindFinding defaults file to it. Table and knowledge base findings used to print with no location in text output. Rows findings point at tables/<key>.rows.jsonl, and document findings point at knowledge/<key>/docs/<name>. The file arguments that only repeated the declaration path are gone (planNamed, nameTakenFinding, keyRenamedChange, refuseDeclaredTwice, and the tools, skills, MCP, secrets, credentials and deployment adapters).
  • The nested folder hint works. E_TABLE_FOLDER and E_KB_FOLDER give one folders create command per missing level, parent first. For /qa/sub in a workspace without /qa, the old single command failed with "Parent folder not found".
  • Reference findings point at the line that uses the resource. E_PLAN_REF_DELETED, E_PLAN_REF_HELD and the hold findings (E_SECRET_MISSING, E_CREDENTIAL_*) now carry the workflow file and line, including for references resolved by id (workspace files). Every compiled resource reference keeps the span of the param that holds it (before, only MCP tools did), and the compile records where each env.NAME is first read.
  • E_SECRET_MISSING replaces the duplicate warning. A workflow plan inside a workspace apply treats the names secrets.ts declares as known, as the offline check already does. So a held workflow gets one E_SECRET_MISSING at the read, not that plus a W_ENV_UNKNOWN about the same name.
  • E_NAME_TAKEN names the refused declaration. It now reads tables/seeded declares the table name "t2", which belongs to the table under key "t2".
  • Managed rows compare as stored. planRows fingerprints the declared cells after the column-type coerce that the write applies (coercedTableRows). A timestamp spelled the way JavaScript prints it (…000Z) now plans as no change, where it used to plan update rows (N) and leave status at exit 11. The update label now gives keyed counts, rows (+added ~patched -removed), from tableRowChanges, instead of the number of declared rows. declaredRowKeyText is folded into the coerce.
  • Docs. The secrets.ts guide (directory page and .sim/AGENTS.md) now says a get prints only the secrets that have a value. The generated diagnostics rows for the changed codes are updated.

Tests

The integration checks against real Postgres fail on the pre-fix source and pass after the fix:

  • rows.integration.ts: managed date and ttl rows written as toISOString() re-plan as a no-op after a get. The edited-rows check expects rows (+1 ~1 -0).
  • apply.integration.ts: folder: '/qa/sub' produces two create commands and file: tables/leads.ts. E_NAME_TAKEN names tables/other and its file. E_PLAN_REF_DELETED points at the table ( 'leads' ) line of workflows/ingest/workflow.ts.
  • knowledge.integration.ts: E_KB_FOLDER carries knowledge/policies/knowledge.ts and the create command.
  • references.integration.ts: E_SECRET_MISSING carries workflows/ask/workflow.ts:8, with no W_ENV_UNKNOWN beside it. A parent that runs a held child gets E_PLAN_REF_HELD on its runWorkflow line.
  • files.integration.ts: E_PLAN_REF_DELETED for a deleted workspace file carries the workflow file and line.

Mothership re-sync: not needed (the chat primer is unchanged).

…es, and plan managed rows as stored

- kindFinding defaults file to the kind's declarationPath; rows and doc findings point at their file
- E_TABLE_FOLDER/E_KB_FOLDER hint one folders create per missing level, parent first
- E_PLAN_REF_DELETED and hold findings point at the workflow line using the resource
- a workspace plan reads secrets.ts names as known, so E_SECRET_MISSING (at the read) replaces W_ENV_UNKNOWN
- E_NAME_TAKEN names the refused declaration
- planRows compares coerced declared cells and reports +added ~patched -removed
- docs: a get prints only secrets that have a value
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The latest changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The latest changes appear safe to merge.

Summary

Workspace source findings gain file locations, nested-folder hints list parent-first commands, and managed rows compare values after coercion.

  • Workspace findings point to the file that declares or stores the affected resource.
  • Workflow findings point to the line that reads or uses the unavailable resource.
  • Missing nested folders show the create commands in parent-first order.

Reviews (2) · Last reviewed commit: "fix(workspace-source): keep reference sp..." · Reviewed by Greptile

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 1, 2026 8:33am UTC

Request Review

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 40 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 41 files

Confidence score: 5/5

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

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit cf7b488 into staging Dec 1, 2026
88 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 6932dabd Deployed Dec 1, 2026 by vercel[bot]
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