Repository navigation
feat: add scoped rail diagnostic ingress (refs #3092) - #3094
Conversation
|
|
Current-main triage after the stale-base notice: PR head remains The complete incoming delta changes only:
This delta is unrelated to P01's four Rust files and the rail diagnostic ingress. It changes no Rust source/module graph, rail DTO/emitter/dispatch, logger, dependencies/lockfiles, build configuration or CI workflows. The TypeScript additions do not consume the new rail command or alter its inputs. Retaining this reviewed and locally tested head and its current CI under the unrelated-delta policy; no branch update or duplicate CI run for this delta. Merge still requires the applicable required and triggered checks to pass on this exact head, with any conditional skips explained. The upcoming P02 frontend phase will start from current main and preserve these changes after P01 lands. |



Adds
append_rail_diagnosticto Tauri and Web dispatch so the upcoming rail instrumentation can send each enabled diagnostic record to the existing backend logger. The shared adapter validates a closed, bounded payload, returns a fixed private error for invalid records, and emits one Debug record with a fixed target. Existing log filters, file append/rotation andsave_debug_logsbehavior stay intact.This is P01 of #3083. It provides the backend without enabling frontend collection yet. It does not repair the intermittent click issue or promise durable writes on shutdown.
Closes #3092.
Validation on
bdc8a018829c3085061f3530570cc556a426971f:issue_3083tests passed, including the production emitter through a local gate/formatter to actual temporary files: Info/invalid negatives, Debug/Trace positives, append and rotation/continuity.check:arcs,check:cyclesand diff checks passed.logging.rschanges are test-only.The first instance-gitignore guard attempt failed in
link.exewith0xc0000142before a test assertion. One continuation passed after process-only build/temp output overrides confined outputs to this repository; the project-settings guard then passed. This does not establish or repair the original linker cause. No tracked/global build configuration changed.Approved frozen phase:
.ac/plans/3083-rail-click-diagnostics/v3-P01-backend.md, SHA256BADDB49D18EE497D56761D54B637C7FC689E2219620CF98836818BAF52EE8A00. Full v3 exact five-party consensus and cold-start gate recorded externally inapproval-v3.jsonandimplementation-cold-gate-v3-P01.md. Evidence: room25room-shared/3092-P01/, including shipper results and both code reviews. Required and triggered PR CI must pass on the exact head before merge. No packaged build or interactive test requested.