Repository navigation
fix(workspace-source): locate every finding, hint nested folder creates, and plan managed rows as stored - #10558
Merged
Conversation
…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
Contributor
[Medium impact] The latest changes appear safe to merge. SummaryWorkspace source findings gain file locations, nested-folder hints list parent-first commands, and managed rows compare values after coercion.
Reviews (2) · Last reviewed commit: "fix(workspace-source): keep reference sp..." · Reviewed by Greptile |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 40 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
… locate E_PLAN_REF_HELD
Collaborator
Author
|
@greptile review |
Collaborator
Author
|
@cubic-dev-ai review |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workspace source findings now say where they are and what to run, and managed table rows stop planning updates that write nothing.
file.KindLayoutgainsdeclarationPath(key), andkindFindingdefaultsfileto it. Table and knowledge base findings used to print with no location in text output. Rows findings point attables/<key>.rows.jsonl, and document findings point atknowledge/<key>/docs/<name>. Thefilearguments that only repeated the declaration path are gone (planNamed,nameTakenFinding,keyRenamedChange,refuseDeclaredTwice, and the tools, skills, MCP, secrets, credentials and deployment adapters).E_TABLE_FOLDERandE_KB_FOLDERgive onefolders createcommand per missing level, parent first. For/qa/subin a workspace without/qa, the old single command failed with "Parent folder not found".E_PLAN_REF_DELETED,E_PLAN_REF_HELDand 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 eachenv.NAMEis first read.E_SECRET_MISSINGreplaces the duplicate warning. A workflow plan inside a workspace apply treats the namessecrets.tsdeclares as known, as the offline check already does. So a held workflow gets oneE_SECRET_MISSINGat the read, not that plus aW_ENV_UNKNOWNabout the same name.E_NAME_TAKENnames the refused declaration. It now readstables/seeded declares the table name "t2", which belongs to the table under key "t2".planRowsfingerprints 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 planupdate rows (N)and leavestatusat exit 11. The update label now gives keyed counts,rows (+added ~patched -removed), fromtableRowChanges, instead of the number of declared rows.declaredRowKeyTextis folded into the coerce.secrets.tsguide (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: manageddateandttlrows written astoISOString()re-plan as a no-op after a get. The edited-rows check expectsrows (+1 ~1 -0).apply.integration.ts:folder: '/qa/sub'produces two create commands andfile: tables/leads.ts.E_NAME_TAKENnamestables/otherand its file.E_PLAN_REF_DELETEDpoints at thetable ( 'leads' )line ofworkflows/ingest/workflow.ts.knowledge.integration.ts:E_KB_FOLDERcarriesknowledge/policies/knowledge.tsand the create command.references.integration.ts:E_SECRET_MISSINGcarriesworkflows/ask/workflow.ts:8, with noW_ENV_UNKNOWNbeside it. A parent that runs a held child getsE_PLAN_REF_HELDon itsrunWorkflowline.files.integration.ts:E_PLAN_REF_DELETEDfor a deleted workspace file carries the workflow file and line.Mothership re-sync: not needed (the chat primer is unchanged).