caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

49 lines
2.3 KiB
JSON

{
"schemaVersion": 1,
"criterion": {
"name": "handleRequest",
"filePath": "src/mixed.ts",
"direction": "downstream",
"line": 13,
"marker": "normalized + 1",
"pdgEdgeKinds": ["REACHING_DEF", "CDG"]
},
"locus": "mixed",
"provenance": "manual",
"analyzerVersion": "1.6.7",
"intra_AIS": [
{
"symbol": "handleRequest",
"filePath": "src/mixed.ts",
"line": 14,
"note": "the guard `if (normalized < 0)` is data-dependent on `normalized` and controls the arms"
},
{
"symbol": "handleRequest",
"filePath": "src/mixed.ts",
"line": 16,
"note": "`return -1` is control-dependent on the guard"
},
{
"symbol": "handleRequest",
"filePath": "src/mixed.ts",
"line": 18,
"note": "`const adjusted = normalized + 1` is data-dependent on `normalized`"
},
{
"symbol": "handleRequest",
"filePath": "src/mixed.ts",
"line": 19,
"note": "the `persist(adjusted)` arg is data-dependent on `adjusted`/`normalized`; the return is control-dependent on the guard"
}
],
"inter_AIS": [
{
"symbol": "persist",
"filePath": "src/mixed.ts",
"note": "called with the adjusted value; cross-function reach"
}
],
"rationale": "criterion.line=13 — the `normalized` def `const normalized = raw * 2` (source semantics: `normalized` seeds both the data chain and the guard). Criterion `handleRequest` is mixed-locus. DOWNSTREAM from line 13, the `normalized` def drives BOTH a data chain (guard test line 14, `adjusted` line 18, the call arg line 19) and a control structure (the guard controls lines 16 and 19). So intra_AIS holds the four control/data-dependent statements within the function. Separately, `handleRequest` calls `persist` — a genuine cross-function reach — so inter_AIS holds `persist`. Step-0 reconciliation: the statement-anchored PDG slice from line 13 returns {14, 16, 18, 19} — an EXACT match to this source-derived intra_AIS; call-graph reaches {persist} exactly. This is the case where the two modes are complementary: PDG resolves the intra statement set precisely, call-graph reaches the callee. intra_AIS and inter_AIS are disjoint by construction (one is lines within `handleRequest`, the other is a different symbol `persist`)."
}