Skip to content

Commit f68998b

Browse files
0xrinegadeclaude
andcommitted
fix(ovsm): Fix AEA protocol syntax and improve parser error messages
- Fix parenthesis balance in aea_protocol.ovsm instruction blocks - Instruction 11 (RegisterAgent): add 2 closing parens - Instruction 40 (CreateOrder): add 2 closing parens - Instruction 43 (ConfirmDelivery): add 1 closing paren - Instruction 14 (UpdateProfile): add 1 closing paren - Instruction 50 (OpenDispute): add 1 closing paren - Instruction 61 (SlashParticipant): add 1 closing paren - Improve OVSM parser error reporting - Preserve original error with line/column info instead of generic message - Error messages now show exact location and helpful context - Fix HashMap import in research.rs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5cec1e7 commit f68998b

File tree

3 files changed

+992
-67
lines changed

3 files changed

+992
-67
lines changed

examples/ovsm_scripts/aea_protocol.ovsm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
(sol_log_ "Agent registered!")
470470
(sol_log_ "Initial reputation:")
471471
(sol_log_64_ initial_rep)
472-
0)))))))))
472+
0)))))))))))
473473
null)
474474

475475
;; ═══════════════════════════════════════════════════════════════════════════
@@ -597,7 +597,7 @@
597597
(sol_log_ "Order created!")
598598
(sol_log_ "Order ID:")
599599
(sol_log_64_ order_id)
600-
0)))))))))
600+
0)))))))))))
601601
null)
602602

603603
;; ═══════════════════════════════════════════════════════════════════════════
@@ -678,7 +678,7 @@
678678
(sol_log_ "Order completed!")
679679
(sol_log_ "Provider new reputation:")
680680
(sol_log_64_ (+ prov_rep REP_ORDER_SUCCESS))
681-
0))))
681+
0)))))
682682
null)
683683

684684
;; ═══════════════════════════════════════════════════════════════════════════
@@ -754,7 +754,7 @@
754754
0)
755755
null)
756756

757-
0))))
757+
0)))))
758758
null)
759759

760760
;; ═══════════════════════════════════════════════════════════════════════════
@@ -802,7 +802,7 @@
802802

803803
(sol_log_ "Dispute opened!")
804804
(sol_log_ "Validators may now review and vote")
805-
0))))))
805+
0)))))))
806806
null)
807807

808808
;; ═══════════════════════════════════════════════════════════════════════════
@@ -874,7 +874,7 @@
874874
(sol_log_ "Participant slashed!")
875875
(sol_log_ "Remaining stake:")
876876
(sol_log_64_ new_stake)
877-
0))))
877+
0)))))
878878
null)
879879

880880
;; ═══════════════════════════════════════════════════════════════════════════

0 commit comments

Comments
 (0)