Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
961 commits
Select commit Hold shift + click to select a range
c0008dc
test(workflow-code): match corpus cases with no mode suffix in the un…
waleedlatif1 Nov 18, 2026
0f7724c
merge: final fixes (block coverage)
waleedlatif1 Nov 18, 2026
d587ef9
fix(workspace-code): generate select options distinct under case fold…
waleedlatif1 Nov 18, 2026
feef6a0
fix(workflow-sdk): let a declared output replace a fixed one of the s…
waleedlatif1 Nov 18, 2026
2a88ed9
fix(workflow-code): cap compile infos apart so they never crowd out w…
waleedlatif1 Nov 18, 2026
154834a
fix(sim-cli): move a source directory's record files into place last,…
waleedlatif1 Nov 18, 2026
a4f90c7
improvement(code-tab): apply refreshed source as a minimal edit to a …
waleedlatif1 Nov 18, 2026
db45109
fix(table): order a reshape's capped-type retypes so moving one betwe…
waleedlatif1 Nov 18, 2026
0c33e34
improvement(workflow-source): guard compiled resource kinds instead o…
waleedlatif1 Nov 18, 2026
2ffeeab
improvement(sdk-names): keep frozen names in one file per block type
waleedlatif1 Nov 18, 2026
630e859
improvement(sdk-names): read the base's per-block names in one git call
waleedlatif1 Nov 18, 2026
7ee1088
fix(workflow-sdk): require params a function condition shows for the …
waleedlatif1 Nov 18, 2026
772c6d4
refactor(workflow-types): define the variable type vocabulary once
waleedlatif1 Nov 18, 2026
71b9cbe
refactor(workflow-code): replace compile casts with typed guards and …
waleedlatif1 Nov 18, 2026
f2dab79
perf(sim-cli): reuse recorded blob digests and skip the forced previe…
waleedlatif1 Nov 18, 2026
b01b84f
refactor(workflow-code): name the compile test catalog as a test helper
waleedlatif1 Nov 18, 2026
7f57405
fix(sim-cli): name the way back when an apply ends without an answer,…
waleedlatif1 Nov 18, 2026
558f2f7
fix(workspace-code): one parser per source format, behind an upgrade …
waleedlatif1 Nov 18, 2026
7d0d0b3
refactor(sim-cli): keep hashFile private now that statDigest is its o…
waleedlatif1 Nov 18, 2026
2cd062f
docs(workflow-code): maintainer rule and workspace design doc
waleedlatif1 Nov 18, 2026
9fa71b7
merge: final evaluation fixes (cli)
waleedlatif1 Nov 18, 2026
e356e31
refactor(workflow-code): split the printer into scope, params, tools …
waleedlatif1 Nov 18, 2026
10d2598
refactor(workflow-code): split compileRegularBlock into named steps
waleedlatif1 Nov 18, 2026
e622363
refactor(workspace-code): one field table per kind drives read, print…
waleedlatif1 Nov 18, 2026
700aee3
merge: final evaluation fixes (code tab, sdk-names, docs)
waleedlatif1 Nov 18, 2026
6d80e95
refactor(workspace-code): one kind spec record the CLI, findings and …
waleedlatif1 Nov 18, 2026
dc1a1ce
refactor(workflow-code): give each structured subBlock kind one codec…
waleedlatif1 Nov 18, 2026
bf681af
fix(workspace-code): hold mirrored server constants to their source, …
waleedlatif1 Nov 18, 2026
884194a
merge: final evaluation fixes (engine)
waleedlatif1 Nov 18, 2026
817c2bf
fix(workflow-sdk): check references, cells, credentials and child inp…
waleedlatif1 Nov 18, 2026
61ae0bf
fix(workflow-sdk): type workspace tables the way table blocks read them
waleedlatif1 Nov 18, 2026
4bae69d
fix(workflow-sdk): type an operation's outputs as its tool returns them
waleedlatif1 Nov 18, 2026
268f690
fix(workflow-sdk): drop sandbox() and name the misplaced true in a co…
waleedlatif1 Nov 18, 2026
4d74849
refactor(utils): share the CLI's bounded pool as mapWithConcurrency i…
waleedlatif1 Nov 18, 2026
9b74f56
fix(contracts): diagnostic codes and column types as enums over their…
waleedlatif1 Nov 18, 2026
dbaf9f3
fix(cli): resend requests answered 429 after Retry-After with jittere…
waleedlatif1 Nov 18, 2026
4c04299
fix(cli): resend source applies refused by the rate limit, and exit 8…
waleedlatif1 Nov 18, 2026
30e520a
chore(api): regenerate OpenAPI and CLI API for catalog and manifest f…
waleedlatif1 Nov 18, 2026
9effeb4
fix(cli): keep a workspace get's verified downloads when a later one …
waleedlatif1 Nov 18, 2026
5d0258e
fix(workspace-source): charge a workspace apply one source-write unit…
waleedlatif1 Nov 18, 2026
ac72cc9
fix(sim-cli): print workspace and workflow findings over both code vo…
waleedlatif1 Nov 18, 2026
812c390
docs(cli): document exit 9 for a request still rate limited and the k…
waleedlatif1 Nov 18, 2026
ce4989f
merge: final evaluation fixes (sdk types)
waleedlatif1 Nov 18, 2026
be773a9
merge: rate-limit retries and resumable downloads (cli)
waleedlatif1 Nov 18, 2026
a3931ac
fix(workspace-source): refuse copied workflow folders and duplicate n…
waleedlatif1 Nov 18, 2026
ac98a38
improvement(knowledge): record a document's file hash so a workspace …
waleedlatif1 Nov 18, 2026
d4216be
merge: final evaluation fixes (kind specs, field tables, wire formats)
waleedlatif1 Nov 18, 2026
6d1556d
fix(workflow-sdk): write select's owned options in its own helper sig…
waleedlatif1 Nov 18, 2026
86d47a3
fix(workflow-code): print credentials outside password fields as stor…
waleedlatif1 Nov 18, 2026
a772128
fix(workflow-code): refuse cycles and flag unknown outputs, options, …
waleedlatif1 Nov 18, 2026
c06be8a
merge: final evaluation fixes (server correctness, batched reads, sin…
waleedlatif1 Nov 18, 2026
a95d770
chore(api): regenerate workflow source OpenAPI and CLI types for the …
waleedlatif1 Nov 18, 2026
b3b3895
fix(workflow-source): refuse block deletes without --allow-delete, dr…
waleedlatif1 Nov 18, 2026
0a1f73a
merge: compile checks, secret printing, delete and schedule gates (en…
waleedlatif1 Nov 18, 2026
b8e1b0d
chore(api): regenerate workflow source OpenAPI and CLI types for the …
waleedlatif1 Nov 18, 2026
10e39cd
feat(workspace-code): declare MCP servers as workspace source
waleedlatif1 Nov 18, 2026
c436f4f
feat(workflow-sdk): type MCP servers and their tool names
waleedlatif1 Nov 18, 2026
9b08404
feat(workspace-source): apply MCP servers and check the tools workflo…
waleedlatif1 Nov 18, 2026
f2b4d13
docs(workflow-code): note the MCP server kind
waleedlatif1 Nov 18, 2026
549a667
feat(workspace-code): secrets.ts and credentials.ts reference kinds
waleedlatif1 Nov 18, 2026
49193a0
feat(workflow-code): report the env names a compiled workflow reads
waleedlatif1 Nov 18, 2026
6da8be7
feat(workflow-sdk): defineSecrets and defineCredentials declarations
waleedlatif1 Nov 18, 2026
3fd1eac
fix(workspace-source): refuse at plan time what an apply would refuse…
waleedlatif1 Nov 18, 2026
a0ec030
fix(workspace-source): resolve workflows and files created together, …
waleedlatif1 Nov 18, 2026
30f080e
feat(workspace-source): secret and credential reference kinds with he…
waleedlatif1 Nov 18, 2026
20fabeb
feat(sim-cli): root secrets.ts and credentials.ts, held-back changes
waleedlatif1 Nov 18, 2026
3931f4f
chore(workspace-source): drop unused exports, regenerate CLI docs
waleedlatif1 Nov 18, 2026
c5a6e43
feat(workspace-code): deployments kind codec, env.NAME declaration re…
waleedlatif1 Nov 18, 2026
029c991
feat(workflow-sdk): defineDeployment declarations and cookbook example
waleedlatif1 Nov 18, 2026
1c469df
feat(workspace-source): deployments adapter and W_DEPLOYED_DRAFT_CHANGED
waleedlatif1 Nov 18, 2026
78a9823
chore: regenerate openapi, cli api and cli docs for the deployment kind
waleedlatif1 Nov 18, 2026
fa289f3
docs(rules): note the deployment kind and resourceKind spec field
waleedlatif1 Nov 18, 2026
b5b9bd4
merge: MCP servers as workspace source
waleedlatif1 Nov 18, 2026
58247ff
feat(workflow-source): apply a workflow('…') rename instead of refusi…
waleedlatif1 Nov 18, 2026
1e298c0
chore(api): regenerate OpenAPI, CLI types, MCP operations and CLI doc…
waleedlatif1 Nov 18, 2026
5dcaead
improvement(workflow-sdk): one declaration file per block, a builder …
waleedlatif1 Nov 18, 2026
87252a2
improvement(workflow-sdk): cookbook examples for integrations, agent …
waleedlatif1 Nov 18, 2026
c09e952
improvement(cli): fast workflow tsconfig, offline source check, apply…
waleedlatif1 Nov 18, 2026
20b6848
refactor(workspace-source): keep the plan's finding cap private to th…
waleedlatif1 Nov 18, 2026
1ae4874
test(api): give the source resources manifest fixture its MCP servers
waleedlatif1 Nov 18, 2026
24a37d7
merge: secrets and credentials as workspace references
waleedlatif1 Nov 18, 2026
3102d54
merge: deployments as workspace source
waleedlatif1 Nov 18, 2026
719a6b3
merge: agent DX (sdk layout, index, cookbook, offline check)
waleedlatif1 Nov 18, 2026
132eae5
fix(workflow-code): seed switch and slider defaults as the boolean or…
waleedlatif1 Nov 18, 2026
f5b4348
merge: plan-time refusals, created-together resolution, renames, batc…
waleedlatif1 Nov 18, 2026
5fc59b1
merge: seed switch and slider defaults with their real types
waleedlatif1 Nov 18, 2026
98b9df6
fix(tests): let migrated row triggers count table rows; record the of…
waleedlatif1 Nov 18, 2026
5ac4242
Merge remote-tracking branch 'origin/staging' into feat/workspace-code
waleedlatif1 Nov 18, 2026
c3db5a9
docs(rules): point the package test catalog reference at its current …
waleedlatif1 Nov 18, 2026
facb1c4
fix(tables): refuse adding a required column that rows leave empty
waleedlatif1 Nov 18, 2026
61225ce
refactor(workflows): run one block gate list from the editing engine …
waleedlatif1 Nov 18, 2026
9ca8388
fix(workflows): hold a container's new children to the placement gate…
waleedlatif1 Nov 18, 2026
8f23e3f
fix(workspace-source): write the declared public API flag on every fi…
waleedlatif1 Nov 18, 2026
29a3190
perf(workflow-code): blank references in one pass so secret scans sta…
waleedlatif1 Nov 18, 2026
da11587
fix(tts): send a zero ElevenLabs voice setting instead of dropping it
waleedlatif1 Nov 18, 2026
a92628e
fix(workflows): filter denied tools out of every tool-input field in …
waleedlatif1 Nov 18, 2026
ba2fd4d
fix(sim-cli): key the blob digest cache on file identity and change time
waleedlatif1 Nov 18, 2026
26386f1
fix(sim-cli): stop promising a lost apply answer loses nothing
waleedlatif1 Nov 18, 2026
6ae0c99
fix(sim-cli): remove a get's partial downloads when it is interrupted
waleedlatif1 Nov 18, 2026
1814529
chore(audits): shrink the explicit-any and unused-export baselines af…
waleedlatif1 Nov 18, 2026
f5d7e1d
Merge branch 'fix/wc-rv-cli' into feat/workspace-code
waleedlatif1 Nov 18, 2026
7048e24
fix(workspace-source): check deletes against the stored references of…
waleedlatif1 Nov 18, 2026
e52e509
feat(workspace-source): stage blobs by hash, then apply once
waleedlatif1 Nov 18, 2026
79a9050
Merge commit 'f5d7e1d5bb' into fix/fx5-blobs
waleedlatif1 Nov 18, 2026
5e679a1
fix(workflow-code): read a switch's or slider's legacy text as the va…
waleedlatif1 Nov 18, 2026
f418585
Merge branch 'fix/fx5-legacy' into feat/workspace-code
waleedlatif1 Nov 18, 2026
9670693
fix(workflow-source): write a source rename in the guarded commit
waleedlatif1 Nov 18, 2026
a11be88
fix(posthog): read stored text switch values as booleans before the r…
waleedlatif1 Nov 18, 2026
5df9e32
fix(huggingface): send a temperature of 0 whether stored as text or n…
waleedlatif1 Nov 18, 2026
3c820d8
fix(workspace-source): set an MCP URL that keeps the server id in place
waleedlatif1 Nov 18, 2026
12a73d4
feat(workspace-source): table rows as source, seeded or managed
waleedlatif1 Nov 18, 2026
4a29a7b
refactor(workflow-code): derive loop, parallel and usage-control type…
waleedlatif1 Nov 18, 2026
9a3a5cf
Merge branch 'fix/fx5-gates' into feat/workspace-code
waleedlatif1 Nov 18, 2026
1d190eb
test(workspace-source): the cookbook now applies its managed plans table
waleedlatif1 Nov 18, 2026
c377341
refactor(workflow-code): one typed container-forms table for print, c…
waleedlatif1 Nov 18, 2026
94ab831
refactor(workflow-code): tie compile's SDK vocabulary to the types it…
waleedlatif1 Nov 18, 2026
683777b
refactor(workflow-code): one builderPins for print, compile and SDK c…
waleedlatif1 Nov 18, 2026
ed14dd7
fix(workflows): hold an inserted or retyped block to the one-per-work…
waleedlatif1 Nov 18, 2026
b1b53c4
fix(workflow-code): report a missing variable as E_MAT_UNKNOWN_VARIABLE
waleedlatif1 Nov 18, 2026
a82faff
perf(workflow-code): memoize the canonical index and declarations by id
waleedlatif1 Nov 18, 2026
137ab5a
fix(workflow-code): type responseFormat fields the way the runtime re…
waleedlatif1 Nov 18, 2026
6eb7e20
fix(workflows): judge an edit's inputs against the type the same edit…
waleedlatif1 Nov 18, 2026
b1101d8
refactor(workflow-code): narrow structured codecs to the kinds whose …
waleedlatif1 Nov 18, 2026
9c6f165
fix(workspace-source): count only written creates when refusing to de…
waleedlatif1 Nov 18, 2026
b992327
refactor(workflow-code): correlate a container's spec with prev's map…
waleedlatif1 Nov 18, 2026
498a6f8
perf(workflow-code): drop the quadratic scans in materialize identity…
waleedlatif1 Nov 18, 2026
a921e6b
docs(workflow-code): bring the rule file and DESIGN docs up to the code
waleedlatif1 Nov 18, 2026
6724087
feat(sim-cli): check a workflow against its workspace's declarations
waleedlatif1 Nov 18, 2026
cd60034
fix(posthog): coerce the pinned, favorited, deleted and archived swit…
waleedlatif1 Nov 18, 2026
2e83f75
feat(sim-cli): sim workspaces source check
waleedlatif1 Nov 18, 2026
2983557
fix(workflow-code): one rule for the outputs a trigger block exposes
waleedlatif1 Nov 18, 2026
49b4cfc
Merge branch 'fix/wc-legacy-runtime' into feat/workspace-code
waleedlatif1 Nov 18, 2026
0a3c2d7
docs(sim-cli): put source check into the edit loop
waleedlatif1 Nov 18, 2026
57a2834
fix(editing): import the gate list by absolute path
waleedlatif1 Nov 18, 2026
5a0bcfe
chore(workspace-source): keep the rows mode type private; point the r…
waleedlatif1 Nov 18, 2026
6081c8b
test(workflows): build the notification test's stored block in a type…
waleedlatif1 Nov 18, 2026
2b54811
fix(editing): import the gate list by absolute path
waleedlatif1 Nov 18, 2026
95e175d
Merge commit '57a2834180' into feat/k-rows
waleedlatif1 Nov 18, 2026
9f400d9
refactor(sim-cli): drop exports the source checks no longer share
waleedlatif1 Nov 18, 2026
2e516f3
Merge branch 'fix/fx5-gates' into feat/workspace-code
waleedlatif1 Nov 18, 2026
a5415ca
fix(workspace-source): report a missing blob only when nothing else r…
waleedlatif1 Nov 18, 2026
5b3d1f8
refactor(workflow-code): keep ConfigEntry private to forms/subflow.ts
waleedlatif1 Nov 18, 2026
644cc0a
Merge branch 'fix/wc-rv-server' into feat/workspace-code
waleedlatif1 Nov 18, 2026
aa064f5
Merge branch 'fix/wc-dx-cli' into feat/workspace-code
waleedlatif1 Nov 18, 2026
a49d1bb
feat(workflow-sdk): credential fields take credential() or a run-time…
waleedlatif1 Nov 18, 2026
0da7c35
feat(workflow-sdk): require required table columns on whole-row writes
waleedlatif1 Nov 18, 2026
dfc70b0
test(workflow-sdk): pin the typed human-in-the-loop submission
waleedlatif1 Nov 18, 2026
77a7984
docs(workflow-sdk): document run-time semantics in INDEX.md
waleedlatif1 Nov 18, 2026
ea03ce1
fix(workspace-code): check versioned-JSON field lists against their t…
waleedlatif1 Nov 18, 2026
0c00071
fix(workspace-code): type finding kinds, refusal codes and key shapes
waleedlatif1 Nov 18, 2026
7c8a064
feat(workspace-source): write managed rows as a keyed diff, not a who…
waleedlatif1 Nov 18, 2026
d58ff83
Merge branch 'fix/wc-dx-sdk' into feat/workspace-code
waleedlatif1 Nov 18, 2026
6516f04
refactor(workspace-code): read tools and skills through DeclFields
waleedlatif1 Nov 18, 2026
c22c5f5
fix(workflow-sdk): take workspace declaration paths and imports from …
waleedlatif1 Nov 18, 2026
12a9134
Merge branch 'fix/wc-e2' into feat/workspace-code
waleedlatif1 Nov 18, 2026
c681e7a
Merge integration head 12a913486f into fix/wc-e3
waleedlatif1 Nov 18, 2026
6ff9e09
Merge commit '12a913486f' into fix/wc-e1
waleedlatif1 Nov 18, 2026
9a22b6b
fix(workflow-code): report a misspelled bare builder as E_UNKNOWN_BUI…
waleedlatif1 Nov 18, 2026
b247620
fix(workflow-code): drop a duplicate block's edges instead of rewirin…
waleedlatif1 Nov 18, 2026
e3b8a0b
fix(workflow-code): frame E_EDGE_CYCLE at the edge that closes the cycle
waleedlatif1 Nov 18, 2026
d9332ef
fix(workflow-code): ask for a schedule timezone only where the schedu…
waleedlatif1 Nov 18, 2026
dda174b
fix(workflow-code): check slider ranges and name credential() for a l…
waleedlatif1 Nov 18, 2026
da09ccb
Merge commit '12a913486f' into fix/wc-dx-diag
waleedlatif1 Nov 18, 2026
224c5e8
fix(sim-cli): fail a strict check on W_OUT_OF_RANGE
waleedlatif1 Nov 18, 2026
88b0870
refactor(workflow-code): keep declarationsById and responseFormatFiel…
waleedlatif1 Nov 18, 2026
d055b66
chore(workspace-source): document and classify the staging operations…
waleedlatif1 Nov 18, 2026
816deec
fix(workflow-code): take the merged FieldIndex | null in checkSchedul…
waleedlatif1 Nov 18, 2026
c1d74bd
Merge commit 'c681e7a3ec' into feat/k-rows
waleedlatif1 Nov 18, 2026
457827f
Merge commit 'c681e7a3ec' into fix/fx5-blobs
waleedlatif1 Nov 18, 2026
e55f103
docs(cli): regenerate the CLI docs for the W_OUT_OF_RANGE strict code
waleedlatif1 Nov 18, 2026
123f5d8
fix(workspace-source): leave staged blobs to expire instead of deleti…
waleedlatif1 Nov 18, 2026
41902a2
Merge branch 'fix/wc-e1' into feat/workspace-code
waleedlatif1 Nov 18, 2026
8954e6d
Merge branch 'fix/wc-dx-diag' into feat/workspace-code
waleedlatif1 Nov 18, 2026
45e76cc
chore(docs): record the source check and workspace check examples in …
waleedlatif1 Nov 18, 2026
809e9da
fix(workspace-source): read the Code tab source from its query contex…
waleedlatif1 Nov 18, 2026
087883a
Merge branch 'fix/fx5-blobs' into feat/workspace-code
waleedlatif1 Nov 18, 2026
a952689
style(tests): format the credential probe fixture
waleedlatif1 Nov 18, 2026
168208d
Merge remote-tracking branch 'origin/staging' into feat/workspace-code
waleedlatif1 Nov 18, 2026
337e353
fix(workspace-source): check the planned row version under the reshap…
waleedlatif1 Nov 18, 2026
efd1ae8
feat(db): add workspace_source_apply_lease to serialize workspace sou…
waleedlatif1 Nov 18, 2026
74fa8d0
fix(workspace-source): let one apply write a workspace at a time
waleedlatif1 Nov 18, 2026
57e3875
feat(sim-cli): exit 10 when another workspace source apply is writing…
waleedlatif1 Nov 18, 2026
32c14d3
fix(workspace-source): refuse a chat output the edited draft lacks be…
waleedlatif1 Nov 18, 2026
d996dc7
fix(workspace-source): refuse table rows the declared columns cannot …
waleedlatif1 Nov 18, 2026
940368d
fix(huggingface): keep the typed temperature default after the stagin…
waleedlatif1 Nov 18, 2026
b21f43b
test: build fake tokens from parts so no token-shaped literal sits in…
waleedlatif1 Nov 18, 2026
e4548c0
test(workspace-source): a second apply sharing a staged blob is refus…
waleedlatif1 Nov 18, 2026
e680bee
fix(posthog): leave active, experience continuity and static untouche…
waleedlatif1 Nov 18, 2026
3216121
refactor(workspace-source): keep the lease-lost error private to the …
waleedlatif1 Nov 18, 2026
355b0e8
fix(workspace-source): claim a created workflow's or file's key in it…
waleedlatif1 Nov 18, 2026
f870486
fix(workspace-source): report a resource deleted mid-apply as stale
waleedlatif1 Nov 18, 2026
a234868
fix(credentials): bind workspace source credential keys through audit…
waleedlatif1 Nov 18, 2026
82864d8
fix(sim-cli): exit a source apply by its refusal class everywhere
waleedlatif1 Nov 18, 2026
dbbc3e9
Merge remote-tracking branch 'origin/staging' into feat/workspace-code
waleedlatif1 Nov 18, 2026
3be2b9a
feat(knowledge): keyset document listing by id for whole-base walks
waleedlatif1 Nov 18, 2026
b7f0d30
perf(workspace-source): list knowledge documents by keyset, a few bas…
waleedlatif1 Nov 18, 2026
656dacb
perf(workspace-source): bound a get by a directory workflow budget an…
waleedlatif1 Nov 18, 2026
200fb67
perf(workspace-source): scan for workflows using a resource only for …
waleedlatif1 Nov 18, 2026
8edc309
perf(workspace-source): list deployed workflows once per request
waleedlatif1 Nov 18, 2026
f070d44
fix(workspace-source): own rate bucket for gets, per-process slots, b…
waleedlatif1 Nov 18, 2026
2a34de4
docs(cli): regenerate the CLI reference for the source apply exit codes
waleedlatif1 Nov 18, 2026
bff28e7
chore(table): shrink the non-null baseline for validation.ts
waleedlatif1 Nov 18, 2026
ecb9a61
Merge branch 'fix/wc-s1' into feat/workspace-code
waleedlatif1 Nov 18, 2026
f5780c1
Merge branch 'fix/wc-rv3' into feat/workspace-code
waleedlatif1 Nov 18, 2026
3e4dc0a
fix(workspace-source): rewrite a kept chat whose output block the edi…
waleedlatif1 Nov 18, 2026
71c3c72
Merge commit '168208dfbe' into fix/wc-s2
waleedlatif1 Nov 18, 2026
25d5a63
test(workspace-source): a chat rewrite keeps a stored() password, on …
waleedlatif1 Nov 18, 2026
8adb184
Merge branch 'fix/wc-s2' into feat/workspace-code
waleedlatif1 Nov 18, 2026
50f5451
fix(workspace-source): refuse a delete whose in-use scan times out
waleedlatif1 Nov 18, 2026
6a194fa
Merge commit 'f5780c1085' into fix/wc-s3
waleedlatif1 Nov 18, 2026
2be5291
Merge branch 'fix/wc-s3' into feat/workspace-code
waleedlatif1 Nov 18, 2026
07578d2
fix(db): install the table row-change triggers on push-provisioned da…
waleedlatif1 Nov 18, 2026
cfe73c1
chore(helm): bump chart to 1.11.21 for the source-staging cleanup cron
waleedlatif1 Nov 18, 2026
8f245ef
test(workflow-code): budget the 300k-child walk for loaded CI runners
waleedlatif1 Nov 18, 2026
8fda780
test(table): gate the provenance-demote assertion on the demote trigger
waleedlatif1 Nov 18, 2026
32c4982
fix(table): let a batch update swap values in a unique column
waleedlatif1 Nov 18, 2026
ca558a3
fix(cli): refuse a symlinked downloads folder or kept download in a s…
waleedlatif1 Nov 18, 2026
8d22bf4
Merge remote-tracking branch 'origin/staging' into fix/wc-ci
waleedlatif1 Nov 18, 2026
f5f3a68
fix(workspace-source): read a chat's outputs by planned names in the …
waleedlatif1 Nov 18, 2026
decd367
fix(cli): refuse a source get that would restore a file deleted since…
waleedlatif1 Nov 18, 2026
0395601
fix(cli): keep the workflow block includes on a source get that skips…
waleedlatif1 Nov 18, 2026
2bd65f9
fix(workspace-code): read a declaration saved with a byte order mark,…
waleedlatif1 Nov 18, 2026
5940dd1
fix(workflow-code): diagnostics name the fix instead of cascading
waleedlatif1 Nov 18, 2026
b1d6dfd
fix(sim-cli): source check and apply help read cleanly
waleedlatif1 Nov 18, 2026
d0ebe82
docs(workflows): correct the source pages against the code
waleedlatif1 Nov 18, 2026
f977466
Merge remote-tracking branch 'origin/staging' into fix/wc-rv4
waleedlatif1 Nov 18, 2026
7a80983
test(workflow-code): accept a workflow of exactly the block cap
waleedlatif1 Nov 18, 2026
235eb4c
fix(sim-cli): a source command on the wrong directory says so
waleedlatif1 Nov 18, 2026
83e9a06
test(workspace-code): pin the plan-time guards no test reached
waleedlatif1 Nov 18, 2026
7ff7504
docs(workflow-code): SYNTAX.md lists I_SCHEDULE_UTC and the new hints
waleedlatif1 Nov 18, 2026
f0f7cbe
fix(workspace-source): refuse at plan time a rename onto a name anoth…
waleedlatif1 Nov 18, 2026
656ad67
fix(workspace-source): keep the errors that class a refusal when a pl…
waleedlatif1 Nov 18, 2026
e013f39
fix(workspace-source): report a lease taken over part-way as a failur…
waleedlatif1 Nov 18, 2026
8fc56c2
test(workspace-source): an edited parent still running a deleted chil…
waleedlatif1 Nov 18, 2026
d8b96d6
feat(workspace-code): status module reading local changes and dry-run…
waleedlatif1 Nov 18, 2026
c418ff6
feat(cli): workflows and workspaces source status and diff
waleedlatif1 Nov 18, 2026
07f23f4
test(workspace-source): status against Postgres
waleedlatif1 Nov 18, 2026
3bacf7f
docs(workflow-code): status and diff in the edit loop
waleedlatif1 Nov 18, 2026
68e910c
Merge commit 'f977466827' into fix/wc-a2-logic
waleedlatif1 Nov 18, 2026
a76a558
Merge commit 'f977466827' into fix/wc-a2-usability
waleedlatif1 Nov 18, 2026
01a06d6
Merge commit 'f977466827' into fix/wc-a2-status
waleedlatif1 Nov 18, 2026
f404b39
fix(cli): status counts a missing written file as deleted, as get now…
waleedlatif1 Nov 18, 2026
0dd52a7
fix(workspace-source): name ambiguous credentials in one order every …
waleedlatif1 Nov 19, 2026
8b728f4
feat(sim-cli): --output json carries every source finding
waleedlatif1 Nov 19, 2026
419268c
chore(cli): drop unused status type exports and redundant mock restores
waleedlatif1 Nov 19, 2026
a9e7cf0
chore(docs): record the source JSON output example in the docs baseline
waleedlatif1 Nov 19, 2026
5661720
chore(docs): record the status and diff examples in the docs baseline
waleedlatif1 Nov 19, 2026
3171b8f
Merge branch 'fix/wc-a2-status' into feat/workspace-code
waleedlatif1 Nov 19, 2026
c9581fd
feat(sim-cli): a refused source write keeps its findings in the JSON …
waleedlatif1 Nov 19, 2026
1514c95
Merge branch 'fix/wc-a2-usability' into feat/workspace-code
waleedlatif1 Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .agents/skills/add-block/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,8 @@ When adding or changing `sunset.replacedBy`, run `bun run generate:block-success
map to resolve legacy and current block IDs consistently without importing the executable registry.
Verify it with `bun run check:block-successors`.

A new block type also needs `bun run generate:sdk-names` (commit the new `apps/sim/blocks/sdk-names/<type>.json` and the regenerated `apps/sim/blocks/sdk-names.generated.ts`; names are add-only, and a merge conflict in the generated module is resolved by rerunning the generator) so workflow source gets a typed builder for it; `check:sdk-names` fails CI until it runs.

Adding a block on its own needs no **tool metadata** regeneration — a block references existing
tool IDs through `tools.access` and does not change any tool's shape.

Expand Down
9 changes: 9 additions & 0 deletions .agents/skills/add-column-type/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ Registering the *type* is compiler-enforced. Registering its *metadata* is not,

Copy `currency`'s service function and orchestration branch.

## Workspace source and the workflow SDK

The workspace source table codec reads the registry, but the SDK restates each type: add the
`column.<type>()` helper to `packages/workflow-sdk/src/workspace/table.d.ts` (the drift test in
`lib/workspace-source/application/kinds/table/codec.test.ts` fails until you do), map the type's row
value in `columnType()` (`packages/workflow-sdk/src/codegen/workspace.ts`, which defaults to
`string`), and regenerate the embedded text (`bun packages/workflow-sdk/scripts/generate-embedded-text.ts`).
See `.claude/rules/sim-workflow-code.md`.

## Checklist Before Finishing

- [ ] Id appended to `COLUMN_TYPES` in `column-types/types.ts`
Expand Down
2 changes: 2 additions & 0 deletions .agents/skills/add-integration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ export const BLOCK_META_REGISTRY: Record<string, BlockMeta> = {
}
```

Then run `bun run generate:sdk-names` and commit the new `apps/sim/blocks/sdk-names/<type>.json` and the regenerated `apps/sim/blocks/sdk-names.generated.ts` (names are add-only: never edit or delete an existing entry; on a merge conflict in the generated module, rerun the generator), so workflow source gets a typed builder for the new block (`check:sdk-names` fails CI until it runs).

### Trigger Registry (`apps/sim/triggers/registry.ts`) - If triggers exist

```typescript
Expand Down
203 changes: 203 additions & 0 deletions .claude/rules/sim-workflow-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
---
description: Workflows and workspaces as code (workflow source, workspace source, the workflow SDK, the Code tab)
paths:
- "packages/workflow-code/**"
- "packages/workspace-code/**"
- "packages/workflow-sdk/**"
- "packages/sim-cli/src/commands/protocol/*source*"
- "apps/sim/lib/workflows/code/**"
- "apps/sim/lib/workflows/application/*source*"
- "apps/sim/lib/workspace-source/**"
- "apps/sim/blocks/sdk-names/**"
- "apps/sim/app/workspace/**/panel/components/code/**"
---

# Workflows and Workspaces as Code

A workflow prints to TypeScript and compiles back; a workspace prints to a directory of
declarations and applies back. Read the design docs before changing an engine or a format:
`packages/workflow-code/DESIGN.md` (one workflow) and `packages/workspace-code/DESIGN.md` (the
workspace directory).

## Where things live

| Where | What |
|---|---|
| `packages/workflow-types` | Shared workflow, block and resource-kind types (`WORKFLOW_RESOURCE_KINDS`) |
| `packages/workflow-code` | Pure engines for one workflow: catalog types, canonicalize, print, compile, materialize, lock, diagnostics |
| `packages/workspace-code` | Pure workspace half: `KIND_DIRS`, `APPLY_ORDER`, one codec per kind (`src/kinds/`), `.sim/base.json`, `rf1:` fingerprints, limits |
| `packages/workflow-sdk` | Authoring declarations (`src/core.d.ts`, `src/workspace/*.d.ts`), type codegen from the catalog (`src/codegen/`), the cookbook |
| `packages/sim-cli/src/commands/protocol/` | `workflow-source-*` and `workspace-source-*` commands; `source-dir.ts`, `source-tree.ts`, `source-ui.ts` are shared |
| `apps/sim/lib/workflows/code/` | Server glue: catalog projection from the registry (`catalog/`), source-apply gates (`apply/`), stored canonical form, the feature flag, the proof corpus (`corpus/`) |
| `apps/sim/lib/workflows/application/*source*` | Workflow source use cases: read, apply, create, catalog, resources |
| `apps/sim/lib/workspace-source/` | Workspace source use cases (`application/`), one adapter per kind (`application/kinds/<kind>/`), route policies (`api/`) |
| `apps/sim/blocks/sdk-names/<type>.json` | Frozen SDK builder names, one file per block type |
| `apps/sim/app/workspace/**/panel/components/code/` | The read-only Code tab |

Dependencies point one way: `packages/workflow-types` → `packages/workflow-code` →
`packages/workspace-code` and `packages/workflow-sdk` → the CLI and `apps/sim`. `check:boundaries` keeps both engines pure (no
Node built-ins, `eval`, `globalThis`, dynamic import): they run in the browser, the CLI and the
server unchanged.

## Naming: "code" and "source"

Both words name the same feature; the split is historical, so follow it rather than rename:

- **code** names the feature and its engines: the packages (`workflow-code`, `workspace-code`), the
server glue folder `lib/workflows/code/`, the `workflow-code` flag, the Code tab.
- **source** names the artifact and the operations on it: the files themselves, the use cases
(`readWorkflowSource`, `applyWorkspaceSource`), the routes (`/source`), the CLI
(`sim workflows source get`), `lib/workspace-source/`.

A new module goes where its neighbours are: an engine or engine glue under a `code` folder, a use
case or surface under a `source` name.

## The canonical model

Every engine meets at the canonical workflow model (CWM): id-free, keyed by normalized block name,
with the executable view separated from preserved state. Print and compile are inverses over it;
canonicalize and materialize convert between it and stored state, with identity carried by the
lock. The catalog (built from the block registry, `lib/workflows/code/catalog/`) is the only way an
engine learns about blocks; engines never import the registry. See DESIGN.md "The canonical model"
and "The catalog".

## Feature flag

One global flag, `workflow-code` (`lib/core/config/feature-flags.ts`, env fallback
`WORKFLOW_CODE`), gates workflow source, workspace source, the source catalog and resources, and
the Code tab. Every use case calls `requireWorkflowCodeEnabled()`
(`lib/workflows/code/feature-flag.ts`); the UI reads it from the workspace layout's flags. A new
surface gates through the same function, never its own check.

## Adding things

### A block type

Normal integration work, then `bun run generate:sdk-names`, which adds
`apps/sim/blocks/sdk-names/<type>.json` and regenerates `sdk-names.generated.ts`. Nothing else: the
catalog projection, SDK codegen, the corpus and default parity derive from the registry.
`check:sdk-names` fails until the generator runs. Names are add-only (`check:sdk-names-frozen`):
never edit or delete an existing entry; a collision gets a hand-picked name for the new entry.
Goldens (`packages/workflow-code/src/print/__golden__`) print real blocks, so an edit to one of
those blocks can change a golden: refresh with
`bun run --cwd apps/sim test lib/workflows/code/goldens.test.ts -u`, never by hand.

A block whose `value()` or condition the probe cannot evaluate (`catalog/probe.ts`) degrades to an
opaque type: it works, with weaker SDK typing.

### A subBlock type

1. `SubBlockType` (`apps/sim/blocks/types.ts` and `@sim/workflow-types/blocks`).
2. `TYPE_RULES` in `lib/workflows/code/catalog/value-kind.ts` (a total `Record`, so type-checked).
3. `mapSubBlock` in `packages/workflow-sdk/src/codegen/map-subblock.ts` (a `never` arm).
4. `getSubBlockValueShape` in `apps/sim/tools/param-shape.ts`, which defaults to `string`.
5. `packages/workflow-code/src/compile/catalog.test-helpers.ts` restates the rule flags for package tests.
6. A **structured** value (`CatalogStructuredKind`): add an entry to `STRUCTURED_CODECS`
(`packages/workflow-code/src/structured/index.ts`); the record is total over the kinds, so tsc
fails until the kind has a codec, and `StructuredCodec` (`structured/codec.ts`) lists the hook
each stage calls. Add corpus coverage. Only a kind lifted out of the param value into its own
model shape (`tools`, `branches`, the `LIFTED_STRUCTURED_KINDS`) skips the record and has its
own stage modules.
7. A **selector to a workspace resource**: the resource kind (`WORKFLOW_RESOURCE_KINDS`), its live
loader in `lib/workspaces/resource-keys.ts`, the SDK `*Ref` type in `core.d.ts`, and the
manifest (`lib/workflows/application/read-source-resources.ts`,
`packages/workflow-sdk/src/codegen/workspace.ts`).

### A table column type

Follow `/add-column-type`. The workspace codec reads the column registry
(`lib/workspace-source/application/kinds/table/codec.ts`), but three places restate it:

- the `column.<type>()` helper in `packages/workflow-sdk/src/workspace/table.d.ts`
(`kinds/table/codec.test.ts` fails until it exists), then regenerate the embedded text
(`bun packages/workflow-sdk/scripts/generate-embedded-text.ts`);
- `columnType()` in `packages/workflow-sdk/src/codegen/workspace.ts`, the row type `table('k')`
gives, which defaults to `string`;
- a type that owns metadata: `TABLE_COLUMN_METADATA_KEYS` in
`packages/workspace-code/src/kinds/table.ts` plus the reader and printer there.

### A workspace resource kind

The kinds: secrets (`secrets.ts`), credentials (`credentials.ts`), custom tools, skills, MCP servers
(`mcp/<key>.ts`), tables (with opt-in rows in `tables/<key>.rows.jsonl`, see DESIGN.md "Table
rows"), knowledge bases, files, workflows and deployments
(`deployments/<workflow key>.ts`, applied after workflows; see DESIGN.md "The deployment kind").
Secrets and credentials are reference kinds declared whole in one root file (`FILE_KINDS`): see
DESIGN.md "Reference kinds" for holding back the workflows that use an entry the workspace cannot
satisfy.

1. `APPLY_ORDER` and `KIND_DIRS` (`packages/workspace-code/src/kind.ts`) and its
`WORKSPACE_KIND_SPECS` entry (`src/specs.ts`: `resourceKind` is the key-table kind a workflow
names it by and a write claims, `null` for a kind with no key row of its own: a secret, a file
keyed by path, a deployment keyed by its workflow's key); every `Record<WorkspaceKind, …>` then
fails to type-check until it has the kind.
2. A codec `packages/workspace-code/src/kinds/<kind>.ts` with tests; `KIND_LAYOUTS`, and
`BLOB_KIND_CODECS` if it holds blobs (`src/kinds/registry.ts`); its diagnostic codes.
3. An adapter `apps/sim/lib/workspace-source/application/kinds/<kind>/adapter.ts` calling the
kind's own use cases; `KIND_ADAPTERS` (`application/registry.ts`) and `NOUNS`
(`application/findings.ts`); an integration test.
4. If workflows name it by key: `WORKFLOW_RESOURCE_KINDS`, the live loader in
`lib/workspaces/resource-keys.ts`, the manifest in `read-source-resources.ts` and
`codegen/workspace.ts`, and `PENDABLE_REFERENCES` in
`lib/workflows/application/source-evaluate.ts`.
5. SDK: `packages/workflow-sdk/src/workspace/<kind>.d.ts` plus `index.d.ts`, a cookbook example
under `cookbook/workspace/`, then regenerate the embedded text.
6. CLI (`workspace-source-dir.ts`): `workspaceTsconfig` includes, the `AGENTS_GUIDE` section and
`localDeclarations`.
7. Contracts: regenerate the OpenAPI specs and `packages/sim-cli/src/generated/v2-api.ts`.

Steps 4 to 6 have no compile-time guard: a miss ships a kind that the CLI never type-checks or
that a workflow cannot reference.

A kind whose resources workflows name a member of (an MCP server's
tools) carries the member on the workflow change's `refs` and checks it in its adapter's
`checkRefs`, which runs once every kind is planned. A secret-bearing field prints `stored()` or an
env reference, never a value, and a literal secret in source is refused (`E_MCP_LITERAL_SECRET`).

### A field on an existing kind

Add it to the declaration type and to the kind's field table (`DeclFields`,
`declaration/field-table.ts`: `KNOWLEDGE_FIELDS`, `MCP_FIELDS`, `SECRET_FIELDS`, …). The table is
typed over every field of the declaration, so tsc fails until the field has an entry, and that one
entry is how the kind reads, prints and fingerprints it. Then the server's stored → declaration
mapping and diff, and the SDK `.d.ts`. Custom tools and skills are the exception: their fingerprint
walks a `CanonicalFields` table, but the reader and printer handle each field by hand, so a new
field there needs the reader, the printer **and** the table. A field left out of the fingerprint
makes an edit fingerprint as unchanged and silently drops it; the kind's test fixture must set the
field so the "reads back every declaration it prints" test covers it. A default mirrored from
`apps/sim` (`DEFAULT_CHUNKING`) must match the server's, or every undeclared resource reads as
changed.

## Formats and versions

| Artifact | Marker | Rule |
|---|---|---|
| `.sim/lock.json` (workflow) | `version: 1` | Add optional fields without a bump; validators learn a field before writers emit it; unknown data goes under `x-` keys |
| `.sim/base.json` (workspace) | `version: 1` | Same policy |
| `workflow_source_meta` | `version: 1` | Same policy; a bump needs a data migration |
| Fingerprints | `sf1:` (workflow), `rf1:` (resource) | Any change to canonicalize or a kind's `canonical()` output changes every stored fingerprint and makes every checkout stale; treat it as a format change |
| SDK surface | `// @sim-sdk 1`, `SDK_MAJOR`, `OLDEST_SDK_MAJOR` | Compile refuses a newer major and reads down to the floor |
| `apps/sim/blocks/sdk-names/` | append-only | Never rename or remove a name |

Nothing upgrades an old version: a bump is a hard refusal until a migration exists. A lock or base
field also appears in the zod contracts (`workflowLockSchema`, `sourceBaseSchema` in
`lib/api/contracts/workflow-source.ts`), so keep both in step.

## Proof

Behaviour is proven by properties over the real registry, not restated unit tests:

- `bun run --cwd apps/sim test lib/workflows/code` runs the default corpus (sampled per block type,
under 60 s): round trip (`corpus/roundtrip.corpus.test.ts`, properties P0–P7 and O1–O3 in
DESIGN.md "Proof"), inactive params, stale outputs, secrets, default parity, goldens and SDK
examples.
- `ROUNDTRIP_CORPUS_FULL=1` runs every case; `ROUNDTRIP_CORPUS_EXTRA_DIR` adds redacted production
states; `ROUNDTRIP_CORPUS_REPORT_PATH` writes a report. `corpus/typecheck.corpus.test.ts` with
`ROUNDTRIP_CORPUS_FULL=1` type-checks every printed case against the generated SDK.
- Apply behaviour is proven against Postgres: `apps/sim/lib/workflows/application/*.integration.ts`
and `apps/sim/lib/workspace-source/application/*.integration.ts`.
- The Code tab and the CLI have HTTP e2e scripts (`apps/sim/scripts/test-workflow-code-ui-e2e.ts`,
`test-workflow-source-e2e.ts`, `test-workspace-source-e2e.ts`).
- Generated artifacts and their checks: `generate:sdk-names` (`check:sdk-names`,
`check:sdk-names-frozen`), the SDK embedded text (its `*-text.test.ts`), goldens
(`check:workflow-code-golden`).
Loading