nx_actor_role_image_grader.nx
buildroot/runtime/nx_actor_role_image_grader.nx
about
nx_actor_role_image_grader.nx -- image-grading actor role.
Wraps [[nx_image_grade_v2]] (other-agent primitive) as a cooperative
actor. Composes with the rest of the parallel-companion substrate so
the multiplexer interleaves image-grading output alongside LLM tokens
+ audio scores + game actions.
Phases:
Phase 0 (INIT): reserved
Phase 1 (GRADE): calls nx_image_grade_v2 on caller-provided buffer
Phase 2 (EMIT): pushes IMAGE_TILE message with payload =
report.error_code (0 = OK, else NX_IGV2_ERR_*)
Phase 3 (DONE): terminal
dependencies 5 imports · 1 importers
imports: nx_syscalls.nxnx_tier.nxnx_image_grade_v2.nxnx_actor.nxnx_message.nx
imported by: nx_actor_role_image_grader_test.nx
structs
| 40 | struct NxImageGraderCtx |
consts
| 23 | const NX_IM_PHASE_INIT: nx_int = 0 |
| 24 | const NX_IM_PHASE_GRADE: nx_int = 1 |
| 25 | const NX_IM_PHASE_EMIT: nx_int = 2 |
| 26 | const NX_IM_PHASE_DONE: nx_int = 3 |
| 27 | const NX_IM_PHASE_N: nx_int = 4 |
| 31 | const NX_IM_V_STEPPED: nx_int = 0 |
| 32 | const NX_IM_V_COMPLETED: nx_int = 1 |
| 33 | const NX_IM_V_FAILED_GRADE: nx_int = 2 |
| 34 | const NX_IM_V_INVALID: nx_int = 3 |
| 35 | const NX_IM_V_NULL: nx_int = 4 |
| 36 | const NX_IM_V_N: nx_int = 5 |
| 51 | const NX_IM_CTX_BYTES: nx_int = 64 // 8 fields * 8 |
functions
| 55 | func nx_im_phase_is_valid(p: nx_int) -> nx_int called by 1: main |
| 61 | func nx_im_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 69 | func nx_im_actor_new(input_buf: *u8, input_size: nx_int) -> *NxImageGraderCtx |
| 87 | func _im_step_grade(ctx: *NxImageGraderCtx) -> nx_int |
| 97 | func _im_step_emit(ctx: *NxImageGraderCtx, |
| 109 | func nx_im_actor_step(ctx: *NxImageGraderCtx, |
| 136 | func nx_im_actor_phase(ctx: *NxImageGraderCtx) -> nx_int called by 1: main |
| 141 | func nx_im_actor_error_code(ctx: *NxImageGraderCtx) -> nx_int called by 1: main |
| 146 | func nx_im_actor_format(ctx: *NxImageGraderCtx) -> nx_int called by 1: main |
| 151 | func nx_im_actor_is_done(ctx: *NxImageGraderCtx) -> nx_int called by 1: main |