# Always sync a package during validation

| Attribute  | Type    | Description                                                                                                                                                                                      | Package Types Applicable                                                              |
| ---------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| alwaysSync | boolean | During validation, automatically includes this package when any other package in the same domain is impacted. Useful for config/settings packages that must stay synchronized with their domain. | <ul><li>unlocked</li><li>org-dependent unlocked</li><li>source</li><li>data</li></ul> |

To ensure a package is always included during validation when its domain is impacted, add **`alwaysSync`** as a property to your package descriptor:

```json
{
  "packageDirectories": [
    {
      "path": "src/frameworks/framework-core",
      "package": "framework-core",
      "versionNumber": "1.0.0.NEXT"
    },
    {
      "path": "src/frameworks/framework-config",
      "package": "framework-config",
      "versionNumber": "1.0.0.NEXT",
      "alwaysSync": true
    }
  ]
}
```

When `framework-core` is changed and validation is triggered, `framework-config` will automatically be included because it belongs to the same domain and has `alwaysSync: true`.

This also works across domains when using `dependencyOn` in release configs. If Domain B has a `dependencyOn` referencing a package from Domain A, and that package changes, all `alwaysSync` packages in Domain A will be included.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp/validating-a-change/controlling-validation-attributes-of-a-package/always-sync-a-package.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
