Fan out agents to type the errors in @lib/jsonrpc/errors/
- User
Fan out agents to type the errors in @lib/jsonrpc/errors/
Assistant
I'll first look at the structure to give each agent the right context.
Assistant
Let me check the per-file sig pattern and whether classes are duplicated across files.
Assistant
The error subclasses currently live (with incomplete signatures) in the monolithic
sig/jsonrpc.rbs, whileParser/Middlewarefollow a per-file convention undersig/jsonrpc/. The task is to give each error its own correctsig/jsonrpc/errors/*.rbsmatching the lib layout. Let me invoke the parallel-dispatch skill since this is 5 independent files.Assistant
Now I'll do the one coordination step myself: remove the 5 (incomplete) error-subclass definitions from the monolithic
sig/jsonrpc.rbsso the new per-file sigs become the single source of truth and don't collide. Let me view those exact lines.Assistant
Diagnostics on lines 145–146 are pre-existing (
Configuration::Procedure, unrelated to errors). Now dispatching onerbs-specialistagent per error file — each creates an independent, additivesig/jsonrpc/errors/*.rbs, so there's no shared state.Assistant
All five agents completed. They also corrected a latent bug in the base
Error#initializesig (messagewas typed as a keyword but is positional in source). Let me verify the final state myself.Assistant
Done. All five error subclasses in
lib/jsonrpc/errors/are now typed, each in its own per-file signature mirroring the lib layout (matching the existingparser.rbs/middleware.rbsconvention):File Signature sig/jsonrpc/errors/parse_error.rbsinitialize: (?String message, ?data: data_type) -> voidsig/jsonrpc/errors/invalid_request_error.rbsinitialize: (?String message, ?data: data_type, ?request_id: id_type) -> voidsig/jsonrpc/errors/method_not_found_error.rbssame as above