13 Commits

Author SHA1 Message Date
f200755766 forum(fix): add --no-verify to prevent push hook loops 2026-08-29 18:19:41 -07:00
89538f807d chore(forum): xargs was replaced but we fixed an extra preceding slash breaking AST; updated ignore file 2026-08-29 18:10:50 -07:00
62a38695b8 chore(forum): updated pre-push hook; push the vec state 2026-08-29 18:01:27 -07:00
5ea79ce63d
feat: setup agent pipeline runner and scope-based BMC rules (#77)
- **Gatekeeper/Evaluator**: Fixed schema mismatch so Gatekeeper outputs `"Approved"` and Evaluator accepts `"Approved"` or `"Completed"`.
- **Transitions / The Wall**: Introduced path-scoped BMC routing (`scopes`) to `transitions.json` using glob patterns to selectively enforce rules based on matched paths. Mixed scopes correctly union rules for maximum strictness.
- **Pipeline Runner**: Built `.forum/src/run.ts` to orchestrate agents sequentially based on diff analysis, halting rigorously on blocks and displaying a final summary table.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 17:28:16 -07:00
78b02d37a8
refactor: replace mock agent functionality with native binaries for Translator and Historian (#76)
- **Translator**: Switched from parsing plaintext `.ast` files to directly importing `@sourcegraph/scip-typescript` to deserialize `index.scip` binary protobuf payload, verifying modifications at the source SCIP index.
- **Historian**: Completely abandoned the previous Javascript cosine_similarity UDF in favor of initializing the official native C-extension via `npm:sqlite-vec`. Implemented correctly into `jsr:@db/sqlite` by enabling extension loading and querying `vec_distance_cosine()` with Uint8Array wrapping for zero-copy SQLite BLOB inserts.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 16:18:29 -07:00
465fd34671
Upgrade agent forum to Gen 3 architecture (#75)
- Replaced simulated mock data with real executable tool integrations in all 6 agent scripts in `.forum/src/agents/`.
- `adversary.ts`: Added logic to execute `stryker run`, distill surviving mutants, and safely parse `.trace.json` OTel traces.
- `evaluator.ts`: Integrated YAML task parsing from `meta-state:tasks/` and real Bounded Model Checking mapped against `transitions.json` using Git Notes.
- `gatekeeper.ts`: Built parser for JSON-LD `meta-state:ontologies/ontology.graph` to dynamically generate requirement checklists.
- `historian.ts`: Implemented dynamic search string generation from `git diff` and utilized `jsr:@db/sqlite` with a custom UDF for cosine similarity to query `docs_graph.sqlite` and `telemetry_graph.sqlite` blobs extracted from the `meta-state` branch.
- `analyst.ts`: Implemented dynamic MTTR calculation by delta'ing git commit timestamps against `telemetry` Git Note payloads.
- `translator.ts`: Cross-referenced `git diff` output with `.ast` files in `.forum/ast/` to generate true structural documentation drift proposals.
- Strictly adhered to the Zero-Token Rule, filtering output payloads to contain only actionable distillation instead of raw blobs.
- Enforced graceful degradation across all agents, utilizing `try/catch` wrappers for missing tools or artifacts.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 15:59:13 -07:00
6a3c988030
feat(forum): Implement v4 agent scaffolding and the 6 core agents (#74)
- Updated `pre-commit` hook to use genuine tools (`tree-sitter`, `semgrep`).
- Enhanced `meta_state_manager.ts` to fully write Git Note telemetry on commit.
- Implemented the 6 core agents as per the v4 blueprint: Gatekeeper, Historian, Adversary, Translator, Analyst, and Evaluator.
- Ensured agents respect Git-Native principles, interacting with `.forum/` directories and the `meta-state` orphan branch via standard Deno Commands.
- Addressed all Deno linting rules (no unused vars).

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 15:04:05 -07:00
8b91df1dca
feat(agent-forum): Improve dependency checks and initialization reporting (#73)
Refactored the `.forum/src/install_hooks.ts` initialization script to utilize a robust configuration array (`REQUIRED_TOOLS`) for verifying system dependencies, correctly distinguishing between hard requirements (Git, Deno, NPM) and optional tools that log warnings (tree-sitter, semgrep, scip-typescript, madge, stryker).

Additionally improved the status reporting when initializing the `meta-state` orphan branch by using non-mutating `git ls-tree` to read and display the exact status (`[✓] Found`, `[+] Freshly Initialized`, `[~] Replaced`, `[!] Missing/Warning`) of all required branch components (`tasks/`, `ontologies/`, `vectors/`, `transitions.json`), ensuring no unintended new placeholder stubs are created in the process.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 13:13:38 -07:00
3ea3ada808
feat(agent-forum): Add scaffolding for final agent-forum integration (#72)
- Implemented `.forum/src/install_hooks.ts` to check dependencies, safely initialize the `meta-state` orphan branch via Git plumbing commands, and install the `pre-commit` hook.
- Added `.forum/src/hooks/pre-commit` bash template for Bounded Model Checking, SCIP generation, and security scanning.
- Created `.forum/src/core/meta_state_manager.ts` to manage BMC validations and Merkle diffing.
- Added `.forum/src/core/transitions.json` to define baseline state machine governance.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 12:42:09 -07:00
d4df69890f
Adds Gen 3 Proofs of Concept under .forum/poc-g3 to demonstrate integration and production smoke testing, adhering to non-mocking constraints. Updates CONCEPTS.md to include Gen 3 mechanisms. (#71)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-29 11:51:42 -07:00
48503d03fd chore(format): deno fmt on .forum/ files 2026-08-29 11:28:38 -07:00
679f6c0f47 chore: merge origin/main into main and resolve .forum/ file paths 2026-08-29 11:28:02 -07:00
ee01227992 chor(fourm): cleanup; new home; add necessary config files; ignore some artifacts. 2026-08-29 11:25:25 -07:00