Skip to content

fix: support inline code facets in observability templates - #410

Closed
max-braintrust wants to merge 1 commit into
mainfrom
max/observability-inline-code-facets
Closed

max-braintrust wants to merge 1 commit into
mainfrom
max/observability-inline-code-facets

Conversation

@max-braintrust

@max-braintrust max-braintrust commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Standalone PR. It is not required by #411 or #409.

Some facets store inline code in function_data. Observability template pull rejects them with “has facet type but non-facet function_data”, and push also rejects them during validation.

This PR accepts extraction prompt facets and inline code facets. Pull and push preserve the code, runtime settings, code hash, and tags. Bundled code remains unsupported; the error explains that templates cannot package it and suggests inline code.

Checks: 18 active_observability tests passed, including an inline code export → JSON → import-plan round trip and rejection of bundled, malformed, and unrelated function data. Cargo formatting and README Prettier passed. Clippy passed with the existing root command enum's large_enum_variant warning suppressed.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit bc056b848718:

Available artifact names
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-aarch64-pc-windows-msvc
  • artifacts-build-local-x86_64-pc-windows-msvc
  • artifacts-build-global
  • artifacts-build-local-x86_64-unknown-linux-gnu
  • artifacts-build-local-aarch64-unknown-linux-gnu
  • artifacts-build-local-x86_64-unknown-linux-musl
  • artifacts-build-local-aarch64-apple-darwin
  • artifacts-plan-dist-manifest
  • cargo-dist-cache

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