Skip to content

feat(A13): Bedrock parser spec — Bedrock artifacts → IR#16

Closed
ogkranthi wants to merge 4 commits into
mainfrom
agent/architect/A13
Closed

feat(A13): Bedrock parser spec — Bedrock artifacts → IR#16
ogkranthi wants to merge 4 commits into
mainfrom
agent/architect/A13

Conversation

@ogkranthi
Copy link
Copy Markdown
Owner

Summary

Adds specs/bedrock-parser-spec.md — the specification for the Bedrock → IR parser (reverse of the Bedrock emitter). Implements the design contract for D22.

What's covered

Input formats

  • bedrock-agent.json (Bedrock API GetAgent response)
  • cloudformation.yaml (AgentShift-generated or hand-crafted)
  • instruction.txt / instruction-full.txt (plain-text overrides)
  • openapi.json (action group schema for tool extraction)
  • guardrail-config.json (AgentShift-generated guardrail config)

Field mapping

  • Complete Bedrock → IR field mapping table
  • Instruction parsing: truncation notice removal, section extraction
  • Action group → ir.tools with x-agentshift-stub detection
  • Knowledge base → ir.knowledge
  • Guardrail config → ir.governance.platform_annotations

L1 guardrail heuristic

Pattern-matching on system prompt sentences to extract guardrails from plain-text instructions (with category/severity inference).

Round-trip fidelity

Documents what survives (name, description, system_prompt, tools, sections) and what is lossy (triggers, language, install steps).

CLI contract

agentshift convert ./bedrock-output/ --from bedrock --to openclaw and variants.

Closes

A13 (Week 7 backlog)

… experiments) + clean up duplicate files

- Add Governance, Guardrail, ToolPermission, PlatformAnnotation to IR model
- Add governance extraction to OpenClaw parser (SOUL.md + tool permissions + L3 annotations)
- Add elevation engine (elevate_governance) for L2/L3 → L1 promotion
- Add governance_audit module with GPR/CFS scoring, CSV/JSON export, Rich tables
- Add `agentshift audit` and `agentshift audit-batch` CLI commands
- Integrate elevation into claude_code + copilot emitters
- Add experiments/ directory with 12 domain agents for research paper
- Remove duplicate sections 2.py and persona-sections-schema 2.md
- Mark T13 as merged in BACKLOG.md
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 29, 2026

Deploying agentshift with  Cloudflare Pages  Cloudflare Pages

Latest commit: 479ee8b
Status: ✅  Deploy successful!
Preview URL: https://7207038b.agentshift.pages.dev
Branch Preview URL: https://agent-architect-a13.agentshift.pages.dev

View logs

@ogkranthi
Copy link
Copy Markdown
Owner Author

Spec cherry-picked to main directly due to BACKLOG rebase conflict. Merged as commit 48f4838.

@ogkranthi ogkranthi closed this Mar 30, 2026
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