You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiler/errors.py primarily carries message/line/column; nano check has no dedicated structured diagnostic contract. Local-model repair loops must parse human stderr, which couples automation to wording and makes scope/position mistakes hard to detect.
This is a tooling feature proposal, separate from #55's editor correctness and the quantum prepare/check interface.
Work packet
Add proposed nano check --json with a versioned envelope: input/source digest, compiler version, success flag, diagnostics (stable code, severity, span, message, optional expected/actual and bounded repair hint), and output IR version when successful.
Use one diagnostic representation across CLI and editor adapters; retain plain-text defaults and existing exit-code semantics. Syntax/type/resource/capability errors must remain distinct. Do not invent positions for IR-only failures.
Acceptance
Golden success, syntax, type, unsupported-version and resource-limit outputs.
JSON stdout contains exactly one machine-readable document; operational noise stays on stderr.
Rendering is deterministic and does not execute providers, apply repairs or submit effects.
Hints cite actual symbols/fields; never suggest an authorization bypass or fabricate missing evidence.
Existing plain CLI text and editor positions remain compatible.
A fixture agent consumes the JSON, makes at most one allowed source correction, then rechecks; report valid-program recovery separately from semantic task correctness.
Delivery and future value
Main-based schema plus CLI adapter PR, followed by editor alignment if needed. This supplies Rust/Go-style diagnostics for agents without adding native code generation or changing deterministic language semantics.
Implementation is reviewable in #79, stacked on #73 so #64 can be reviewed and merged first. Head e1c9c1d11bbd90e41982e7072fd7eb939c10f2dd; code revision 85b795b9696ee422991cfa9de80fbb81ac65b0ba plus a final documentation-only clarification. This issue remains open pending that review/merge sequence under #67.
Evidence:
Full suite rerun at exact final head e1c9c1d11bbd90e41982e7072fd7eb939c10f2dd: 1547 passed, 7 skipped on Python 3.11.9 (232.66s). The five-seed 256-case fuzz campaign also passed at that exact head with zero defects. Documentation/diagnostic focused recheck: 57 passed, 1 skipped.
37 focused tests cover eight golden envelopes (baseline/v1 success, syntax, type, unsupported version, resource, capability and lookahead), published JSON Schema validation, deterministic stdout bytes across hash seeds, one document for multiple files, I/O and exit precedence, exact Unicode/EOF point spans, positionless IR failures, bounded hints, internal exception visibility, and no provider/effect execution.
Compiler fuzz campaign: 256 generated cases under all five default hash seeds, plus 30 resource fixtures / 156 checks per worker; zero defects and stable digests.
Offline fixture: 3 cases, at most one allowlisted missing-) correction and one recheck. Both invalid fixtures recover validity, but only one of all three final programs matches the independent observe-rule task oracle. The valid wrong-task and repaired wrong-task controls remain semantically incorrect. This is fixture evidence, not a model repair-rate claim.
Wheels built with an isolated setuptools 78.1.0 backend and diagnostics/CLI/fixture/catalog imports verified from the wheel outside the checkout. The local pip frontend encountered certificate/distutils environment failures; direct backend builds succeeded.
Shared contract for dependent lanes, including #66: nano.compiler.check_report() and immutable CompilerDiagnostic; schema version 1.0.0; stable code/category/severity/message and optional truthful point span, expected/actual and hint (at most 240 characters). RESOURCE_LIMIT is preserved from #64. JSON reports source digest and compiler/package identity, successful IR version, and no guessed IR-only positions. The CLI emits one document and applies no source correction. Full schema and coordinate/digest/exit rules are in docs/compiler-diagnostics.md and docs/compiler-diagnostics.schema.json.
Hosted checks are still a release gate: #79's stacked non-main base does not trigger the main-only workflow. After #73 merges, retarget/rebase #79 onto main and rerun the matrix. #73's CI run could not start because GitHub reports an account billing lock. Neither PR is merged, and neither issue is being closed solely because a PR exists. No live model/provider or hardware use.
The user has authorized tested admin merges with #59 as the sole merge captain. Existing self-hosted capacity must be confirmed before scheduling; this lane changed no runner selectors, queued no CI, and did not merge. Final PR/head/ancestry and local evidence are ready for captain integration checks.
Acceptance audit complete for versioned machine-readable compiler diagnostics. Merged schema/check_report/CLI/editor adapters provide source digest/compiler/IR version, stable error codes, severity/spans, optional expected/actual and bounded hints; syntax/type/resource/capability categories remain distinct. JSON stdout is one deterministic document and operational errors stay on stderr. Plain-text defaults, exit semantics and editor positions remain compatible; IR-only errors do not acquire invented source positions. No providers, repairs or effects execute during diagnostic rendering.
Independent post-merge #64/#65 audit verified exact diagnostic/schema/fuzz/fixture source inclusion and passing existing combined evidence: all59 resource-limit and42 diagnostic tests executed without skips inside the2446-pass/3-unrelated-skip suite. Golden success/syntax/type/version/resource outputs, guarded no-provider imports and CLI/editor projection are covered. The fixture repair agent permits at most one allowlisted source correction, rechecks, and reports valid-program recovery separately from semantic task correctness; it never proposes authority bypass or fabricated evidence. Fuzzing reported zero defects. The reviewed lazy CLI import and diagnostic/package export union are preserved in actual main.
Issue64's valid automatic closure was independently audited. Its declared bound is nesting depth32; source width and total time/memory remain unbounded, with measured boundary-fixture benchmark evidence rather than global performance claims. No extra compiler safety or native-code-generation scope is implied by this diagnostic delivery.
Merged integration receipts:
Nano #82: main cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f, tree 04a3ea8489259583f5cbb274dc94f3bd7f1a98fb.
ATLAS #188: claude/qcomms-hw0-atlas-multipub at db6a30eb50fd096af870843e80e31385629ba7a3, tree eb68e5ef09909395d6bd86c6a763e73b92ad37a7.
Predator #460: claude/qcomms-hw0-pilot at 34adff73a31631be5b3c2b49303a42416f258a2e, tree 13eab966351332c2fad58f380c6a37e76cf497e4.
Actual target branches, parents and trees were verified after each merge. Private integration branches are stated precisely; their default main branches were not these merge targets. The human explicitly answered “Yes, merge using local tests” to waiving the earlier self-hosted gate for these three named integration PRs. That waiver and exact commands/source pins/counts/skips/review limitations are preserved in their bodies. Cloud41322926091 remains FAILED STARTUP: zero jobs/check runs, not a passing test or runner result.
Local combined Nano: 2446 passed,3 unrelated optional skips, zero failures/errors at 5e4373dbd8e093f50398ed46146ec167911352cc. Merged runtime/compiler/test code is byte-identical; only README/status differ. Final availability/docs/host checks at 7d8fdaeb6d35eebe374b9a1c9f16809b07795578: 26 passed,1 existing README-count skip, local ideal demo100/verified. Exact merged Predator tree: 522 passed,zero skipped/failed at efa7cb6ef0b3481330eb6db1634ecc99f0835ad8. ATLAS combined local evidence201passed/0failed, plus the108-pass nonblocking component suite and cross-repo execution in the full Nano/Predator tests. No live quantum job, cancellation, spend, credential/runner/security setting change, production activation or formal GitHub approval was performed. Default-off hardware gates and existing budgets are preserved.
Issue #61 remains open for its separate unfinished prepare/sample service-wire acceptance; its partial source inclusion is not treated as completion.
Activity
AetherAI3 commentedon Nov 1, 2026
Implementation is reviewable in #79, stacked on #73 so #64 can be reviewed and merged first. Head
e1c9c1d11bbd90e41982e7072fd7eb939c10f2dd; code revision85b795b9696ee422991cfa9de80fbb81ac65b0baplus a final documentation-only clarification. This issue remains open pending that review/merge sequence under #67.Evidence:
e1c9c1d11bbd90e41982e7072fd7eb939c10f2dd: 1547 passed, 7 skipped on Python 3.11.9 (232.66s). The five-seed 256-case fuzz campaign also passed at that exact head with zero defects. Documentation/diagnostic focused recheck: 57 passed, 1 skipped.)correction and one recheck. Both invalid fixtures recover validity, but only one of all three final programs matches the independent observe-rule task oracle. The valid wrong-task and repaired wrong-task controls remain semantically incorrect. This is fixture evidence, not a model repair-rate claim.Shared contract for dependent lanes, including #66:
nano.compiler.check_report()and immutableCompilerDiagnostic; schema version1.0.0; stable code/category/severity/message and optional truthful point span, expected/actual and hint (at most 240 characters).RESOURCE_LIMITis preserved from #64. JSON reports source digest and compiler/package identity, successful IR version, and no guessed IR-only positions. The CLI emits one document and applies no source correction. Full schema and coordinate/digest/exit rules are indocs/compiler-diagnostics.mdanddocs/compiler-diagnostics.schema.json.Hosted checks are still a release gate: #79's stacked non-main base does not trigger the main-only workflow. After #73 merges, retarget/rebase #79 onto main and rerun the matrix. #73's CI run could not start because GitHub reports an account billing lock. Neither PR is merged, and neither issue is being closed solely because a PR exists. No live model/provider or hardware use.
The user has authorized tested admin merges with #59 as the sole merge captain. Existing self-hosted capacity must be confirmed before scheduling; this lane changed no runner selectors, queued no CI, and did not merge. Final PR/head/ancestry and local evidence are ready for captain integration checks.
AetherAI3 commentedon Nov 1, 2026
Acceptance audit complete for versioned machine-readable compiler diagnostics. Merged schema/check_report/CLI/editor adapters provide source digest/compiler/IR version, stable error codes, severity/spans, optional expected/actual and bounded hints; syntax/type/resource/capability categories remain distinct. JSON stdout is one deterministic document and operational errors stay on stderr. Plain-text defaults, exit semantics and editor positions remain compatible; IR-only errors do not acquire invented source positions. No providers, repairs or effects execute during diagnostic rendering.
Independent post-merge #64/#65 audit verified exact diagnostic/schema/fuzz/fixture source inclusion and passing existing combined evidence: all59 resource-limit and42 diagnostic tests executed without skips inside the2446-pass/3-unrelated-skip suite. Golden success/syntax/type/version/resource outputs, guarded no-provider imports and CLI/editor projection are covered. The fixture repair agent permits at most one allowlisted source correction, rechecks, and reports valid-program recovery separately from semantic task correctness; it never proposes authority bypass or fabricated evidence. Fuzzing reported zero defects. The reviewed lazy CLI import and diagnostic/package export union are preserved in actual main.
Issue64's valid automatic closure was independently audited. Its declared bound is nesting depth32; source width and total time/memory remain unbounded, with measured boundary-fixture benchmark evidence rather than global performance claims. No extra compiler safety or native-code-generation scope is implied by this diagnostic delivery.
Merged integration receipts:
cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f, tree04a3ea8489259583f5cbb274dc94f3bd7f1a98fb.claude/qcomms-hw0-atlas-multipubatdb6a30eb50fd096af870843e80e31385629ba7a3, treeeb68e5ef09909395d6bd86c6a763e73b92ad37a7.claude/qcomms-hw0-pilotat34adff73a31631be5b3c2b49303a42416f258a2e, tree13eab966351332c2fad58f380c6a37e76cf497e4.Actual target branches, parents and trees were verified after each merge. Private integration branches are stated precisely; their default main branches were not these merge targets. The human explicitly answered “Yes, merge using local tests” to waiving the earlier self-hosted gate for these three named integration PRs. That waiver and exact commands/source pins/counts/skips/review limitations are preserved in their bodies. Cloud41322926091 remains FAILED STARTUP: zero jobs/check runs, not a passing test or runner result.
Local combined Nano: 2446 passed,3 unrelated optional skips, zero failures/errors at
5e4373dbd8e093f50398ed46146ec167911352cc. Merged runtime/compiler/test code is byte-identical; only README/status differ. Final availability/docs/host checks at7d8fdaeb6d35eebe374b9a1c9f16809b07795578: 26 passed,1 existing README-count skip, local ideal demo100/verified. Exact merged Predator tree: 522 passed,zero skipped/failed atefa7cb6ef0b3481330eb6db1634ecc99f0835ad8. ATLAS combined local evidence201passed/0failed, plus the108-pass nonblocking component suite and cross-repo execution in the full Nano/Predator tests. No live quantum job, cancellation, spend, credential/runner/security setting change, production activation or formal GitHub approval was performed. Default-off hardware gates and existing budgets are preserved.Issue #61 remains open for its separate unfinished prepare/sample service-wire acceptance; its partial source inclusion is not treated as completion.