Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion smithers/workflows/rig-loop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const { Workflow, Sequence, Parallel, Task, Loop, Branch, smithers, outputs } =

export default smithers((ctx) => {
const advisor = ctx.input.advisor !== false;
const seed = ctx.input.built.join(", ") || "(none)";
const seed = (ctx.input.built ?? []).join(", ") || "(none)";

const pick = ctx.latest(outputs.pick, "pick");
const backlogDry = Boolean(pick && (pick.ready === false || (pick.ticketId ?? "") === ""));
Expand Down
4 changes: 2 additions & 2 deletions smithers/workflows/rig-sync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const { Workflow, smithers, outputs } = createSmithers({

/** One reconciling lane: isolated worktree, coder↔reviewer until approved.
* RED→GREEN→review for code — the rig-task loop, in-workflow. */
function Unit({ ctx, u, baseBranch }: { ctx: any; u: z.infer<typeof unitSchema>; baseBranch: string }) {
function Unit({ ctx, u, baseBranch }: { ctx: any; u: z.infer<typeof unitSchema>; baseBranch: string; key?: string }) {
const s = slug(u.id);
return (
<Worktree path={`.wt/${s}`} branch={`rig-sync/${s}`} baseBranch={baseBranch}>
Expand All @@ -89,7 +89,7 @@ without it. Else return blockers. Set unitId: "${u.id}".`}

export default smithers(
(ctx) => {
const work = ctx.input.units.filter((u) => u.klass === "work");
const work = (ctx.input.units ?? []).filter((u) => u.klass === "work");
// Gates are DECISION NODES; subsequent steps are gated on the recorded
// decision (rig's EpicFlow convention) — nesting steps as Approval children
// does not schedule them.
Expand Down
Loading