Skip to content

release: the intake can pass on the first attempt, and the chain stops losing its own decisions - #65

Merged
sscodeai merged 18 commits into
mainfrom
dev
Nov 8, 2026
Merged

sscodeai merged 18 commits into
mainfrom
dev

Conversation

@sscodeai

@sscodeai sscodeai commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Seventeen commits closing the intake-reliability investigation (#129–#143), held on dev since PR #64.

The headline

A real run now passes the intake on the FIRST attempt and delivers. wf-20794cb8: intake accepted on attempt 1 with no repair round, judge forged, artifact_acceptance PASSED 3/3, PR sscodeai/takumi-delivery-demo#87 opened and MERGED. The delivered document carries run: "bash summary.sh {csv}", columns: "suite:id,passed:measure,total:other", relation: derived-ratio.

The finding that matters most

Eight of the fourteen fixes before it were defects in the CHAIN, not in the model's output. Two of them explain why earlier rounds of "fix the prompt" achieved nothing:

  • #133 — renderPrompt matched \w+, which has no dot, so {step.shape_decision} never substituted. Every step-to-step handoff in every workflow was silently passing the literal placeholder. Nothing threw, because an unfilled placeholder is left intact on purpose.

  • #131 — the measurement counted a run that never started as a pass. It reported 3 of 3 on three runs that had each died in 3 seconds, and would have "confirmed" the previous fix on the strength of a crash.

What is in it

  • #129–#130, #134–#135, #142 a deterministic repair step (scripts/intake-repair.sh) that fills what step 1 already decided — the entry point, the rounding mode, decides: matched to a relation by checkedAs — instead of asking a model to rewrite a 400-line document for a missing word. It refuses rather than guesses: an ambiguous decides:, a document that is not YAML, a mode no allowed relation can verify.

  • #136, #139–#141 the relation list is enforced in code: an out-of-list relation is dropped whether it is named by relation: or anchor:, and a decision nothing may check is removed rather than left to block the run forever.

  • #132 a step that reads {step.X} must depend on X — asserted for every step, not just the one that broke.

  • #137 the repair refuses a document that is not valid YAML, verified through requirement confirm --dry-run after finding that requirement digest happily hashes broken YAML.

Verification

  • Full suite: 741 tests / 738 pass. The 3 failures are sandbox.test.ts "project dir is writable, host outside is read-only" (fails on the development host because unshare -r -n does not block an outside write there; passes in CI, fails with or without these changes — docs/limitations.yaml entry) and two slot-lock cases that reproduce with the change stashed.

  • Every fix has a RED-proven test and a ledger row (#129–#143).

  • The end-to-end run is recorded in docs/measurements/intake-first-attempt-2026-11-09.md.

What this does NOT claim

One run does not move a rate. The measured first-attempt rate was 1 in 6 across the two measurements taken after the chain was functional. intake-reliability stays OPEN in docs/limitations.yaml, and an unattended run must still be expected to cost two to three attempts for most requests. What is established is narrower: the repairs work, the chain hands its own decisions between steps, and a first attempt can pass — which was not true while #133 was in place.

main also carries 7 commits not on dev; all are merge commits.

sscodeai and others added 17 commits November 8, 2026 22:42
Every intake_shape refusal read

  not ok 4 - a judge can be forged from the document as the confirmation will
             leave it (exit 1: no delivery could be judged against this document)

and nothing else. #103 kept the failing line and dropped the reason: the forge
does print its verdict as comment lines, but #103 budgets the gate summary and
keeps falsifying lines first, so on a forge refusal the one thing a reader needs
was the one thing cut — on every single refusal. That is why diagnosing the
intake's 1-in-3 first-attempt rate from the records was impossible, and why this
round began with a measurement instead of a guess.

When the forge exits non-zero the gate now repeats its FIRST LINE up front as
'# FORGE SAID: <verdict>', above the transcript, so any truncation that keeps the
head keeps the reason.

Confirmed on a real run the same day:
  # FORGE SAID: the scenario SCN-001 SCN-002 declares no run: a scenario with no
    command to run is not a check
— two scenario ids written into one, visible in the record for the first time. A
sibling refusal became legible too: 'the document declares 2 mutation-detection
relations (REL-001, REL-002): one mutation block configures one check'.

Tests: 4 cases. The fourth runs the actual gate against the real validator and
forge over a document the forge refuses, and had to be pointed at the repository
root because the gate resolves both relative to the project.

Full suite: 711 tests / 710 pass / 1 fail, that failure being the known sandbox
host difference (#115).

Ledger #126.
With #126 in place the intake's failures became readable, and the first one named
a defect that had already bitten once:

  # FORGE SAID: the decision AMB-001 is settled by REL-001, and the relation needs
  to know what its answer MEANS: give it "checkedAs: <half-up truncate>"

A ratio document settled its rounding decision but wrote no checkedAs. That is
rule #12 of the 400-line document prompt, written out at length — including that a
missing checkedAs is refused before the human confirms it and again when the judge
is forged — and it was still missed. That is the fourth decision to fail this way:
the field model (#102), the entry point (#107), the relation list (#121), and now
the rounding semantics.

So shape.md gains a fourth thing: for a QUOTIENT answer, which rounding the judge
applies, with both words defined and the unqualified case DECIDED for the model
("if the request says rounded without qualifying it, answer half-up"). It emits a
seventh line, ROUNDING_MEANS: <half-up | truncate | NONE>, and the document step is
told checkedAs must carry that word ON THE AMB-nnn ENTRY next to  and
never on the relation — which is what the forge enforces.

Verified against the real model: deepseek-v4.1-flash answered the pass-percentage
request with ROUNDING_MEANS: half-up and the total/average request with
ROUNDING_MEANS: NONE, alongside the correct shape, entry point and relation list.

Tests: 2 new cases (9 total). Full suite: 713 tests / 712 pass / 1 fail, that
failure being the known sandbox host difference (#115).

Ledger #127.
#126 made the intake gate repeat the forge's verdict as '# FORGE SAID: ...', and
the very next real run still recorded nothing.

#103's budget rescues only lines matching its FALSIFYING pattern, which knew
'not ok', 'FAILED', 'Error:' — not a '#' diagnostic. TAP reserves '#' for
diagnostics, so a harness that explains itself writes comments, and the comment was
the one thing cut. The fix was defeated by the budget it was written for, for the
second time in two rounds.

FALSIFYING now also matches '# FORGE:', '# REFUSED:', '# REFUSE:', '# REASON:',
'# FATAL:', '# ERROR:' — case-insensitively, because a comment that follows a
failure is usually the reason, not noise.

Confirmed: running the gate by hand on the current document now prints
  # FORGE SAID: the per-id output line mixes the two field models: it declares
    both an aggregate field (count/sum/min/max/mean) and a ratio field
    (numerator/denominator/ratio)
— a diagnosis, where every earlier record said only 'no delivery could be judged
against this document'.

Tests: 2 new cases (6 total). Full suite: 715 tests / 714 pass / 1 fail, that
failure being the known sandbox host difference (#115).

Ledger #128.
The intake's first attempt passed its own gate 1 time in 3, measured three times,
and four rounds of prompt rules (#102 field model, #107 entry point, #121 relation
list, #127 rounding semantics) had not moved it.

Every rule was moved to the short step and the document still missed the same kind
of thing — because the answer was never the problem. With #126/#128 finally making
the forge's words visible, the failures are one shape: a decision step 1 made
correctly is MISSING FROM THE DOCUMENT. checkedAs absent while step 1 answered
ROUNDING_MEANS: half-up; deliverable.run absent while step 1 answered
ENTRY_POINT: bash x.sh {csv}. Asking a model to rewrite a 400-line document to
carry one missing word is not a fix, it is a re-roll.

scripts/intake-repair.sh repairs the document from step 1's own answers: it fills
deliverable.run from ENTRY_POINT, adds checkedAs from ROUNDING_MEANS on exactly the
decision a derived-ratio / independent-aggregation relation settles, and is
idempotent.

It REFUSES rather than invent a decision. ROUNDING_MEANS: NONE beside a relation
that settles a rounding is a contradiction and is refused with the file untouched;
a line mixing both field models is a REWRITE — the shapes and the requirement text
that quote them all move — and is refused rather than guessed at.

A new intake_repair step runs after req_intake and before intake_shape, and the
gate now depends on it. The gate still judges the document the AGENT wrote, with
step 1's decided values filled in.

Tests: 7 cases. Two existing tests asserted intake_shape → req_intake directly and
were updated to the new chain with their intent preserved.

Full suite: 722 tests / 721 pass / 1 fail, that failure being the known sandbox
host difference (#115).

The through-put claim is NOT made here: the measured rate must be re-taken, and
that is the next step.

Ledger #129.
…n actually fail

Two defects, one found by the other.

#130 — intake_repair named {requirement}, and the first run after it died in 3
seconds: 'workflow "intake-attempt" names {requirement} in step(s) [intake_repair]
— the document the run was confirmed against — but this run has no confirmed
requirement on record'. In the intake nothing is confirmed yet; that is the whole
point of the step. The engine's placeholder guard caught it before running
anything, which is exactly what that guard is for — but no test had exercised the
manifest end to end, so a step that could never run shipped. The intake's document
lives at a FIXED path (docs/requirements/intake.yaml, the one the confirmation
later reads), so the step names that path literally.

#131 — and then the re-measurement reported 3 of 3 first-attempt passes in 2-3
seconds each, which is impossible. The measurement counted a run that never
started as a pass: the rule was 'no --- attempt 1 of 2: refused --- marker means
the first attempt passed', and a run that dies before the intake produces no
marker either. Three failures became three passes.

A measurement that can say 'passed' about a run that never began is worse than no
measurement: it would have 'confirmed' the #129 fix on the strength of a crash.
A first attempt now counts as passed only when the log says the attempt was
ACCEPTED, and a run that reached no intake verdict is a third state, `error`,
counted as a failure and reported separately. Verified against the three false
passes: they now read `error`.

Full suite: 722 tests / 721 pass / 1 fail, that failure being the known sandbox
host difference (#115).

Ledger #130, #131.

Co-Authored-By: Hermes <noreply@nousresearch.com>
With #130/#131 fixed, the next measurement ran intake_repair four times and every
run refused with 'intake-repair: step 1 recorded no ANSWER_SHAPE' — although step 1
had answered.

intake_repair declared dependsOn: [req_intake] only, so it ran in the SAME LEVEL as
shape_decision. The engine records vars['step.<id>'] when a level completes, so the
placeholder reached the shell VERBATIM. renderPrompt leaves unknown keys alone —
which is what makes an unfilled placeholder visible instead of silent — so the
failure surfaced three steps later as a confusing refusal that named the wrong
cause. Two real runs were lost to an ordering nobody declared.

Fixed: dependsOn: [req_intake, shape_decision].

And a general guard: a test now walks every step of the intake attempt and fails if
any prompt interpolates {step.X} without depending on X. An undeclared dependency is
invisible until it costs a run, and this is the second ordering defect in this
family (#130 was the other).

Full suite: 724 tests / 721 pass, 3 failures that all predate this change —
sandbox.test.ts (#115) and two slot-lock cases, both reproduced with the change
stashed.

Ledger #132.
… consumer

After #132 declared the dependency, intake_repair still failed on every run with
'step 1 recorded no ANSWER_SHAPE', while step 1 had answered.

renderPrompt matched /\{(\w+)\}/ and \w does not include a dot, so
{step.shape_decision} — the way one step hands its own answer to the next, stored
by the engine as vars['step.shape_decision'] — was never resolved and reached the
shell VERBATIM. The engine deliberately leaves unknown keys intact so an unfilled
placeholder stays visible rather than blank, which is the right choice and is
exactly why nothing threw: the script received the literal text and refused,
naming a cause three steps away from the real one.

This affects EVERY dotted var in every workflow, not just this step.

Fixed: /\{([\w.]+)\}/, so dotted and plain names both resolve, and an unknown
dotted key is still left intact — the deliberate behaviour is preserved, not
traded away.

Tests: 3 new cases (6 total). RED proven by restoring \w+: 2 of 6 fail.

Full suite: 727 tests / 724 pass, the 3 failures being sandbox.test.ts (#115) and
two slot-lock cases, all predating this change.

Ledger #133.
Once #133 made {step.shape_decision} resolve at all, intake_repair still refused —
and the log finally showed why: the value arrived as a fenced code block.

Step 1 answers inside a fence, because the shape prompt shows its answer in one, so
the model writes the fence lines too and the engine hands the whole text on.
sed -n 's/^KEY://p' then matched nothing, and the repair reported 'no ANSWER_SHAPE'
— a third reason for the same sentence, each one hiding the previous.

Leading/trailing whitespace is now stripped before a key is read, so fenced and
indented answers both parse.

Tests: 2 new cases (11 total). Full suite: 729 tests / 726 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #134.
With #133 and #134 in place the placeholder resolved and the fence parsed, and the
run then died with '/bin/sh: 9: Syntax error: Unterminated quoted string' — the
repair was never attempted.

--shape-text "{step.shape_decision}" splices the newlines of a fenced, six-line
answer straight into a double-quoted shell argument. A quoted argument holds a
phrase; step 1's answer is a document.

The answer now goes into a temp file through a heredoc and the script reads
--shape <file>, with the file removed afterwards.

And the delimiter's indentation is asserted: a heredoc terminator that is not at
column 0 never terminates, and inside a YAML block scalar that depends on how the
parser strips indentation — so a test pins both delimiters after parsing rather
than trusting the source's visual layout.

Tests: 2 new cases (13 total). Full suite: 731 tests / 728 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #135.
With the repair step finally running, the next real run still refused:

  # FORGE SAID: the document declares the relation "independent-aggregation"
  (DIFF-001) on a report whose per-id line is a RATIO

Step 1 had already said no. ALLOWED_RELATIONS was 'derived-ratio,
row-order-invariance, mutation-detection, browser-scenario' — no
independent-aggregation — and #121 tells the document step that relations: must be
a subset of it. The model wrote it anyway.

Leaving it in refuses the run; silently keeping it would be a document that declares
a check it cannot have. So a relation whose kind is not in ALLOWED_RELATIONS is
dropped, and the drop is reported by id and kind so a reader can see the document
was narrowed and why.

Tests: 2 new cases (15 total). Full suite: 733 tests / 730 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

The intake repair chain is now four repairs, each measured from a real failure:
entry point, rounding semantics, fenced answer parsing, and relation subset.

Ledger #136.
The repair chain finally ran end to end, and the next measurement's three failures
were all NEW and all about the model's output rather than the chain: a blocking
decision no relation settles, a document that is not valid YAML, and one pass.

The repair EDITS the document, so it must refuse one it cannot parse: a
text-matching repair on a broken document edits lines it only thinks it
understands, and can silently make it worse before the downstream validator sees it.

Step-0 guard added. The verdict comes from 'requirement confirm --dry-run', which
reports a broken document in its OUTPUT and still exits 0 — chosen after finding
that 'requirement digest' cannot be used, because it happily hashes broken YAML.
The probe file lives under the project's .takumi/ so the CLI's project-relative ref
resolution works.

NOT FIXED, deliberately: the other failure is a blocking decision no relation
settles. Deciding WHICH relation owns WHICH decision is a judgment, not a repair —
guessing it would have the judge verify a decision the document never meant.

Tests: 1 new case (16 total). Full suite: 734 tests / 731 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #137.
'blocking decision(s) AMB-NNN are exercised by no declared relation or anchor' was
the single most common remaining intake failure — twice in a row across two
measurements — and I had explicitly declined to repair it on the grounds that
owning a decision is a judgement.

I was wrong, and the document already carries the answer. checkedAs says what the
answer MEANS, and the forge's own table maps each mode to the relations that can
verify it:

  skip-count | skip-silent | stop-error                  -> malformed-row-accounting
  first-row | last-row | latest-start-date | merge | error -> duplicate-resolution
  half-up | truncate                                    -> derived-ratio | independent-aggregation

So a half-up decision that no relation names can only be settled by a rounding
relation, and when exactly one such relation is declared there is nothing left to
judge. That is derivation from two fields the document already has, not a guess.

A fifth repair does it, and reports its reasoning. It REFUSES in the two cases
where inference would be a guess: more than one candidate relation, or none that
can verify the mode — a wrong decides: would have the judge verify a decision the
document never meant, which is worse than the refusal.

A clerical bug along the way: the first version compared a MODE (half-up) against
ROUNDING_KINDS, which are RELATION KINDS (derived-ratio) — two vocabularies that
must never be compared.

Tests: 3 new cases (19 total). Full suite: 737 tests / 734 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #138.
… check

#138's repair refused a real run — correctly — with 'AMB-001 is blocking with
checkedAs: skip-count, and no declared relation can verify that mode'. The
contradiction was upstream.

A list of what IS allowed is not enough: the request mentioned malformed rows and
repeated ids, the model recorded both as blocking ambiguities with their modes, and
the shape step's ALLOWED_RELATIONS for a QUOTIENT answer contains neither
malformed-row-accounting nor duplicate-resolution. So the document carried decisions
that nothing it may declare can verify.

Checked before touching the 4-relation list: malformed-row-accounting reads 'count'
off the TOTALS line, and since #108 a ratio document's totals line is [sum, sum] —
there is no count to read. #110's judgement was right for those three; the fix
belongs in the prompt that provokes the decision.

shape.md now says explicitly, for a QUOTIENT answer, not to write those decisions at
all, to put the behaviour in the REQUIREMENT text where it is a plain instruction,
and why — 'A decision nothing can check is worse than no decision' — with the
carve-out that an AGGREGATE answer which did list malformed-row-accounting may
record them.

Tests: 1 new case (10 total). Full suite: 738 tests / 735 pass, the 3 failures
being sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #139.
#139 put the rule in the prompt — on a QUOTIENT answer, do not write decisions nothing
can check — and the very next measurement's first two runs did it anyway: AMB-002
checkedAs: merge, AMB-003 checkedAs: skip-count, both refused.

The fifth rule to fail the same way. But unlike the others this one is
deterministically unusable rather than merely discouraged: no relation the document
may declare can verify those modes, because duplicate-resolution and
malformed-row-accounting read a count role a ratio totals line no longer carries
(#108). A decision nothing can check does not make the document stricter — it blocks
the run forever.

Fixed by code instead of persuasion: such a decision is removed, the removal is
reported with its checkedAs mode, and its chosen answer is redirected — in the note
— to the requirement text as a plain instruction, which is what #139 asked the model
to do.

The removal walks LINES rather than matching a block regex, because a block pattern
that fails to match the indentation silently leaves the decision in place, which is
the exact state that blocks the run; that failure mode was observed while building
this. The refusal survives only for a mode the repair cannot place at all.

One test case was REVERSED (it asserted a refusal; it now asserts removal, because
#140 changed the contract deliberately) and a new case covers it. 20 cases.

Full suite: 739 tests / 736 pass, the 3 failures being sandbox.test.ts (#115) and two
slot-lock cases, all predating this work.

Ledger #140.
Run-14's repair dropped REL-001 and REL-002 as out-of-list and then the forge refused
the document for independent-aggregation — a relation the repair had appeared to
consider.

The repair only spoke one vocabulary. A differential: entry names its check with
anchor:, not relation:, and the kind behind the two keys is the same. So DIFF-001
(anchor: independent-aggregation) was never examined while its siblings were dropped,
which READS as the repair having done its job.

Found by reading the artifact the step wrote rather than the run's verdict: the log
said 'tool completed', and only its output showed what it had actually touched.

Both the out-of-list drop and the decides: inference now accept relation: or anchor:.

Tests: 1 new case (21 total). Full suite: 740 tests / 737 pass, the 3 failures being
sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Ledger #141.
Run-15 got the intake through for the first time in several rounds — the repair
dropped an invented relation kind (independent-ratio-recomputation, which the forge
does not have) and the document was accepted. The delivery then died at judge_forge
with 'the scenario SCN-001 SCN-002 declares no run'.

Two ids on one key: - id: SCN-001 SCN-002 — the forge looks up a scenario by the
exact id and found a string naming two, so neither existed. A YAML key holds one
value, so the second id is an entry that lost its own '- id:' line.

The entry keeps the FIRST id (whose block carries the fields) and the extras are
dropped and named. Not duplicated with the same fields, because a scenario with no
run: is exactly what the forge refuses, and inventing a command would be a check
nobody wrote.

Tests: 1 new case (22 total). Full suite: 741 tests / 738 pass, the 3 failures being
sandbox.test.ts (#115) and two slot-lock cases, all predating this work.

Also recorded, not fixed: the model invented a relation kind that does not exist in
the forge's vocabulary. The repair drops anything outside ALLOWED_RELATIONS so it is
harmless here, but it says the intake's output quality problem is deeper than a
missing field.

Ledger #142.
wf-20794cb8: intake accepted on attempt 1 with no repair round, confirmation
approved, judge forged (sha256:53a08b1f0381), artifact_acceptance PASSED 3/3,
PR #87 opened and MERGED (746b5cd0).

The delivered document carries
  run:      "bash summary.sh {csv}"
  columns:  "suite:id,passed:measure,total:other"
  relation: derived-ratio

Fifteen ledger rows (#129-#143) got here, and the finding that matters most is that
EIGHT of the fourteen before this one were defects in the CHAIN, not in the model's
output — including #133, which silently disabled every step-to-step handoff in every
workflow, and #131, which made the measurement itself report a crash as a pass.

The measurement stays honest about its sample: ONE run does not move a 1-in-6 rate.
intake-reliability stays open, and an unattended run must still be expected to cost
two to three attempts for most requests. What is established is narrower — the
repairs work, the chain hands its own decisions between steps, and a first attempt
CAN pass, which was not true while #133 was in place.

Ledger #143.
sscodeai added a commit that referenced this pull request Nov 8, 2026
CI's build-test (22) failed on PR #65:

  src/test/intake-repair.test.ts(169,44): error TS2345: Argument of type
  'string | undefined' is not assignable to type 'string'.

 from a matchAll capture is  under TS's typing, and only
the CI build forced the test file through  — a local
> takumi@0.1.0 build /srv/hermes/workspaces/takumi
> pnpm -r --workspace-concurrency=1 build

Scope: 20 of 21 workspace projects

> @takumi/core@0.1.0 build /srv/hermes/workspaces/takumi/packages/core
> npm run clean && tsc -p tsconfig.json

> @takumi/core@0.1.0 clean
> rm -rf dist

> @takumi/board-fake@0.1.0 build /srv/hermes/workspaces/takumi/boards/fake
> npm run clean && tsc -p tsconfig.json

> @takumi/board-fake@0.1.0 clean
> rm -rf dist

> @takumi/board-github@0.1.0 build /srv/hermes/workspaces/takumi/boards/github
> npm run clean && tsc -p tsconfig.json

> @takumi/board-github@0.1.0 clean
> rm -rf dist

> @takumi/board-gitlab@0.1.0 build /srv/hermes/workspaces/takumi/boards/gitlab
> npm run clean && tsc -p tsconfig.json

> @takumi/board-gitlab@0.1.0 clean
> rm -rf dist

> @takumi/board-jira@0.1.0 build /srv/hermes/workspaces/takumi/boards/jira
> npm run clean && tsc -p tsconfig.json

> @takumi/board-jira@0.1.0 clean
> rm -rf dist

> @takumi/board-notion@0.1.0 build /srv/hermes/workspaces/takumi/boards/notion
> npm run clean && tsc -p tsconfig.json

> @takumi/board-notion@0.1.0 clean
> rm -rf dist

> @takumi/board-redmine@0.1.0 build /srv/hermes/workspaces/takumi/boards/redmine
> npm run clean && tsc -p tsconfig.json

> @takumi/board-redmine@0.1.0 clean
> rm -rf dist

> @takumi/delivery-fake@0.1.0 build /srv/hermes/workspaces/takumi/deliveries/fake
> npm run clean && tsc -p tsconfig.json

> @takumi/delivery-fake@0.1.0 clean
> rm -rf dist

> @takumi/delivery-git@0.1.0 build /srv/hermes/workspaces/takumi/deliveries/git
> npm run clean && tsc -p tsconfig.json

> @takumi/delivery-git@0.1.0 clean
> rm -rf dist

> @takumi/delivery-github@0.1.0 build /srv/hermes/workspaces/takumi/deliveries/github
> npm run clean && tsc -p tsconfig.json

> @takumi/delivery-github@0.1.0 clean
> rm -rf dist

> @takumi/delivery-gitlab@0.1.0 build /srv/hermes/workspaces/takumi/deliveries/gitlab
> npm run clean && tsc -p tsconfig.json

> @takumi/delivery-gitlab@0.1.0 clean
> rm -rf dist

> @takumi/delivery-forgejo@0.1.0 build /srv/hermes/workspaces/takumi/packages/delivery-forgejo
> npm run clean && tsc -p tsconfig.json

> @takumi/delivery-forgejo@0.1.0 clean
> rm -rf dist

> @takumi/reporter-reviewdog@0.1.0 build /srv/hermes/workspaces/takumi/reporters/reviewdog
> npm run clean && tsc -p tsconfig.json

> @takumi/reporter-reviewdog@0.1.0 clean
> rm -rf dist

> @takumi/reviewer-semgrep@0.1.0 build /srv/hermes/workspaces/takumi/reviewers/semgrep
> npm run clean && tsc -p tsconfig.json

> @takumi/reviewer-semgrep@0.1.0 clean
> rm -rf dist

> @takumi/runtime-cli@0.1.0 build /srv/hermes/workspaces/takumi/runtimes/cli
> npm run clean && tsc -p tsconfig.json

> @takumi/runtime-cli@0.1.0 clean
> rm -rf dist

> @takumi/runtime-deepseek@0.1.0 build /srv/hermes/workspaces/takumi/runtimes/deepseek
> npm run clean && tsc -p tsconfig.json

> @takumi/runtime-deepseek@0.1.0 clean
> rm -rf dist

> @takumi/runtime-fake@0.1.0 build /srv/hermes/workspaces/takumi/runtimes/fake
> npm run clean && tsc -p tsconfig.json

> @takumi/runtime-fake@0.1.0 clean
> rm -rf dist

> @takumi/runtime-openhands@0.1.0 build /srv/hermes/workspaces/takumi/runtimes/openhands
> npm run clean && tsc -p tsconfig.json

> @takumi/runtime-openhands@0.1.0 clean
> rm -rf dist

> @takumi/cli@0.1.0 build /srv/hermes/workspaces/takumi/apps/cli
> npm run clean && tsc -p tsconfig.json

> @takumi/cli@0.1.0 clean
> rm -rf dist

> @takumi/console@0.1.0 build /srv/hermes/workspaces/takumi/apps/console
> npm run clean && tsc -p tsconfig.json

> @takumi/console@0.1.0 clean
> rm -rf dist had been
passing because the incremental build did not re-check it. That is the lesson: the
local green build was not evidence about the test files, and Scope: 20 of 21 workspace projects
packages/core typecheck$ tsc -p tsconfig.json --noEmit
packages/core typecheck: Done
boards/fake typecheck$ tsc -p tsconfig.json --noEmit
boards/github typecheck$ tsc -p tsconfig.json --noEmit
boards/gitlab typecheck$ tsc -p tsconfig.json --noEmit
boards/jira typecheck$ tsc -p tsconfig.json --noEmit
boards/fake typecheck: Done
boards/notion typecheck$ tsc -p tsconfig.json --noEmit
boards/github typecheck: Done
boards/redmine typecheck$ tsc -p tsconfig.json --noEmit
boards/jira typecheck: Done
deliveries/fake typecheck$ tsc -p tsconfig.json --noEmit
boards/gitlab typecheck: Done
deliveries/git typecheck$ tsc -p tsconfig.json --noEmit
boards/notion typecheck: Done
deliveries/github typecheck$ tsc -p tsconfig.json --noEmit
deliveries/fake typecheck: Done
deliveries/gitlab typecheck$ tsc -p tsconfig.json --noEmit
deliveries/git typecheck: Done
packages/delivery-forgejo typecheck$ tsc -p tsconfig.json --noEmit
boards/redmine typecheck: Done
reporters/reviewdog typecheck$ tsc -p tsconfig.json --noEmit
deliveries/github typecheck: Done
reviewers/semgrep typecheck$ tsc -p tsconfig.json --noEmit
deliveries/gitlab typecheck: Done
runtimes/cli typecheck$ tsc -p tsconfig.json --noEmit
reporters/reviewdog typecheck: Done
runtimes/deepseek typecheck$ tsc -p tsconfig.json --noEmit
packages/delivery-forgejo typecheck: Done
runtimes/fake typecheck$ tsc -p tsconfig.json --noEmit
reviewers/semgrep typecheck: Done
runtimes/openhands typecheck$ tsc -p tsconfig.json --noEmit
runtimes/cli typecheck: Done
runtimes/fake typecheck: Done
runtimes/deepseek typecheck: Done
runtimes/openhands typecheck: Done
apps/cli typecheck$ tsc -p tsconfig.json --noEmit
apps/console typecheck$ tsc -p tsconfig.json --noEmit
apps/console typecheck: Done
apps/cli typecheck: Done
is the command that actually answers that question (0 errors now).

Ledger #144.
CI's build-test (22) failed on PR #65:

  src/test/intake-repair.test.ts(169,44): error TS2345: Argument of type
  'string | undefined' is not assignable to type 'string'.

m[1] from a matchAll capture is string | undefined under TS's typing, and only the
CI build forced the test file through tsc — a local `pnpm build` had been passing
because the incremental build did not re-check it.

That is the lesson worth keeping: the local green build was NOT evidence about the
test files. `pnpm -r typecheck` is the command that actually answers that question,
and it reports 0 errors now.

Full suite: 741 tests / 740 pass / 1 fail, that failure being the known sandbox host
difference (#115).

Ledger #144.
@sscodeai
sscodeai merged commit 12f936e into main Nov 8, 2026
8 checks passed
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