bastion
Programmable Trust Runtime for Autonomous Systems. Orchestrates identity, policy, privacy, durable execution, and multi-chain settlement.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- bastion
- homepage
- https://github.com/zkos-labs/bastion
- metadata
- { "emoji": "🛡️", "category": "trust-runtime", "requires": { "bins": [ "bastion" ] }, "alphaWarning": "Bastion is in alpha testing. Use with caution in production environments." }
- description
- Programmable Trust Runtime for Autonomous Systems. Orchestrates identity, policy, privacy, durable execution, and multi-chain settlement.
02 资源文件 418
- 其他.cargo/audit.toml1.2 KB
- 其他.claude/skills/rust-best-practices40 B
- 其他.dockerignore116 B
- 其他.env.example1.3 KB
- 参考文档.github/dependabot.yml737 B
- 参考文档.github/workflows/ci.yml5.4 KB
- 参考文档.github/workflows/docker.yml1.3 KB
- 参考文档.github/workflows/fly-deploy.yml645 B
- 参考文档.github/workflows/publish.yml2.6 KB
- 其他.gitignore383 B
- 其他.gitmodules643 B
- 参考文档AGENTS.md21.3 KB
- 脚本animation.py3.0 KB
- 其他apps/web/.env.example1.2 KB
- 其他apps/web/.gitignore64 B
- 参考文档apps/web/components.json683 B
- 参考文档apps/web/index.html687 B
- 其他apps/web/netlify.toml120 B
- 脚本apps/web/netlify/edge-functions/markdown-agent.ts1.6 KB
- 参考文档apps/web/package.json1.2 KB
- 脚本apps/web/postcss.config.js79 B
- 其他apps/web/public/_headers2.3 KB
- 其他apps/web/public/_redirects24 B
- 参考文档apps/web/public/.well-known/agent-skills/index.json825 B
- 其他apps/web/public/.well-known/api-catalog766 B
- 参考文档apps/web/public/.well-known/mcp/server-card.json3.5 KB
- 其他apps/web/public/.well-known/oauth-authorization-server1.0 KB
- 其他apps/web/public/.well-known/oauth-protected-resource457 B
- 参考文档apps/web/public/agent-templates/custom-agent.yml880 B
- 参考文档apps/web/public/agent-templates/defi-agent.yml902 B
- 参考文档apps/web/public/agent-templates/trading-agent.yml838 B
- 参考文档apps/web/public/agent-templates/transfer-agent.yml586 B
- 参考文档apps/web/public/auth.md2.6 KB
- 资产文件apps/web/public/bastion.svg626 B
- 参考文档apps/web/public/dashboard.md1.1 KB
- 资产文件apps/web/public/fonts/CabinetGrotesk-Variable.woff240.9 KB
- 资产文件apps/web/public/fonts/Sentient-Variable.woff249.4 KB
- 资产文件apps/web/public/fonts/Sentient-VariableItalic.woff250.9 KB
- 资产文件apps/web/public/fonts/Switzer-Variable.woff242.2 KB
- 参考文档apps/web/public/index.md1.9 KB
- 参考文档apps/web/public/integrate.md1.7 KB
- 参考文档apps/web/public/robots.txt1.2 KB
- 其他apps/web/public/sitemap.xml613 B
- 脚本apps/web/public/webmcp.js3.3 KB
- 脚本apps/web/src/abi/BastionAudit.ts7.9 KB
- 脚本apps/web/src/abi/BastionERC8004Registry.ts18.6 KB
- 脚本apps/web/src/abi/BastionFirewall.ts11.2 KB
- 脚本apps/web/src/abi/BastionPolicy.ts8.7 KB
- 脚本apps/web/src/abi/BastionRegistry.ts10.5 KB
- 其他apps/web/src/App.tsx2.1 KB
- 其他apps/web/src/components/AgentFloor.tsx5.6 KB
- 其他apps/web/src/components/AgentWizard.tsx15.3 KB
- 其他apps/web/src/components/BastionMark.tsx2.6 KB
- 其他apps/web/src/components/blocks/faq-1.tsx4.7 KB
- 其他apps/web/src/components/blocks/features-1.tsx4.4 KB
- 其他apps/web/src/components/blocks/footer-1.tsx9.2 KB
- 其他apps/web/src/components/blocks/hero-1.tsx8.0 KB
- 其他apps/web/src/components/blocks/navigation-1.tsx14.5 KB
- 其他apps/web/src/components/EvmProviderErrorBoundary.tsx2.9 KB
- 其他apps/web/src/components/EvmStatusPanel.tsx6.7 KB
- 其他apps/web/src/components/Ferrofluid.css99 B
- 其他apps/web/src/components/Ferrofluid.tsx10.8 KB
- 其他apps/web/src/components/Navbar.tsx2.8 KB
- 其他apps/web/src/components/react-bits/animated-list.tsx11.8 KB
- 其他apps/web/src/components/react-bits/depth-card.tsx11.2 KB
- 其他apps/web/src/components/react-bits/silk-waves.tsx8.7 KB
- 其他apps/web/src/components/react-bits/staggered-text.tsx10.1 KB
- 其他apps/web/src/components/RouteErrorBoundary.tsx1.9 KB
- 其他apps/web/src/components/SmoothScroll.tsx2.6 KB
- 其他apps/web/src/components/TechCarousel.tsx709 B
- 其他apps/web/src/components/ui/ruler-carousel.tsx1.2 KB
- 其他apps/web/src/components/VideoBackground.tsx2.5 KB
- 其他apps/web/src/context/SolanaWalletContext.tsx1.3 KB
- 其他apps/web/src/context/ThemeContext.tsx1.1 KB
- 脚本apps/web/src/hooks/useAgentEvents.ts1.7 KB
- 脚本apps/web/src/hooks/useAgents.ts8.2 KB
- 脚本apps/web/src/hooks/useBastionEvents.ts2.7 KB
- 脚本apps/web/src/hooks/useBastionEVM.ts8.8 KB
- 脚本apps/web/src/hooks/useSidecar.ts7.6 KB
- 其他apps/web/src/index.css8.0 KB
- 脚本apps/web/src/lib/chains.ts1003 B
- 脚本apps/web/src/lib/evmConfig.ts3.8 KB
- 其他apps/web/src/lib/markdown.tsx7.6 KB
- 脚本apps/web/src/lib/settlementChains.ts1.5 KB
- 脚本apps/web/src/lib/utils.ts169 B
- 其他apps/web/src/main.tsx1.7 KB
- 其他apps/web/src/pages/AgentDetail.tsx12.7 KB
- 其他apps/web/src/pages/AgentList.tsx10.7 KB
- 其他apps/web/src/pages/Dashboard.tsx31.1 KB
- 其他apps/web/src/pages/DeployAgent.tsx9.2 KB
- 其他apps/web/src/pages/Docs.tsx5.6 KB
- 其他apps/web/src/pages/integrate/ApiReference.tsx12.2 KB
- 其他apps/web/src/pages/integrate/ChainSupportSection.tsx7.3 KB
- 其他apps/web/src/pages/integrate/InstallSection.tsx4.2 KB
- 其他apps/web/src/pages/integrate/Integrate.tsx5.5 KB
- 其他apps/web/src/pages/integrate/LiveTest.tsx9.8 KB
- 其他apps/web/src/pages/integrate/McpSection.tsx4.3 KB
- 其他apps/web/src/pages/integrate/PersistentSetup.tsx4.1 KB
- 其他apps/web/src/pages/integrate/PricingSection.tsx3.6 KB
- 其他apps/web/src/pages/integrate/QuickStartSection.tsx4.0 KB
- 其他apps/web/src/pages/integrate/ReputationSection.tsx3.3 KB
- 其他apps/web/src/pages/Landing.tsx39.2 KB
- 其他apps/web/src/styles/docs.css4.4 KB
- 其他apps/web/src/styles/fonts.css1.8 KB
- 其他apps/web/src/styles/theme.css11.6 KB
- 脚本apps/web/src/vite-env.d.ts37 B
- 脚本apps/web/tailwind.config.js1.3 KB
- 参考文档apps/web/tsconfig.json630 B
- 参考文档apps/web/tsconfig.node.json232 B
- 参考文档apps/web/vercel.json2.1 KB
- 脚本apps/web/vite.config.ts683 B
- 其他Cargo.lock66.1 KB
- 其他Cargo.toml1001 B
- 参考文档chat.md13.4 KB
- 其他claude-session.jsonl129.0 KB
- 其他config.toml314 B
- 其他crates/arcium/Cargo.toml286 B
- 参考文档crates/arcium/SPEC.md3.2 KB
- 脚本crates/arcium/src/circuits/mod.rs57 B
- 脚本crates/arcium/src/circuits/policy_evaluator.rs171 B
- 脚本crates/arcium/src/client.rs1.5 KB
- 脚本crates/arcium/src/evaluator_tests.rs10.3 KB
- 脚本crates/arcium/src/evaluator.rs4.6 KB
- 脚本crates/arcium/src/lib.rs480 B
- 脚本crates/arcium/src/solana/callback.rs59 B
- 脚本crates/arcium/src/solana/mod.rs61 B
- 脚本crates/arcium/src/types.rs1.6 KB
- 其他crates/core/Cargo.toml442 B
- 脚本crates/core/src/adapter/mod.rs3.3 KB
- 脚本crates/core/src/audit/mod.rs46 B
- 脚本crates/core/src/audit/record.rs5.0 KB
- 脚本crates/core/src/decision/mod.rs1.0 KB
- 脚本crates/core/src/execution/atomicity.rs7.4 KB
- 脚本crates/core/src/execution/decomposer.rs6.3 KB
- 脚本crates/core/src/execution/mod.rs677 B
- 脚本crates/core/src/execution/plan.rs9.9 KB
- 脚本crates/core/src/execution/router.rs6.2 KB
- 脚本crates/core/src/lib.rs1.0 KB
- 脚本crates/core/src/policy/evaluator.rs19.0 KB
- 脚本crates/core/src/policy/mod.rs135 B
- 脚本crates/core/src/policy/set.rs685 B
- 脚本crates/core/src/policy/types.rs2.8 KB
- 脚本crates/core/src/risk/mod.rs131 B
- 脚本crates/core/src/risk/oracle.rs1.6 KB
- 脚本crates/core/src/risk/webacy.rs988 B
- 脚本crates/core/src/transaction/mod.rs99 B
- 脚本crates/core/src/transaction/normalized.rs5.4 KB
- 其他crates/policy-engine/Cargo.toml483 B
- 脚本crates/policy-engine/src/exception.rs971 B
- 脚本crates/policy-engine/src/lib.rs337 B
- 脚本crates/policy-engine/src/lifecycle.rs1.0 KB
- 脚本crates/policy-engine/src/report.rs990 B
- 脚本crates/policy-engine/src/scanner.rs7.3 KB
- 脚本crates/policy-engine/src/trust_policy.rs13.3 KB
- 脚本crates/policy-engine/tests/property_tests.rs6.3 KB
- 其他crates/sidecar/Cargo.toml1.2 KB
- 参考文档crates/sidecar/SPEC.md4.1 KB
- 脚本crates/sidecar/src/adapter_solana.rs12.1 KB
- 脚本crates/sidecar/src/agents.rs9.8 KB
- 脚本crates/sidecar/src/audit.rs12.6 KB
- 脚本crates/sidecar/src/auth.rs7.5 KB
- 脚本crates/sidecar/src/core_adapter.rs7.2 KB
- 脚本crates/sidecar/src/did.rs3.7 KB
- 脚本crates/sidecar/src/grond_oracle.rs3.2 KB
- 脚本crates/sidecar/src/lib.rs66.0 KB
- 脚本crates/sidecar/src/logger.rs25 B
- 脚本crates/sidecar/src/main.rs3.9 KB
- 脚本crates/sidecar/src/markdown.rs1.1 KB
- 脚本crates/sidecar/src/policy.rs11.5 KB
- 脚本crates/sidecar/src/prompt_safety.rs6.3 KB
- 脚本crates/sidecar/src/scanner.rs5.3 KB
- 脚本crates/sidecar/src/simulation_evm.rs14.4 KB
- 脚本crates/sidecar/src/simulation.rs1.4 KB
- 脚本crates/sidecar/src/trust_policy_handler.rs9.3 KB
- 脚本crates/sidecar/src/workflow_routes.rs16.4 KB
- 脚本crates/sidecar/tests/api_integration.rs15.2 KB
- 脚本crates/sidecar/tests/background_scan.rs4.0 KB
- 脚本crates/sidecar/tests/execute_intent.rs6.2 KB
- 脚本crates/sidecar/tests/simulation_checks.rs5.4 KB
- 其他crates/solana/Anchor.toml855 B
- 其他crates/solana/programs/bastion-audit/Cargo.lock67.2 KB
- 其他crates/solana/programs/bastion-audit/Cargo.toml785 B
- 参考文档crates/solana/programs/bastion-audit/SPEC.md5.1 KB
- 脚本crates/solana/programs/bastion-audit/src/lib.rs10.3 KB
- 其他crates/solana/programs/bastion-audit/tests/fixtures/bastion_audit.so239.8 KB
- 脚本crates/solana/programs/bastion-audit/tests/test_bastion_audit.rs31.9 KB
- 其他crates/web2-firewall/Cargo.toml481 B
- 脚本crates/web2-firewall/src/lib_test.rs15.3 KB
- 脚本crates/web2-firewall/src/lib.rs17.6 KB
- 脚本crates/web2-firewall/src/providers/github.rs1.1 KB
- 脚本crates/web2-firewall/src/providers/mod.rs296 B
- 脚本crates/web2-firewall/src/providers/openai.rs1.0 KB
- 脚本crates/web2-firewall/src/providers/slack.rs942 B
- 脚本crates/web2-firewall/src/providers/stripe.rs950 B
- 其他crates/workflow/Cargo.toml696 B
- 脚本crates/workflow/src/activities/approve.rs576 B
- 脚本crates/workflow/src/activities/compensate.rs1.1 KB
- 脚本crates/workflow/src/activities/fetch_secret.rs663 B
- 脚本crates/workflow/src/activities/http_call.rs609 B
- 脚本crates/workflow/src/activities/mod.rs149 B
- 脚本crates/workflow/src/activities/settle.rs549 B
- 脚本crates/workflow/src/activities/simulate_evm.rs610 B
- 脚本crates/workflow/src/activities/simulate.rs581 B
- 脚本crates/workflow/src/activities/sleep.rs573 B
- 脚本crates/workflow/src/activity.rs1.1 KB
- 脚本crates/workflow/src/definition.rs3.6 KB
- 脚本crates/workflow/src/engine.rs20.1 KB
- 脚本crates/workflow/src/error.rs1.4 KB
- 脚本crates/workflow/src/event.rs4.4 KB
- 脚本crates/workflow/src/lib.rs683 B
- 脚本crates/workflow/src/plan_adapter.rs18.1 KB
- 脚本crates/workflow/src/retry.rs2.7 KB
- 脚本crates/workflow/src/state.rs2.5 KB
- 脚本crates/workflow/src/store.rs5.8 KB
- 脚本crates/workflow/tests/plan_execution.rs9.9 KB
- 脚本demo_script.py5.0 KB
- 参考文档docker-compose.yml901 B
- 其他Dockerfile1.5 KB
- 参考文档docs/AGENT_OPS_LOG.md7.4 KB
- 参考文档docs/api-reference.md5.0 KB
- 参考文档docs/ARCHITECTURE.md16.4 KB
- 参考文档docs/ARCHIVE.md3.8 KB
- 参考文档docs/ARCIUM_ARCHITECTURE_DECISION.md2.2 KB
- 参考文档docs/ARCIUM_INTEGRATION_SPEC.md1.7 KB
- 参考文档docs/ARCIUM_INTEGRATION.md4.7 KB
- 参考文档docs/AUDIT_LOG.md4.8 KB
- 参考文档docs/BASTION_MCP_X402_PLAN.md20.1 KB
- 参考文档docs/CHANGELOG.md5.8 KB
- 参考文档docs/COMPETITIVE_LANDSCAPE.md10.3 KB
- 参考文档docs/CONTRIBUTING.md4.2 KB
- 参考文档docs/DELEGATION_SYSTEM.md8.2 KB
- 脚本docs/demo.sh3.4 KB
- 参考文档docs/DEV_LOG.md6.0 KB
- 参考文档docs/dns-aid.md2.8 KB
- 参考文档docs/ERCS.md4.6 KB
- 参考文档docs/EVM_READINESS.md6.8 KB
- 脚本docs/grond-integration/address_risk.py8.3 KB
- 参考文档docs/grond-integration/README.md1.8 KB
- 参考文档docs/IMPLEMENTATION_PLAN.md20.0 KB
- 参考文档docs/IMPROVEMENTS.md17.7 KB
- 参考文档docs/LITEBEAM_COMPETITIVE_ANALYSIS.md38.2 KB
- 参考文档docs/MAINNET_READINESS.md10.2 KB
- 参考文档docs/mcp.md3.2 KB
- 参考文档docs/OVERVIEW.md13.9 KB
- 参考文档docs/PRD_SIEM_EXPANSION.md28.0 KB
- 参考文档docs/quickstart.md4.2 KB
- 参考文档docs/rewrite.md3.9 KB
- 参考文档docs/ROADMAP.md18.7 KB
- 参考文档docs/ROBOT_FIREWALL.md3.9 KB
- 参考文档docs/TRUSTFLOW_COMPARISON.md9.1 KB
- 参考文档docs/VISION.md8.5 KB
- 参考文档docs/WEB2_EXPANSION_PLAN.md15.6 KB
- 参考文档docs/WORKFLOW_ENGINE_DESIGN.md16.9 KB
- 脚本entrypoint.sh603 B
- 其他evm/.env.example991 B
- 其他evm/.gas-snapshot6.4 KB
- 参考文档evm/.github/workflows/test.yml663 B
- 其他evm/.gitignore156 B
- 其他evm/foundry.lock389 B
- 其他evm/foundry.toml1.2 KB
- 参考文档evm/README.md4.0 KB
- 其他evm/script/DeployBastion.s.sol6.0 KB
- 其他evm/src/BastionAudit.sol8.5 KB
- 其他evm/src/BastionConfidentialGate.sol5.2 KB
- 其他evm/src/BastionERC8004Registry.sol13.3 KB
- 其他evm/src/BastionFirewall.sol9.3 KB
- 其他evm/src/BastionPolicy.sol7.0 KB
- 其他evm/src/BastionRegistry.sol5.8 KB
- 其他evm/src/BastionSidecar.sol3.6 KB
- 其他evm/src/erc8354/BastionConfidentialVerdict.sol5.5 KB
- 其他evm/src/erc8354/BastionGuardedExecutor.sol3.8 KB
- 其他evm/src/erc8354/BastionPolicyDomainRegistry.sol3.3 KB
- 其他evm/src/erc8354/IConfidentialPolicyVerdict.sol4.6 KB
- 其他evm/src/erc8354/IPolicyAttestation.sol2.8 KB
- 其他evm/src/erc8354/IPolicyDomainRegistry.sol1.3 KB
- 其他evm/src/erc8354/IPolicyGuarded.sol202 B
- 其他evm/src/erc8354/IVerifier.sol473 B
- 其他evm/src/erc8354/mocks/MockValidationRegistry.sol833 B
- 其他evm/src/erc8354/mocks/MockVerifier.sol673 B
- 其他evm/src/erc8354/PolicyAction.sol1.4 KB
- 其他evm/src/erc8380/BastionUnclonableCredentialGuard.sol6.1 KB
- 其他evm/src/erc8380/CapabilityCommitment.sol1.9 KB
- 其他evm/src/erc8380/DomainRegistry.sol1.4 KB
- 其他evm/src/erc8380/IUnclonableCredential.sol3.3 KB
- 其他evm/src/erc8380/IVerifier.sol676 B
- 其他evm/src/erc8380/mocks/MockVerifier.sol573 B
- 其他evm/src/interfaces/IBastionAudit.sol1.7 KB
- 其他evm/src/interfaces/IBastionFirewall.sol3.2 KB
- 其他evm/src/interfaces/IBastionPolicy.sol1.8 KB
- 其他evm/src/interfaces/IBastionRegistry.sol2.3 KB
- 其他evm/src/interfaces/IBastionSidecar.sol1.3 KB
- 其他evm/test/BastionERC8004Registry.t.sol14.4 KB
- 其他evm/test/BastionFirewallEnforce.t.sol5.3 KB
- 其他evm/test/BastionFullFlow.t.sol12.7 KB
- 其他evm/test/BastionPolicyGas.t.sol2.9 KB
- 其他evm/test/BastionSidecar.t.sol4.6 KB
- 其他evm/test/ERC8354.t.sol15.6 KB
- 其他evm/test/ERC8380.t.sol19.6 KB
- 其他fly.toml638 B
- 其他fv/evm/BastionAudit.conf811 B
- 其他fv/evm/BastionAudit.spec5.0 KB
- 其他fv/evm/BastionConfidentialGate.conf938 B
- 其他fv/evm/BastionConfidentialGate.spec1.7 KB
- 其他fv/evm/BastionPolicy.conf736 B
- 其他fv/evm/BastionPolicy.spec3.3 KB
- 其他fv/policy-engine/PolicyEvaluator.cfg606 B
- 其他fv/policy-engine/PolicyEvaluator.tla6.2 KB
- 参考文档fv/README.md2.6 KB
- 参考文档fv/TRUSTPOLICY_MAPPING.md2.8 KB
- 许可证LICENSE10.5 KB
- 资产文件media/texts/2597e8a7b8507be3.svg19.4 KB
- 资产文件media/texts/3c2a79e20924217f.svg11.9 KB
- 资产文件media/texts/4a9d469ec14e1ef5.svg11.3 KB
- 资产文件media/texts/87a08e81f58ab820.svg18.5 KB
- 资产文件media/texts/8a7844218475001e.svg15.4 KB
- 资产文件media/texts/966f638f64a74944.svg8.1 KB
- 资产文件media/texts/9b6f672e7ff0ceed.svg18.4 KB
- 资产文件media/texts/c4fdab1433303f67.svg9.0 KB
- 资产文件media/texts/fa3dc9677cfea7af.svg28.7 KB
- 资产文件media/texts/fdc9c9f717e7fbb3.svg23.2 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1432596116_2078902253.mp449.6 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1432596116_26233645.mp450.6 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1432596116_2914015472.mp434.9 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1432596116_3197160613.mp428.2 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1432596116_398251549.mp439.8 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1498870192_488990383.mp475.0 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_1746138262_1169543946.mp485.8 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_2238852799_1104567700.mp467.8 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_2406989519_3303241541.mp440.2 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_2574473371_3708755173.mp435.5 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_2574473371_4213149031.mp433.4 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_2872842549_1891966094.mp463.4 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_3078468600_1089561732.mp460.8 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_3162061594_3941086402.mp447.2 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_365393559_840518426.mp446.9 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_3879137919_1067582812.mp456.3 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_393256449_4248193407.mp493.5 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_4063702622_1445121392.mp485.8 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_512361826_2872966908.mp465.7 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2135761390_593776428_2661810544.mp453.5 KB
- 资产文件media/videos/animation/1080p60/partial_movie_files/SentinelDemo/2257293077_378667074_223132457.mp487.1 KB
- 参考文档media/videos/animation/1080p60/partial_movie_files/SentinelDemo/partial_movie_file_list.txt3.3 KB
- 资产文件media/videos/animation/1080p60/SentinelDemo.mp41.2 MB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/1584795214_378667074_223132457.mp420.9 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1432596116_2078902253.mp418.2 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1432596116_26233645.mp419.1 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1432596116_2914015472.mp412.7 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1432596116_3197160613.mp48.5 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1432596116_398251549.mp414.6 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1498870192_488990383.mp422.3 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_1746138262_1169543946.mp428.1 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_2238852799_1104567700.mp421.8 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_2406989519_3303241541.mp413.9 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_2574473371_3708755173.mp413.7 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_2574473371_4213149031.mp412.8 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_2872842549_1891966094.mp422.5 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_3078468600_1089561732.mp420.6 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_3162061594_3941086402.mp417.1 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_365393559_840518426.mp416.6 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_3879137919_1067582812.mp420.8 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_393256449_4248193407.mp430.3 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_4063702622_1445121392.mp426.8 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_512361826_2872966908.mp421.2 KB
- 资产文件media/videos/animation/480p15/partial_movie_files/SentinelDemo/4072820271_593776428_2661810544.mp419.8 KB
- 参考文档media/videos/animation/480p15/partial_movie_files/SentinelDemo/partial_movie_file_list.txt3.3 KB
- 资产文件media/videos/animation/480p15/SentinelDemo.mp4386.3 KB
- 其他netlify.toml736 B
- 参考文档package.json244 B
- 参考文档packages/mcp-server/bastion-provider.yml747 B
- 参考文档packages/mcp-server/package.json590 B
- 参考文档packages/mcp-server/README.md2.7 KB
- 脚本packages/mcp-server/src/credits.ts2.4 KB
- 脚本packages/mcp-server/src/http.ts3.8 KB
- 脚本packages/mcp-server/src/index.ts18.9 KB
- 脚本packages/mcp-server/src/pricing.ts2.0 KB
- 参考文档packages/mcp-server/tsconfig.json310 B
- 脚本packages/sdk/examples/basic.ts2.3 KB
- 脚本packages/sdk/jest.config.js284 B
- 参考文档packages/sdk/package.json1.0 KB
- 参考文档packages/sdk/README.md6.6 KB
- 脚本packages/sdk/src/abi/BastionAudit.ts7.9 KB
- 脚本packages/sdk/src/abi/BastionFirewall.ts11.2 KB
- 脚本packages/sdk/src/abi/BastionPolicy.ts8.7 KB
- 脚本packages/sdk/src/erc8354.test.ts2.4 KB
- 脚本packages/sdk/src/erc8354.ts4.5 KB
- 脚本packages/sdk/src/erc8380.test.ts2.7 KB
- 脚本packages/sdk/src/erc8380.ts3.9 KB
- 脚本packages/sdk/src/evm.ts6.0 KB
- 脚本packages/sdk/src/execute.test.ts4.0 KB
- 脚本packages/sdk/src/execute.ts5.7 KB
- 脚本packages/sdk/src/index.ts2.3 KB
- 脚本packages/sdk/src/sidecar.test.ts2.8 KB
- 脚本packages/sdk/src/sidecar.ts3.6 KB
- 脚本packages/sdk/src/types.ts7.6 KB
- 脚本packages/sdk/src/verify.ts2.7 KB
- 脚本packages/sdk/src/workflow.test.ts3.3 KB
- 脚本packages/sdk/src/workflow.ts6.5 KB
- 参考文档packages/sdk/tsconfig.json421 B
- 脚本packages/web2-sdk/jest.config.js212 B
- 参考文档packages/web2-sdk/package.json788 B
- 参考文档packages/web2-sdk/README.md2.3 KB
- 脚本packages/web2-sdk/src/client.test.ts3.6 KB
- 脚本packages/web2-sdk/src/index.ts3.9 KB
- 参考文档packages/web2-sdk/tsconfig.json391 B
- 参考文档pnpm-lock.yaml429.6 KB
- 参考文档pnpm-workspace.yaml1.1 KB
- 参考文档prezenti-frontier-grant.md10.3 KB
- 参考文档PROJECT_PLAN.md4.9 KB
- 参考文档README.md13.1 KB
- 其他rustfmt.toml88 B
- 参考文档SECURITY.md5.3 KB
- 参考文档SESSION_SUMMARY.md6.2 KB
- 参考文档skills-lock.json13.8 KB
- 参考文档SPEC.md4.6 KB
- 参考文档static/index.html8.1 KB
- 脚本test_sentinel.py1.8 KB
- 脚本tests/midnight_purge_test.sh4.3 KB
- 参考文档VERCEL_DEPLOY.md58 B
03 SKILL.md 正文
Bastion 🛡️
Bastion is a Programmable Trust Runtime for AI agents, autonomous systems, and enterprise applications. Rather than building security, policy, and blockchain logic into every application, Bastion provides a unified runtime that orchestrates identity, policy, privacy, durable execution, and verifiable trust across multiple execution environments.
Developers define trust requirements. Bastion determines how those requirements are enforced.
Installation
# Clone and build
git clone https://github.com/zkos-labs/bastion.git
cd bastion && cargo build --release
Features
- Transaction Simulation: Uses Helius simulation API to predict balance changes.
- Program Whitelisting: Blocks unauthorized Program IDs.
- Audit Logging: Persistent history of all attempts via Sled DB.
- REST API: Dynamically update policies and fetch logs.
- Human-in-the-loop: Request manual approval for suspicious transactions.
- On-Chain Audit: Anchor program for immutable audit records (v2).
- Agent Registry: On-chain agent identity and reputation (v2).
- GrondOSINT Oracle: Address risk scoring via Grond's agentic OSINT pipeline (Tavily, Shodan, Twitter).
- MCP HTTP Server (SSE): 15 tools + 3 prompts on port 3001 for Claude, Cursor, browser agents.
- Open Source: Bastion is an open-source community project developed by ZKOS Labs. The core runtime is free under Apache 2.0. Self-host or use the hosted sidecar. Support development.
Skills Ecosystem
Bastion integrates with these agent skill packages:
Ethereum Standards & Tooling
- ETHSKILLS (ethskills.com): Complete Ethereum development knowledge for AI agents. Covers ERC-8004 (agent identity+reputation), ERC-4337 (account abstraction), EIP-7702 (smart EOAs), x402 (HTTP payments), ERC-7579 (modular wallets), Foundry, Scaffold-ETH 2, and security patterns. Load
/plugin install ethskills@ethskillsin Claude Code. - Base Skills (base/skills): Base MCP server for wallet access (send, swap, sign), batched contract calls, x402 payments, and 20+ DeFi partner plugins (Uniswap, Morpho, Moonwell, Aerodrome, etc.). Install:
npx skills add base/skills --skill base-mcp.
Privacy & Confidential Compute
- Arcium Docs (
arcium-docs): MXE (Multi-party Execution) confidential computing on Solana. Covers threshold encryption, MPC key management, and encrypted on-chain state for privacy-preserving agent transactions. - Midnight Network (
midnightskill): Compact smart contracts with zero-knowledge proofs. Covers shielded/unshielded state, selective disclosure, and privacy-preserving execution.
Solana Tooling
- Solana Agent Skills (
solana-agent-skills): Foundation-maintained Solana skills for wallet management, transaction building, program interaction, and on-chain state queries. - Base Docs (
base-docs): Base L2 (EVM hub-and-spoke). Covers cross-chain settlement, bridging, and EVM-compatible smart contract deployment for multi-chain agent workflows.
Trust Primitives
- Pact Network: On-chain refund protocol for x402 agent payments. Provides money-back guarantees when agent API calls fail - chargebacks for the agent economy. Composes with Bastion's Web2 firewall for insured outbound API calls.
Staking (AgentStake PDA)
Start the MCP HTTP server for browser-native agent access:
BASTION_SIDECAR_URL=https://bastion-agentique.fly.dev/ \
pnpm --filter @zkos-labs/mcp-server dev:http
Endpoints:
GET /mcp/sse, SSE connectionPOST /mcp/messages, MCP JSON-RPC messagesGET /mcp/health, Health checkGET /mcp/pricing, Tool pricing + free tier info
For stdio transport (Claude Desktop / Cursor / Codex):
pnpm --filter @zkos-labs/mcp-server dev
Pricing
Bastion is an open-source community project, released under Apache 2.0. Read operations are always free. Backend API calls are optionally paid via USDT/USDC:
| Tool | Free/Month | Price (USD) |
|---|---|---|
bastion_simulate_transaction |
100 | $0.10 |
bastion_override_block |
10 | $1.00 |
bastion_update_policy |
5 | $5.00 |
bastion_circuit_breaker_toggle |
3 | $10.00 |
| All read-only tools | Unlimited | Free |
CORS
Sidecar supports browser-native access with:
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type, Authorization, X-Api-Key, X-Agent-Id
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Usage for Agents
Other AI agents should use Bastion to verify every transaction before sending it to the network.
Verification Flow
- Prepare Transaction: Build your Solana transaction.
- Simulate/Verify: Send
POST /simulatewith the base64 transaction and yourintent(what you think you are doing). - Handle Response:
- 200 OK: Success! Proceed to sign and broadcast.
- 403 Forbidden: Check for
block_idin the response.- If
block_idexists: The transaction is suspicious but might be valid. You MUST notify the human, explain the intent, show the block reason, and provide theblock_idfor them to decide. - If no
block_id: The transaction is explicitly denied by static policy. Abort.
- If
Including Intent
Always provide a human-readable intent string in your requests. This is logged and shown to the human during override requests.
Example: "intent": "Swapping 1 SOL for USDC on Jupiter"
Handling Blocks (Human Override)
If a transaction is blocked with a block_id, ask the human:
"Bastion blocked this transaction: [Reason]. If you trust this, reply with 'allow [block_id]' or 'reject [block_id]'."
Then call POST /override with:
{
"block_id": "...",
"action": "ALLOW" or "REJECT"
}
Agent Self-Registration (NEW, v0.3.0)
An AI coding agent MUST register itself with Bastion before sending transactions. This gives you a DID, tracks your audit trail, and enables delegation.
Step 1: Generate your DID
Your DID is did:bastion:solana:{agent_pda_base58}. You need a Solana keypair:
# Generate a keypair (or use your existing agent wallet)
solana-keygen new --outfile ~/.config/solana/bastion-agent.json
Step 2: Register with the sidecar
# Default host: bastion-agentique.fly.dev/ (running Bastion instance)
# Auth: only needed if BASTION_API_KEY is set. Check with an unauthenticated request first.
curl -s -X POST https://bastion-agentique.fly.dev/agents \
-H "Content-Type: application/json" \
-d '{
"did": "did:bastion:solana:YOUR_AGENT_PDA_BASE58",
"authority_pubkey": "YOUR_SOLANA_PUBKEY_BASE58",
"sidecar_endpoint": null
}'
If BASTION_API_KEY is set (you get a 401 response), add the header:
curl -s -X POST https://bastion-agentique.fly.dev/agents \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '...'
Step 3: Verify registration
# List all agents (no auth required)
curl -s https://bastion-agentique.fly.dev/agents | python3 -m json.tool
# Get your agent by DID
curl -s https://bastion-agentique.fly.dev/agents/did:bastion:solana:YOUR_DID | python3 -m json.tool
Step 4: Spawn sub-agents (delegation)
# Parent spawns a sub-agent with restricted capabilities
curl -s -X POST "https://bastion-agentique.fly.dev/agents/did:bastion:solana:PARENT_DID/delegate" \
-H "Content-Type: application/json" \
-d '{
"child_did": "did:bastion:solana:CHILD_DID",
"child_name": "SubAgent-ETH",
"delegated_capabilities": ["TRANSFER"],
"delegation_budget_sol": 5
}'
Step 5: See your delegation tree
curl -s "https://bastion-agentique.fly.dev/agents/did:bastion:solana:PARENT_DID/tree" | python3 -m json.tool
Auth Notes
BASTION_API_KEYis optional, if not set, all endpoints are open- Mutating endpoints (
POST /agents,POST /override,/policy/*,/circuit-breaker/*) require the header whenBASTION_API_KEYis configured - Read-only endpoints (
GET /agents,GET /health,GET /logs) are always open - The correct header is
X-Api-Key(notAuthorization)
API Endpoints
POST /simulate: Intercept and verify a transaction.GET /logs: Fetch audit history.POST /policy: Update allowed programs list.POST /override: Human override for a blocked transaction.GET /health: Server health check.GET /policy: Get current policy settings.
04 同仓库更多 Skills
web2-api-firewall-administrator
Guides configuring Bastion Web2 API adapter policies for the Trust Runtime. Covers endpoint allowlists, provider budgets, rate limits, content inspection (PII/secrets detection), header filters, and OpenAPI spec-based auto-configuration. Use when configuring API call security for AI agents, setting provider spending caps, inspecting outbound API traffic, or setting up the Web2 adapter.
transaction-screening-workflow-concepts
Educational map of transaction-centric compliance screening-transfer as the atomic unit, deposit vs withdrawal direction, single and CSV import, transaction list and detail views, per-transfer screening, rescreen, and STR-style exports. Use when the user asks how monitoring UIs treat tx hashes, directions, or regulatory reporting hooks-not for legal filing advice or evading reporting.
solana-tracing-specialist
Guides Solana-specific on-chain forensics-ATA resolution, SPL instruction parsing, transaction history via RPC and indexers (e.g. Helius-style APIs), fund-flow graphs, Solana clustering heuristics, and program authority review. Use when the user investigates Solana wallets, SPL tokens, DEX/Jito flows, rug or phishing patterns on Solana, or needs evidence-structured tracing reports with public data only.
solana-onchain-intelligence-resources
Companion to blockint-skills Solana work-official doc indexes and stacks for RPC/indexers, sanctions and address intel MCP, web research, agent payments, graph UIs, Solana Foundation dev skills, Solana Policy Institute (policy/regulatory education), optional open-source Scrapy collection (BlockchainSpider), Impersonator Solana (dApp dev/testing), coral-xyz sealevel-attacks (security pattern examples), Neodyme Solana Security Workshop (workshop.neodyme.io), and Osec Solana auditor introduction blog (osec.io). Use when the user needs pointers to Helius, Range AI, Tavily, PayAI x402, React Flow, Solana.com skills, or SPI alongside on-chain forensics-not as a substitute for reading current provider docs, legal counsel, or API keys.
solana-defi-vulnerability-analyst-agent
Guides discovery and documentation of Solana DeFi protocol risks from public code and chain state-Anchor/native programs, PDAs, CPIs, oracles, pools, SPL mechanics, and historical tx reconstruction. Use when the user asks for Solana program security review, DeFi vulnerability triage, PDA or CPI safety, oracle or liquidity-pool risk, launchpad/bonding-curve issues, or evidence-backed severity findings without exploits or private keys.
solana-clustering-case-study-agent
Turns advanced Solana clustering work into complete, shareable public case studies-seed selection, multi-layer graphs, narrative arcs, visual evidence packs, and reproducible exports (CSV, queries). Use when the user wants a Solana rug/Sybil/sniper/phishing case study, X/thread writeup, educational fraud exposé from on-chain data, or timestamped evidence package built from clusters and heuristics.