4.3 KiB
4.3 KiB
title, type, permalink, stable_id, scope, project_id, workspace_type, usage_profile_id, preference_context, document_type, revision, source_memory_ids, source_checkpoint_ids, source_file_ids, source_git_commit, source_git_commits, source_agent_sync_ids, model_connection, model_name, source_count, source_revisions, source_dispositions, cited_source_ids, job_cited_source_ids, conflicts, supersedes, preferences, source_cursor, source_hash, prompt_version, schema_version, curation_job_id, created_at, updated_at, tags, restored_from_commit
| title | type | permalink | stable_id | scope | project_id | workspace_type | usage_profile_id | preference_context | document_type | revision | source_memory_ids | source_checkpoint_ids | source_file_ids | source_git_commit | source_git_commits | source_agent_sync_ids | model_connection | model_name | source_count | source_revisions | source_dispositions | cited_source_ids | job_cited_source_ids | conflicts | supersedes | preferences | source_cursor | source_hash | prompt_version | schema_version | curation_job_id | created_at | updated_at | tags | restored_from_commit | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WinUnLock 待办任务清单 | curated | main/projects/ea207d36-693c-4349-b3c8-7c40c8c889f5/curated/win-un-lock-待办任务清单 | 4d3a91c8-d950-4373-a19d-66ed6bcc21a6 | project | ea207d36-693c-4349-b3c8-7c40c8c889f5 | development | null | development | tasks | 1 |
|
null | Sub2API | git-restore | 17 |
|
|
|
|
103 | 4a64fd2a22cf52c37c2891c452140220e743d62d9ef477be0616d478b8794785 | 2026-08-12.3 | 3 | null | 2026-08-19T09:41:29.646745+00:00 | 2026-09-23T15:12:09.597388+00:00 |
|
6a6a895eaf |
WinUnLock 待办任务清单
1. VM 自动解锁完整流程验证
- 在目标 Windows 10/11 x64 VM 中执行:
- 创建 VM 快照。
- 以管理员终端运行
winunlock-admin.exe install --unlock-time 03:00(示例时间)。 - 运行
%PROGRAMDATA%\WinUnLock\bin\setup.exe --account ".\\<本地用户名>",交互输入密码,生成cred.bin。 - 锁屏 (
Win+L),等待约 3 分钟后观察是否自动解锁。 - 检查
%PROGRAMDATA%\WinUnLock\logs\provider.log与client.log,记录成功或故障信息。
- 故障排查要点:
provider.log是否存在(DLL 是否加载/注册)。client.exe退出码 10(管道不存在)或其他码(配置、DPAPI、凭据读取失败)。ulAuthenticationPackage为 0 → LSA 直接拒绝,需要在 Provider 中打印实际包 ID。- 本地账户使用
.\\用户名,域账户使用域\\用户或 UPN 形式。
2. 错误恢复与卸载流程文档化
- 编写恢复指南:
- 在安全模式或 WinRE 中手动删除注册表键
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{E9C67B30-B120-4838-A5A3-FBC2DE03C532}与对应的HKCR\CLSID项。 - 使用
winunlock-admin.exe uninstall完整卸载并恢复默认登录方式。
- 在安全模式或 WinRE 中手动删除注册表键
- 将指南加入
aidocs/project_context.md并使用秒级时间戳记录。
3. 代码清理与发布准备
- 移除调试日志、示例代码以及任何硬编码路径。
- 确认
aidocs/已在.gitignore中,防止记忆文件被提交。 - 生成 Release 版产物:
provider.dll、client.exe、setup.exe、winunlock-admin.exe。 - 编写简易安装脚本(复制 DLL、注册 Credential Provider、安装服务),脚本头部注明必须以管理员运行。
4. 文档与记忆更新
- 在
aidocs/project_context.md中记录本次任务的实现细节、验证方式、遇到的问题以及后续计划,使用秒级时间戳倒序追加。 - 完成后使用
type: 中文说明格式提交代码,例如feat: 完成 VM 自动解锁全流程验证。
信息来源:curated_baseline:4d3a91c8-d950-4373-a19d-66ed6bcc21a6, memory:037f0a1b-4e1a-464a-b90e-89760d92637b, memory:648be109-d91c-4f4d-a336-c2f04432c3e3