-
Notifications
You must be signed in to change notification settings - Fork 1
Implement modern chat-based ATPL configuration with enhanced capabilities model #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…odel Co-authored-by: phrocker <1781585+phrocker@users.noreply.github.com>
…tion Co-authored-by: phrocker <1781585+phrocker@users.noreply.github.com>
|
Received Error Message: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [fragments/navigation], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "sso/atpl/chat" - line 256, col 10) |
Co-authored-by: phrocker <1781585+phrocker@users.noreply.github.com>
Fixed the template reference error. The issue was that the chat.html template was referencing Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR implements a modern, conversational interface for ATPL (Agent Trust Policy Language) configuration, transforming the traditional form-based approach into an intuitive chat experience that guides users through policy creation.
🎯 Key Features
Enhanced ATPL Capability Model
Capabilityclass with new fields:commands,activities, andsubcommandsIntelligent Chat Assistant
Modern User Interface
RESTful API Integration
POST /api/v1/atpl/chat/message- Process conversational messagesPOST /api/v1/atpl/chat/generate-policy- Generate complete ATPL policiesGET /api/v1/atpl/chat/suggestions- Get intelligent capability recommendationsGET /api/v1/atpl/chat/existing-policies- Retrieve and compare existing policies🔧 Technical Implementation
Backend Services:
ATPLChatService- Core conversation logic and policy generationATPLChatController- RESTful API endpoints with session managementFrontend Components:
/sso/v1/atpl/chat) with real-time messagingTesting & Validation:
📸 User Interface
The new chat interface provides an intuitive way to configure ATPL policies through natural conversation:
Conversation Flow:
🚀 Usage Examples
Defining a Monitoring Agent:
Generated Policy Structure:
{ "version": "v0", "policy_id": "monitoring_agent_policy", "capabilities": { "primitives": [{ "id": "system_monitoring", "endpoints": ["/api/v1/metrics/*", "/api/v1/health/*"], "commands": ["ps", "top", "df", "netstat"], "activities": ["system_monitoring", "health_checking"], "tags": ["monitoring", "read_only", "low_risk"] }] } }🔄 Migration & Compatibility
This implementation addresses the requirement for a "modern looking page that chats with an agent to define a new ATPL" while adding granular command and activity definition capabilities that enhance security and control over agent permissions.
Fixes #83.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
repository.jboss.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.10/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.10/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.10 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.10/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Sentrius/Sentrius org.codehaus.plexus.classworlds.launcher.Launcher clean compile -pl api -am -q(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.