Repository navigation
Approval demo - #718
Approval demo#718khaliqgant wants to merge 19 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Confidence Score: 5/5
[Medium impact] The changes appear safe to merge; no new blocking issue was found.
|
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 7 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 6 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 7 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
UC1
Verification
flows check, example typecheck, and the end-to-end mock-agent and mock-Slack verification on Node 22.23.3.Review verification at 70f329d
The SDK build, example typecheck, mock rehearsal and 24 focused SDK tests passed on Node 22.23.3 at
70f329dfbfcd16ce651ab676bd0b5bd17a36ef21. The synthetic Relayfile cases used a local directory and did not contact Slack. Rehearsal commands01M8TTHJ92HHEMN0S8HNBPRFW0.node examples/nabis-uc1/verify.mjsassertedresumedAfterDaemonRestart=true. Thread 4765987773 · Restart testRELAYFILE_MOUNT_PATH=mountbefore entering its private working directory. In a targeted rehearsal with synthetic delivery receipts, run01M8TTQHHMZ9D97P7657SFH6KTwrote the prompt and summary beneath that mount in the same fixture thread and then completed. Thread 4765987931 · Mount resolution{"rules":null}in targeted mock run01M8TTQN1P6PG5DSGBG1XM4Z9Y. The run recordedstep_failedand a threaded blocked summary before the reviewer or human wait. Both comments identify the same input check. Thread 4765988130 · Thread 4766011976 · Coder output validationcompleted.catch(). Removing onlyresolve()reproducedunsettled_derived_work. Restoring it passed and verified a single approval prompt followed by anApprovedreply in its thread. The SDK source and test match the mutation receipt at this head. The 24-test successor run included this regression. Thread 4766046957 · Fail-and-pass receipt · SDK regression testSuccessor verification at b93e121
The model-pin successor declares
codex/gpt-5.6-solfor the UC1 worker. The bridge still uses the local read-only Codex shim. The shipped-source scanner found no missing or unresolved model pair for UC1. Pinned agent call01M8TV9F81T9S329MW98CYGEKTafter a daemon restart. The two targeted cases also passed. Run01M8TV9F50EMS5FF30KJT4QM2Cwrote through the relative synthetic mount and surfaced the stale socket warning. Run01M8TV9JW85WTJ7W94C93WPDH5stopped on malformed coder output. Rehearsal commands01M8TV5KEFQDA9QAGASGRBA823with mock Slack and one simulated shipment. Journal receiptLinux artifact result and PATH follow-up
The Linux artifact job on
b93e1217stopped in the full SDK suite with 11 failures, 5,029 passes, and 14 skips. All 11 failing cases also failed on thefa65e682merge base. The UC1 model-pin check and authored Slack replay tests passed in the Linux job. Successor Linux job · Merge-base Linux runThe bridge drops empty PATH entries before resolution at
5008a075. In a targeted mock rehearsal, removing the filter let a trailing empty entry expose the launch directory to the fake agent and reproduced a refusal. Restoring the filter passed. At5008a075, the same rehearsal approved mock run01M8TWEVJFR44HVGR6ZW2RRMAKwith the trailing empty entry present in the launch environment. Thread 4766274883 · PATH normalizationPATH verification at ee42845
The bridge drops empty PATH entries. If that leaves only the read-only Codex shim, the shim exits 127 immediately. The previous shim timed out in the same setup. At
ee428459, the targeted trailing-entry rehearsal passed in mock run01M8TWQ1GF0V5S50DJWWTJ5F0E. The full mock verifier also passed, including the shim-only refusal and approval after a daemon restart, in run01M8TWQ53D1DNMTQTWSZ3RRZFC. Review thread 4766274883 · VerifierThe exact-head Linux artifact job stopped in the SDK suite with 11 failures, 5,029 passes, and 14 skips. All 11 failures also appeared on the
fa65e682merge base. The shipped-source model-pin and authored Slack tests passed. Exact-head Linux job · Merge-base Linux runOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Adds the Nabis UC1 Slack approval demo, where a Slack mention in an approved workspace and test channel starts a fictional pickup-routing run: a planner builds a task graph at runtime, the first reviewer rejects the missing held route, a repair agent fixes it, and a threaded approval from the designated approver must confirm before a simulated shipment is recorded. Also fixes the SDK so resuming an already-completed helper effect settles its pending dispatch promise instead of leaving derived work pending after a Slack write before a human wait.
The demo ships with both a local Socket Mode listener and a native hosted Slack path. The local bridge validates incoming events through a scoped envelope, persists accepted callbacks to an inbox before Slack acknowledgment, and replays unfinished work after a listener restart. It routes through the Flows CLI and the
f.humangate, reconnecting to the local journal before each approval so decisions land after a daemon restart. Mock-agent and real Codex runs pass with mock Slack, including refusals for wrong workspace, channel, approver, or thread, stale replies, bot replies, and a shim-only PATH.Hosted Slack path
mentioned=trueboolean to theslack:trigger settings in@relayflows/surfaceso Cloud accepts a top-level app mention for the approved channel.A live recording needs the approved workspace, test channel, designated approver, and authenticated ingress and writeback access.
Written for commit 12cf8a4. Summary will update on new commits.