Commit graph

40 commits

Author SHA1 Message Date
user.email
c3597da9cc fix(rfc-025): complete quality gate — 10 imports, fmt→Println, verification updated
- Principle 9 table: 10 disallowed imports (was 9, added fmt and strings)
- fmt.Println→Println in AX TDD example (practicing what we preach)
- Verification script: grep pattern matches all 10 disallowed imports
- Added string concat check to verification
- Removed magic method check (replaced by import check)
- Adoption list: updated with imports, string ops, examples, comments

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 19:46:40 +00:00
user.email
7e5fc0f93f fix(rfc-025): add io to Principle 9 quality gate
io bypasses stream primitives. Core provides:
- core.ReadAll(reader) — read all + close
- core.WriteAll(writer, content) — write + close
- core.CloseStream(v) — close any Closer

9 disallowed imports in the quality gate. Zero violations in core/go.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 19:31:18 +00:00
user.email
827739cb9f fix(rfc-025): add os to Principle 9 quality gate
os bypasses Fs/Env primitives. Core provides:
- c.Fs().Write/Read/List/EnsureDir/TempDir/DeleteAll
- core.Env() for environment variables
- core.DirFS() for fs.FS from directory

Validated: core/go tests have zero os imports.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 19:23:43 +00:00
user.email
4a5e5bbd1a fix(rfc-025): add path/filepath + errors to Principle 9 quality gate
path/filepath bypasses core.Path() security boundary.
errors bypasses core.NewError()/core.Is()/core.As().

Both now in the disallowed imports table. Validated by dogfooding
core/go's own tests — zero filepath, zero errors imports remaining.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 18:58:35 +00:00
user.email
2507f144a3 feat(rfc-025): add Principle 7b — Example Tests as AX TDD
Example functions serve triple duty: test, godoc, documentation seed.
Write the Example first — if it's awkward, the API is wrong.

Convention: one {source}_example_test.go per source file.
Quality gate: source file without example file = missing documentation.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 18:39:51 +00:00
user.email
80563d97ec fix(rfc-025): pass 5 — adoption updated, verification section, references
- Adoption: reflects core/go fully migrated, updated priority list with
  Actions, JSON, Validation
- Added Verification section with 4 mechanical audit scripts
- References: added RFC.md, consumer RFCs, RFC-004, RFC-021
- Removed stale references (DTO refactor, primitives design dates)

An agent can now audit AX compliance with copy-paste bash commands.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:53:41 +00:00
user.email
67deb87070 fix(rfc-025): pass 4 — security in motivation, magic method noted, Task as declarative Go
- Motivation: exec.Command risk now includes "no entitlement, path traversal"
- Principle 5: added Task as Go-native declarative equivalent to YAML steps
- Principle 6: HandleIPCEvents explicitly noted as "one remaining magic method"
- Structure: added "Operational Principles" divider before Principles 8-10
- 4 issues, increasingly subtle — convergence continues

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:51:50 +00:00
user.email
b95e265d28 fix(rfc-025): pass 3 — Draft→Active, ServiceRuntime consistency, security callout
- Status: Draft → Active (10 principles, validated, governs ecosystem)
- Adoption: exec.Command → c.Process() (not go-process)
- Command Registration: uses OnStartup + s.Core() (ServiceRuntime pattern)
- Process example: s.core → s.Core() (ServiceRuntime, not manual field)
- Process anti-pattern: added "path traversal risk" + "no entitlement" callout
- Added security note: AX model IS the security model — Actions gate through entitlements

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:48:47 +00:00
user.email
297d920fed fix(rfc-025): pass 2 — stale examples, self-contradiction, missing entitlement pattern
- Principle 2: NewPrep/SetCore examples → actual Core comment style
- Principle 3: proc.go (deleted) → handlers.go, added docs/RFC.md
- Principle 5: fmt.Errorf → core.E() (was contradicting Principle 9)
- Principle 6: Service Registration → ServiceRuntime pattern
- Error Handling: SetCore manual pattern → ServiceRuntime
- Added: Permission Gating example (AX vs scattered if-statements)

The RFC now practices what it preaches — no example contradicts a rule.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:45:51 +00:00
user.email
49584e8b4c fix(rfc-025): IPC example → named Actions, JSON primitive now exists
- Replaced anonymous broadcast example with named Action pattern
- Added Task composition example
- Moved ACTION/QUERY to "Legacy Layer" subsection
- Principle 9: encoding/json now has core.JSONMarshal() replacement

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:41:08 +00:00
user.email
05c4fc0a78 feat(rfc-025): update AX spec to v0.8.0 — 3 new principles
Updated all code examples to match core/go v0.8.0 implementation:
- process.NewService → process.Register
- process.RunWithOptions → c.Process().RunIn()
- PERFORM removed from subsystem table
- Startable/Stoppable return Result
- Added Process, API, Action, Task, Entitled, RegistryOf to subsystem table

New principles from validated session patterns:
- Principle 8: RFC as Domain Load — load spec at session start
- Principle 9: Primitives as Quality Gates — imports are the lint rule
- Principle 10: Registration + Entitlement — two-layer permission model

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 17:35:21 +00:00
user.email
fef469ecc9 docs(go): update index.md to match v0.8.0 API
Rewrites core/go documentation to reflect current implementation:
- New() returns *Core (not error tuple)
- Startable/Stoppable return Result (not error)
- Named Actions, Task composition, Process primitive
- Registry[T] universal collection
- Correct import paths (dappco.re/go/core)
- All subsystem accessors documented
- Links to RFC.md as authoritative spec

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 15:27:06 +00:00
user.email
0ca63712dc feat: add llm.txt + docs/RFC.md — agent entry points and spec index
llm.txt: standard entry point for agents landing on the repo
docs/RFC.md: categorised index of all 28 RFCs with status

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 10:52:46 +00:00
user.email
4509fc5719 feat(rfc-025): major update — align all examples to v0.7.0 API
Every code example now matches the actual implementation:
- Option{Key,Value} not Option{K,V}
- core.New(core.WithService(...)) not core.New(core.Options{})
- core.Result (no generics) not core.Result[T]
- Subsystem table matches actual Core accessors
- Service registration shows real factory pattern
- IPC examples use actual messages package

New content:
- Process execution rule: go-process not os/exec (Principle 6)
- Command extraction pattern (closures → named methods)
- Full IPC event-driven communication example
- Updated adoption priority (added test naming + process execution)
- Aligned file structure to actual core/agent layout

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 10:46:47 +00:00
user.email
6cf8588092 feat(rfc): add Principle 7 — Tests as Behavioural Specification
Test{File}_{Function}_{Good,Bad,Ugly} naming convention.
Tests ARE the spec — machine-queryable, no prose needed.
Missing categories = gaps in the specification.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 08:52:10 +00:00
user.email
d89425534a docs 2026-03-24 14:56:51 +00:00
user.email
80b774429a chore: sync dependencies for v0.1.6
Some checks failed
Build and Deploy / deploy (push) Failing after 6s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 17:55:38 +00:00
user.email
ea6a49359c chore: sync dependencies for v0.1.5
Some checks failed
Build and Deploy / deploy (push) Failing after 7s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 17:51:01 +00:00
user.email
02536b3a13 chore: sync dependencies for v0.1.4
Some checks failed
Build and Deploy / deploy (push) Failing after 6s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 22:18:12 +00:00
user.email
9744714be3 fix(help): use go-log E() pattern for error handling in catalog
Some checks failed
Build and Deploy / deploy (push) Failing after 6s
Replace fmt.Errorf calls with log.E() structured errors in
LoadContentDir and Get, providing operation context for the
error chain.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 17:39:56 +00:00
user.email
791d64833d chore: sync go.mod dependencies
Some checks failed
Build and Deploy / deploy (push) Failing after 5s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:39:01 +00:00
user.email
ed8b61cc5b docs: add all .core/ config files to configuration reference
Some checks failed
Build and Deploy / deploy (push) Failing after 6s
Added workspace.yaml, work.yaml, git.yaml, kb.yaml, test.yaml, and
manifest.yaml documentation. Added quick reference table with scope,
package, and discovery pattern for all 12 config file types. Expanded
directory structure to show user/workspace/project scopes.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 13:17:03 +00:00
user.email
b2f1921db0 chore: add .core/ and .idea/ to .gitignore
Some checks failed
Build and Deploy / deploy (push) Failing after 9s
2026-03-15 10:17:49 +00:00
user.email
5ab72b2b71 fix: update stale import paths and dependency versions from extraction
Some checks failed
Build and Deploy / deploy (push) Failing after 8s
Resolve stale forge.lthn.ai/core/cli v0.1.0 references (tag never existed,
earliest is v0.0.1) and regenerate go.sum via workspace-aware go mod tidy.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 13:38:59 +00:00
user.email
a0b86767b6 docs: update gui architecture overview
Some checks failed
Build and Deploy / deploy (push) Failing after 8s
Replace stub page with comprehensive overview of the IPC-based package
structure covering all 16 sub-packages, platform insulation pattern,
service registration, config wiring, and MCP integration.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 08:21:37 +00:00
user.email
05305d9870 docs: update documentation from implemented plans
Some checks failed
Build and Deploy / deploy (push) Failing after 7s
Add new pages: scheduled-actions, studio, plug, uptelligence.
Update: go-blockchain, go-devops, go-process, mcp, lint, docs engine.
Update nav and indexes.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 08:09:17 +00:00
user.email
0ee4c15ee2 docs: add CLAUDE.md project instructions
Some checks failed
Build and Deploy / deploy (push) Failing after 8s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 13:38:01 +00:00
user.email
0f7dd895c3 docs(agent): split plugin docs into Claude, Codex, Gemini, LEM pages
Some checks failed
Build and Deploy / deploy (push) Failing after 5s
Replaces the single plugin table with dedicated pages per AI platform:
- Claude Code: full marketplace + npm distribution reference
- OpenAI Codex: AGENTS.md structure and plugin inventory
- Google Gemini: CLI extension and MCP server
- LEM: local inference integration and community compute

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 11:04:19 +00:00
Snider
e4f3c3e731 docs: sync verified repo documentation to core.help
Some checks failed
Build and Deploy / deploy (push) Failing after 7s
Update all 29 Go package pages, 4 tool pages (agent, mcp, ide, lint),
TypeScript, and Go framework index with rich content from individual
repo docs/. Add lint to Tools nav.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:20:52 +00:00
Snider
5b5beaf36f refactor: move agent, mcp, ide, cli, api under tools/ directory
URLs now /tools/agent/, /tools/mcp/, /tools/cli/, etc.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-11 11:50:26 +00:00
Snider
a61000db6e feat: migrate docs site to Zensical with full nav and new sections
Replace Hugo+Docsy with Zensical (MkDocs Material). Restructure all
content under docs/ with explicit nav. Add 19 new Go package pages,
plus Agent, MCP, CoreTS, IDE, GUI, and AI (LEM) sections. PHP sidebar
restructured with collapsible Guides/Reference groups. Homepage now
has sidebar with Where to Start guide and Community links.

Tabs: Home | Go | PHP | TS | GUI | AI | Tools | Deploy | Publish

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-11 11:48:44 +00:00
Snider
960092d991 test(help): add full pipeline integration test
Verifies: content loading → catalog → static generation → file
structure → search index → HTML output with HLCRF layout.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:41:19 +00:00
Snider
a0b81319dd feat(help): add LoadContentDir for directory-based catalog loading
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:40:23 +00:00
Snider
0c474a82d0 refactor(help): remove html/template dependency
All rendering now uses go-html HLCRF layout.
Templates directory and template parsing code removed.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:37:53 +00:00
Snider
216dd6ae23 refactor(help): switch static generator to HLCRF layout
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:36:55 +00:00
Snider
052670f20d refactor(help): switch server handlers to HLCRF layout
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:36:00 +00:00
Snider
1792ae44a3 feat(help): add go-html HLCRF layout
Replaces html/template rendering with go-html compositor.
Dark theme, semantic HTML, ARIA roles, section anchors.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:33:33 +00:00
Snider
6b0443c6f7 feat: import go-help library as pkg/help
All source, tests, and templates from forge.lthn.ai/core/go-help.
94% test coverage preserved. All tests pass.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:30:16 +00:00
Snider
f4aa6b99c0 feat: initialise Go module for help engine
Module: forge.lthn.ai/core/docs
pkg/help/ will hold the go-help library.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 16:29:44 +00:00
Snider
85bbb8e828 docs: initial import of CorePHP documentation
173 markdown files covering:
- Framework architecture (lifecycle events, module system, multi-tenancy)
- Package docs (admin, api, mcp, tenant, commerce, content, developer)
- CLI reference (dev, build, go, php, deploy commands)
- Patterns (actions, repositories, seeders, services, HLCRF)
- Deployment (Docker, PHP, LinuxKit, templates)
- Publishing (Homebrew, AUR, npm, Docker, Scoop, Chocolatey)

Source: core-php/docs (core.help content)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 17:51:03 +00:00