Skip to content

Let explanation turns through: stream cuts, quoted arrows, noun writes, denied force, companion revisions - #47

Merged
daniel-rossier merged 5 commits into
mainfrom
harness-explain-fixes
Nov 28, 2026
Merged

daniel-rossier merged 5 commits into
mainfrom
harness-explain-fixes

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

Five defects found by asking SPEAR real explanation questions on the opencn-ng tree (IPI path, EtherCAT on EVL, G-code support) through the container image.

  • A stream cut mid-answer crashed spear-chat. The OpenAI SDK wraps transport errors raised when a request is sent, not while the stream is read; a VPN re-authentication that drops the ssh tunnel surfaced as a bare httpx.RemoteProtocolError traceback. Both model paths now treat it as a model failure (retried on the core path, a failed turn on the standard path).
  • A > inside quotes was read as a redirection. grep -rn "chip->send_ipi" … asked for workspace:write; the redirection scan now runs over the command with quoted text blanked out, and a quoted redirection target is read whole.
  • A write verb used as a noun was read as a request to write. "…down to the GIC register write" sent an explanation turn back for an edit and a plan. A write verb after a determiner or a hardware noun is taken out before the pattern is read, unless it is the object of do/make/apply/perform ("apply the fix").
  • A denied force word was read as a claim of that force. The meta-reply that followed the spurious edit nudge ("there is no requirement to satisfy") was found stronger than its evidence and the whole answer was withheld. A force word preceded by a negation now claims nothing; "must not"/"shall not" remain requirements.
  • standard.search refused a companion's revision. revision: "H.b" without standard_id was compared with the active standard and refused until the turn stalled. A revision exactly one bound standard carries now selects it.

Checked through the real CLI on a test image built from this branch: the IPI question that was previously withheld is now answered in full from the code, with no edit nudge and nothing withheld.

The OpenAI SDK wraps transport errors raised when a request is sent, but
not those raised while the stream is read. A connection cut mid-answer
(a VPN re-authentication drops the ssh tunnel) surfaced as a bare
httpx.RemoteProtocolError and ended spear-chat with a traceback. Both
model paths now treat it as a model failure: the core path retries it
like a connection error, the standard path returns a failed turn.
The redirection scan ran over the raw command, so a search such as
grep -rn "chip->send_ipi" found a redirection to send_ipi" and asked for
workspace:write; in --ask or safe mode the read-only search was refused.
The scan now runs over the command with quoted text blanked out, and a
quoted redirection target is read whole.
"Explain how an IPI goes from the caller down to the GIC register write"
matched the write pattern on "write": the turn was told it had not
changed anything, sent back for an edit and asked for a plan, on a
question that wanted an explanation. A write verb after a determiner or a
hardware noun (the write, a fix, register write) is now taken out before
the pattern is read, unless it is the object of do/make/apply/perform
("apply the fix").
An explanation answer that opened with "there is no requirement to
satisfy" was read as claiming a requirement, found stronger than the
permission its evidence established, and withheld in full. A force word
preceded by a negation (no requirement, not required, does not have to)
now claims nothing; a negation after it (must not, shall not) is a
prohibition and still a requirement.
standard.search with revision "H.b" and no standard_id was compared with
the active standard (DDI 0487 M.c) and refused, although H.b is the bound
companion's revision. The turn retried it until it stalled. A revision
that exactly one bound standard carries now selects that standard.
@daniel-rossier
daniel-rossier merged commit 4e7c431 into main Nov 28, 2026
2 checks passed
@daniel-rossier
daniel-rossier deleted the harness-explain-fixes branch November 28, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant