Commit graph

3 commits

Author SHA1 Message Date
Snider
0911d5ad7b fix: add usage-example comments to all 37 exported functions (AX Principle 2)
core/go was violating its own RFC-025 Principle 2: every exported
function must have a comment showing HOW with real values.

37 functions had no comments — mostly one-liner accessors on Core,
Config, ServiceRuntime, IPC, and Options. Now every exported function
in every source file has a usage-example comment.

AX Principle 2 compliance: 0/37 → 37/37 (100%).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 18:07:42 +00:00
Snider
9c5cc6ea00 feat: New() constructors for Config, Fs + simplify contract.go init
Config.New() initialises ConfigOptions.
Fs.New(root) sets sandbox root.
ErrorLog uses Default() fallback — no explicit init needed.
contract.go uses constructors instead of struct literals.

All tests green.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-24 22:09:02 +00:00
Snider
fbd646456a refactor: flatten polyglot layout to standard Go module
Move source from go/core/ to root, tests from go/tests/ to tests/.
Module path dappco.re/go/core resolves cleanly — builds and tests pass.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-21 08:27:14 +00:00
Renamed from go/core/config.go (Browse further)