Files
MemRelay/projects/25464650-ed5d-440e-b362-190f2852d451/Checkpoint 2026-09-29 21-12-14 UTC [f10cd71c01].md
T
memrelay 2d47e25cc5 create: Checkpoint 2026-09-29 21:12:14 UTC [f10cd71c01]
MemRelay-Operation: checkpoint-save:nixmsg-20260930-0527-checkpoint-repo-init
MemRelay-Resource: f0caec01-3c5e-4c7a-99e4-f90b3b995fbb
2026-09-30 05:12:17 +08:00

29 lines
3.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-09-29 21:12:14 UTC [f10cd71c01]
type: checkpoint
permalink: main/projects/25464650-ed5d-440e-b362-190f2852d451/checkpoint-2026-09-29-21-12-14-utc-f10cd71c01
stable_id: f0caec01-3c5e-4c7a-99e4-f90b3b995fbb
scope: project
memory_type: checkpoint
project_id: 25464650-ed5d-440e-b362-190f2852d451
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: nixmsg-20260930-0527-checkpoint-repo-init
created_at: '2026-09-29T21:12:14.614742+00:00'
updated_at: '2026-09-29T21:12:14.614742+00:00'
tags:
- nixmsg
- handoff
- repo
- multi-agent
---
完成:
1)按用户反馈(设备 IP 会变;希望每次登录换 token,新设备登录后旧设备自动退出)把登录改成会话令牌,文档升 0.4:PRD F02 重写(密码登录发 nst_ 令牌、重连用令牌、密码登录轮换令牌、闲置 30 天失效、self.logout);锁定改为按编号加 IP(5 分钟 10 次)和按编号总数(1 小时 50 次),只拦密码登录不拦令牌重连;后台 unlock;DEVELOPMENT 第 5 节「登录与会话令牌」、endpoints 表 session_* 列、hello 返回 session_token、SDK onSession/logout/session_invalid、配置 session_idle_days。D28 已确认,D18、D29 待确认。
2)新增 docs/TASKS.md:交付标准、资料、环境(随机端口、容器名前缀)、协作规则(工作树、一功能一验证一提交、共享文件规则、总控快进合并、ready-to-merge 检查点)、分工 10 条线、阶段 0–3 的任务明细(T0.1–T0.5、P1–P4、N1–N3、M1–M4、I1–I5、A1–A3、W1–W4、SDK 各语言 5 个任务、Q1–Q5、Z1–Z3)、审核清单、负责人在 Cursor 里的操作说明和两段提示词。DEVELOPMENT 第 3 节加 internal/auth 和 internal/app 子包;第 4.1 节加 listen 端口 0 时写 <data_dir>/listen.addr。
3)仓库初始化:git init -b main,远端 https://git.asio.asia/nixevol/NixMsg.git(原来是空仓库),首个提交 2ab0950「docs: 初始化仓库,加入需求、开发说明和任务拆分」,包含 docs/PRD.md、DEVELOPMENT.md、TASKS.md、DEVIATIONS.md(按线分节模板)、README.md、.gitignore、.gitattributes(eol=lf)、.cursor/rules/nixmsg-dev.mdc(alwaysApply 协作规则);已推送并确认远端 main=2ab0950。Gitea 凭证(密码库条目 git.asio.asia)已存入本机 Git Credential Manager,供各 Agent 推送。
4)用户授权开发 Agent 对自己的 feat/*、fix/* 分支用 --force-with-lease,main 禁止强推(已写进 TASKS 第 9 节和规则文件)。阶段规则记忆 63748f00 已更新为进入开发阶段。
验证:用 cursor-guide 确认 Cursor 3 多 Agent 用法(代理窗口、工作树、worktreeMaxCount 默认 25、.cursor/worktrees.json、云端 Agent 不支持 Gitea);git ls-remote 确认推送成功。没有写业务代码。
下一步:用户在 Cursor 代理窗口开总控 Agent(Grok 模型)执行阶段 0,再按 TASKS 第 8 节开各开发线。待确认:D18、D27、D29。
给下个会话:本会话是设计会话,不写业务代码;工作区现在是 Git 仓库(main 跟踪 origin/main),改文档要提交并推送;工作树文件是 CRLF、仓库里是 LF,属正常。