/iris-dev:iris-coverage-setupfrom iris-dev
Configures IRIS line-by-line monitor (bbsiz CPF parameter) for ObjectScript test coverage. Verifies $zu(84) functionality and diagnoses build compatibility.
Ships in iris-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Configure the IRIS instance so %Monitor.System.LineByLine can collect execution counts.
Required before running /iris-coverage-run. Needs an IRIS restart.
%Monitor.System.LineByLine wraps $zu(84,...) kernel calls. The shared memory buffer
for line counting is controlled by bbsiz in iris.cpf [config]. It defaults to -1
(disabled). Without it set, Start() appears to succeed but collects nothing.
Build compatibility:
| Build | Works? | Notes |
|---|---|---|
| AI builds (2026.x.0AI) | ✓ | Standard kernel |
| SQLT.145+ / sqlt146 | ✓ | Standard kernel |
| TBLP 127 (2026.3.0TBLP) | ✗ | $zu(84) not wired — <FUNCTION> error |
// In any namespace — if this returns 1, skip to Step 3
write $zu(84,0,1,1,1,1,1,1), ! // returns 1 = OK, throws <FUNCTION> = not available
do $zu(84,0,0) // stop/cleanup after check
If it throws <FUNCTION>: this IRIS build does not support $zu(84). Coverage measurement
is not possible. Stop here and document the gap.
Run in %SYS namespace (or via MCP tool with namespace="%SYS"):
set cfg = ##class(Config.config).Open()
write "Current bbsiz: ", cfg.bbsiz, ! // expect -1
set cfg.bbsiz = 4096 // 4 MB buffer
set sc = cfg.%Save()
write $system.Status.GetErrorText(sc), !
Verify it wrote to iris.cpf:
grep bbsiz /usr/irissys/iris.cpf # expect: bbsiz=4096
IMPORTANT: Do NOT add MonitorEnabled=1 to iris.cpf — that key is invalid and crashes
IRIS on startup with "Invalid parameter name 'MonitorEnabled'".
Restart IRIS:
docker restart <container-name>
// Verify $zu(84) subsystem is live
write $zu(84,0,1,1,1,1,1,1), ! // must return 1
// Verify Start/Stop cycle works
set sc = ##class(%Monitor.System.LineByLine).Start($lb("MyClass.1"), "", "")
write $system.Status.GetErrorText(sc), ! // expect empty = OK
do ##class(%Monitor.System.LineByLine).Stop()
If Start() returns ERROR #6060: Somebody else is using the Monitor — another process has
the monitor. Stop it:
do ##class(%Monitor.System.LineByLine).Stop()
set sc = ##class(%Monitor.System.LineByLine).Start($lb("MyClass.1"), "", "")
// ... run some code that calls MyClass methods ...
do ##class(%Monitor.System.LineByLine).Stop()
set rset = ##class(%ResultSet).%New("%Monitor.System.LineByLine:Result")
do rset.Execute("MyClass.1")
set n = 0
while rset.Next() { set n = n + 1 }
write "Lines returned: ", n, ! // expect > 0 if MyClass was exercised
If n = 0 despite code running — the monitor buffer allocated but $zu(84,0) returns
84 (state value, not error) and no counts were captured. This indicates the build doesn't
fully support in-process line counting even with bbsiz set. Use dpgenai1 or an AI build.
bbsiz is in [config] section, not [Monitor] section (which has no standard parameters)$zu(84,0) returning 84 is NOT an error code — it's the current state bitmaskStop() before Start()Stop()ClassName.1 (not .cls, not ClassName.INT)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iris-coverage, line-by-line-monitor, test-coverage, bbsiz, objectscript
npx claudepluginhub intersystems-community/iris-agentic-dev --plugin iris-dev40 skills in this plugin
/ensemble-productionManage and observe IRIS Interoperability productions — lifecycle, logs, queues, and message tracing. Covers pyprod Python API, ObjectScript Ens.Director, and MCP tool flow./iris-agentic-devConfigure, connect, and troubleshoot the iris-agentic-dev MCP server (iris_execute/iris_query/iris_doc/docs_introspect/kb/etc.) against an IRIS container or instance. Use when its tools return IRIS_UNREACHABLE, when pointing it at a new IRIS, or when a connection edit "isn't taking effect." Covers the .iris-agentic-dev.toml config, live file-watch reload, the OrbStack port-discovery gotcha, and the docker-exec fallback./iris-agentic-dev-setupOther plugins' skills for the same job