Skip to content

build: add src/pkg/kb to Delphi + Windows unit search paths (fix dcc64 F2613) - #216

Merged
FMXExpress merged 1 commit into
mainfrom
claude/delphi-kb-unitpath
Jun 10, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
claude/delphi-kb-unitpath

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

Fix: F2613 Unit 'PasClaw.KB.Index' not found (dcc64)

The knowledgebase package (src/pkg/kb, added in #214) was wired into the Makefile's UNIT_DIRS but not into the Delphi/Windows build configs, which keep their own unit-path lists. So the Linux/macOS (FPC/Makefile) build worked, but Delphi (and Windows-FPC) couldn't find PasClaw.KB.Index:

[dcc64 Fatal Error] PasClaw.Tools.KB.pas(49): F2613 Unit 'PasClaw.KB.Index' not found.

What was wrong

  • src/pasclaw/PasClaw.dproj (DCC_UnitSearchPath) — missing only ..\pkg\kb. This is what produced the F2613 under RAD Studio / msbuild.
  • build-delphi.bat (UNIT_PATH) and build-fpc.bat (FPCFLAGS) — both had drifted well behind the Makefile: each was missing stream, crypto, net, search, session, identity, memory\localvector, markdown, and kb.

Fix

Resync all three Windows/Delphi unit-path lists to the Makefile's package set — adds kb everywhere plus the other drifted packages, so Delphi and Windows-FPC match the Linux/macOS build. Pure search-path additions; no source changes.

Verification

I can't run dcc64 here (no Delphi/Windows toolchain), but verified by inspection that PasClaw.KB.Index / PasClaw.Tools.KB / PasClaw.Cmd.KB live under src/pkg/kb + src/cmd, which are now present on all three lists, and that the three lists match the Makefile's package set. The FPC Makefile build (which already had kb) is unaffected.

https://claude.ai/code/session_01LGQKz579j1ZnDRwmr6h1V6


Generated by Claude Code

dcc64 failed with "F2613 Unit 'PasClaw.KB.Index' not found" because the
knowledgebase package (added in #214) was wired into the Makefile's
UNIT_DIRS but not into the Delphi/Windows build configs, which carry
their own unit-path lists:

- src/pasclaw/PasClaw.dproj DCC_UnitSearchPath — was missing only
  ..\pkg\kb (this is what produced the F2613 under RAD Studio/msbuild).
- build-delphi.bat UNIT_PATH and build-fpc.bat FPCFLAGS — both had
  drifted well behind the Makefile, each missing stream, crypto, net,
  search, session, identity, memory\localvector, markdown AND kb.

Resync all three to the Makefile's package set (adds kb everywhere plus
the other drifted packages), so the Delphi and Windows-FPC builds match
the Linux/macOS build. Pure search-path additions — no code change.

Can't run dcc64 here (no Delphi/Windows toolchain), but verified by
inspection that PasClaw.KB.Index/.Tools.KB/.Cmd.KB live under src/pkg/kb
and src/cmd, which are now on every path list; the FPC Makefile build
(which already had kb) is unaffected.
@FMXExpress
FMXExpress merged commit 46a8698 into main Jun 10, 2026
FMXExpress pushed a commit that referenced this pull request Jun 13, 2026
Both changelog files were stuck at the 2026-06-10 TUI / background-
subagent / session_search / tool-RPC entries. ~7 weeks of merged
PRs (#214 through #244) had landed without a corresponding entry in
either file -- the git log was the only record of features like the
knowledgebase, inbound MCP server mode, checkpoints + /undo,
heartbeat daemon, shell backends (local | docker), send_message,
promptware defense, Windows shell-output encoding fixes, fs_grep
ripgrep optimisations, OpenTelemetry traces, and `pasclaw agent
--quiet`.

Added (newest first):

  2026-06-13
    #244  agent --quiet log-level clamp

  2026-06-12
    #243  dcc64 search path + agent --quiet / -q
    #242  OpenTelemetry traces (OTLP/HTTP+JSON)
    #241  fs_grep tier 5+6 (byte walker + Boyer-Moore-Horspool)
    #240  fs_grep tier 1-4 (deferred hash + skip-dirs + binary
          sniff + size cap)

  2026-06-11
    #239  Windows shell output: auto-detect UTF-8 vs OEM
    #238  Hashline fs_read header mojibake fix (¶ vs ¶)
    #237  Windows shell output: OEM codepage decode

  2026-06-10
    #233  Shell backends (local | docker via IShellBackend)
    #232  Heartbeat daemon + reversible condensation (CCR)
    #230  send_message tool + condenser families + promptware
          defense + task-aware MEMORY.md slicing

  2026-06-09
    #223  /goal Ralph loop + judge model + JSON-aware condenser
    #222  /undo wired into agent + sample dprojs
    #221  Checkpoints (auto-snapshot + TUI /undo)
    #220  mcp catalog: lenient hub projector
    #219  mcp: SSE / Streamable HTTP / stdio hub transports
    #218  Inbound MCP server mode
    #217  onboard: offer to index docs into the knowledgebase
    #214  Knowledgebase (RAG over operator-curated docs)

Skipped from this changelog (build-system / Delphi-fix / FPC-fix
PRs visible in the git log but not user-facing features):
#215, #216, #224, #225, #226, #227, #228, #229, #231, #234, #236.

Both files (README.md and docs/changelog.md) updated with the same
entries -- intentional mirror so a reader on either surface sees
the same history. Same prose in both; same footnote refs at the
bottom.

Validated: every [#N] reference in both files has a matching [#N]:
URL footnote (no broken links).
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.

2 participants