This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathphases.json
More file actions
469 lines (469 loc) · 18.1 KB
/
Copy pathphases.json
File metadata and controls
469 lines (469 loc) · 18.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
{
"schema_version": 1,
"updated": "2026-10-22",
"scope": "All 36 requested work items. Implemented slices do not imply complete subsystem support.",
"architecture_decision": {
"current": "Windows x64 runs Intel guests directly; keep it as the regression baseline.",
"preferred_next": "Native Windows ARM64 port, conditional on an available ARM64 host and ABI probes.",
"alternative": "ARM64-to-x64 dynarec is a separate backend if the x64-host requirement is retained.",
"hardware_available": false,
"arm64_execution_implemented": false,
"memory_ordering": "Measure guest atomic ordering. Apple's Rosetta TSO control is not assumed available on Windows ARM hardware."
},
"phases": [
{
"id": "P0",
"name": "Evidence, contracts and debugging",
"status": "verified-slice",
"depends_on": [],
"items": [
1,
2,
4,
5
],
"exit_gate": "Same-artifact Mac/Adapter comparisons with complete case IDs; versioned ABI contracts; guest-PC, registers and instruction-step evidence."
},
{
"id": "P1",
"name": "Loaders and language runtimes",
"status": "implemented-slices",
"depends_on": [
"P0"
],
"items": [
7,
8,
9,
10,
11
],
"exit_gate": "Measured shared-cache images, ObjC/Swift consumers, cross-image unwinding and Mach VM error/lifetime probes."
},
{
"id": "P2",
"name": "System services and Foundation",
"status": "implemented-slices",
"depends_on": [
"P1"
],
"items": [
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24
],
"exit_gate": "Reference-matched queues/runloops, complex IPC, process behavior and real service consumers; preserve existing broker regressions."
},
{
"id": "P3",
"name": "Graphics and desktop UI",
"status": "not-started",
"depends_on": [
"P2"
],
"items": [
25,
26,
27,
28,
29,
30
],
"exit_gate": "NSWindow hello-world with observed drawing, input, pasteboard and orderly teardown; resource/shader tests before claiming graphics coverage."
},
{
"id": "P4",
"name": "ARM64 and arm64e execution",
"status": "not-started",
"depends_on": [
"P0",
"P1"
],
"items": [
3,
12,
13
],
"exit_gate": "Pinned ARM64 CLI and architecture litmus probes; 16K guest-page semantics; authenticated-pointer tests separately from plain ARM64."
},
{
"id": "P5",
"name": "Xcode integration",
"status": "not-started",
"depends_on": [
"P2",
"P3",
"P4"
],
"items": [
6,
31,
32,
33
],
"exit_gate": "Pass each of M0 through M4 with the actual named executable and a retained trace/output artifact."
},
{
"id": "P6",
"name": "Instruments, devices and Simulator",
"status": "not-started",
"depends_on": [
"P5"
],
"items": [
34,
35,
36
],
"exit_gate": "Measured DTX/device pairing conversations and actual device tests; Simulator remains deferred until prior Xcode gates pass."
}
],
"items": [
{
"id": 1,
"name": "Real macOS reference execution",
"phase": "P0",
"status": "reference-verified",
"work": "Hosted Intel Mac reference executed successfully (run39667131995); compressed native capture, OS/build and exact executable hash retained. Physical device/GPU/desktop traces remain separate.",
"source": "upstream-sources.md"
},
{
"id": 2,
"name": "Differential harness: thousands of probes",
"phase": "P0",
"status": "verified-slice",
"work": "Three same-artifact suites match a hosted Intel Mac in debug and release: 4096 libc cases (after correcting strtol no-conversion errno and timegm pre-1900 rejection), 4096 Objective-C cases over eight dispatch/metadata families (after the Darwin capture disproved an isa-inclusive instance-size assumption) 1024 threading cases over create/join, mutex, once, TLS keys, condition handoff, attributes and return values, and 30 whole-program cases over the pinned jq 1.8.2 and ripgrep 15.2.0 artifacts (stdout/stderr/exit status). Expand to services (Mach, XPC, launchd).",
"source": "upstream-sources.md"
},
{
"id": 3,
"name": "ARM64 backend decision",
"phase": "P4",
"status": "decision-recorded",
"work": "Prefer native Windows ARM64 when hardware is available; retain dynarec as a separately scoped x64-host backend. Neither is implemented.",
"source": "upstream-sources.md"
},
{
"id": 4,
"name": "Guest crash debugging and single-step",
"phase": "P0",
"status": "verified-slice",
"work": "Nine Windows LLDB tests cover genuine guest UD2, register/disassembly/backtrace capture, relocated symbols, VM breakpoints, instruction step and timeout cleanup, in debug and release; the release hook needed a unique body to survive identical-code folding. Darwin debugserver APIs remain P5.",
"source": "upstream-sources.md"
},
{
"id": 5,
"name": "Strict subsystem ABI contracts",
"phase": "P0",
"status": "implemented-contracts",
"work": "Seven versioned subsystem contracts and automated layout/path/symbol-drift checks exist. Extend contracts and native reference coverage with every new subsystem.",
"source": "upstream-sources.md"
},
{
"id": 6,
"name": "Binary pass/fail milestones",
"phase": "P5",
"status": "external-gate",
"work": "The five binary gates (M0 NSWindow hello-world, M1 xcodebuild, M2 Xcode welcome window, M3 open project, M4 build project) all require AppKit and Xcode's own GUI binaries, which are Apple artifacts this host cannot obtain or redistribute. Gate definitions and the pass criteria stay recorded; see docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 7,
"name": "System image and dyld shared cache",
"phase": "P1",
"status": "not-started",
"work": "Acquire identified user-supplied image, extract/rebase caches and subcaches, resolve shared-cache fixups and image lifecycle. Existing XIP extraction is not cache loading.",
"source": "upstream-sources.md"
},
{
"id": 8,
"name": "Apple-ABI Objective-C runtime",
"phase": "P1",
"status": "verified-slice",
"work": "Raw-isa MRC classes/metaclasses, selectors, inheritance, msgSend/Super2, load/initialize, startup categories and absolute/relative method lists across classic, chained and relative fixup forms, with all 4096 same-binary Objective-C differential cases matching a hosted Intel Mac. Compiler-emitted protocols, adoption, method descriptions and property introspection match a second 4096-record Mac suite in debug/release. Runtime-owned ARC strong/weak ownership, inherited ivar cleanup, custom RR and recognized x64 return handoffs match two 1024-record Mac suites (O0/O2) in debug/release. ARC Blocks, atomic/copy properties, foreign objects, exceptions and dynamic registration remain.",
"source": "upstream-sources.md"
},
{
"id": 9,
"name": "Swift guest runtime",
"phase": "P1",
"status": "not-started",
"work": "Apple Mach-O Swift metadata/refcounting/concurrency/reflection and ObjC interop. Native Windows Swift alone does not satisfy this ABI.",
"source": "upstream-sources.md"
},
{
"id": 10,
"name": "Darwin compact unwind and DWARF",
"phase": "P1",
"status": "verified-discovery-slice",
"work": "dyld section discovery and image containment work for startup/dlopen images, including compact, DWARF-fallback and absent sections. Both Mac-built 1024-record suites match in debug/release. Compact/DWARF decoding, frame walking, personalities and C++/ObjC exception propagation remain.",
"source": "upstream-sources.md"
},
{
"id": 11,
"name": "Mach VM emulation",
"phase": "P1",
"status": "implemented-slice",
"work": "mach_vm_allocate/deallocate/protect plus the vm_* spellings execute over the host address space with Darwin return codes, a recorded-region rule and a verified Mach-O consumer. Remaining: region queries, sharing, sub-range release, inheritance and ledger accounting.",
"source": "mach-vm-results.md"
},
{
"id": 12,
"name": "16K guest pages and ARM memory ordering",
"phase": "P4",
"status": "not-started",
"work": "Preserve guest alignment/protection/query semantics independently of host page granularity; run atomic litmus tests before choosing ordering adaptations.",
"source": "upstream-sources.md"
},
{
"id": 13,
"name": "arm64e pointer authentication",
"phase": "P4",
"status": "not-started",
"work": "Keys/discriminators/address diversity, signed returns and authenticated fixups. Plain ARM64 or stripping pointer bits is insufficient.",
"source": "upstream-sources.md"
},
{
"id": 14,
"name": "libdispatch / GCD",
"phase": "P2",
"status": "implemented-slice",
"work": "Queues (serial, concurrent, barriers, targets, suspension), sync/async/and_wait, groups, once, after, apply, block objects, timer and user-data sources, the main queue and Block runtime copy/dispose run with verified Mach-O consumers. Remaining: descriptor, process, signal and Mach sources, dispatch_data/io, workloops and QoS scheduling.",
"source": "dispatch-results.md"
},
{
"id": 15,
"name": "Full CoreFoundation and Foundation",
"phase": "P2",
"status": "implemented-slice",
"work": "Current CF strings only; add collections, constant objects, resources, bundles, NSObject lifecycle and toll-free bridging from consumers.",
"source": "upstream-sources.md"
},
{
"id": 16,
"name": "CFRunLoop on Mach ports",
"phase": "P2",
"status": "not-started",
"work": "Modes, sources, observers, timers, wakeups and Mach-port callbacks, with reference ordering.",
"source": "upstream-sources.md"
},
{
"id": 17,
"name": "Complex Mach messages",
"phase": "P2",
"status": "implemented-slice",
"work": "Simple broker messages exist. Add OOL/port descriptors, rights transfer, copy/deallocate rules and partial-failure cleanup.",
"source": "upstream-sources.md"
},
{
"id": 18,
"name": "XPC",
"phase": "P2",
"status": "implemented-slice",
"work": "Typed broker transport exists; Apple interoperability, richer objects, GCD scheduling, peer validation and entitlements remain.",
"source": "upstream-sources.md"
},
{
"id": 19,
"name": "Real launchd semantics",
"phase": "P2",
"status": "implemented-slice",
"work": "Job plist/demand-spawn subset exists. Add domains, KeepAlive, supervision/throttling, socket activation, inherited rights and launchctl behavior.",
"source": "upstream-sources.md"
},
{
"id": 20,
"name": "fork / exec / posix_spawn",
"phase": "P2",
"status": "not-started",
"work": "Start with spawn and argument/environment/descriptor inheritance; model fork snapshots and atfork separately.",
"source": "upstream-sources.md"
},
{
"id": 21,
"name": "Signals and syscall personality",
"phase": "P2",
"status": "implemented-slice",
"work": "Synchronous guest signals: dispositions, masks, pending sets, sigwait, sa_mask and default termination run with a verified Mach-O consumer. Remaining: asynchronous delivery, per-thread masks, siginfo/ucontext, alternate stacks, fault mapping, restart and direct syscall interception.",
"source": "signal-results.md"
},
{
"id": 22,
"name": "IOKit / sysctl / proc_info",
"phase": "P2",
"status": "implemented-slice",
"work": "sysctl, sysctlbyname and sysctlnametomib answer about 75 kern/hw/machdep/user/vm names from host facts and fixed Darwin values, and libproc describes the guest's own process, with a verified Mach-O consumer. Remaining: kern.proc and procargs2, net/debug subtrees, disk and performance-level names, other pids, file-descriptor and region flavors, and IOKit.",
"source": "sysctl-results.md"
},
{
"id": 23,
"name": "macOS service daemons",
"phase": "P2",
"status": "external-gate",
"work": "cfprefsd, notifyd, distnoted, LaunchServices, securityd/trustd and opendirectoryd binaries are Apple artifacts that are absent from the supplied Xcode XIP and cannot be redistributed; the client side is covered by the launchd and XPC slices. See docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 24,
"name": "FSEvents and Spotlight",
"phase": "P2",
"status": "not-started",
"work": "Persistent event IDs, rescan/drop semantics, indexing and query behavior; Windows directory notifications are only a backend.",
"source": "upstream-sources.md"
},
{
"id": 25,
"name": "CoreGraphics / CoreText / CoreAnimation / ImageIO / ColorSync",
"phase": "P3",
"status": "external-gate",
"work": "Requires Apple framework images and their rendering/text behaviour, which Apple documents only at API level and which this repository may not redistribute; see docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 26,
"name": "IOSurface",
"phase": "P3",
"status": "not-started",
"work": "Pixel layouts, process sharing, rights, synchronization and host GPU resource interop.",
"source": "upstream-sources.md"
},
{
"id": 27,
"name": "Metal to D3D12; AIR to DXIL",
"phase": "P3",
"status": "external-gate",
"work": "Requires Apple's Metal front end that emits AIR; DXC has no AIR front end and no AIR-to-DXIL implementation was identified. See docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 28,
"name": "AppKit",
"phase": "P3",
"status": "external-gate",
"work": "Requires the AppKit framework image and the Cocoa text/responder stack it depends on; see docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 29,
"name": "SwiftUI",
"phase": "P3",
"status": "external-gate",
"work": "Requires Apple's shipping SwiftUI binary, which the Swift compiler repository does not contain; see docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 30,
"name": "WindowServer replacement",
"phase": "P3",
"status": "external-gate",
"work": "Requires WindowServer behaviour and private protocols observable only from a running Mac; see docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 31,
"name": "LLDB/debugserver Mach primitives",
"phase": "P5",
"status": "not-started",
"work": "Exception ports, task_for_pid, thread_get_state, suspend/resume and memory access. Host LLDB debugging is a separate P0 capability.",
"source": "upstream-sources.md"
},
{
"id": 32,
"name": "codesign / Security / keychain",
"phase": "P5",
"status": "not-started",
"work": "Signature/trust parsing, guest signing/entitlement policy and persistent keychain behavior with test fixtures.",
"source": "upstream-sources.md"
},
{
"id": 33,
"name": "xcrun / xcode-select / SDK paths",
"phase": "P5",
"status": "not-started",
"work": "Developer directory state, tool/SDK discovery, platform/version queries and actual subprocess execution.",
"source": "upstream-sources.md"
},
{
"id": 34,
"name": "Instruments and DTX services",
"phase": "P6",
"status": "external-gate",
"work": "Requires Instruments.app and its DTX peer implementation; the Mach message layer is covered by the existing IPC slice. See docs/item-gates.md.",
"source": "item-gates.md"
},
{
"id": 35,
"name": "Physical devices / USB / usbmuxd / CoreDevice / pairing",
"phase": "P6",
"status": "external-gate",
"work": "Windows transport/drivers, trust records, developer mode and service versions require an actual device acceptance run.",
"source": "upstream-sources.md"
},
{
"id": 36,
"name": "iOS Simulator / CoreSimulator / iOS runtime",
"phase": "P6",
"status": "deferred",
"work": "Defer until earlier Xcode gates pass; automation clients do not replace CoreSimulator or iOS frameworks.",
"source": "upstream-sources.md"
}
],
"milestones": [
{
"id": "M0",
"name": "NSWindow hello-world",
"depends_on": [],
"passed": false,
"evidence": null,
"acceptance": "Actual guest NSWindow appears, draws, receives input and closes cleanly."
},
{
"id": "M1",
"name": "xcodebuild",
"depends_on": [
"M0"
],
"passed": false,
"evidence": null,
"acceptance": "Identified Apple xcodebuild performs version/SDK queries through Adapter; host compiler invocation is not a substitute."
},
{
"id": "M2",
"name": "Xcode welcome window",
"depends_on": [
"M1"
],
"passed": false,
"evidence": null,
"acceptance": "Identified Xcode launcher reaches the interactive welcome window with service/runtime logs."
},
{
"id": "M3",
"name": "Open project",
"depends_on": [
"M2"
],
"passed": false,
"evidence": null,
"acceptance": "Open a pinned small project and reach editor/project state without a fatal unsupported call."
},
{
"id": "M4",
"name": "Build project",
"depends_on": [
"M3"
],
"passed": false,
"evidence": null,
"acceptance": "Build the pinned project, retain the output artifact and compare command/results with the Mac reference."
}
]
}