Files
Logging-System/AGENTS.md
T
weichenandCursor 0ea2ad297a Pin Development Guidelines and add the project entry documents.
The guidelines submodule records the reviewed commit so project rules stay discoverable without copying them into this repository.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 14:20:37 +00:00

2.3 KiB

项目工作入口

本项目采纳的通用规则:核心规则。 采纳范围、生效状态及项目差异:采纳记录。 项目事实、测试和环境入口:PROJECT.md。

项目补充硬边界:

  • 本库只依赖标准库。识别错误码使用 ErrorCode() / ErrorFields() 鸭子接口,不 import error-code-system。
  • 写前脱敏覆盖 JWT、sk-key、Bearer、api_key、password 形状;采集服务写入时再脱敏一次。
  • 异步队列满时丢弃最新一条并计数,不阻塞业务 goroutine。
  • 追踪头为 X-Trace-Id。trace_id 回答哪一次请求,不替代调用方自己的 run_id。

任务权威:Gitea 仓库 weichen/Logging-System 的 Issue 与 Pull Request。 规范性文档目录与过程记录位置:policy/;过程记录豁免目录 docs/records/。 默认集成基线和提交身份:main。权威远端 ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Logging-System.git。 共享环境/发布入口及授权:采集服务默认 :8092。配置了 token 时要求 Authorization: Bearer 或 X-Log-Token。令牌值不入库。