Skip to content

Establish agentic development setup #1

Closed

Description

@jdylanmc

Problem

This fork is not set up for agentic development. An agent working here has no written doctrine and no local verification loop, so it edits Swift blind and rediscovers repository conventions on every run.

Two separate gaps, from reading the repo:

1. This fork is pinned to the wrong branch

main is a stale display branch. upstream/dev is the real line of work — 326 commits ahead — and it already carries most of the verification machinery:

Asset this fork (main) upstream/dev
.swiftlint.yml + CI lint workflow missing present, enforced
boringNotchTests/ XCTest target missing 4 suites
Shared/ extracted module (testable seams) missing present
.github/CODEOWNERS missing present
.devcontainer stub (Linux image, cannot build macOS) present, misleading removed

2. Nobody has written the doctrine layer

Missing in this fork and upstream:

  • No AGENTS.md / CLAUDE.md / .github/copilot-instructions.md
  • No local build or test script — the only build path is the macos-15 GitHub runner, so feedback is minutes long and unreachable offline
  • Test coverage is thin: 4 suites against ~20k LOC. Green does not mean safe.

Proposed work

  • Rebase this fork onto upstream/dev; add upstream remote and track dev
  • Add AGENTS.md covering: the dev-vs-main base-branch rule, folder map (managers, models, MediaControllers, observers, Providers, Shared), the XPC helper and mediaremote-adapter boundaries, and the rule that Localizable.xcstrings is Crowdin-owned and must not be hand-edited
  • Add scripts/build.sh and scripts/test.sh wrapping xcodebuild so an agent has one command to run
  • Document the local toolchain prerequisite (full Xcode + xcode-select -s; CommandLineTools alone cannot build this)
  • Delete or replace the stub .devcontainer
  • Grow the test target beyond smoke level, prioritising the seams already extracted into Shared/

Acceptance criteria

  1. git log upstream/dev..HEAD shows only fork-local work — no missing upstream commits
  2. AGENTS.md exists at the repo root and states the base-branch rule, the folder map, and the Crowdin constraint
  3. A single documented command builds the app locally, and a single documented command runs the tests
  4. SwiftLint runs locally with the same config CI uses
  5. No committed devcontainer that cannot build the product

Notes

Surveyed three sibling forks while scoping this — none solves it:

  • mustafa-ramax/BoringNotchPlus — no tests, no lint, forked off old main, and its README links "the original project" back to itself
  • serrrfirat/boring.notch.claude — good idea (live Claude Code session state in the notch), but 8 months cold and 445 commits behind upstream/dev

The doctrine layer is the highest-leverage item. It is one file and it closes most of the gap.

Current backlog classification

Priority: P0 (explicit user selection). Root: #13. Priorities describe order, not deletion approval.

Historical setup tasks are partly implemented (product branch, doctrine, local scripts and stable signing). Reconcile each acceptance item against current evidence before closing; do not repeat setup blindly.

Foundation grouping and sequencing

This issue is in #54 — Establish Notch Pocket's Foundation. Direct parent: #54; product root: #13. Ground foundation discovery in #54 and establish its agreed outcomes before implementing new product features. Existing acceptance criteria remain subject to evidence and explicit scope reconciliation; membership is not proof of completion.

Activity

  1. jdylanmc commented on Sep 9, 2026

    @jdylanmc
    OwnerAuthor

    Substantially addressed by 552a30b on the new pocket branch (now the repository default).

    Done

    • Rebased onto upstream/dev — the 326-commit line with SwiftLint, boringNotchTests/, Shared/, and CODEOWNERS
    • AGENTS.md — soft-fork relationship, branch topology, folder map, Crowdin rule, prefer-Defaults-over-deletion rule, and the silent-failure traps (XPC mach service name, bundle identity resetting TCC and the container, Sparkle pointing at upstream)
    • scripts/build.sh, scripts/test.sh, scripts/lint.sh — each resolves a full Xcode itself, so the repo does not depend on global xcode-select state
    • Verified end to end: build succeeds, full suite passes, -only-testing: filtering works

    Outstanding

    • Test coverage is still thin → tracked in Grow test coverage, starting with Shared/ #7
    • Stub .devcontainer was already removed upstream on dev; nothing to delete
    • swiftlint not yet installed locally (brew install swiftlint)

    Acceptance criteria 1–4 met; criterion 5 was moot. Remaining depth moved to #7.

  2. added
    priority:unranked
    area:agents
    on Sep 10, 2026
  3. added
    priority:P0
    and removed
    priority:unranked
    on Sep 10, 2026
  4. jdylanmc commented on Sep 10, 2026

    @jdylanmc
    OwnerAuthor

    Completed the agreed agent-development setup baseline through merged PR #55, with the fork-owned PR-target policy delivered in merged PR #56.

    1. Fork-local development now uses origin/pocket; the user-approved independent-product direction supersedes the historical upstream-rebase requirement.
    2. AGENTS.md documents the foundation scope, branch rules, layout, localization constraint, accurate helper/signing guidance, and human merge/release approval.
    3. Existing build/test scripts are documented and exercised; the latest baseline built successfully and passed all 37 tests.
    4. SwiftLint runs with the repository configuration: exit 0, with 1,326 existing warnings and 0 serious violations. Existing lint debt is not claimed fixed.
    5. No unsupported devcontainer remains.

    Broader test-coverage expansion remains in #7. This closes the setup baseline only—not foundation epic #54, agent runtime control, updater isolation, branding or distribution. No additional implementation PR is needed for this completed scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentspriority:P0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions