Must fix before mainnet - 09-user-security-documentation#324
Merged
xlabtg merged 3 commits intoxlabtg:mainfrom Apr 10, 2026
Merged
Must fix before mainnet - 09-user-security-documentation#324xlabtg merged 3 commits intoxlabtg:mainfrom
xlabtg merged 3 commits intoxlabtg:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#314
- Create docs/user-security-guide.md with step-by-step pre-launch guide, simulation vs live comparison, data protection info, and emergency procedures - Create docs/mainnet-readiness-checklist.md with full 7-section pre-launch checklist covering account security, wallet readiness, risk config, and final acknowledgment - Create docs/risk-disclosures.md covering all key trading, market, smart contract, platform, and regulatory risks - Add prominent simulation mode banner to portfolio dashboard with one-tap "Switch to Live" button - Add live trading confirmation modal requiring users to check 3 mandatory acknowledgments before enabling live trading; confirm button is disabled until all boxes are ticked - Add risk warning box to the onboarding agent creation confirm step, relabeling the CTA to "Start Agent in Simulation" for clarity - Add security.js component to manage simulation/live state and wire up all UI interactions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (81.1K + 2.7M cached) input tokens, 18.7K output tokens, $1.399084 cost 🤖 Models used:
📎 Log file uploaded as Gist (1309KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 64bd05f.
54 tasks
konard
added a commit
to konard/xlabtg-TONAIAgent
that referenced
this pull request
Apr 10, 2026
…#325) Independent verification of 9 critical security fixes (PRs xlabtg#316–xlabtg#324): - HSM key management: Ed25519 TON-incompatibility flagged as remaining blocker - MPC threshold signatures: real crypto implemented, centralization risk noted - Smart contracts: Tact contracts present, external audit still needed - KYC/AML: enforcement gates exist but disabled by default (must fix before mainnet) - Secrets management, API validation, AI safety: implemented, wiring pending - Monitoring, documentation: complete with integration caveats Overall verdict: conditionally not yet ready for mainnet (5 medium-high gaps remain). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
konard
added a commit
to konard/xlabtg-TONAIAgent
that referenced
this pull request
Apr 10, 2026
…labtg#324 Research notes documenting the implementation approach, gaps, and findings for each of the 9 security fix PRs analyzed during the re-audit for Issue xlabtg#325. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #314
This PR implements all acceptance criteria from Issue #314 — user-facing security documentation and safe defaults before mainnet launch.
Documentation (3 new files)
docs/user-security-guide.md— Comprehensive step-by-step guide covering:docs/mainnet-readiness-checklist.md— 7-section checklist users must complete before enabling live trading:docs/risk-disclosures.md— Legal risk disclosures covering:UI Changes (Telegram Mini App)
Simulation mode banner (
index.html,styles.css):⚠️ SIMULATION MODE — No real funds at riskbanner at the top of the portfolio dashboardLIVE TRADING — Real funds in usewhen live mode is activeLive trading confirmation modal (
index.html,components/security.js,styles.css):Risk warnings in onboarding (
components/onboarding.js,styles.css):New security component (
components/security.js):localStoragetonai:live_trading_enabledandtonai:simulation_mode_enabledevents for other components to react to mode changesTest plan
docs/user-security-guide.md,docs/mainnet-readiness-checklist.md,docs/risk-disclosures.md🤖 Generated with Claude Code