Skip to content

followup(core,gen,docs): unify EvidenceMap UIDs (tbl:/col:), align SQL COMMENT hints, add SourceMap examples - #340

Merged
flyingrobots merged 3 commits into
mainfrom
integration/holmes-2025-10-27
Oct 29, 2025
Merged

flyingrobots merged 3 commits into
mainfrom
integration/holmes-2025-10-27

Conversation

@flyingrobots

Copy link
Copy Markdown
Owner

Summary\n- Normalize EvidenceMap UIDs across producers/consumers:\n - Tables → tbl:TableName\n - Columns → col:TableName.columnName\n- GraphQLSchemaBuilder records SDL source using tbl:/col: scheme.\n- ScoringEngine fallback UIDs updated to col:… for artifact lookups.\n- PostgreSQLGenerator emits COMMENT ON COLUMN 'uid: col:Table.field'.\n- JS generators (TypeScript, Zod) record evidence under tbl:Table.\n- Docs: README + SECURITY_STRATEGY add SourceMap examples + clarify EvidenceMap is authoritative; SQL comments are hints.\n\nWhy\n- Ensures SourceMap + HOLMES + scoring all reference the same keys; avoids undercounting artifacts and improves SDL error mapping.\n\nTests\n- @wesley/core unit + snapshot tests pass.\n- CLI Bats pass.\n\nRisk\n- Low. Changes are additive and refactor-only; snapshot updates reflect comment UID format change.\n\nNotes\n- Follows on from #334. This is the tidy-up + documentation pass.\n

…able.field) and update SQL snapshots; COMMENT ON TABLE already using tbl:Table
…ents informational; add README section and SECURITY_STRATEGY note
…EADME and SECURITY_STRATEGY; show loading .wesley/bundle.json and mapping schema.sql:line to SDL
@coderabbitai

coderabbitai Bot commented Oct 29, 2025

Copy link
Copy Markdown

Warning

Rate limit exceeded

@flyingrobots has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 9 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between a3f49d2 and 8d6eed6.

⛔ Files ignored due to path filters (8)
  • README.md is excluded by !*.md
  • packages/wesley-core/test/snapshots/__snapshots__/sql-all-data-types.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-array-and-json-types.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-basic-table-with-constraints.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-complex-multi-tenant-schema.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-indexes-and-constraints.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-multi-table-with-foreign-keys.default.snap is excluded by !**/*.snap
  • packages/wesley-core/test/snapshots/__snapshots__/sql-rls-policies-and-security.default.snap is excluded by !**/*.snap
📒 Files selected for processing (2)
  • packages/wesley-core/src/domain/generators/PostgreSQLGenerator.mjs (1 hunks)
  • packages/wesley-core/src/domain/security/SECURITY_STRATEGY.md (1 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch integration/holmes-2025-10-27

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

🚢 SHIPME

[REALM] PASS — sha a7d0232

@github-actions

Copy link
Copy Markdown

🔍 The Case of Pull Request #340

🕵️ SHA-lock HOLMES's Investigation (click to expand)

🕵️ SHA-lock HOLMES Investigation

  • Generated: 2025-10-29T17:06:48.873Z
  • Commit SHA: a7d0232
  • Bundle Version: 2.0.0

⚠️ Evidence valid only for commit a7d0232

🔍 Executive Deduction

"Watson, after careful examination of the evidence, I deduce..."

Weighted Completion: ██████░░░░ 60.0%
Scores: SCS 60.0% · TCI 70.0% · MRI 20.0%
Verification Status: 2 claims verified
Ship Verdict: REQUIRES INVESTIGATION

🧩 SCS Breakdown

Component Score Coverage
Sql 60.0% 0.60/1.00
Types 60.0% 0.60/1.00
Validation 60.0% 0.60/1.00
Tests 70.0% 0.70/1.00

🧪 TCI Breakdown

Component Score Coverage Note
Unit Constraints 70.0% 1/1 N/A
Unit Rls 0.0% — N/A
Integration Relations 0.0% — N/A
E2e Ops 0.0% — Not tracked in quick emit mode

⚠️ MRI Breakdown

Component Risk Share Points Count
Drops 100.0% 20 0
Renames Without Uid 0.0% 0 0
Add Not Null Without Default 0.0% 0 0
Non Concurrent Indexes 0.0% 0 0

📊 The Weight of Evidence

"Observe, Watson, how not all features carry equal importance..."

Element Weight Status Evidence Deduction
schema 5 ✅ SQL & tests out/schema.sql:1-9999@a7d0232 Elementary!

🚪 Security & Performance Gates

"Elementary security measures, Watson..."

Gate Status Evidence Holmes's Ruling
Migration Risk ✅ MRI: 20.0% "Acceptable risk"
Test Coverage ⚠️ TCI: 70.0% "Insufficient coverage"
Sensitive Fields ✅ 0 fields "All secured"

📋 The Verdict

⚠️ REQUIRES FURTHER INVESTIGATION
"Some clues remain unclear. Address the noted issues."

Signed and sealed,

  • S. Holmes, Consulting Detective

[END OF INVESTIGATION FOR COMMIT a7d0232]


🩺 Dr. WATSON's Verification (click to expand)

🩺 Dr. Watson's Independent Verification Report

Medical Examination of Evidence

  • Examination Date: 2025-10-29T17:07:31.214Z
  • Patient SHA: a7d0232

🔬 Citation Verification

"Let me examine each piece of evidence independently..."

  • Citations Examined: 2
  • Verified: 0 ✅
  • Failed: 0 ❌
  • Unable to Verify: 2

Verification Rate: 0.0%

📊 Mathematical Verification

"I shall recalculate Holmes's arithmetic..."

Holmes claimed SCS: 60.0%
Watson calculates: 100.0%
Difference: ⚠️ Significant

🔍 Consistency Analysis

"Checking for contradictions in Holmes's deductions..."

✅ No logical inconsistencies detected

🩺 Dr. Watson's Medical Opinion

VERIFICATION: CONCERNS NOTED ⚠️

"While Holmes's methods are generally sound, I have noted some"
"discrepancies that warrant further investigation."

Respectfully submitted,

  • Dr. J. Watson, M.D.
    Medical Examiner & Verification Specialist

🔮 Professor MORIARTY's Predictions (click to expand)

🧠 Professor Moriarty's Temporal Predictions

The Mathematics of Inevitability

  • Analysis Date: 2025-10-29T17:07:56.283Z

🔮 Current State

SCS: ██████░░░░ 60.0%
TCI: ███████░░░ 70.0%
MRI: 20.0% risk

📈 Velocity Analysis

SCS Velocity: +0.00%/day
Git Activity (window): 24h · commits 19 (0 relevant) · ~19.00 commits/day
↳ Magnitude: ~0 relevant LOC/day across ~0.0 files/day
Activity Index: 10 / 100 (PR 0, Window 25)
Blended Velocity: +0.06%/day
Commit Size Burstiness: 0 / 100 (higher = more uneven commit sizes)
⚠️ PLATEAU DETECTED - Low SCS movement and low recent Git activity.

⏰ Completion Predictions

ETA: Cannot predict (insufficient velocity)

"At current velocity, completion is... improbable."

🧪 Readiness EXPLAIN

  • SCS ≥ 80% → FAIL ❌ (actual 60.0%)
  • TCI ≥ 70% → PASS ✅ (actual 70.0%)
  • MRI ≤ 40% → PASS ✅ (actual 20.0%)
  • CI Stability ≥ 90% (branch main) → FAIL ❌ (actual 79% over ~168h)
  • Delivery context (last 168h): 21 issues closed · 9 PRs merged (informational, not gating)

Signals blend: SCS velocity (70%) + Git activity (30%, branch-first). Activity only suppresses false plateaus; it never inflates readiness.

📊 Historical Trajectory

10-29: ██████░░░░ 60.0%
10-29: ██████░░░░ 60.0%
10-29: ██████░░░░ 60.0%

"Every problem becomes elementary when reduced to mathematics"
— Professor Moriarty


Machine-readable reports: holmes-report.json · watson-report.json · moriarty-report.json (see workflow artifacts).


Filed at 221B Repository Street

@flyingrobots
flyingrobots merged commit b8f53d8 into main Oct 29, 2025
17 of 18 checks passed
@flyingrobots
flyingrobots deleted the integration/holmes-2025-10-27 branch October 29, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant