Skip to content

refactor: Update IDMA and TSASPDMA field names to V1.9.3 spec - #1

Merged
emooreatx merged 3 commits into
mainfrom
release/1.8.0
Jan 28, 2026
Merged

refactor: Update IDMA and TSASPDMA field names to V1.9.3 spec#1
emooreatx merged 3 commits into
mainfrom
release/1.8.0

Conversation

@emooreatx

Copy link
Copy Markdown
Contributor

Summary

  • Updates IDMA_RESULT field names to match finalized V1.9.3 spec
  • Updates TSASPDMA_RESULT field names to match finalized V1.9.3 spec
  • Corrects stage order: TSASPDMA now comes before ASPDMA per spec

IDMA Changes

Old Field New Field
k_eff epistemic_humility
correlation_risk diversity_score
fragility_flag is_fragile
phase (removed)
(new) fragility_reason
(new) correlation_factors

TSASPDMA Changes

Old Field New Field
tool_name original_tool_name
tool_parameters final_parameters
reasoning tsaspdma_rationale
approved final_action (tool/speak/ponder)
(new) final_tool_name

Test plan

  • Build passes locally
  • CI/CD passes

🤖 Generated with Claude Code

emooreatx and others added 3 commits January 2, 2026 12:11
- Add MessageType type alias ('user' | 'agent' | 'system' | 'error')
- Add optional message_type field to ConversationMessage interface
- Add getEffectiveMessageType() for backward compatibility with is_agent
- Add getMessageStyles() helper for type-based styling
- Add InfoIcon and WarningIcon components for system/error messages
- Update message rendering: system (blue, centered), error (red, centered)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Types (types.ts):
- Add IDMAResult interface (k_eff, correlation_risk, fragility_flag, phase)
- Add TSASPDMAResult interface (tool_name, tool_parameters, reasoning, approved)

Dashboard (page.tsx):
- Add idma_result and tsaspdma_result to stageNames array
- Add specialized rendering for IDMA with identity coherence metrics display
- Add specialized rendering for TSASPDMA with tool info and approval status
- Add stage indicators with defensive null checks for malformed events
- Purple theme for IDMA, cyan theme for TSASPDMA, orange for fragility warnings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- IDMA: k_eff → epistemic_humility, correlation_risk → diversity_score,
  fragility_flag → is_fragile, added fragility_reason and correlation_factors
- TSASPDMA: tool_name → original_tool_name/final_tool_name,
  tool_parameters → final_parameters, reasoning → tsaspdma_rationale,
  approved → final_action (tool/speak/ponder)
- Updated stage order: TSASPDMA now comes before ASPDMA per spec

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
16.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@emooreatx
emooreatx merged commit c9b1243 into main Jan 28, 2026
8 of 12 checks passed
@emooreatx
emooreatx deleted the release/1.8.0 branch January 28, 2026 04:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f636c9a8f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +414 to +418
export interface IDMAResult {
k_eff: number; // Effective identity coherence
correlation_risk: number; // Risk of identity drift
fragility_flag: boolean; // Identity stability warning
phase: string; // Current identity phase

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update IDMAResult fields to V1.9.3 schema

The new UI logic in apps/agui/app/page.tsx reads data.is_fragile, data.epistemic_humility, data.diversity_score, and data.correlation_factors, but the exported IDMAResult type still requires the old k_eff, correlation_risk, fragility_flag, and phase fields. Any consumer using these SDK types will now be steered toward the deprecated schema and will either fail type-checking or continue to read the wrong fields. Please align IDMAResult with the V1.9.3 field names to match the actual data shape.

Useful? React with 👍 / 👎.

Comment on lines +422 to +426
export interface TSASPDMAResult {
tool_name: string;
tool_parameters: Record<string, any>;
reasoning: string;
approved: boolean;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update TSASPDMAResult fields to V1.9.3 schema

The UI now expects the TSASPDMA payload to expose original_tool_name, final_action, final_tool_name, final_parameters, and tsaspdma_rationale, but the SDK type still defines tool_name, tool_parameters, reasoning, and approved. This mismatch makes any typed client code treat the new server response as invalid and risks continued use of removed fields. The TSASPDMAResult interface should be updated to the V1.9.3 names to avoid type-level regressions.

Useful? React with 👍 / 👎.

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.

2 participants