Skip to content

refactor(consensus-demo): collapse to single portable flow#21

Open
figitaki wants to merge 7 commits intomainfrom
monad/pr18-plan
Open

refactor(consensus-demo): collapse to single portable flow#21
figitaki wants to merge 7 commits intomainfrom
monad/pr18-plan

Conversation

@figitaki
Copy link
Copy Markdown

@figitaki figitaki commented Apr 7, 2026

Summary

  • collapse the consensus demo to a single focused run flow
  • switch to human/agent static config inputs with preflight validation
  • rewrite the example docs for a more portable SDK-style walkthrough

What changed

  • remove setup/teardown orchestration from the demo
  • add --human-config and --agent-config
  • validate same org / same base URL before running
  • run the flow as: create policy -> agent tk ssh git-sign -> parse activity info -> human tk activity approve
  • remove sign.sh and keep orchestration in the example itself

Validation

  • rustup run stable cargo check --manifest-path Cargo.toml -p tk --example consensus_demo

natefikru and others added 7 commits March 31, 2026 22:00
Drop SSH-specific signing in favor of sign_raw_payload via TurnkeyClient.
Replace CLI credential flags with env vars matching rust-sdk/examples.
Remove unused user tag from demo state. Simplify docs.
Add setup.sh, sign.sh, and teardown.sh scripts for the consensus demo.
The sign script uses the tk CLI directly to demonstrate the end-to-end
consensus flow. Remove localhost and internal stack references from docs
and code.
Remove the Rust example's Sign subcommand and related SDK imports.
Signing is done exclusively through the tk CLI via sign.sh, which is
the point of the demo. Delete setup.sh and teardown.sh wrappers since
the Rust example handles those directly. Clean up code and restructure
docs as a numbered walkthrough.
Move sign.sh, README, and main.rs into tk/examples/consensus_demo/.
Remove scripts/ and docs/consensus-demo.md. Update all path references
in READMEs, sign.sh, and the Rust example output.
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.

2 participants