Repository navigation
Let explanation turns through: stream cuts, quoted arrows, noun writes, denied force, companion revisions - #47
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
httpx.RemoteProtocolErrortraceback. Both model paths now treat it as a model failure (retried on the core path, a failed turn on the standard path).>inside quotes was read as a redirection.grep -rn "chip->send_ipi" …asked forworkspace:write; the redirection scan now runs over the command with quoted text blanked out, and a quoted redirection target is read whole.standard.searchrefused a companion's revision.revision: "H.b"withoutstandard_idwas 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.