Commit 81df336
docs(spec): clarify RFCs based on pilot-implementation findings (iter-11)
Round 1+2 sub-agent SDK pilot implementations of the Stage-2/Stage-3 RFCs
surfaced 5 ambiguities and 1 factual error in the RFC text. All
clarifications landed as same-day RFC edits to keep the spec consistent
with the pilot PRs.
rfc-preview-method.md changes:
- Pre-conditions section: replace incorrect "..Default::default() (FRU)"
migration text with the correct "Default + field assignment" pattern.
Per Rust E0639, #[non_exhaustive] blocks struct-literal construction
from external crates entirely, including FRU. Apcore-rust v0.21.0
CHANGELOG (PR #25) is now the canonical migration reference.
- Add cross-SDK forward-compat-semantics table showing why this is a
Rust-only concern (Python dataclass + TS interface get forward-compat
for free; Rust has the only declaration mechanism + the only cost).
- Change.x-* extension fields: add cross-SDK schema-encoding note. RFC
does NOT prescribe runtime validation; lists idiomatic encodings
(pydantic / serde-flatten / Type.Unsafe) and conformance-fixture
requirements covering required-only and x-foo round-trip cases.
rfc-ephemeral-modules.md changes:
- Add "Audit-event single-emit rule" section: for ephemeral.* modules,
exactly one event MUST be emitted with full contextual payload
(module_id, caller_id, identity?, namespace_class). Avoids dual-emit
with pre-existing empty-payload registry-event bridge across all 3 SDKs.
- Add "register_internal() interaction" rule: register_internal MUST
reject ephemeral.* IDs and direct callers to Registry.register().
Preserves audit-trail provenance distinction and ACL enforcement.
- Add "Transitional fixture handling" section: don't update
annotations_extra_round_trip.json until all 3 SDKs ship discoverable;
pilot-tolerant test pattern from apcore-python#26 is the bridge.
decision-log.md: iter-11 addendum recording all 5 clarifications with
their cross-references to the pilot PRs that surfaced them.
No SDK behavior change. RFCs remain Draft / RFC.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: tercel <tercel.yi@gmail.com>1 parent 973410b commit 81df336
3 files changed
Lines changed: 143 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1078 | 1134 | | |
1079 | 1135 | | |
1080 | 1136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 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 | + | |
79 | 114 | | |
80 | 115 | | |
81 | 116 | | |
| |||
107 | 142 | | |
108 | 143 | | |
109 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
110 | 156 | | |
111 | 157 | | |
112 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| |||
201 | 213 | | |
202 | 214 | | |
203 | 215 | | |
204 | | - | |
205 | 216 | | |
206 | | - | |
| 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 | + | |
207 | 245 | | |
208 | 246 | | |
209 | 247 | | |
| |||
0 commit comments