thread-security-gate
Skill1 starsChanged 17 days agoMITView on GitHub
触碰 Godot API 或改监听、授权、脱敏、导出、路径、截断时守主线程与默认安全姿态;触发词:主线程、CommandQueue、submit、非环回、allow、desensitize、exporting、normalize_project_path、main_thread_timeout。
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cpp-registrationSkill
- domain-tool-authoringSkill
- gda-demo-e2eSkill
- gda-e2e-analysisSkill
- skill-proposerSkill
- wiki-maintainerSkill
- godot-autopilot-contentSkill
- godot-autopilot-csharpSkill
- godot-autopilot-resourcesSkill
- godot-autopilot-runtimeSkill
- godot-autopilot-scene-systemSkill
- godot-autopilot-scriptingSkill
- godot-autopilot-serversSkill
- godot-autopilotSkill
- godot-autopilot-toolsSkill
The file
Files
主线程与安全门
所有 Godot API 经主线程执行,默认安全姿态不静默放宽。
步骤
- 所有 Godot API 经
queue.submit()或execute_sync()提交,由插件_process()的drain()在主线程排空;带预算调用走submit_tracked()以支持取消。 - 保持默认监听
127.0.0.1:9527/mcp;非环回需绑定层加请求层双验证,当前实现拒绝启动。 - 高风险能力保持默认拒绝(环境变量大于配置文件大于拒绝);
process无面板开关,须环境变量或手改配置。 - 脱敏保持默认开启;关闭仅作显式取证选择,截图与原始参数会落盘
user://。 - 导出期间
dispatch拒绝工具调用;停止与重载先停服再清队列,不产生悬垂任务。 - 外部路径先经
normalize_project_path校验;res://与user://不混拼;截断结果带truncated类可检测字段。
边界
- 输入:触碰引擎或安全的修改;输出:线程路由说明加安全影响声明,无放宽时明确写出。
- 纯 C++ 逻辑可留工作线程;新增例外须代码加文档双说明。
非目标
- 不处理工具业务语义与命名;不替代验收清单外的运维决策。
验证
- 高风险工具可经
get_tool_detail.side_effect识别;授权拒绝返回含authorization_required与enable字段。 - 主线程停摆返回
main_thread_timeout结构化错误,而非挂死。 - 按
docs/wiki/security_contract.md验收清单逐项自检。
权威参考
- 安全与并发契约
- 工程约定
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

