Skip to content

Commit c4bc58a

Browse files
committed
P1-GATE.02: retain actual firstchance initialization command guard evidence
1 parent 5b8d699 commit c4bc58a

3 files changed

Lines changed: 264 additions & 2 deletions

File tree

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
{
2+
"schemaVersion": 1,
3+
"taskId": "P1-GATE.02.firstchance-v4",
4+
"initializationDiagnosticReviewed": true,
5+
"actualCauseProved": false,
6+
"bodyAccepted": false,
7+
"originalScopePassed": false,
8+
"fullP1Closure": false,
9+
"fullP2Closure": false,
10+
"actualJournal": {
11+
"Instrumented": true,
12+
"OriginalScopePassed": false,
13+
"Nonce": "d69b693546dd43bc803f37c4df6441af",
14+
"Lease": "251aae578b8a41fcab3f9e684eeacc11",
15+
"Pid": 52016,
16+
"Birth": 134364102784232770,
17+
"CommandLine": "\"C:\\Program Files\\PowerShell\\7\\pwsh.dll\" -NoLogo -NoProfile -NonInteractive -Command \"$self=[Diagnostics.Process]::GetCurrentProcess();try{$r=[ordered]@{Nonce='fef939ca666445cc8fc760772efee967';Pid=$PID;Birth=$self.StartTime.ToFileTimeUtc();CommandLine=[Environment]::CommandLine;WorkingDirectory=[Environment]::CurrentDirectory};[IO.File]::WriteAllText('D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\command-body.json',($r|ConvertTo-Json -Compress));[Console]::Out.WriteLine('HOST_BODY_OUT:fef939ca666445cc8fc760772efee967');[Console]::Error.WriteLine('HOST_BODY_ERR:fef939ca666445cc8fc760772efee967')}finally{$self.Dispose()}\"",
18+
"Executable": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
19+
"WorkingDirectory": "D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4",
20+
"HookSha256": null,
21+
"HookMvid": "612a7d9b-9cdb-4fa7-a94d-49908a6d7d0e",
22+
"KnownInitStep": "RequestFullCommand",
23+
"InitError": "",
24+
"EnvironmentHookPath": "D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\hook-runtime\\StartupHook.dll",
25+
"ExpectedHookSha256": "7F52F0AD33410D82B109CEE58B22795F34CD9F709DDFD433790C77946D13A9FD",
26+
"ExpectedHookMvid": "612a7d9b-9cdb-4fa7-a94d-49908a6d7d0e",
27+
"WorkingDirectoryMatched": true,
28+
"RequestFullCommandMatched": false,
29+
"HookHashMatched": false,
30+
"HookMvidMatched": true,
31+
"Index": -1,
32+
"ElapsedMilliseconds": 15,
33+
"ExceptionType": null,
34+
"Message": null,
35+
"NativeErrorCode": null,
36+
"ExceptionStack": null,
37+
"FirstChanceStack": null
38+
},
39+
"journal": {
40+
"sha256": "1345DC5CC35C127582B510358A0C0D348FD3D3768A7ED122AF05488F3A9208A3",
41+
"path": "D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\hook-init-diagnostic-d69b693546dd43bc803f37c4df6441af.json"
42+
},
43+
"actualEnvironment": {
44+
"EnvironmentAfter": {
45+
"RUSTSHARP_FIRSTCHANCE_MVID": {
46+
"Value": null,
47+
"Present": false
48+
},
49+
"RUSTSHARP_FIRSTCHANCE_SHA": {
50+
"Value": null,
51+
"Present": false
52+
},
53+
"DOTNET_STARTUP_HOOKS": {
54+
"Value": null,
55+
"Present": false
56+
},
57+
"RUSTSHARP_FIRSTCHANCE_NONCE": {
58+
"Value": null,
59+
"Present": false
60+
},
61+
"RUSTSHARP_FIRSTCHANCE_LEASE": {
62+
"Value": null,
63+
"Present": false
64+
}
65+
},
66+
"EnvironmentErrors": [],
67+
"Nonce": "d69b693546dd43bc803f37c4df6441af",
68+
"HookBound": "Target actualtypeof assemblyMVID + uniquepath/fileSHA; strictactualpwsh/requestfullcmd/nativebirth",
69+
"ActualHookSha256": "7F52F0AD33410D82B109CEE58B22795F34CD9F709DDFD433790C77946D13A9FD",
70+
"Instrumented": true,
71+
"EnvironmentBefore": {
72+
"RUSTSHARP_FIRSTCHANCE_MVID": {
73+
"Value": null,
74+
"Present": false
75+
},
76+
"RUSTSHARP_FIRSTCHANCE_SHA": {
77+
"Value": null,
78+
"Present": false
79+
},
80+
"DOTNET_STARTUP_HOOKS": {
81+
"Value": null,
82+
"Present": false
83+
},
84+
"RUSTSHARP_FIRSTCHANCE_NONCE": {
85+
"Value": null,
86+
"Present": false
87+
},
88+
"RUSTSHARP_FIRSTCHANCE_LEASE": {
89+
"Value": null,
90+
"Present": false
91+
}
92+
},
93+
"OriginalScopePassed": false,
94+
"Lease": "251aae578b8a41fcab3f9e684eeacc11",
95+
"PrimaryRuntimeError": "Held-job phase rejected; no automatic retry",
96+
"RootReadHookMvid": "612a7d9b-9cdb-4fa7-a94d-49908a6d7d0e",
97+
"EnvironmentRestored": true
98+
},
99+
"runtime": {
100+
"actualExit": 1,
101+
"path": "artifacts/p1-supervision/powershell-firstchance-v4/root-nativetiny-outer.json",
102+
"sha256": "9447AF1E3640783137DB8F48F6A8C87F5DCF9B5AB1F0E74DF53FCE39EC04345E",
103+
"jobCleanup": {
104+
"TerminationReturn": null,
105+
"TerminationLastError": null,
106+
"Before": {
107+
"Active": 0,
108+
"Total": 2,
109+
"Assigned": 0,
110+
"Listed": 0,
111+
"ReturnedBytes": 8,
112+
"Members": [],
113+
"Failures": [],
114+
"Overflow": false,
115+
"Coherent": true
116+
},
117+
"Final": {
118+
"Active": 0,
119+
"Total": 2,
120+
"Assigned": 0,
121+
"Listed": 0,
122+
"ReturnedBytes": 8,
123+
"Members": [],
124+
"Failures": [],
125+
"Overflow": false,
126+
"Coherent": true
127+
},
128+
"AccountingZero": true,
129+
"HandleClosed": true,
130+
"HandleCloseLastError": 0,
131+
"Errors": [],
132+
"Error": null
133+
},
134+
"identities": [
135+
{
136+
"Pid": 29404,
137+
"CreationFileTime": 134364102782232579,
138+
"ParentPid": 58336,
139+
"CommandLine": "\"C:\\Program Files\\dotnet\\dotnet.exe\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\runtime\\PrivateJobLauncher.dll\" \"--tiny\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\SCOPE-RUN-FROZEN.json\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\tiny-root-result.json\""
140+
},
141+
{
142+
"Pid": 52016,
143+
"CreationFileTime": 134364102784232770,
144+
"ParentPid": 29404,
145+
"CommandLine": "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\" \"-NoLogo\" \"-NoProfile\" \"-NonInteractive\" \"-Command\" \"$self=[Diagnostics.Process]::GetCurrentProcess();try{$r=[ordered]@{Nonce='fef939ca666445cc8fc760772efee967';Pid=$PID;Birth=$self.StartTime.ToFileTimeUtc();CommandLine=[Environment]::CommandLine;WorkingDirectory=[Environment]::CurrentDirectory};[IO.File]::WriteAllText('D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\command-body.json',($r|ConvertTo-Json -Compress));[Console]::Out.WriteLine('HOST_BODY_OUT:fef939ca666445cc8fc760772efee967');[Console]::Error.WriteLine('HOST_BODY_ERR:fef939ca666445cc8fc760772efee967')}finally{$self.Dispose()}\""
146+
}
147+
],
148+
"failure": "Actual phase exit nonzero; original report retained",
149+
"nativeExits": [
150+
{
151+
"exited": true,
152+
"identity": {
153+
"Pid": 29404,
154+
"CreationFileTime": 134364102782232579,
155+
"ParentPid": 58336,
156+
"CommandLine": "\"C:\\Program Files\\dotnet\\dotnet.exe\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\runtime\\PrivateJobLauncher.dll\" \"--tiny\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\SCOPE-RUN-FROZEN.json\" \"D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\tiny-root-result.json\""
157+
},
158+
"nativeExit": {
159+
"waitLastError": 0,
160+
"wrapperNeverClosesOriginal": true,
161+
"exitUtc": "2026-10-14T00:11:18.7964205Z",
162+
"birth100ns": 134364102782232579,
163+
"waitReturn": 0,
164+
"getTimesLastError": 0,
165+
"borrowedOriginalHandle": true,
166+
"exit100ns": 134364102787964205,
167+
"getTimesReturn": 1
168+
}
169+
},
170+
{
171+
"exited": true,
172+
"identity": {
173+
"Pid": 52016,
174+
"CreationFileTime": 134364102784232770,
175+
"ParentPid": 29404,
176+
"CommandLine": "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\" \"-NoLogo\" \"-NoProfile\" \"-NonInteractive\" \"-Command\" \"$self=[Diagnostics.Process]::GetCurrentProcess();try{$r=[ordered]@{Nonce='fef939ca666445cc8fc760772efee967';Pid=$PID;Birth=$self.StartTime.ToFileTimeUtc();CommandLine=[Environment]::CommandLine;WorkingDirectory=[Environment]::CurrentDirectory};[IO.File]::WriteAllText('D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\command-body.json',($r|ConvertTo-Json -Compress));[Console]::Out.WriteLine('HOST_BODY_OUT:fef939ca666445cc8fc760772efee967');[Console]::Error.WriteLine('HOST_BODY_ERR:fef939ca666445cc8fc760772efee967')}finally{$self.Dispose()}\""
177+
},
178+
"nativeExit": {
179+
"waitLastError": 0,
180+
"wrapperNeverClosesOriginal": true,
181+
"exitUtc": "2026-10-14T00:11:18.6839760Z",
182+
"birth100ns": 134364102784232770,
183+
"waitReturn": 0,
184+
"getTimesLastError": 0,
185+
"borrowedOriginalHandle": true,
186+
"exit100ns": 134364102786839760,
187+
"getTimesReturn": 1
188+
}
189+
}
190+
],
191+
"passed": false
192+
},
193+
"strictHook": {
194+
"mvid": "612a7d9b-9cdb-4fa7-a94d-49908a6d7d0e",
195+
"fullP1Closure": false,
196+
"allLevelSarif": 0,
197+
"path": "D:\\GitHub\\RustSharp\\artifacts\\p1-supervision\\powershell-firstchance-v4\\hook-runtime\\StartupHook.dll",
198+
"sha256": "7F52F0AD33410D82B109CEE58B22795F34CD9F709DDFD433790C77946D13A9FD"
199+
},
200+
"strictController": {
201+
"sourceManifestSha256": "818C7D151120CB1BC7C1E9CC1A0D121CD7D0BBD79871CE47336E3B50390485F0",
202+
"sdk": "10.0.401",
203+
"assemblySha256": "26453ECC46D1E3643D00D68395E0E808508415E9117CDCA041F66CFC28018F78",
204+
"runtimeconfigSha256": "C230A317A54DD960BCBEB5F347F52E18DC665A26F7EFDA2159FCED9A5AC7E097",
205+
"sarifSha256": "BA409C351A3D37BF6725E66791A53010B5AC26E65F553E7864DA7F23B1F85D0B",
206+
"diagnostics": 0,
207+
"fullP1Closure": false
208+
},
209+
"actualRejectedCompilerResponse": {
210+
"path": "artifacts/p1-supervision/powershell-firstchance-v4/V3-ACTUAL-COMPILER-RESPONSE.rsp",
211+
"sha256": "0EABF90D6192AC28EA72CBF076548FEADBACE46C1C647EB4EC7B56D02211020C",
212+
"priorFailurePath": "artifacts/p1-supervision/powershell-firstchance-v3/root-build-outer.json",
213+
"differences": "10of226 exacttokens stalelease; noSDK/analyzer/flags change"
214+
},
215+
"unreadyV5": "LibraryImport nativeGetCommandLineW source/project saved13:52; functionR aliascollided Invoke-History; later14:30/16:00 guards rejectmetadata beforewrite; no completeSOURCE/HOOK/TOP freeze, NOT_READY",
216+
"at": "2026-10-14T08:19:13.6972923+08:00"
217+
}

‎docs/roadmap/P2-HANDOFF.md‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,31 @@ English | [简体中文](P2-HANDOFF_zh.md) | [P2 contract](P2.md)
88
`01a13503-db0e-7be0-a50e-11ff85e5890c`, bound to the unique active 30-minute
99
heartbeat `rustsharp-p1-p2-30`. The deleted old `rustsharp-p2` is not restored.
1010
The persistent dispatch and acceptance checkpoint is
11-
`artifacts/p1-supervision/resume-root-v29/resumption.json`.
11+
`artifacts/p1-supervision/resume-root-v30/resumption.json`.
12+
13+
Round26 workspace documentation API component is ✅ Complete at `5b8d699`:
14+
fresh build0 warnings/errors, all7 real Cargo/member/source/atomic filesystem cases
15+
and affected21 publication,20 command-function,7 depth and12 source-page cases pass.
16+
Package-relative href validation is corrected without changing the old CLI's
17+
unsupported-workspace semantics. [Actual workspace proof](../evidence/p2/documentation-workspace-v1.json)
18+
leaves CLI workspace selection, dependencies/features/multi-target/cross-package
19+
symbols and full12/91 scope open. Exact050ad0f's four CI workflows succeed; original
20+
archive7 digests and aggregate input6 hashes/SHA are reconciled at `e2e74a1` in the
21+
[current frozen CI proof](../evidence/p1/ci-050ad0f-original-reconcile.json). This
22+
profile's108 cases cannot close all six P1 gates or prove the new unpushed source.
23+
24+
FirstChance v3 strict controller build is ❌ Failed by a stale intermediate lease
25+
in10 of226 RSP tokens; actual bytes and failed cleanup proof are retained. v4's
26+
two strict builds pass/SARIF0 and the real target emits an initialization journal:
27+
managed CommandLine names pwsh.dll while the exact OS/request command names
28+
pwsh.exe, so the full-command guard rejects before observing exceptions. Environment
29+
restoration now passes; body/init/exception acceptance remains false. [Actual
30+
instrumentation and guard](../evidence/p1/firstchance-v4-command-guard.json) keep
31+
original flags/helpers/caps unchanged. v5 native-command-binding source exists,
32+
but a PowerShell alias collision and later deadline reject left no complete freeze;
33+
it is ⛔ Blocked and prohibited from running. The synchronous-open cancel concept
34+
also remains NOT_READY: attribute/rights/lease/driver/join gaps have no native proof.
35+
P1's six gates remain open, P2 stays8/101 and the sole heartbeat stays ACTIVE.
1236

1337
Round25 actual ordinary-file kernel-IO foundation is ✅ Complete at `e07d099`:
1438
one helper's real oplock request returns STATUS_PENDING, cancellation completes

‎docs/roadmap/P2-HANDOFF_zh.md‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,28 @@
88
`01a13503-db0e-7be0-a50e-11ff85e5890c`,绑定唯一 ACTIVE 的每30分钟
99
heartbeat `rustsharp-p1-p2-30`。已删除的旧 `rustsharp-p2` 不恢复。
1010
持久派单与验收检查点为
11-
`artifacts/p1-supervision/resume-root-v29/resumption.json`。
11+
`artifacts/p1-supervision/resume-root-v30/resumption.json`。
12+
13+
第26轮workspace documentation API组件在 `5b8d699` 的限定范围内 ✅ 已完成:
14+
新构建0警告/错误,全部7个真实Cargo/member/source/atomic文件系统案例及
15+
受影响的21个publication、20个command函数、7个depth和12个source-page案例通过。
16+
已修package-relative href校验,旧CLI的unsupported-workspace语义不变。
17+
[真实workspace证明](../evidence/p2/documentation-workspace-v1.json)保留CLI workspace选择、
18+
dependencies/features/multi-target/cross-package symbols及完整12/91范围缺口。
19+
精确050ad0f的4条CI workflow成功,原archive7 digest及aggregate input6 hash/SHA
20+
在 `e2e74a1` 对账,见[当前冻结CI证明](../evidence/p1/ci-050ad0f-original-reconcile.json)。
21+
此profile的108案例不能关闭P1六门禁,也不能证明新未推送源码。
22+
23+
FirstChance v3严格controller构建因226个RSP token中的10处陈旧intermediate lease
24+
❌ 失败,真实原件及失败cleanup证明均保留。v4两次严格构建/SARIF0通过,真实
25+
target输出了初始化journal:managed CommandLine指向pwsh.dll,而精确OS/request
26+
命令指向pwsh.exe,因此full-command guard在观察异常前拒绝。环境恢复现已通过,
27+
body/init/exception验收仍为false。
28+
[实际取证及guard](../evidence/p1/firstchance-v4-command-guard.json)保持原flags/helper/
29+
caps不变。v5原生命令绑定源码已保存,但PowerShell alias冲突及随后截止检查拒绝
30+
导致未完整冻结,状态 ⛔ 已阻塞,禁止运行。同步open cancel概念也仍NOT_READY,
31+
attribute/权限/lease/driver/join缺口尚无native证明。P1六门禁仍开放,P2保持
32+
8/101,唯一heartbeat保持ACTIVE。
1233

1334
第25轮真实普通文件kernel-IO基础组件在 `e07d099` 的限定范围内 ✅ 已完成:
1435
单helper真实oplock请求返回STATUS_PENDING,取消后原生事件signaled且状态为

0 commit comments

Comments
 (0)