Skip to content

feat(agentconfig): config model and RFC 7396 overlay merge (1/15) - #469

Merged
gusfcarvalho merged 3 commits into
mainfrom
lisa/agent-config/01-overlay-model
Oct 6, 2026
Merged

gusfcarvalho merged 3 commits into
mainfrom
lisa/agent-config/01-overlay-model

Conversation

@ccf-lisa

@ccf-lisa ccf-lisa Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Part 1/15 of the agent remote-configuration stack

This stack splits #465 into reviewable layers of at most ~1000 changed lines each (counted without docs/, go.sum and Markdown). The last layer's tree is identical to #465, which already has its review history.

Base of the stack (targets main). Review and merge in order.

What's in this layer

First layer of the agent remote-configuration stack (split from #465): the declared agent config types, JSON helpers and canonical encoding, RFC 6901 pointers, and Merge/MergePatch/StripLocked of an API overlay onto the agent's file config.

Size: +1056 -0 = 1056 changed lines (without docs/go.sum).

Verification

Each layer builds on its own: go build, go vet (also with -tags integration), golangci-lint run and go test ./... pass, and make swag leaves the tree clean. Integration suites for the packages this layer touches pass locally on testcontainers Postgres.

🤖 Generated with Claude Code

First layer of the agent remote-configuration stack (split from #465): the declared agent config types, JSON helpers and canonical encoding, RFC 6901 pointers, and Merge/MergePatch/StripLocked of an API overlay onto the agent's file config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0f829eaf-1680-4002-a91f-49ffe73dfbf7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gusfcarvalho gusfcarvalho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ccf-review: APPROVE

no findings.

Stack (gh stack 484): #469 → #470 → #471 → #472 → #473 → #474 → #475 → #476 → #477 → #478 → #479 → #480 → #481 → #482 → #483

ccf-lisa Bot and others added 2 commits October 6, 2026 08:13
…ined

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
decodeAny and decodeConfig decoded through a json.Decoder, which copies its
input through a buffer it grows by doubling: about 4 MiB of allocations per
decode of a 1 MiB document, and a config save decodes a reported base about
six times. Decode with json.Unmarshal instead, which reads the bytes in
place, keeping the Decoder's results exactly:
- decodeAny decodes into numberValue, which builds the same map[string]any,
  []any and json.Number values as a UseNumber Decoder. Documents nested
  deeper than 12 levels (Unmarshal re-scans each level) and input Unmarshal
  rejects still go through the Decoder, so its errors are unchanged.
- decodeConfig unmarshals the struct and takes policy_data, the one
  free-form field, from the UseNumber decoding it already has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gusfcarvalho gusfcarvalho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ccf-review: APPROVE

no findings.

Stack (gh stack 484): #469 → #470 → #471 → #472 → #473 → #474 → #475 → #476 → #477 → #478 → #479 → #480 → #481 → #482 → #483

@gusfcarvalho
gusfcarvalho merged commit 187db84 into main Oct 6, 2026
5 checks passed
@gusfcarvalho
gusfcarvalho deleted the lisa/agent-config/01-overlay-model branch October 6, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant