Understanding Inline Decision Diagnostics

This article provides a comprehensive guide to understanding and managing inline decision diagnostics within Hopsule for VS Code. You will learn how Hopsule transforms abstract organizational judgment into concrete, actionable enforcement directly within your development environment, ensuring that every line of code aligns with the team’s collective memory and established authority.

Prerequisites

Before you can leverage inline diagnostics, ensure your environment meets the following requirements:

  • An active Hopsule account with access to at least one Organization.

  • The Hopsule for VS Code extension installed from the marketplace.

  • A Context Pack (Capsule) that has been set to Active status within the Hopsule Dashboard.

  • At least one Decision within that Capsule that has reached the Accepted state.

  • Authentication completed via the Hopsule CLI or the extension's login prompt using your secure token.

The Philosophy of Enforcement as Remembrance

At Hopsule, we believe that enforcement is not about control, but about remembrance. Organizations often forget the reasoning behind technical constraints, leading to architectural drift and repeated mistakes. Inline diagnostics serve as a persistent reminder of the team's shared commitments. When a diagnostic appears in your editor, it is not a hurdle; it is the organization’s collective memory surfacing at the exact moment it is needed most. By integrating these diagnostics into the IDE, Hopsule ensures that governance is a continuous process rather than a periodic audit.

Setting Up Your Enforcement Environment

To begin seeing diagnostics in your code, you must first link your local workspace to the appropriate context. This ensures that the Hopsule for VS Code extension knows which set of decisions to enforce.

  1. Open your project in VS Code and navigate to the Hopsule icon in the Activity Bar on the left.

  2. Click the Connect Project button. This will prompt you to select an Organization and a specific Project from your Hopsule Dashboard.

  3. Once connected, select the Active Capsule you wish to track. Hopsule will download the portable bundle of decisions and memories to your local environment.

  4. Verify the connection by checking the Hopsule Status Bar item at the bottom of the editor. It should display the name of the active Capsule and the number of accepted decisions currently being enforced.

How Inline Diagnostics Work

Hopsule for VS Code performs local processing to compare your active code against the constraints defined in your Context Packs. Because this happens locally, your source code is never sent to Hopsule servers, preserving full data sovereignty while maintaining high-performance governance.

Anatomy of a Decision Warning

When Hopsule detects a contradiction between your code and an Accepted Decision, it highlights the offending code with a diagnostic marker. These markers are color-coded based on the severity defined in the Hopsule Dashboard:

  • Warning (Yellow): Indicates a contradiction with a standard decision. The team prefers to follow this path, but exceptions are permitted with acknowledgment.

  • Error (Red): Indicates a violation of a critical architectural constraint or a security-related decision. These typically require a formal override or a change in the code to resolve.

Hovering over the highlighted code will reveal the Hopsule Diagnostic Tooltip. This tooltip contains:

  • The Decision Title: A clear statement of the commitment being enforced.

  • The Reasoning (Memory): A summary of the "Why" behind the decision, pulled directly from the linked Memories in the Capsule.

  • Decision ID: A unique identifier for traceability.

  • Action Links: Shortcuts to View in Dashboard, Ask Hopper, or Acknowledge & Override.

Navigating the Decision Tree View

For a high-level overview of all enforcement actions in your current file or project, use the Hopsule Sidebar. The Conflicts tree view lists every active diagnostic, categorized by file and severity. Clicking on any item in the tree will jump your cursor directly to the line of code where the contradiction was detected. This is particularly useful during large refactors where multiple organizational decisions may be impacted simultaneously.

Interacting with Hopper for Context

If a diagnostic is unclear, you can invoke Hopper, the built-in AI assistant. By clicking Ask Hopper within the diagnostic tooltip, you initiate a context-aware session. Hopper uses RAG (Retrieval-Augmented Generation) to analyze the specific decision and its associated memories. It can explain the historical context of the decision, suggest code patterns that align with the decision, or help you draft a new memory if you believe the current decision is outdated. Remember: Hopper is advisory only. It helps you understand the governance layer but never makes or changes decisions autonomously.

The Override Workflow: Intentional Acknowledgment

Hopsule recognizes that engineering is the art of trade-offs. There are times when a decision must be bypassed for a legitimate, context-specific reason. In these cases, Hopsule provides an "Intentional Acknowledgment" workflow.

  1. Hover over the diagnostic and select Acknowledge & Override.

  2. A small input field will appear. You are required to provide a brief justification for why this decision is being bypassed in this specific instance.

  3. Once submitted, Hopsule creates a local override. The diagnostic marker will disappear or change to a "neutral" state (depending on your settings).

  4. The justification you provided is sent to the Hopsule Dashboard as a new Memory entry linked to that decision. This ensures that the "Why" of the exception is preserved for future developers and for the next governance review.

Advanced Configuration and Settings

You can fine-tune how diagnostics appear by navigating to the extension settings in VS Code. Available options include:

  • Enforcement Level: Choose between "Strict" (all contradictions are errors), "Standard" (mix of warnings and errors), or "Advisory" (all diagnostics appear as informational hints).

  • Sync Frequency: Control how often the extension polls the Hopsule API for updates to the Context Pack.

  • Local Cache Management: Manually clear or refresh the local memory of decisions if you suspect your local environment is out of sync with the Knowledge Graph in the dashboard.

Tips and Best Practices

  • Link Memories Liberally: The more Memories you link to a Decision in the dashboard, the more helpful the inline diagnostics will be. Developers are much more likely to follow a constraint if they can see the historical reasoning (the "Why") directly in their editor.

  • Use the Knowledge Graph: Before starting a new feature, review the Knowledge Graph in the Hopsule Dashboard to see how decisions are interconnected. This helps you anticipate which diagnostics might trigger during development.

  • Keep Capsules Small: Instead of one massive Capsule for the entire organization, create project-specific or domain-specific Context Packs. This keeps the diagnostics relevant and reduces noise in the IDE.

  • Leverage the CLI for CI/CD: Use the Hopsule CLI in your deployment pipelines to catch decision contradictions that might have been ignored or overridden in the IDE. This provides a secondary layer of preservation and authority.

  • Review Overrides Regularly: Use the Activity Feed in the Hopsule Dashboard to monitor how often certain decisions are being overridden. High override rates are a signal that a decision may need to be Deprecated or updated.

Troubleshooting

If diagnostics are not appearing as expected, consult the following table for common causes and solutions.

Issue

Cause

Solution

Diagnostics not appearing in code.

Capsule is not set to Active status.

Go to the Hopsule Dashboard, select your Capsule, and ensure its lifecycle state is Active.

Warnings are visible but "Quick Fix" is missing.

Decision is in Pending or Draft state.

Only Accepted decisions trigger the full enforcement and override workflow. Ensure the decision has been accepted by an authorized team member.

Extension shows "Authentication Expired."

Secure token has reached its TTL limit.

Run hopsule login in the terminal or use the Login button in the VS Code sidebar to generate a new session.

Diagnostics are stale/outdated.

Local cache is not synced with the Hopsule API.

Click the Refresh icon in the Hopsule Sidebar or check your network connection to ensure the extension can reach the Hopsule servers.

Hopper cannot explain a decision.

The decision has no linked Memories.

Add context to the decision in the Hopsule Dashboard by appending reasoning, meeting notes, or historical lessons to the decision's memory log.

Organizational Impact of Inline Enforcement

By using Hopsule for VS Code, your engineering organization moves away from static documentation that no one reads and toward a dynamic system of architectural governance. Every diagnostic is a touchpoint with the organization’s authority, ensuring that decisions made by senior leadership and architects are preserved and respected across the entire codebase. This reduces technical debt, accelerates onboarding for new developers, and ensures that the reasoning behind every critical choice is never lost to time.

When enforcement is treated as remembrance, the development team gains the freedom to move fast without the fear of breaking established patterns. The Knowledge Graph grows more robust with every interaction, and the Context Packs become the definitive source of truth for how the organization builds software. Whether you are a solo developer using Hopsule in "Solo Mode" or part of a global enterprise, inline diagnostics are the key to maintaining a high-integrity development lifecycle.

Related Articles

  • Managing the Lifecycle of a Decision: From Draft to Deprecated

  • Creating and Distributing Portable Context Packs (Capsules)

  • Using Hopper to Draft Decisions from Natural Language

  • Visualizing Decision Relationships with the Knowledge Graph

SHARE ON SOCIAL MEDIA

Frequent questions

These questions are asked by many of our users

Customer Centric

Frequent questions

These questions are asked by many of our users

Frequent questions

These questions are asked by many of our users

How do I change my billing information?

You can update your billing details from your account settings. Just go to the “Billing” section, click “Edit” next to your payment method, and follow the prompts to update your information securely.

What happens after my free trial ends?

When your free trial ends, your account will automatically move to the free version (if available) or pause until you choose a paid plan. You’ll receive a reminder before the trial expires so you can decide what works best for you.

Do you offer refunds?

We generally don’t offer refunds once a payment has been processed. However, if you experience any billing issues or believe there’s been a mistake, reach out to our support team and we’ll be happy to review your case.

Can I switch plans later?

Absolutely. You can upgrade or downgrade your plan at any time from your account dashboard. Changes usually take effect immediately, and any price difference will be adjusted automatically.

Will I lose my data if I cancel my subscription?

No, your data will remain stored safely. You’ll retain access to your content, but some premium features may be locked after cancellation. You can always upgrade again to regain full access.

How do I upgrade or downgrade my plan?

Go to your account settings, then to the “Subscription” section. There, you can choose a different plan that better suits your needs. Changes are applied right away, and any billing adjustments are handled automatically.

Is there a free plan available?

Yes, we offer a free plan with limited features for users who want to try things out or don’t need the full suite of tools. You can stay on the free plan as long as you’d like.

What payment methods do you accept?

We accept major credit and debit cards, including Visa, Mastercard, American Express, and others. Depending on your location, additional payment options like PayPal may also be available.

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top