Findings from the conformance corpus workstream, all fixed at the source: - value/wire: enable serde_json's float_roundtrip so typed wire floats keep their exact digits across foreign/plugin boundaries (Python pi*9 now stays 28.274333882308138). - host: default interpreter stack budget lowered to 128 frames so deeply recursive documents hit a structured resource.exhausted instead of exhausting the native debug-build Rust stack; --stack remains available. - frontend/map: calling an external HTTP(S) link is reported as ref.unresolved (consistent with other unresolvable call targets) instead of math.unsupported. - frontend/analyze: invalid front matter emits a single frontmatter.invalid diagnostic (the YAML error is not repeated by the imports pass). - spec/mapping: clarify that would-be execution nodes outside any function body are inert with a markdown.inert_executable warning (no "return outside a function" hard-error claim). - tests: add the conformance corpus and harness (150 AST goldens, 36 semantic goldens, 48 hard-error + 6 warning + 10 runtime-error negatives, CLI/module/ plugin integration tests, prose-invariance properties) and update the three reported observations to the fixed behaviour.
96 lines
1.6 KiB
JSON
96 lines
1.6 KiB
JSON
{
|
|
"kind": "document",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 83
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "paragraph",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 27
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "text",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 27
|
|
},
|
|
"literal": "计算前先说明意图。"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "paragraph",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 47
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "strong",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 47
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "text",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 45
|
|
},
|
|
"literal": "结果 = 1 + 2"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "paragraph",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 73
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "text",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 73
|
|
},
|
|
"literal": "再补充一句叙述。"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "paragraph",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 83
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "emph",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 83
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "text",
|
|
"span": {
|
|
"start": 76,
|
|
"end": 82
|
|
},
|
|
"literal": "结果"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|