Skip to content

feat(core): add ActionGateDebtContextProvider and cryptographic IDELedger - #13155

Open
AAH20 wants to merge 2 commits into
continuedev:mainfrom
AAH20:feat/action-gate-production-debt-provider
Open

feat(core): add ActionGateDebtContextProvider and cryptographic IDELedger#13155
AAH20 wants to merge 2 commits into
continuedev:mainfrom
AAH20:feat/action-gate-production-debt-provider

Conversation

@AAH20

@AAH20 AAH20 commented Aug 18, 2026

Copy link
Copy Markdown

Summary

Adds the native ActionGateDebtContextProvider and cryptographic ActionGateIDELedger under core/context/providers/ActionGateDebtProvider.ts.

Problem Solved

As developers and Forward Deployed AI Engineers prompt Continue in VS Code and JetBrains to refactor code, generate microservices, and edit files, engineering teams require in-IDE controls to:

  1. Prevent In-IDE Technical Debt Spikes: Real-time scoring of code diffs against unbounded reasoning loops, unhandled exception paths, and bloated context overhead.
  2. Zero-Trust Refactoring Boundaries: Enforcing never_equate_intent_to_approval across state-mutating file edits and terminal commands.
  3. Emergency In-IDE Kill Switch: Immediate cessation of automated refactorings on AAG_KILL_SWITCH environment variables.
  4. Cryptographic In-IDE Action Ledger: Emitting immutable, SHA-256 hash-chained JSONL receipts providing audit-ready evidence for VC/PE Technical Due Diligence and enterprise production readiness reviews.

Features Added

  • ActionGateDebtContextProvider:
    • evaluateRefactor(): Evaluates diffs and outputs a normalized Production Readiness Score (0–100) with critical smell warnings.
  • ActionGateIDELedger:
    • recordRefactor(): Cryptographically links each in-IDE refactoring event into an immutable SHA-256 chain.
    • verifyIntegrity(): Validates hash-chain continuity.

Testing & Validation

  • Added core/context/providers/ActionGateDebtProvider.test.ts with unit tests validating clean refactor passes, dirty refactor debt rejections, and cryptographic ledger integrity.

Upstream & Commercial Context

Maintained by A2Z SOC for AI Forward Deployed Engineering, In-IDE Refactoring Governance, and Technical Due Diligence.

For engineering organizations and investors requiring codebase due diligence or production debt triage:

@AAH20
AAH20 requested a review from a team as a code owner August 18, 2026 08:37
@AAH20
AAH20 requested review from sestinj and removed request for a team August 18, 2026 08:37
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@AAH20

AAH20 commented Aug 18, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@AAH20

AAH20 commented Aug 18, 2026

Copy link
Copy Markdown
Author

recheck

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