nplus1 × Zendo
Published attempt
0.82 · Partial reward
v9m-rl-learnability-tp8 via opencode
Attempt scoring
Weighted checks
- Failedcore engine and unrelated capabilities are unchangedReward weight 4%
- Passedweb-ag resolves web and renders its managed helperReward weight 4%
- Passedweb-ag pins ag-charts-communityReward weight 1%
- Passedweb-ag pins ag-charts-enterpriseReward weight 1%
- Passedweb-ag pins ag-charts-reactReward weight 1%
- Passedweb-ag pins ag-grid-communityReward weight 1%
- Passedweb-ag pins ag-grid-enterpriseReward weight 1%
- Passedweb-ag pins ag-grid-reactReward weight 1%
- Passedclient entrypoint configures both AG license managersReward weight 8%
- PassedAG modules register exactly once across a client reloadReward weight 8%
- Passedstandalone AG exposes the browser license envReward weight 3%
- Passedstandalone AG documents the managed client setupReward weight 2%
- Passedweb-ag contributes through a web-owned client seamReward weight 2%
- Passedweb-posthog contributes through the shared client seamReward weight 4%
- Passedstandalone PostHog behavior is preservedReward weight 4%
- Passedstandalone PostHog contains no AG outputReward weight 2%
- PassedAG and PostHog execute together in plugin order 1Reward weight 6%
- PassedAG and PostHog execute together in plugin order 2Reward weight 6%
- Failedweb-ag and infra establish one shared input mapReward weight 4%
- Failedcombined env map is stable in plugin order 1Reward weight 2%
- Failedcombined env map is stable in plugin order 2Reward weight 2%
- Passedweb-ag and infra classify the license for VercelReward weight 2%
- PassedVercel env behavior is stable in plugin order 1Reward weight 3%
- PassedVercel env behavior is stable in plugin order 2Reward weight 3%
- Failedweb-ag and infra expose the license through local envReward weight 3%
- Failedlocal env preserves AG and Google in plugin order 1Reward weight 2%
- Failedlocal env preserves AG and Google in plugin order 2Reward weight 2%
- Passedplain web and infra contain no AG-specific outputReward weight 6%
- Passedrepeated apply is byte-for-byte idempotentReward weight 2%
- Passedapply preserves project-owned package keysReward weight 3%
- Passedremoving web-ag preserves PostHog and shared instrumentationReward weight 6%
- Passedrepository smoke and downstream lint coverage include web-agReward weight 3%
Agent input
Instruction
# Add composable AG Grid and AG Charts Enterprise support to n1x Introduce a `web-ag` capability that requires `web` and adds the following packages to generated web applications: - `ag-charts-community`, `ag-charts-enterprise`, and `ag-charts-react` at `14.0.0`. - `ag-grid-community`, `ag-grid-enterprise`, and `ag-grid-react` at `36.0.0`. The capability must provide managed client setup that reads `NEXT_PUBLIC_AG_GRID_LICENSE_KEY`, applies it to both AG Grid Enterprise and AG Charts Enterprise when configured, and registers `AllEnterpriseModule.with(AgChartsEnterpriseModule)` exactly once, including across development reloads. Make the Next.js client instrumentation entrypoint composable. The `web` capability should own a generic marker-based entrypoint, while `web-posthog` and `web-ag` contribute their own initialization through it. PostHog must continue to work when selected alone, and both capabilities must work together in either requested plugin order. Keep the concrete PostHog and AG setup in their managed `web/src/_lib` modules rather than duplicating it in the entrypoint or feature components. Add the browser-visible license value to the normal generated web environment workflow. When `infra` is selected, accept it through `TF_VAR_web_secret_env_values`, expose it through `just web env`, and pass it to Vercel. Ignore blank values in that map. Vercel entries whose names start with `NEXT_PUBLIC_` are public and should be marked non-sensitive; other composed values remain sensitive. Preserve the existing Google-auth secret-map and local environment behavior while introducing this generic composition seam. Keep the capability isolated and lifecycle-safe: - `web-ag` must work without `infra`. - Projects that do not select `web-ag` must not gain AG dependencies, license declarations, setup code, or guidance. - Repeated apply operations must be idempotent. - Removing `web-ag` must clean its managed helper, environment declaration, guidance, and instrumentation contribution without removing PostHog or the shared instrumentation entrypoint. Implement this through n1x's existing declarative plugin actions. The core engine and unrelated capabilities should not need changes. The existing shared `web` plugin manifest, client-instrumentation template, and Vercel template are in scope, as are the `web-posthog` capability and `web-auth` manifest, where needed to establish the shared seams and preserve their behavior. Update generated guidance, downstream lint coverage, and smoke coverage.