code wiki / (root) / nx_actor_role_image_grader.nx

nx_actor_role_image_grader.nx

buildroot/runtime/nx_actor_role_image_grader.nx

5484 B155 linesdepth 9pulls 25 transitivereach 1 importersview sourcekind librarytopic actor
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_tier.nx nx_image_grade_v2.nx nx_actor.nx nx_message.nx nx_actor_role_image_grader.nx nx_actor_role_image_grader_test.nx

imports: nx_syscalls.nxnx_tier.nxnx_image_grade_v2.nxnx_actor.nxnx_message.nx

imported by: nx_actor_role_image_grader_test.nx

structs

40struct NxImageGraderCtx

consts

23const NX_IM_PHASE_INIT: nx_int = 0
24const NX_IM_PHASE_GRADE: nx_int = 1
25const NX_IM_PHASE_EMIT: nx_int = 2
26const NX_IM_PHASE_DONE: nx_int = 3
27const NX_IM_PHASE_N: nx_int = 4
31const NX_IM_V_STEPPED: nx_int = 0
32const NX_IM_V_COMPLETED: nx_int = 1
33const NX_IM_V_FAILED_GRADE: nx_int = 2
34const NX_IM_V_INVALID: nx_int = 3
35const NX_IM_V_NULL: nx_int = 4
36const NX_IM_V_N: nx_int = 5
51const NX_IM_CTX_BYTES: nx_int = 64 // 8 fields * 8

functions

55func nx_im_phase_is_valid(p: nx_int) -> nx_int
called by 1: main
61func nx_im_v_is_valid(v: nx_int) -> nx_int
called by 1: main
69func nx_im_actor_new(input_buf: *u8, input_size: nx_int) -> *NxImageGraderCtx
called by 1: main calls 1: sys_mmap
87func _im_step_grade(ctx: *NxImageGraderCtx) -> nx_int
called by 1: nx_im_actor_step calls 1: nx_image_grade_v2
97func _im_step_emit(ctx: *NxImageGraderCtx,
called by 1: nx_im_actor_step calls 1: nx_ms_send_fanout
109func nx_im_actor_step(ctx: *NxImageGraderCtx,
136func nx_im_actor_phase(ctx: *NxImageGraderCtx) -> nx_int
called by 1: main
141func nx_im_actor_error_code(ctx: *NxImageGraderCtx) -> nx_int
called by 1: main
146func nx_im_actor_format(ctx: *NxImageGraderCtx) -> nx_int
called by 1: main
151func nx_im_actor_is_done(ctx: *NxImageGraderCtx) -> nx_int
called by 1: main