• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dal-go / dalgo / 41795276145 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 07:56AM UTC
Files 187
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 07:52AM UTC coverage: 100.0%. Remained the same
41795276145.1

push

github

web-flow
test(architecture): keep DALgo core engine-free; engine code lives in adapters (#234)

Adds an engine-free rule to `AGENTS.md` (and `CLAUDE.md` → `@AGENTS.md`), enforced by `internal/architecture/engine_free_test.go`.

Why, founder 2026-11-04 (verbatim): "Core is not supposed to have Postgres driver ... if we need to read Postgres schema, that should be done in Dalga adapter, not custom something." and "How can we make sure that we don't repeat this mistake again?" On `dalgo2fs` staying in DALgo: "Keep as exception".

The test fails when:
- any go.mod outside `testdata/` requires a known database driver;
- non-test Go code, `.sql` or C sources import `database/sql`;
- they contain engine catalog names (`pg_*`, `information_schema`, `sqlite_master`, PRAGMA, `sys.*`, MySQL grant tables, Oracle `dba_*`/`v$`).

dalgo also allows only `adapters/dalgo2memory` and `adapters/dalgo2fs`, and skips Go comments. datatug-core is stricter: comments count there too.

Its own positive controls are in the test. Planted violations were caught locally. Independent review and re-review: approve. No exported API changes; tests only.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Source commits:

- 742010295d86 chore: keep DALgo core engine-free; engine code lives in dalgo2<engine> adapters
  AGENTS.md states the rule: DALgo core holds interfaces, generic logic and
  exactly two adapters, dalgo2memory and dalgo2fs (a named exception); no
  database drivers, no database/sql, no engine-specific SQL in code, no new
  adapter under adapters/. CLAUDE.md loads AGENTS.md so Claude agents see
  these rules (including the exported-API rule). The architecture test
  enforces it, with positive controls.
  Founder, 2026-11-04: "if we need to read Postgres schema, that should be
  done in Dalgo adapter, not custom something." On dalgo2fs: "Keep as
  exception".
- 416a3844aa96 Tighten engine-free guardrails after review
  - Rule text: use or extend dbschema.SchemaReade... (continued)

26067 of 26067 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 41795276145.1
  • Tree
  • List 187
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41795276145
  • cf170f53 on github
  • Prev Job for on main (#41447048883.1)
  • Next Job for on main (#41796163404.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc